Debian Codegraph @

docs/dyn/drive_v2.files.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="drive_v2.html">Google Drive API</a> . <a href="drive_v2.files.html">files</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#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, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, ocr=None, ocrLanguage=None, pinned=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, visibility=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a copy of the specified file.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(fileId, enforceSingleParent=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
85 <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 folder. If the target is a folder, all descendants owned by the user are also deleted.</p>
86 <p class="toc_element">
87 <code><a href="#emptyTrash">emptyTrash(driveId=None, enforceSingleParent=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Permanently deletes all of the user's trashed files.</p>
89 <p class="toc_element">
90 <code><a href="#export">export(fileId, mimeType, x__xgafv=None)</a></code></p>
91 <p class="firstline">Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.</p>
92 <p class="toc_element">
93 <code><a href="#export_media">export_media(fileId, mimeType, x__xgafv=None)</a></code></p>
94 <p class="firstline">Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.</p>
95 <p class="toc_element">
96 <code><a href="#generateCseToken">generateCseToken(fileId=None, parent=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Generates a CSE token which can be used to create or update CSE files.</p>
98 <p class="toc_element">
99 <code><a href="#generateIds">generateIds(maxResults=None, space=None, type=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Generates a set of file IDs which can be provided in insert or copy requests.</p>
101 <p class="toc_element">
102 <code><a href="#get">get(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None, x__xgafv=None)</a></code></p>
103 <p class="firstline"> Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](https://developers.google.com/workspace/drive/api/reference/rest/v2/files/export) instead. For more information, see [Download & export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).</p>
104 <p class="toc_element">
105 <code><a href="#get_media">get_media(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None, x__xgafv=None)</a></code></p>
106 <p class="firstline"> Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](https://developers.google.com/workspace/drive/api/reference/rest/v2/files/export) instead. For more information, see [Download & export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).</p>
107 <p class="toc_element">
108 <code><a href="#insert">insert(body=None, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, media_body=None, media_mime_type=None, ocr=None, ocrLanguage=None, pinned=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, useContentAsIndexableText=None, visibility=None, x__xgafv=None)</a></code></p>
109 <p class="firstline"> Inserts a new file. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](https://developers.google.com/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.insert` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `title` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"title": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.</p>
110 <p class="toc_element">
111 <code><a href="#list">list(corpora=None, corpus=None, driveId=None, includeItemsFromAllDrives=None, includeLabels=None, includePermissionsForView=None, includeTeamDriveItems=None, maxResults=None, orderBy=None, pageToken=None, projection=None, q=None, spaces=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None, x__xgafv=None)</a></code></p>
112 <p class="firstline"> Lists the user's files. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). This method accepts the `q` parameter, which is a search query combining one or more search terms. This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.</p>
113 <p class="toc_element">
114 <code><a href="#listLabels">listLabels(fileId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Lists the labels on a file.</p>
116 <p class="toc_element">
117 <code><a href="#listLabels_next">listLabels_next()</a></code></p>
118 <p class="firstline">Retrieves the next page of results.</p>
119 <p class="toc_element">
120 <code><a href="#list_next">list_next()</a></code></p>
121 <p class="firstline">Retrieves the next page of results.</p>
122 <p class="toc_element">
123 <code><a href="#modifyLabels">modifyLabels(fileId, body=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Modifies the set of labels applied to a file. Returns a list of the labels that were added or modified.</p>
125 <p class="toc_element">
126 <code><a href="#patch">patch(fileId, addParents=None, body=None, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, modifiedDateBehavior=None, newRevision=None, ocr=None, ocrLanguage=None, pinned=None, removeParents=None, setModifiedDate=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, updateViewedDate=None, useContentAsIndexableText=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics.</p>
128 <p class="toc_element">
129 <code><a href="#touch">touch(fileId, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Set the file's updated time to the current server time.</p>
131 <p class="toc_element">
132 <code><a href="#trash">trash(fileId, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files.</p>
134 <p class="toc_element">
135 <code><a href="#untrash">untrash(fileId, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
136 <p class="firstline">Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files.</p>
137 <p class="toc_element">
138 <code><a href="#update">update(fileId, addParents=None, body=None, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, media_body=None, media_mime_type=None, modifiedDateBehavior=None, newRevision=None, ocr=None, ocrLanguage=None, pinned=None, removeParents=None, setModifiedDate=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, updateViewedDate=None, useContentAsIndexableText=None, x__xgafv=None)</a></code></p>
139 <p class="firstline"> Updates a file's metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information, see [Google Workspace and Google Drive supported MIME types](https://developers.google.com/workspace/drive/api/guides/mime-types).) For more information on uploading files, see [Upload file data](https://developers.google.com/workspace/drive/api/guides/manage-uploads).</p>
140 <p class="toc_element">
141 <code><a href="#watch">watch(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None, x__xgafv=None)</a></code></p>
142 <p class="firstline">Subscribes to changes to a file.</p>
143 <h3>Method Details</h3>
144 <div class="method">
145 <code class="details" id="close">close()</code>
146 <pre>Close httplib2 connections.</pre>
147 </div>
148
149 <div class="method">
150 <code class="details" id="copy">copy(fileId, body=None, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, ocr=None, ocrLanguage=None, pinned=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, visibility=None, x__xgafv=None)</code>
151 <pre>Creates a copy of the specified file.
152
153 Args:
154 fileId: string, The ID of the file to copy. (required)
155 body: object, The request body.
156 The object takes the form of:
157
158 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
159 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
160 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
161 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
162 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
163 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
164 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
165 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
166 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
167 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
168 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
169 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
170 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
171 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
172 &quot;canCopy&quot;: True or False, # Output only. 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.
173 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
174 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
175 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
176 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
177 &quot;canEdit&quot;: True or False, # Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see `canChangeCopyRequiresWriterPermission` or `canModifyContent`.
178 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
179 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
180 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
181 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
182 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
183 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
184 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
185 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
186 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
187 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
188 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
189 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
190 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
191 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
192 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
193 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
194 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
195 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
196 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
197 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
198 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
199 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
200 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
201 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
202 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
203 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
204 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
205 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
206 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
207 },
208 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
209 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
210 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
211 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
212 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
213 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
214 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
215 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
216 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
217 },
218 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
219 },
220 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
221 { # A restriction for accessing the content of the file.
222 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
223 &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.
224 &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`.
225 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
226 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
227 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
228 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
229 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
230 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
231 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
232 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
233 },
234 },
235 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
236 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
237 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
238 },
239 ],
240 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
241 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
242 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
243 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
244 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
245 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
246 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
247 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
248 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
249 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
250 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
251 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
252 &quot;a_key&quot;: &quot;A String&quot;,
253 },
254 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
255 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
256 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
257 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
258 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
259 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
260 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
261 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
262 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
263 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
264 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
265 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
266 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
267 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
268 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
269 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
270 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
271 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
272 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
273 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
274 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
275 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
276 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
277 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
278 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
279 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
280 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
281 },
282 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
283 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
284 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
285 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
286 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
287 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
288 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
289 },
290 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
291 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
292 },
293 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
294 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
295 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
296 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
297 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
298 { # Representation of a label and label fields.
299 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
300 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
301 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
302 &quot;A String&quot;,
303 ],
304 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
305 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
306 &quot;A String&quot;,
307 ],
308 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
309 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
310 &quot;A String&quot;,
311 ],
312 &quot;text&quot;: [ # Only present if `valueType` is `text`.
313 &quot;A String&quot;,
314 ],
315 &quot;user&quot;: [ # Only present if `valueType` is `user`.
316 { # Information about a Drive user.
317 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
318 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
319 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
320 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
321 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
322 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
323 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
324 },
325 },
326 ],
327 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
328 },
329 },
330 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
331 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
332 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
333 },
334 ],
335 },
336 &quot;labels&quot;: { # A group of labels for the file.
337 &quot;hidden&quot;: True or False, # Output only. Deprecated.
338 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
339 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
340 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
341 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
342 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
343 },
344 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
345 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
346 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
347 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
348 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
349 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
350 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
351 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
352 },
353 },
354 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
355 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
356 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
357 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
358 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
359 },
360 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
361 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
362 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
363 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
364 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
365 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
366 &quot;a_key&quot;: &quot;A String&quot;,
367 },
368 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
369 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
370 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
371 &quot;A String&quot;,
372 ],
373 &quot;owners&quot;: [ # Output only. 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.
374 { # Information about a Drive user.
375 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
376 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
377 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
378 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
379 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
380 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
381 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
382 },
383 },
384 ],
385 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
386 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
387 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
388 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
389 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
390 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
391 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
392 },
393 ],
394 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
395 &quot;A String&quot;,
396 ],
397 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
398 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
399 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
400 &quot;A String&quot;,
401 ],
402 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
403 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
404 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
405 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
406 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
407 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
408 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
409 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
410 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
411 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
412 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
413 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
414 {
415 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
416 &quot;A String&quot;,
417 ],
418 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
419 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
420 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
421 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
422 },
423 ],
424 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
425 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
426 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
427 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
428 {
429 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
430 &quot;A String&quot;,
431 ],
432 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
433 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
434 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
435 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
436 },
437 ],
438 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
439 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
440 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
441 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
442 },
443 ],
444 &quot;properties&quot;: [ # The list of properties.
445 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
446 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
447 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
448 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
449 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
450 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
451 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
452 },
453 ],
454 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
455 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
456 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
457 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
458 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
459 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
460 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
461 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
462 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
463 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
464 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
466 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
467 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
468 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
469 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
470 },
471 },
472 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
473 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
474 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
475 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
476 },
477 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
478 &quot;A String&quot;,
479 ],
480 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
481 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
482 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
483 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
484 },
485 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
486 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
487 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
488 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
489 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
490 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
491 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
492 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
493 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
494 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
495 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
496 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
497 },
498 },
499 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
500 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
501 &quot;A String&quot;,
502 ],
503 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
504 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
505 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
506 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
507 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
508 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
509 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
510 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
511 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
512 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
513 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
514 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
515 {
516 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
517 &quot;A String&quot;,
518 ],
519 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
520 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
521 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
522 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
523 },
524 ],
525 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
526 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
527 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
528 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
529 {
530 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
531 &quot;A String&quot;,
532 ],
533 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
534 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
535 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
536 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
537 },
538 ],
539 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
540 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
541 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
542 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
543 },
544 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
545 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
546 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
547 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
548 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
549 },
550 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
551 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
552 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
553 }
554
555 convert: boolean, Whether to convert this file to the corresponding Docs Editors format.
556 enforceSingleParent: boolean, Deprecated: Copying files into multiple folders is no longer supported. Use shortcuts instead.
557 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
558 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
559 ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
560 ocrLanguage: string, If `ocr` is true, hints at the language to use. Valid values are BCP 47 codes.
561 pinned: boolean, Whether to pin the head revision of the new copy. A file can have a maximum of 200 pinned revisions.
562 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
563 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
564 timedTextLanguage: string, The language of the timed text.
565 timedTextTrackName: string, The timed text track name.
566 visibility: string, The visibility of the new file. Permissions are still inherited from parent folders. This parameter is only relevant when the source is not a Google Doc file and when `convert=false`.
567 Allowed values
568 DEFAULT - The visibility of the new file is determined by the user&#x27;s default visibility or sharing policies.
569 PRIVATE - The user&#x27;s default visibility or sharing policies are ignored, and the new file is only visible to the owner and any users with permissions inherited from the parent folder.
570 x__xgafv: string, V1 error format.
571 Allowed values
572 1 - v1 error format
573 2 - v2 error format
574
575 Returns:
576 An object of the form:
577
578 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
579 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
580 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
581 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
582 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
583 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
584 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
585 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
586 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
587 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
588 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
589 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
590 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
591 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
592 &quot;canCopy&quot;: True or False, # Output only. 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.
593 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
594 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
595 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
596 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
597 &quot;canEdit&quot;: True or False, # Output only. 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`.
598 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
599 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
600 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
601 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
602 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
603 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
604 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
605 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
606 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
607 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
608 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
609 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
610 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
611 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
612 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
613 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
614 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
615 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
616 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
617 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
618 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
619 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
620 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
621 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
622 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
623 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
624 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
625 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
626 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
627 },
628 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
629 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
630 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
631 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
632 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
633 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
634 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
635 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
636 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
637 },
638 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
639 },
640 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
641 { # A restriction for accessing the content of the file.
642 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
643 &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.
644 &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`.
645 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
646 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
647 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
648 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
649 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
650 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
651 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
652 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
653 },
654 },
655 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
656 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
657 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
658 },
659 ],
660 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
661 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
662 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
663 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
664 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
665 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
666 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
667 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
668 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
669 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
670 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
671 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
672 &quot;a_key&quot;: &quot;A String&quot;,
673 },
674 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
675 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
676 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
677 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
678 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
679 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
680 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
681 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
682 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
683 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
684 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
685 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
686 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
687 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
688 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
689 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
690 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
691 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
692 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
693 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
694 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
695 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
696 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
697 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
698 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
699 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
700 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
701 },
702 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
703 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
704 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
705 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
706 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
707 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
708 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
709 },
710 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
711 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
712 },
713 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
714 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
715 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
716 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
717 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
718 { # Representation of a label and label fields.
719 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
720 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
721 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
722 &quot;A String&quot;,
723 ],
724 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
725 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
726 &quot;A String&quot;,
727 ],
728 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
729 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
730 &quot;A String&quot;,
731 ],
732 &quot;text&quot;: [ # Only present if `valueType` is `text`.
733 &quot;A String&quot;,
734 ],
735 &quot;user&quot;: [ # Only present if `valueType` is `user`.
736 { # Information about a Drive user.
737 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
738 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
739 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
740 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
741 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
742 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
743 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
744 },
745 },
746 ],
747 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
748 },
749 },
750 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
751 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
752 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
753 },
754 ],
755 },
756 &quot;labels&quot;: { # A group of labels for the file.
757 &quot;hidden&quot;: True or False, # Output only. Deprecated.
758 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
759 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
760 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
761 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
762 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
763 },
764 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
765 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
766 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
767 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
768 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
769 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
770 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
771 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
772 },
773 },
774 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
775 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
776 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
777 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
778 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
779 },
780 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
781 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
782 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
783 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
784 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
785 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
786 &quot;a_key&quot;: &quot;A String&quot;,
787 },
788 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
789 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
790 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
791 &quot;A String&quot;,
792 ],
793 &quot;owners&quot;: [ # Output only. 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.
794 { # Information about a Drive user.
795 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
796 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
797 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
798 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
799 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
800 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
801 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
802 },
803 },
804 ],
805 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
806 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
807 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
808 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
809 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
810 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
811 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
812 },
813 ],
814 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
815 &quot;A String&quot;,
816 ],
817 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
818 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
819 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
820 &quot;A String&quot;,
821 ],
822 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
823 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
824 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
825 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
826 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
827 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
828 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
829 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
830 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
831 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
832 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
833 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
834 {
835 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
836 &quot;A String&quot;,
837 ],
838 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
839 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
840 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
841 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
842 },
843 ],
844 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
845 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
846 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
847 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
848 {
849 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
850 &quot;A String&quot;,
851 ],
852 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
853 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
854 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
855 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
856 },
857 ],
858 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
859 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
860 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
861 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
862 },
863 ],
864 &quot;properties&quot;: [ # The list of properties.
865 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
866 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
867 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
868 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
869 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
870 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
871 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
872 },
873 ],
874 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
875 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
876 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
877 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
878 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
879 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
880 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
881 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
882 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
883 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
884 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
885 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
886 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
887 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
888 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
889 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
890 },
891 },
892 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
893 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
894 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
895 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
896 },
897 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
898 &quot;A String&quot;,
899 ],
900 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
901 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
902 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
903 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
904 },
905 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
906 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
907 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
908 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
909 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
910 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
911 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
912 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
913 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
914 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
915 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
916 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
917 },
918 },
919 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
920 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
921 &quot;A String&quot;,
922 ],
923 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
924 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
925 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
926 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
927 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
928 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
929 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
930 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
931 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
932 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
933 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
934 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
935 {
936 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
937 &quot;A String&quot;,
938 ],
939 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
940 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
941 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
942 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
943 },
944 ],
945 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
946 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
947 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
948 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
949 {
950 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
951 &quot;A String&quot;,
952 ],
953 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
954 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
955 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
956 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
957 },
958 ],
959 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
960 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
961 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
962 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
963 },
964 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
965 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
966 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
967 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
968 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
969 },
970 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
971 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
972 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
973 }</pre>
974 </div>
975
976 <div class="method">
977 <code class="details" id="delete">delete(fileId, enforceSingleParent=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
978 <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 folder. If the target is a folder, all descendants owned by the user are also deleted.
979
980 Args:
981 fileId: string, The ID of the file to delete. (required)
982 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 is placed under its owner&#x27;s root.
983 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
984 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
985 x__xgafv: string, V1 error format.
986 Allowed values
987 1 - v1 error format
988 2 - v2 error format
989 </pre>
990 </div>
991
992 <div class="method">
993 <code class="details" id="emptyTrash">emptyTrash(driveId=None, enforceSingleParent=None, x__xgafv=None)</code>
994 <pre>Permanently deletes all of the user&#x27;s trashed files.
995
996 Args:
997 driveId: string, If set, empties the trash of the provided shared drive.
998 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 is placed under its owner&#x27;s root.
999 x__xgafv: string, V1 error format.
1000 Allowed values
1001 1 - v1 error format
1002 2 - v2 error format
1003 </pre>
1004 </div>
1005
1006 <div class="method">
1007 <code class="details" id="export">export(fileId, mimeType, x__xgafv=None)</code>
1008 <pre>Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.
1009
1010 Args:
1011 fileId: string, The ID of the file. (required)
1012 mimeType: string, Required. The MIME type of the format requested for this export. (required)
1013 x__xgafv: string, V1 error format.
1014 Allowed values
1015 1 - v1 error format
1016 2 - v2 error format
1017 </pre>
1018 </div>
1019
1020 <div class="method">
1021 <code class="details" id="export_media">export_media(fileId, mimeType, x__xgafv=None)</code>
1022 <pre>Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.
1023
1024 Args:
1025 fileId: string, The ID of the file. (required)
1026 mimeType: string, Required. The MIME type of the format requested for this export. (required)
1027 x__xgafv: string, V1 error format.
1028 Allowed values
1029 1 - v1 error format
1030 2 - v2 error format
1031 </pre>
1032 </div>
1033
1034 <div class="method">
1035 <code class="details" id="generateCseToken">generateCseToken(fileId=None, parent=None, x__xgafv=None)</code>
1036 <pre>Generates a CSE token which can be used to create or update CSE files.
1037
1038 Args:
1039 fileId: string, The ID of the file for which the JWT should be generated. If not provided, an id will be generated.
1040 parent: string, The ID of the expected parent of the file. Used when generating a JWT for a new CSE file. If specified, the parent will be fetched, and if the parent is a shared drive item, the shared drive&#x27;s policy will be used to determine the KACLS that should be used. It is invalid to specify both file_id and parent in a single request.
1041 x__xgafv: string, V1 error format.
1042 Allowed values
1043 1 - v1 error format
1044 2 - v2 error format
1045
1046 Returns:
1047 An object of the form:
1048
1049 { # JWT and associated metadata used to generate CSE files.
1050 &quot;currentKaclsId&quot;: &quot;A String&quot;, # The current Key ACL Service (KACLS) ID associated with the JWT.
1051 &quot;currentKaclsName&quot;: &quot;A String&quot;, # Name of the KACLs that the returned KACLs ID points to.
1052 &quot;fileId&quot;: &quot;A String&quot;, # The fileId for which the JWT was generated.
1053 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) for the file.
1054 &quot;kind&quot;: &quot;A String&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#generateCseTokenResponse&quot;`.
1055 }</pre>
1056 </div>
1057
1058 <div class="method">
1059 <code class="details" id="generateIds">generateIds(maxResults=None, space=None, type=None, x__xgafv=None)</code>
1060 <pre>Generates a set of file IDs which can be provided in insert or copy requests.
1061
1062 Args:
1063 maxResults: integer, Maximum number of IDs to return.
1064 space: string, The space in which the IDs can be used to create new files. Supported values are `drive` and `appDataFolder`. (Default: `drive`)
1065 type: string, The type of items which the IDs can be used for. Supported values are `files` and `shortcuts`. Note that `shortcuts` are only supported in the `drive` `space`. (Default: `files`)
1066 x__xgafv: string, V1 error format.
1067 Allowed values
1068 1 - v1 error format
1069 2 - v2 error format
1070
1071 Returns:
1072 An object of the form:
1073
1074 { # A list of generated IDs which can be provided in insert requests
1075 &quot;ids&quot;: [ # The IDs generated for the requesting user in the specified space.
1076 &quot;A String&quot;,
1077 ],
1078 &quot;kind&quot;: &quot;drive#generatedIds&quot;, # This is always `drive#generatedIds`
1079 &quot;space&quot;: &quot;A String&quot;, # The type of file that can be created with these IDs.
1080 }</pre>
1081 </div>
1082
1083 <div class="method">
1084 <code class="details" id="get">get(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None, x__xgafv=None)</code>
1085 <pre> Gets a file&#x27;s metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](https://developers.google.com/workspace/drive/api/reference/rest/v2/files/export) instead. For more information, see [Download &amp; export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).
1086
1087 Args:
1088 fileId: string, The ID for the file in question. (required)
1089 acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.
1090 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
1091 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
1092 projection: string, Deprecated: This parameter has no function.
1093 Allowed values
1094 BASIC - Deprecated.
1095 FULL - Deprecated.
1096 revisionId: string, Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
1097 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1098 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1099 updateViewedDate: boolean, Deprecated: Use `files.update` with `modifiedDateBehavior=noChange, updateViewedDate=true` and an empty request body.
1100 x__xgafv: string, V1 error format.
1101 Allowed values
1102 1 - v1 error format
1103 2 - v2 error format
1104
1105 Returns:
1106 An object of the form:
1107
1108 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
1109 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
1110 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
1111 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
1112 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
1113 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1114 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
1115 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
1116 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
1117 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
1118 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
1119 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
1120 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
1121 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
1122 &quot;canCopy&quot;: True or False, # Output only. 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.
1123 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
1124 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
1125 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
1126 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
1127 &quot;canEdit&quot;: True or False, # Output only. 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`.
1128 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
1129 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1130 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
1131 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
1132 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
1133 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
1134 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
1135 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
1136 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
1137 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
1138 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
1139 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
1140 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
1141 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
1142 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
1143 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
1144 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
1145 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
1146 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
1147 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
1148 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
1149 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
1150 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
1151 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
1152 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
1153 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
1154 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
1155 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
1156 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
1157 },
1158 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
1159 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
1160 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
1161 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
1162 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
1163 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
1164 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
1165 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
1166 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
1167 },
1168 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
1169 },
1170 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1171 { # A restriction for accessing the content of the file.
1172 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
1173 &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.
1174 &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`.
1175 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
1176 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1177 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1178 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1179 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1180 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1181 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1182 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1183 },
1184 },
1185 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1186 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
1187 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
1188 },
1189 ],
1190 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1191 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
1192 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
1193 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
1194 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1195 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1196 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
1197 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
1198 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
1199 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
1200 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
1201 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
1202 &quot;a_key&quot;: &quot;A String&quot;,
1203 },
1204 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1205 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
1206 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
1207 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1208 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
1209 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
1210 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1211 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
1212 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1213 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
1214 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
1215 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
1216 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
1217 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
1218 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
1219 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
1220 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
1221 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
1222 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
1223 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
1224 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
1225 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
1226 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
1227 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
1228 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
1229 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
1230 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
1231 },
1232 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1233 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
1234 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1235 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
1236 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
1237 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
1238 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
1239 },
1240 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
1241 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
1242 },
1243 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
1244 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
1245 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
1246 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
1247 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
1248 { # Representation of a label and label fields.
1249 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
1250 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
1251 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
1252 &quot;A String&quot;,
1253 ],
1254 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
1255 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
1256 &quot;A String&quot;,
1257 ],
1258 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
1259 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
1260 &quot;A String&quot;,
1261 ],
1262 &quot;text&quot;: [ # Only present if `valueType` is `text`.
1263 &quot;A String&quot;,
1264 ],
1265 &quot;user&quot;: [ # Only present if `valueType` is `user`.
1266 { # Information about a Drive user.
1267 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1268 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1269 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1270 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1271 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1272 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1273 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1274 },
1275 },
1276 ],
1277 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
1278 },
1279 },
1280 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
1281 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
1282 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
1283 },
1284 ],
1285 },
1286 &quot;labels&quot;: { # A group of labels for the file.
1287 &quot;hidden&quot;: True or False, # Output only. Deprecated.
1288 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
1289 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
1290 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
1291 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
1292 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
1293 },
1294 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
1295 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1296 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1297 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1298 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1299 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1300 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1301 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1302 },
1303 },
1304 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
1305 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
1306 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
1307 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
1308 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
1309 },
1310 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
1311 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1312 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
1313 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
1314 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
1315 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
1316 &quot;a_key&quot;: &quot;A String&quot;,
1317 },
1318 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
1319 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
1320 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
1321 &quot;A String&quot;,
1322 ],
1323 &quot;owners&quot;: [ # Output only. 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.
1324 { # Information about a Drive user.
1325 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1326 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1327 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1328 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1329 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1330 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1331 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1332 },
1333 },
1334 ],
1335 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
1336 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
1337 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
1338 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
1339 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
1340 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
1341 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
1342 },
1343 ],
1344 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
1345 &quot;A String&quot;,
1346 ],
1347 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
1348 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
1349 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
1350 &quot;A String&quot;,
1351 ],
1352 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
1353 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1354 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
1355 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
1356 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
1357 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1358 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1359 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
1360 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
1361 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
1362 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
1363 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
1364 {
1365 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
1366 &quot;A String&quot;,
1367 ],
1368 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
1369 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
1370 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
1371 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
1372 },
1373 ],
1374 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
1375 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
1376 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
1377 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
1378 {
1379 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
1380 &quot;A String&quot;,
1381 ],
1382 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
1383 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
1384 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
1385 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
1386 },
1387 ],
1388 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
1389 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1390 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
1391 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
1392 },
1393 ],
1394 &quot;properties&quot;: [ # The list of properties.
1395 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
1396 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
1397 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
1398 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
1399 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
1400 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
1401 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
1402 },
1403 ],
1404 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
1405 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
1406 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
1407 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1408 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1409 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
1410 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
1411 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
1412 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
1413 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1414 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1415 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1416 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1417 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1418 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1419 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1420 },
1421 },
1422 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
1423 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
1424 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
1425 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
1426 },
1427 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
1428 &quot;A String&quot;,
1429 ],
1430 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
1431 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
1432 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
1433 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
1434 },
1435 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
1436 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
1437 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
1438 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
1439 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
1440 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1441 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1442 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1443 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1444 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1445 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1446 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1447 },
1448 },
1449 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
1450 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
1451 &quot;A String&quot;,
1452 ],
1453 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
1454 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1455 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
1456 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
1457 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
1458 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1459 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1460 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
1461 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
1462 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
1463 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
1464 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
1465 {
1466 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
1467 &quot;A String&quot;,
1468 ],
1469 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
1470 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
1471 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
1472 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
1473 },
1474 ],
1475 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
1476 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
1477 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
1478 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
1479 {
1480 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
1481 &quot;A String&quot;,
1482 ],
1483 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
1484 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
1485 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
1486 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
1487 },
1488 ],
1489 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
1490 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1491 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
1492 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
1493 },
1494 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
1495 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
1496 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
1497 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
1498 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
1499 },
1500 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
1501 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
1502 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
1503 }</pre>
1504 </div>
1505
1506 <div class="method">
1507 <code class="details" id="get_media">get_media(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None, x__xgafv=None)</code>
1508 <pre> Gets a file&#x27;s metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](https://developers.google.com/workspace/drive/api/reference/rest/v2/files/export) instead. For more information, see [Download &amp; export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).
1509
1510 Args:
1511 fileId: string, The ID for the file in question. (required)
1512 acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.
1513 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
1514 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
1515 projection: string, Deprecated: This parameter has no function.
1516 Allowed values
1517 BASIC - Deprecated.
1518 FULL - Deprecated.
1519 revisionId: string, Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
1520 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1521 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1522 updateViewedDate: boolean, Deprecated: Use `files.update` with `modifiedDateBehavior=noChange, updateViewedDate=true` and an empty request body.
1523 x__xgafv: string, V1 error format.
1524 Allowed values
1525 1 - v1 error format
1526 2 - v2 error format
1527
1528 Returns:
1529 The media object as a string.
1530
1531 </pre>
1532 </div>
1533
1534 <div class="method">
1535 <code class="details" id="insert">insert(body=None, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, media_body=None, media_mime_type=None, ocr=None, ocrLanguage=None, pinned=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, useContentAsIndexableText=None, visibility=None, x__xgafv=None)</code>
1536 <pre> Inserts a new file. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](https://developers.google.com/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.insert` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `title` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `&quot;title&quot;: &quot;cat.jpg&quot;` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file&#x27;s MIME type.
1537
1538 Args:
1539 body: object, The request body.
1540 The object takes the form of:
1541
1542 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
1543 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
1544 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
1545 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
1546 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
1547 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1548 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
1549 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
1550 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
1551 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
1552 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
1553 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
1554 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
1555 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
1556 &quot;canCopy&quot;: True or False, # Output only. 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.
1557 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
1558 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
1559 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
1560 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
1561 &quot;canEdit&quot;: True or False, # Output only. 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`.
1562 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
1563 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1564 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
1565 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
1566 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
1567 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
1568 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
1569 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
1570 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
1571 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
1572 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
1573 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
1574 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
1575 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
1576 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
1577 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
1578 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
1579 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
1580 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
1581 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
1582 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
1583 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
1584 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
1585 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
1586 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
1587 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
1588 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
1589 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
1590 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
1591 },
1592 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
1593 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
1594 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
1595 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
1596 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
1597 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
1598 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
1599 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
1600 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
1601 },
1602 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
1603 },
1604 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1605 { # A restriction for accessing the content of the file.
1606 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
1607 &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.
1608 &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`.
1609 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
1610 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1611 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1612 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1613 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1614 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1615 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1616 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1617 },
1618 },
1619 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1620 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
1621 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
1622 },
1623 ],
1624 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1625 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
1626 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
1627 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
1628 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1629 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1630 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
1631 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
1632 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
1633 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
1634 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
1635 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
1636 &quot;a_key&quot;: &quot;A String&quot;,
1637 },
1638 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1639 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
1640 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
1641 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1642 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
1643 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
1644 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1645 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
1646 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1647 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
1648 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
1649 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
1650 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
1651 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
1652 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
1653 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
1654 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
1655 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
1656 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
1657 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
1658 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
1659 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
1660 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
1661 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
1662 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
1663 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
1664 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
1665 },
1666 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1667 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
1668 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1669 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
1670 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
1671 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
1672 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
1673 },
1674 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
1675 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
1676 },
1677 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
1678 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
1679 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
1680 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
1681 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
1682 { # Representation of a label and label fields.
1683 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
1684 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
1685 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
1686 &quot;A String&quot;,
1687 ],
1688 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
1689 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
1690 &quot;A String&quot;,
1691 ],
1692 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
1693 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
1694 &quot;A String&quot;,
1695 ],
1696 &quot;text&quot;: [ # Only present if `valueType` is `text`.
1697 &quot;A String&quot;,
1698 ],
1699 &quot;user&quot;: [ # Only present if `valueType` is `user`.
1700 { # Information about a Drive user.
1701 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1702 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1703 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1704 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1705 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1706 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1707 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1708 },
1709 },
1710 ],
1711 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
1712 },
1713 },
1714 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
1715 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
1716 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
1717 },
1718 ],
1719 },
1720 &quot;labels&quot;: { # A group of labels for the file.
1721 &quot;hidden&quot;: True or False, # Output only. Deprecated.
1722 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
1723 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
1724 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
1725 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
1726 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
1727 },
1728 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
1729 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1730 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1731 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1732 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1733 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1734 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1735 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1736 },
1737 },
1738 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
1739 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
1740 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
1741 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
1742 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
1743 },
1744 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
1745 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1746 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
1747 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
1748 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
1749 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
1750 &quot;a_key&quot;: &quot;A String&quot;,
1751 },
1752 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
1753 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
1754 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
1755 &quot;A String&quot;,
1756 ],
1757 &quot;owners&quot;: [ # Output only. 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.
1758 { # Information about a Drive user.
1759 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1760 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1761 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1762 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1763 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1764 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1765 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1766 },
1767 },
1768 ],
1769 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
1770 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
1771 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
1772 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
1773 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
1774 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
1775 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
1776 },
1777 ],
1778 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
1779 &quot;A String&quot;,
1780 ],
1781 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
1782 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
1783 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
1784 &quot;A String&quot;,
1785 ],
1786 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
1787 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1788 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
1789 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
1790 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
1791 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1792 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1793 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
1794 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
1795 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
1796 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
1797 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
1798 {
1799 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
1800 &quot;A String&quot;,
1801 ],
1802 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
1803 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
1804 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
1805 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
1806 },
1807 ],
1808 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
1809 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
1810 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
1811 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
1812 {
1813 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
1814 &quot;A String&quot;,
1815 ],
1816 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
1817 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
1818 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
1819 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
1820 },
1821 ],
1822 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
1823 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1824 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
1825 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
1826 },
1827 ],
1828 &quot;properties&quot;: [ # The list of properties.
1829 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
1830 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
1831 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
1832 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
1833 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
1834 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
1835 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
1836 },
1837 ],
1838 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
1839 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
1840 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
1841 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1842 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
1843 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
1844 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
1845 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
1846 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
1847 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1848 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1849 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1850 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1851 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1852 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1853 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1854 },
1855 },
1856 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
1857 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
1858 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
1859 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
1860 },
1861 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
1862 &quot;A String&quot;,
1863 ],
1864 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
1865 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
1866 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
1867 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
1868 },
1869 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
1870 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
1871 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
1872 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
1873 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
1874 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1875 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
1876 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
1877 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1878 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1879 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
1880 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
1881 },
1882 },
1883 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
1884 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
1885 &quot;A String&quot;,
1886 ],
1887 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
1888 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1889 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
1890 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
1891 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
1892 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1893 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1894 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
1895 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
1896 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
1897 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
1898 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
1899 {
1900 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
1901 &quot;A String&quot;,
1902 ],
1903 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
1904 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
1905 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
1906 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
1907 },
1908 ],
1909 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
1910 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
1911 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
1912 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
1913 {
1914 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
1915 &quot;A String&quot;,
1916 ],
1917 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
1918 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
1919 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
1920 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
1921 },
1922 ],
1923 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
1924 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
1925 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
1926 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
1927 },
1928 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
1929 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
1930 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
1931 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
1932 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
1933 },
1934 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
1935 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
1936 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
1937 }
1938
1939 convert: boolean, Whether to convert this file to the corresponding Docs Editors format.
1940 enforceSingleParent: boolean, Deprecated: Creating files in multiple folders is no longer supported.
1941 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
1942 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
1943 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
1944 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
1945 ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
1946 ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
1947 pinned: boolean, Whether to pin the head revision of the uploaded file. A file can have a maximum of 200 pinned revisions.
1948 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1949 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1950 timedTextLanguage: string, The language of the timed text.
1951 timedTextTrackName: string, The timed text track name.
1952 useContentAsIndexableText: boolean, Whether to use the content as indexable text.
1953 visibility: string, The visibility of the new file. Permissions are still inherited from parent folders. This parameter is only relevant when `convert=false`.
1954 Allowed values
1955 DEFAULT - The visibility of the new file is determined by the user&#x27;s default visibility or sharing policies.
1956 PRIVATE - The user&#x27;s default visibility or sharing policies are ignored, and the new file is only visible to the owner and any users with permissions inherited from the parent folder.
1957 x__xgafv: string, V1 error format.
1958 Allowed values
1959 1 - v1 error format
1960 2 - v2 error format
1961
1962 Returns:
1963 An object of the form:
1964
1965 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
1966 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
1967 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
1968 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
1969 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
1970 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1971 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
1972 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
1973 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
1974 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
1975 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
1976 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
1977 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
1978 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
1979 &quot;canCopy&quot;: True or False, # Output only. 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.
1980 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
1981 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
1982 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
1983 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
1984 &quot;canEdit&quot;: True or False, # Output only. 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`.
1985 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
1986 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1987 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
1988 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
1989 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
1990 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
1991 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
1992 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
1993 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
1994 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
1995 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
1996 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
1997 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
1998 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
1999 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
2000 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
2001 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
2002 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
2003 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
2004 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
2005 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
2006 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
2007 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
2008 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
2009 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
2010 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
2011 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
2012 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
2013 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
2014 },
2015 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
2016 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
2017 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
2018 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
2019 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
2020 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
2021 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
2022 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
2023 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
2024 },
2025 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
2026 },
2027 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
2028 { # A restriction for accessing the content of the file.
2029 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
2030 &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.
2031 &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`.
2032 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
2033 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2034 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2035 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2036 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2037 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2038 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2039 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2040 },
2041 },
2042 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
2043 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
2044 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
2045 },
2046 ],
2047 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
2048 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
2049 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
2050 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
2051 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
2052 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2053 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
2054 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
2055 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
2056 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
2057 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
2058 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
2059 &quot;a_key&quot;: &quot;A String&quot;,
2060 },
2061 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2062 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
2063 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
2064 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2065 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
2066 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
2067 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2068 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
2069 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
2070 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
2071 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
2072 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
2073 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
2074 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
2075 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
2076 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
2077 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
2078 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
2079 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
2080 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
2081 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
2082 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
2083 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
2084 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
2085 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
2086 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
2087 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
2088 },
2089 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
2090 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
2091 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
2092 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
2093 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
2094 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
2095 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
2096 },
2097 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
2098 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
2099 },
2100 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
2101 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
2102 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
2103 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
2104 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
2105 { # Representation of a label and label fields.
2106 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2107 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2108 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2109 &quot;A String&quot;,
2110 ],
2111 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2112 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2113 &quot;A String&quot;,
2114 ],
2115 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
2116 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2117 &quot;A String&quot;,
2118 ],
2119 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2120 &quot;A String&quot;,
2121 ],
2122 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2123 { # Information about a Drive user.
2124 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2125 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2126 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2127 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2128 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2129 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2130 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2131 },
2132 },
2133 ],
2134 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
2135 },
2136 },
2137 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2138 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
2139 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2140 },
2141 ],
2142 },
2143 &quot;labels&quot;: { # A group of labels for the file.
2144 &quot;hidden&quot;: True or False, # Output only. Deprecated.
2145 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
2146 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
2147 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
2148 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
2149 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
2150 },
2151 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
2152 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2153 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2154 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2155 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2156 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2157 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2158 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2159 },
2160 },
2161 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
2162 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
2163 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
2164 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
2165 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
2166 },
2167 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
2168 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2169 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
2170 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
2171 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
2172 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
2173 &quot;a_key&quot;: &quot;A String&quot;,
2174 },
2175 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
2176 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
2177 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
2178 &quot;A String&quot;,
2179 ],
2180 &quot;owners&quot;: [ # Output only. 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.
2181 { # Information about a Drive user.
2182 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2183 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2184 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2185 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2186 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2187 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2188 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2189 },
2190 },
2191 ],
2192 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
2193 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
2194 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
2195 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
2196 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
2197 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
2198 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
2199 },
2200 ],
2201 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
2202 &quot;A String&quot;,
2203 ],
2204 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
2205 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
2206 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
2207 &quot;A String&quot;,
2208 ],
2209 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
2210 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2211 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
2212 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
2213 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
2214 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2215 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2216 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
2217 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
2218 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
2219 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
2220 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
2221 {
2222 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
2223 &quot;A String&quot;,
2224 ],
2225 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
2226 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
2227 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
2228 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
2229 },
2230 ],
2231 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
2232 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
2233 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
2234 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
2235 {
2236 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
2237 &quot;A String&quot;,
2238 ],
2239 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
2240 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
2241 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
2242 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
2243 },
2244 ],
2245 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
2246 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2247 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
2248 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
2249 },
2250 ],
2251 &quot;properties&quot;: [ # The list of properties.
2252 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
2253 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
2254 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
2255 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
2256 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
2257 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
2258 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
2259 },
2260 ],
2261 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
2262 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
2263 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
2264 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2265 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2266 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
2267 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
2268 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
2269 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
2270 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2271 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2272 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2273 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2274 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2275 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2276 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2277 },
2278 },
2279 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
2280 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
2281 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
2282 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
2283 },
2284 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
2285 &quot;A String&quot;,
2286 ],
2287 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
2288 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
2289 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
2290 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
2291 },
2292 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
2293 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
2294 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
2295 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
2296 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
2297 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2298 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2299 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2300 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2301 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2302 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2303 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2304 },
2305 },
2306 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
2307 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
2308 &quot;A String&quot;,
2309 ],
2310 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
2311 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2312 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
2313 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
2314 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
2315 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2316 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2317 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
2318 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
2319 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
2320 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
2321 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
2322 {
2323 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
2324 &quot;A String&quot;,
2325 ],
2326 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
2327 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
2328 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
2329 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
2330 },
2331 ],
2332 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
2333 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
2334 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
2335 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
2336 {
2337 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
2338 &quot;A String&quot;,
2339 ],
2340 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
2341 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
2342 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
2343 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
2344 },
2345 ],
2346 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
2347 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2348 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
2349 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
2350 },
2351 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
2352 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
2353 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
2354 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
2355 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
2356 },
2357 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
2358 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
2359 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
2360 }</pre>
2361 </div>
2362
2363 <div class="method">
2364 <code class="details" id="list">list(corpora=None, corpus=None, driveId=None, includeItemsFromAllDrives=None, includeLabels=None, includePermissionsForView=None, includeTeamDriveItems=None, maxResults=None, orderBy=None, pageToken=None, projection=None, q=None, spaces=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None, x__xgafv=None)</code>
2365 <pre> Lists the user&#x27;s files. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). This method accepts the `q` parameter, which is a search query combining one or more search terms. This method returns *all* files by default, including trashed files. If you don&#x27;t want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.
2366
2367 Args:
2368 corpora: string, Bodies of items (files/documents) to which the query applies. Supported bodies are `default`, `domain`, `drive` and `allDrives`. Prefer `default` or `drive` to `allDrives` for efficiency.
2369 corpus: string, Deprecated: The body of items (files/documents) to which the query applies. Use `corpora` instead.
2370 Allowed values
2371 DEFAULT - The items that the user has accessed.
2372 DOMAIN - Items shared to the user&#x27;s domain.
2373 driveId: string, ID of the shared drive to search.
2374 includeItemsFromAllDrives: boolean, Whether both My Drive and shared drive items should be included in results.
2375 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
2376 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
2377 includeTeamDriveItems: boolean, Deprecated: Use `includeItemsFromAllDrives` instead.
2378 maxResults: integer, The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.
2379 orderBy: string, A comma-separated list of sort keys. Valid keys are: * `createdDate`: When the file was created. * `folder`: The folder ID. This field is sorted using alphabetical ordering. * `lastViewedByMeDate`: The last time the file was viewed by the user. * `modifiedByMeDate`: The last time the file was modified by the user. * `modifiedDate`: The last time the file was modified by anyone. * `quotaBytesUsed`: The number of storage quota bytes used by the file. * `recency`: The most recent timestamp from the file&#x27;s date-time fields. * `sharedWithMeDate`: When the file was shared with the user, if applicable. * `starred`: Whether the user has starred the file. * `title`: The title of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `title_natural`: The title of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. Each key sorts ascending by default, but can be reversed with the &#x27;desc&#x27; modifier. Example usage: `?orderBy=folder,modifiedDate desc,title`. Note that there&#x27;s a current limitation for users with approximately one million files in which the requested sort order is ignored.
2380 pageToken: string, Page token for files.
2381 projection: string, Deprecated: This parameter has no function.
2382 Allowed values
2383 BASIC - Deprecated.
2384 FULL - Deprecated.
2385 q: string, Query string for searching files.
2386 spaces: string, A comma-separated list of spaces to query. Supported values are `drive`, and `appDataFolder`.
2387 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
2388 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
2389 teamDriveId: string, Deprecated: Use `driveId` instead.
2390 x__xgafv: string, V1 error format.
2391 Allowed values
2392 1 - v1 error format
2393 2 - v2 error format
2394
2395 Returns:
2396 An object of the form:
2397
2398 { # A list of files.
2399 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the list.
2400 &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;default&quot; or &quot;drive&quot;.
2401 &quot;items&quot;: [ # The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
2402 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
2403 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
2404 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
2405 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
2406 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
2407 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
2408 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
2409 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
2410 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
2411 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
2412 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
2413 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
2414 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
2415 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
2416 &quot;canCopy&quot;: True or False, # Output only. 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.
2417 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
2418 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
2419 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
2420 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
2421 &quot;canEdit&quot;: True or False, # Output only. 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`.
2422 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
2423 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
2424 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
2425 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
2426 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
2427 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
2428 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
2429 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
2430 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
2431 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
2432 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
2433 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
2434 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
2435 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
2436 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
2437 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
2438 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
2439 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
2440 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
2441 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
2442 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
2443 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
2444 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
2445 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
2446 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
2447 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
2448 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
2449 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
2450 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
2451 },
2452 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
2453 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
2454 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
2455 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
2456 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
2457 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
2458 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
2459 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
2460 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
2461 },
2462 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
2463 },
2464 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
2465 { # A restriction for accessing the content of the file.
2466 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
2467 &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.
2468 &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`.
2469 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
2470 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2471 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2472 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2473 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2474 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2475 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2476 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2477 },
2478 },
2479 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
2480 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
2481 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
2482 },
2483 ],
2484 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
2485 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
2486 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
2487 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
2488 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
2489 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2490 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
2491 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
2492 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
2493 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
2494 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
2495 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
2496 &quot;a_key&quot;: &quot;A String&quot;,
2497 },
2498 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2499 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
2500 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
2501 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2502 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
2503 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
2504 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2505 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
2506 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
2507 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
2508 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
2509 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
2510 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
2511 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
2512 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
2513 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
2514 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
2515 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
2516 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
2517 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
2518 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
2519 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
2520 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
2521 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
2522 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
2523 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
2524 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
2525 },
2526 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
2527 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
2528 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
2529 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
2530 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
2531 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
2532 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
2533 },
2534 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
2535 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
2536 },
2537 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
2538 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
2539 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
2540 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
2541 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
2542 { # Representation of a label and label fields.
2543 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2544 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2545 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2546 &quot;A String&quot;,
2547 ],
2548 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2549 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2550 &quot;A String&quot;,
2551 ],
2552 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
2553 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2554 &quot;A String&quot;,
2555 ],
2556 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2557 &quot;A String&quot;,
2558 ],
2559 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2560 { # Information about a Drive user.
2561 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2562 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2563 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2564 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2565 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2566 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2567 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2568 },
2569 },
2570 ],
2571 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
2572 },
2573 },
2574 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2575 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
2576 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2577 },
2578 ],
2579 },
2580 &quot;labels&quot;: { # A group of labels for the file.
2581 &quot;hidden&quot;: True or False, # Output only. Deprecated.
2582 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
2583 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
2584 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
2585 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
2586 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
2587 },
2588 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
2589 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2590 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2591 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2592 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2593 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2594 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2595 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2596 },
2597 },
2598 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
2599 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
2600 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
2601 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
2602 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
2603 },
2604 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
2605 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2606 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
2607 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
2608 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
2609 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
2610 &quot;a_key&quot;: &quot;A String&quot;,
2611 },
2612 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
2613 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
2614 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
2615 &quot;A String&quot;,
2616 ],
2617 &quot;owners&quot;: [ # Output only. 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.
2618 { # Information about a Drive user.
2619 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2620 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2621 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2622 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2623 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2624 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2625 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2626 },
2627 },
2628 ],
2629 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
2630 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
2631 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
2632 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
2633 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
2634 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
2635 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
2636 },
2637 ],
2638 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
2639 &quot;A String&quot;,
2640 ],
2641 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
2642 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
2643 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
2644 &quot;A String&quot;,
2645 ],
2646 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
2647 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2648 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
2649 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
2650 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
2651 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2652 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2653 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
2654 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
2655 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
2656 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
2657 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
2658 {
2659 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
2660 &quot;A String&quot;,
2661 ],
2662 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
2663 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
2664 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
2665 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
2666 },
2667 ],
2668 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
2669 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
2670 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
2671 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
2672 {
2673 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
2674 &quot;A String&quot;,
2675 ],
2676 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
2677 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
2678 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
2679 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
2680 },
2681 ],
2682 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
2683 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2684 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
2685 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
2686 },
2687 ],
2688 &quot;properties&quot;: [ # The list of properties.
2689 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
2690 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
2691 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
2692 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
2693 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
2694 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
2695 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
2696 },
2697 ],
2698 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
2699 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
2700 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
2701 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2702 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
2703 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
2704 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
2705 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
2706 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
2707 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2708 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2709 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2710 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2711 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2712 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2713 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2714 },
2715 },
2716 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
2717 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
2718 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
2719 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
2720 },
2721 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
2722 &quot;A String&quot;,
2723 ],
2724 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
2725 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
2726 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
2727 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
2728 },
2729 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
2730 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
2731 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
2732 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
2733 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
2734 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2735 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2736 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2737 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2738 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2739 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2740 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2741 },
2742 },
2743 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
2744 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
2745 &quot;A String&quot;,
2746 ],
2747 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
2748 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2749 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
2750 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
2751 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
2752 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2753 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2754 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
2755 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
2756 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
2757 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
2758 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
2759 {
2760 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
2761 &quot;A String&quot;,
2762 ],
2763 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
2764 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
2765 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
2766 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
2767 },
2768 ],
2769 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
2770 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
2771 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
2772 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
2773 {
2774 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
2775 &quot;A String&quot;,
2776 ],
2777 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
2778 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
2779 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
2780 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
2781 },
2782 ],
2783 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
2784 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
2785 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
2786 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
2787 },
2788 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
2789 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
2790 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
2791 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
2792 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
2793 },
2794 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
2795 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
2796 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
2797 },
2798 ],
2799 &quot;kind&quot;: &quot;drive#fileList&quot;, # This is always `drive#fileList`.
2800 &quot;nextLink&quot;: &quot;A String&quot;, # A link to the next page of files.
2801 &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.
2802 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this list.
2803 }</pre>
2804 </div>
2805
2806 <div class="method">
2807 <code class="details" id="listLabels">listLabels(fileId, maxResults=None, pageToken=None, x__xgafv=None)</code>
2808 <pre>Lists the labels on a file.
2809
2810 Args:
2811 fileId: string, The ID for the file. (required)
2812 maxResults: integer, The maximum number of labels to return per page. When not set, defaults to 100.
2813 pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.
2814 x__xgafv: string, V1 error format.
2815 Allowed values
2816 1 - v1 error format
2817 2 - v2 error format
2818
2819 Returns:
2820 An object of the form:
2821
2822 { # A list of labels applied to a file.
2823 &quot;items&quot;: [ # The list of labels.
2824 { # Representation of a label and label fields.
2825 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2826 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2827 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2828 &quot;A String&quot;,
2829 ],
2830 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2831 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2832 &quot;A String&quot;,
2833 ],
2834 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
2835 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2836 &quot;A String&quot;,
2837 ],
2838 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2839 &quot;A String&quot;,
2840 ],
2841 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2842 { # Information about a Drive user.
2843 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2844 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2845 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2846 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2847 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2848 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2849 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2850 },
2851 },
2852 ],
2853 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
2854 },
2855 },
2856 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2857 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
2858 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2859 },
2860 ],
2861 &quot;kind&quot;: &quot;drive#labelList&quot;, # This is always `drive#labelList`
2862 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token for the next page of labels. This field will be absent if the end of the 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.
2863 }</pre>
2864 </div>
2865
2866 <div class="method">
2867 <code class="details" id="listLabels_next">listLabels_next()</code>
2868 <pre>Retrieves the next page of results.
2869
2870 Args:
2871 previous_request: The request for the previous page. (required)
2872 previous_response: The response from the request for the previous page. (required)
2873
2874 Returns:
2875 A request object that you can call &#x27;execute()&#x27; on to request the next
2876 page. Returns None if there are no more items in the collection.
2877 </pre>
2878 </div>
2879
2880 <div class="method">
2881 <code class="details" id="list_next">list_next()</code>
2882 <pre>Retrieves the next page of results.
2883
2884 Args:
2885 previous_request: The request for the previous page. (required)
2886 previous_response: The response from the request for the previous page. (required)
2887
2888 Returns:
2889 A request object that you can call &#x27;execute()&#x27; on to request the next
2890 page. Returns None if there are no more items in the collection.
2891 </pre>
2892 </div>
2893
2894 <div class="method">
2895 <code class="details" id="modifyLabels">modifyLabels(fileId, body=None, x__xgafv=None)</code>
2896 <pre>Modifies the set of labels applied to a file. Returns a list of the labels that were added or modified.
2897
2898 Args:
2899 fileId: string, The ID of the file to which the labels belong. (required)
2900 body: object, The request body.
2901 The object takes the form of:
2902
2903 { # A request to modify the set of labels on a file. This request may contain many modifications that will either all succeed or all fail atomically.
2904 &quot;kind&quot;: &quot;drive#modifyLabelsRequest&quot;, # This is always `drive#modifyLabelsRequest`.
2905 &quot;labelModifications&quot;: [ # The list of modifications to apply to the labels on the file.
2906 { # A modification to a label on a file. A LabelModification can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.
2907 &quot;fieldModifications&quot;: [ # The list of modifications to this label&#x27;s fields.
2908 { # A modification to a label&#x27;s field.
2909 &quot;fieldId&quot;: &quot;A String&quot;, # The ID of the field to be modified.
2910 &quot;kind&quot;: &quot;drive#labelFieldModification&quot;, # This is always `drive#labelFieldModification`.
2911 &quot;setDateValues&quot;: [ # Replaces the value of a dateString Field with these new values. The string must be in the RFC 3339 full-date format: YYYY-MM-DD.
2912 &quot;A String&quot;,
2913 ],
2914 &quot;setIntegerValues&quot;: [ # Replaces the value of an `integer` field with these new values.
2915 &quot;A String&quot;,
2916 ],
2917 &quot;setSelectionValues&quot;: [ # Replaces a `selection` field with these new values.
2918 &quot;A String&quot;,
2919 ],
2920 &quot;setTextValues&quot;: [ # Sets the value of a `text` field.
2921 &quot;A String&quot;,
2922 ],
2923 &quot;setUserValues&quot;: [ # Replaces a `user` field with these new values. The values must be valid email addresses.
2924 &quot;A String&quot;,
2925 ],
2926 &quot;unsetValues&quot;: True or False, # Unsets the values for this field.
2927 },
2928 ],
2929 &quot;kind&quot;: &quot;drive#labelModification&quot;, # This is always `drive#labelModification`.
2930 &quot;labelId&quot;: &quot;A String&quot;, # The ID of the label to modify.
2931 &quot;removeLabel&quot;: True or False, # If true, the label will be removed from the file.
2932 },
2933 ],
2934 }
2935
2936 x__xgafv: string, V1 error format.
2937 Allowed values
2938 1 - v1 error format
2939 2 - v2 error format
2940
2941 Returns:
2942 An object of the form:
2943
2944 { # Response to a ModifyLabels request. This contains only those labels which were added or updated by the request.
2945 &quot;kind&quot;: &quot;drive#modifyLabelsResponse&quot;, # This is always `drive#modifyLabelsResponse`
2946 &quot;modifiedLabels&quot;: [ # The list of labels which were added or updated by the request.
2947 { # Representation of a label and label fields.
2948 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2949 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2950 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2951 &quot;A String&quot;,
2952 ],
2953 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2954 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2955 &quot;A String&quot;,
2956 ],
2957 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
2958 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2959 &quot;A String&quot;,
2960 ],
2961 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2962 &quot;A String&quot;,
2963 ],
2964 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2965 { # Information about a Drive user.
2966 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2967 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
2968 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
2969 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2970 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2971 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
2972 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
2973 },
2974 },
2975 ],
2976 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
2977 },
2978 },
2979 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2980 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
2981 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2982 },
2983 ],
2984 }</pre>
2985 </div>
2986
2987 <div class="method">
2988 <code class="details" id="patch">patch(fileId, addParents=None, body=None, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, modifiedDateBehavior=None, newRevision=None, ocr=None, ocrLanguage=None, pinned=None, removeParents=None, setModifiedDate=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, updateViewedDate=None, useContentAsIndexableText=None, x__xgafv=None)</code>
2989 <pre>Updates a file&#x27;s metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics.
2990
2991 Args:
2992 fileId: string, The ID of the file to update. (required)
2993 body: object, The request body.
2994 The object takes the form of:
2995
2996 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
2997 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
2998 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
2999 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
3000 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
3001 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
3002 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
3003 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
3004 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
3005 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
3006 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
3007 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
3008 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
3009 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
3010 &quot;canCopy&quot;: True or False, # Output only. 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.
3011 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
3012 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
3013 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
3014 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
3015 &quot;canEdit&quot;: True or False, # Output only. 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`.
3016 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
3017 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
3018 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
3019 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
3020 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
3021 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
3022 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
3023 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
3024 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
3025 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
3026 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
3027 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
3028 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
3029 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
3030 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
3031 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
3032 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
3033 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
3034 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
3035 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
3036 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
3037 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
3038 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
3039 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
3040 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
3041 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
3042 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
3043 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
3044 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
3045 },
3046 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
3047 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
3048 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
3049 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
3050 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
3051 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
3052 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
3053 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
3054 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
3055 },
3056 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
3057 },
3058 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
3059 { # A restriction for accessing the content of the file.
3060 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
3061 &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.
3062 &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`.
3063 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
3064 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3065 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3066 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3067 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3068 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3069 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3070 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3071 },
3072 },
3073 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
3074 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
3075 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
3076 },
3077 ],
3078 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
3079 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
3080 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
3081 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
3082 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
3083 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3084 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
3085 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
3086 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
3087 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
3088 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
3089 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
3090 &quot;a_key&quot;: &quot;A String&quot;,
3091 },
3092 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3093 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
3094 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
3095 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3096 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
3097 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
3098 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3099 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
3100 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
3101 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
3102 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
3103 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
3104 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
3105 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
3106 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
3107 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
3108 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
3109 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
3110 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
3111 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
3112 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
3113 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
3114 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
3115 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
3116 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
3117 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
3118 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
3119 },
3120 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
3121 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
3122 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
3123 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
3124 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
3125 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
3126 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
3127 },
3128 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
3129 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
3130 },
3131 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
3132 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
3133 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
3134 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
3135 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
3136 { # Representation of a label and label fields.
3137 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
3138 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
3139 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
3140 &quot;A String&quot;,
3141 ],
3142 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
3143 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
3144 &quot;A String&quot;,
3145 ],
3146 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
3147 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
3148 &quot;A String&quot;,
3149 ],
3150 &quot;text&quot;: [ # Only present if `valueType` is `text`.
3151 &quot;A String&quot;,
3152 ],
3153 &quot;user&quot;: [ # Only present if `valueType` is `user`.
3154 { # Information about a Drive user.
3155 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3156 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3157 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3158 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3159 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3160 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3161 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3162 },
3163 },
3164 ],
3165 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
3166 },
3167 },
3168 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
3169 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
3170 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
3171 },
3172 ],
3173 },
3174 &quot;labels&quot;: { # A group of labels for the file.
3175 &quot;hidden&quot;: True or False, # Output only. Deprecated.
3176 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
3177 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
3178 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
3179 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
3180 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
3181 },
3182 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
3183 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3184 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3185 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3186 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3187 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3188 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3189 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3190 },
3191 },
3192 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
3193 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
3194 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
3195 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
3196 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
3197 },
3198 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
3199 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3200 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
3201 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
3202 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
3203 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
3204 &quot;a_key&quot;: &quot;A String&quot;,
3205 },
3206 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
3207 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
3208 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
3209 &quot;A String&quot;,
3210 ],
3211 &quot;owners&quot;: [ # Output only. 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.
3212 { # Information about a Drive user.
3213 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3214 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3215 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3216 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3217 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3218 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3219 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3220 },
3221 },
3222 ],
3223 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
3224 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
3225 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
3226 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
3227 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
3228 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
3229 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
3230 },
3231 ],
3232 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
3233 &quot;A String&quot;,
3234 ],
3235 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
3236 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
3237 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
3238 &quot;A String&quot;,
3239 ],
3240 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
3241 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3242 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
3243 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
3244 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
3245 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3246 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3247 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
3248 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
3249 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
3250 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
3251 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
3252 {
3253 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
3254 &quot;A String&quot;,
3255 ],
3256 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
3257 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
3258 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
3259 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
3260 },
3261 ],
3262 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
3263 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
3264 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
3265 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
3266 {
3267 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
3268 &quot;A String&quot;,
3269 ],
3270 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
3271 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
3272 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
3273 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
3274 },
3275 ],
3276 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
3277 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3278 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
3279 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
3280 },
3281 ],
3282 &quot;properties&quot;: [ # The list of properties.
3283 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
3284 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
3285 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
3286 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
3287 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
3288 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
3289 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
3290 },
3291 ],
3292 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
3293 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
3294 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
3295 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3296 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3297 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
3298 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
3299 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
3300 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
3301 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3302 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3303 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3304 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3305 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3306 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3307 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3308 },
3309 },
3310 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
3311 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
3312 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
3313 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
3314 },
3315 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
3316 &quot;A String&quot;,
3317 ],
3318 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
3319 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
3320 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
3321 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
3322 },
3323 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
3324 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
3325 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
3326 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
3327 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
3328 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3329 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3330 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3331 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3332 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3333 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3334 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3335 },
3336 },
3337 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
3338 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
3339 &quot;A String&quot;,
3340 ],
3341 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
3342 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3343 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
3344 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
3345 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
3346 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3347 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3348 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
3349 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
3350 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
3351 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
3352 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
3353 {
3354 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
3355 &quot;A String&quot;,
3356 ],
3357 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
3358 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
3359 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
3360 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
3361 },
3362 ],
3363 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
3364 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
3365 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
3366 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
3367 {
3368 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
3369 &quot;A String&quot;,
3370 ],
3371 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
3372 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
3373 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
3374 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
3375 },
3376 ],
3377 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
3378 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3379 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
3380 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
3381 },
3382 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
3383 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
3384 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
3385 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
3386 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
3387 },
3388 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
3389 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
3390 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
3391 }
3392
3393 addParents: string, Comma-separated list of parent IDs to add.
3394 convert: boolean, Deprecated: This parameter has no function.
3395 enforceSingleParent: boolean, Deprecated: Adding files to multiple folders is no longer supported. Use `shortcuts` instead.
3396 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
3397 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
3398 modifiedDateBehavior: string, Determines the behavior in which `modifiedDate` is updated. This overrides `setModifiedDate`.
3399 Allowed values
3400 fromBody - Set `modifiedDate` to the value provided in the body of the request. No change if no value was provided.
3401 fromBodyIfNeeded - Set `modifiedDate` to the value provided in the body of the request depending on other contents of the update.
3402 fromBodyOrNow - Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.
3403 noChange - Maintain the previous value of `modifiedDate`.
3404 now - Set `modifiedDate` to the current time.
3405 nowIfNeeded - Set `modifiedDate` to the current time depending on contents of the update.
3406 newRevision: boolean, Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the [Drive Help Center](https://support.google.com/drive/answer/2409045). Note that this field is ignored if there is no payload in the request.
3407 ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
3408 ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
3409 pinned: boolean, Whether to pin the new revision. A file can have a maximum of 200 pinned revisions. Note that this field is ignored if there is no payload in the request.
3410 removeParents: string, Comma-separated list of parent IDs to remove.
3411 setModifiedDate: boolean, Whether to set the modified date using the value supplied in the request body. Setting this field to `true` is equivalent to `modifiedDateBehavior=fromBodyOrNow`, and `false` is equivalent to `modifiedDateBehavior=now`. To prevent any changes to the modified date set `modifiedDateBehavior=noChange`.
3412 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
3413 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
3414 timedTextLanguage: string, The language of the timed text.
3415 timedTextTrackName: string, The timed text track name.
3416 updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
3417 useContentAsIndexableText: boolean, Whether to use the content as indexable text.
3418 x__xgafv: string, V1 error format.
3419 Allowed values
3420 1 - v1 error format
3421 2 - v2 error format
3422
3423 Returns:
3424 An object of the form:
3425
3426 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
3427 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
3428 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
3429 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
3430 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
3431 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
3432 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
3433 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
3434 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
3435 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
3436 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
3437 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
3438 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
3439 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
3440 &quot;canCopy&quot;: True or False, # Output only. 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.
3441 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
3442 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
3443 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
3444 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
3445 &quot;canEdit&quot;: True or False, # Output only. 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`.
3446 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
3447 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
3448 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
3449 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
3450 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
3451 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
3452 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
3453 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
3454 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
3455 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
3456 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
3457 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
3458 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
3459 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
3460 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
3461 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
3462 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
3463 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
3464 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
3465 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
3466 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
3467 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
3468 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
3469 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
3470 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
3471 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
3472 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
3473 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
3474 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
3475 },
3476 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
3477 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
3478 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
3479 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
3480 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
3481 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
3482 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
3483 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
3484 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
3485 },
3486 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
3487 },
3488 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
3489 { # A restriction for accessing the content of the file.
3490 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
3491 &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.
3492 &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`.
3493 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
3494 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3495 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3496 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3497 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3498 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3499 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3500 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3501 },
3502 },
3503 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
3504 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
3505 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
3506 },
3507 ],
3508 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
3509 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
3510 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
3511 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
3512 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
3513 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3514 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
3515 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
3516 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
3517 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
3518 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
3519 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
3520 &quot;a_key&quot;: &quot;A String&quot;,
3521 },
3522 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3523 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
3524 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
3525 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3526 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
3527 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
3528 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3529 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
3530 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
3531 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
3532 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
3533 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
3534 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
3535 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
3536 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
3537 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
3538 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
3539 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
3540 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
3541 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
3542 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
3543 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
3544 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
3545 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
3546 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
3547 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
3548 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
3549 },
3550 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
3551 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
3552 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
3553 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
3554 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
3555 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
3556 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
3557 },
3558 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
3559 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
3560 },
3561 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
3562 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
3563 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
3564 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
3565 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
3566 { # Representation of a label and label fields.
3567 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
3568 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
3569 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
3570 &quot;A String&quot;,
3571 ],
3572 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
3573 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
3574 &quot;A String&quot;,
3575 ],
3576 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
3577 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
3578 &quot;A String&quot;,
3579 ],
3580 &quot;text&quot;: [ # Only present if `valueType` is `text`.
3581 &quot;A String&quot;,
3582 ],
3583 &quot;user&quot;: [ # Only present if `valueType` is `user`.
3584 { # Information about a Drive user.
3585 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3586 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3587 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3588 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3589 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3590 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3591 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3592 },
3593 },
3594 ],
3595 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
3596 },
3597 },
3598 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
3599 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
3600 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
3601 },
3602 ],
3603 },
3604 &quot;labels&quot;: { # A group of labels for the file.
3605 &quot;hidden&quot;: True or False, # Output only. Deprecated.
3606 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
3607 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
3608 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
3609 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
3610 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
3611 },
3612 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
3613 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3614 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3615 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3616 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3617 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3618 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3619 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3620 },
3621 },
3622 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
3623 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
3624 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
3625 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
3626 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
3627 },
3628 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
3629 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3630 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
3631 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
3632 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
3633 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
3634 &quot;a_key&quot;: &quot;A String&quot;,
3635 },
3636 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
3637 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
3638 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
3639 &quot;A String&quot;,
3640 ],
3641 &quot;owners&quot;: [ # Output only. 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.
3642 { # Information about a Drive user.
3643 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3644 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3645 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3646 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3647 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3648 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3649 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3650 },
3651 },
3652 ],
3653 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
3654 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
3655 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
3656 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
3657 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
3658 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
3659 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
3660 },
3661 ],
3662 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
3663 &quot;A String&quot;,
3664 ],
3665 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
3666 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
3667 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
3668 &quot;A String&quot;,
3669 ],
3670 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
3671 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3672 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
3673 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
3674 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
3675 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3676 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3677 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
3678 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
3679 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
3680 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
3681 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
3682 {
3683 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
3684 &quot;A String&quot;,
3685 ],
3686 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
3687 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
3688 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
3689 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
3690 },
3691 ],
3692 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
3693 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
3694 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
3695 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
3696 {
3697 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
3698 &quot;A String&quot;,
3699 ],
3700 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
3701 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
3702 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
3703 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
3704 },
3705 ],
3706 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
3707 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3708 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
3709 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
3710 },
3711 ],
3712 &quot;properties&quot;: [ # The list of properties.
3713 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
3714 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
3715 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
3716 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
3717 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
3718 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
3719 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
3720 },
3721 ],
3722 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
3723 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
3724 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
3725 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3726 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3727 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
3728 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
3729 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
3730 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
3731 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3732 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3733 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3734 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3735 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3736 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3737 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3738 },
3739 },
3740 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
3741 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
3742 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
3743 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
3744 },
3745 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
3746 &quot;A String&quot;,
3747 ],
3748 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
3749 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
3750 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
3751 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
3752 },
3753 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
3754 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
3755 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
3756 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
3757 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
3758 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3759 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3760 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3761 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3762 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3763 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3764 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3765 },
3766 },
3767 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
3768 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
3769 &quot;A String&quot;,
3770 ],
3771 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
3772 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3773 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
3774 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
3775 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
3776 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3777 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3778 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
3779 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
3780 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
3781 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
3782 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
3783 {
3784 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
3785 &quot;A String&quot;,
3786 ],
3787 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
3788 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
3789 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
3790 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
3791 },
3792 ],
3793 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
3794 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
3795 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
3796 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
3797 {
3798 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
3799 &quot;A String&quot;,
3800 ],
3801 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
3802 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
3803 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
3804 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
3805 },
3806 ],
3807 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
3808 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
3809 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
3810 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
3811 },
3812 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
3813 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
3814 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
3815 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
3816 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
3817 },
3818 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
3819 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
3820 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
3821 }</pre>
3822 </div>
3823
3824 <div class="method">
3825 <code class="details" id="touch">touch(fileId, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
3826 <pre>Set the file&#x27;s updated time to the current server time.
3827
3828 Args:
3829 fileId: string, The ID of the file to update. (required)
3830 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
3831 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
3832 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
3833 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
3834 x__xgafv: string, V1 error format.
3835 Allowed values
3836 1 - v1 error format
3837 2 - v2 error format
3838
3839 Returns:
3840 An object of the form:
3841
3842 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
3843 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
3844 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
3845 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
3846 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
3847 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
3848 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
3849 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
3850 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
3851 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
3852 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
3853 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
3854 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
3855 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
3856 &quot;canCopy&quot;: True or False, # Output only. 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.
3857 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
3858 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
3859 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
3860 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
3861 &quot;canEdit&quot;: True or False, # Output only. 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`.
3862 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
3863 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
3864 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
3865 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
3866 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
3867 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
3868 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
3869 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
3870 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
3871 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
3872 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
3873 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
3874 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
3875 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
3876 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
3877 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
3878 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
3879 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
3880 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
3881 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
3882 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
3883 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
3884 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
3885 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
3886 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
3887 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
3888 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
3889 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
3890 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
3891 },
3892 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
3893 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
3894 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
3895 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
3896 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
3897 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
3898 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
3899 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
3900 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
3901 },
3902 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
3903 },
3904 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
3905 { # A restriction for accessing the content of the file.
3906 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
3907 &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.
3908 &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`.
3909 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
3910 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3911 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
3912 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
3913 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3914 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3915 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
3916 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
3917 },
3918 },
3919 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
3920 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
3921 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
3922 },
3923 ],
3924 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
3925 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
3926 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
3927 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
3928 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
3929 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3930 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
3931 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
3932 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
3933 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
3934 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
3935 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
3936 &quot;a_key&quot;: &quot;A String&quot;,
3937 },
3938 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3939 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
3940 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
3941 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3942 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
3943 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
3944 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
3945 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
3946 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
3947 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
3948 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
3949 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
3950 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
3951 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
3952 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
3953 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
3954 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
3955 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
3956 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
3957 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
3958 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
3959 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
3960 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
3961 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
3962 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
3963 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
3964 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
3965 },
3966 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
3967 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
3968 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
3969 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
3970 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
3971 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
3972 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
3973 },
3974 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
3975 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
3976 },
3977 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
3978 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
3979 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
3980 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
3981 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
3982 { # Representation of a label and label fields.
3983 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
3984 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
3985 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
3986 &quot;A String&quot;,
3987 ],
3988 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
3989 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
3990 &quot;A String&quot;,
3991 ],
3992 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
3993 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
3994 &quot;A String&quot;,
3995 ],
3996 &quot;text&quot;: [ # Only present if `valueType` is `text`.
3997 &quot;A String&quot;,
3998 ],
3999 &quot;user&quot;: [ # Only present if `valueType` is `user`.
4000 { # Information about a Drive user.
4001 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4002 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4003 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4004 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4005 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4006 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4007 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4008 },
4009 },
4010 ],
4011 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
4012 },
4013 },
4014 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
4015 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
4016 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
4017 },
4018 ],
4019 },
4020 &quot;labels&quot;: { # A group of labels for the file.
4021 &quot;hidden&quot;: True or False, # Output only. Deprecated.
4022 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
4023 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
4024 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
4025 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
4026 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
4027 },
4028 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
4029 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4030 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4031 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4032 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4033 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4034 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4035 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4036 },
4037 },
4038 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
4039 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
4040 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
4041 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
4042 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
4043 },
4044 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
4045 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4046 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
4047 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
4048 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
4049 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
4050 &quot;a_key&quot;: &quot;A String&quot;,
4051 },
4052 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
4053 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
4054 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
4055 &quot;A String&quot;,
4056 ],
4057 &quot;owners&quot;: [ # Output only. 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.
4058 { # Information about a Drive user.
4059 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4060 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4061 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4062 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4063 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4064 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4065 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4066 },
4067 },
4068 ],
4069 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
4070 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
4071 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
4072 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
4073 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
4074 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
4075 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
4076 },
4077 ],
4078 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
4079 &quot;A String&quot;,
4080 ],
4081 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
4082 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
4083 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
4084 &quot;A String&quot;,
4085 ],
4086 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
4087 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4088 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
4089 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
4090 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
4091 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4092 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4093 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
4094 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
4095 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
4096 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
4097 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
4098 {
4099 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
4100 &quot;A String&quot;,
4101 ],
4102 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
4103 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
4104 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
4105 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
4106 },
4107 ],
4108 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
4109 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
4110 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
4111 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
4112 {
4113 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
4114 &quot;A String&quot;,
4115 ],
4116 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
4117 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
4118 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
4119 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
4120 },
4121 ],
4122 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
4123 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4124 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
4125 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
4126 },
4127 ],
4128 &quot;properties&quot;: [ # The list of properties.
4129 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
4130 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
4131 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
4132 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
4133 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
4134 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
4135 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
4136 },
4137 ],
4138 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
4139 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
4140 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
4141 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4142 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4143 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
4144 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
4145 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
4146 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
4147 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4148 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4149 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4150 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4151 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4152 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4153 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4154 },
4155 },
4156 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
4157 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
4158 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
4159 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
4160 },
4161 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
4162 &quot;A String&quot;,
4163 ],
4164 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
4165 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
4166 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
4167 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
4168 },
4169 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
4170 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
4171 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
4172 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
4173 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
4174 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4175 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4176 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4177 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4178 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4179 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4180 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4181 },
4182 },
4183 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
4184 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
4185 &quot;A String&quot;,
4186 ],
4187 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
4188 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4189 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
4190 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
4191 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
4192 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4193 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4194 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
4195 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
4196 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
4197 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
4198 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
4199 {
4200 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
4201 &quot;A String&quot;,
4202 ],
4203 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
4204 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
4205 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
4206 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
4207 },
4208 ],
4209 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
4210 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
4211 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
4212 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
4213 {
4214 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
4215 &quot;A String&quot;,
4216 ],
4217 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
4218 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
4219 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
4220 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
4221 },
4222 ],
4223 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
4224 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4225 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
4226 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
4227 },
4228 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
4229 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
4230 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
4231 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
4232 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
4233 },
4234 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
4235 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
4236 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
4237 }</pre>
4238 </div>
4239
4240 <div class="method">
4241 <code class="details" id="trash">trash(fileId, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
4242 <pre>Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files.
4243
4244 Args:
4245 fileId: string, The ID of the file to trash. (required)
4246 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
4247 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
4248 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
4249 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
4250 x__xgafv: string, V1 error format.
4251 Allowed values
4252 1 - v1 error format
4253 2 - v2 error format
4254
4255 Returns:
4256 An object of the form:
4257
4258 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
4259 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
4260 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
4261 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
4262 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
4263 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
4264 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
4265 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
4266 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
4267 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
4268 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
4269 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
4270 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
4271 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
4272 &quot;canCopy&quot;: True or False, # Output only. 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.
4273 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
4274 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
4275 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
4276 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
4277 &quot;canEdit&quot;: True or False, # Output only. 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`.
4278 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
4279 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
4280 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
4281 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
4282 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
4283 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
4284 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
4285 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
4286 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
4287 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
4288 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
4289 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
4290 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
4291 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
4292 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
4293 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
4294 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
4295 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
4296 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
4297 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
4298 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
4299 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
4300 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
4301 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
4302 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
4303 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
4304 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
4305 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
4306 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
4307 },
4308 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
4309 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
4310 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
4311 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
4312 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
4313 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
4314 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
4315 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
4316 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
4317 },
4318 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
4319 },
4320 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
4321 { # A restriction for accessing the content of the file.
4322 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
4323 &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.
4324 &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`.
4325 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
4326 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4327 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4328 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4329 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4330 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4331 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4332 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4333 },
4334 },
4335 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
4336 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
4337 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
4338 },
4339 ],
4340 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
4341 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
4342 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
4343 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
4344 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
4345 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4346 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
4347 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
4348 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
4349 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
4350 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
4351 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
4352 &quot;a_key&quot;: &quot;A String&quot;,
4353 },
4354 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4355 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
4356 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
4357 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4358 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
4359 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
4360 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4361 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
4362 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
4363 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
4364 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
4365 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
4366 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
4367 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
4368 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
4369 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
4370 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
4371 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
4372 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
4373 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
4374 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
4375 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
4376 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
4377 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
4378 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
4379 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
4380 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
4381 },
4382 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
4383 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
4384 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
4385 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
4386 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
4387 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
4388 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
4389 },
4390 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
4391 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
4392 },
4393 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
4394 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
4395 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
4396 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
4397 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
4398 { # Representation of a label and label fields.
4399 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
4400 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
4401 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
4402 &quot;A String&quot;,
4403 ],
4404 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
4405 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
4406 &quot;A String&quot;,
4407 ],
4408 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
4409 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
4410 &quot;A String&quot;,
4411 ],
4412 &quot;text&quot;: [ # Only present if `valueType` is `text`.
4413 &quot;A String&quot;,
4414 ],
4415 &quot;user&quot;: [ # Only present if `valueType` is `user`.
4416 { # Information about a Drive user.
4417 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4418 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4419 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4420 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4421 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4422 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4423 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4424 },
4425 },
4426 ],
4427 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
4428 },
4429 },
4430 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
4431 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
4432 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
4433 },
4434 ],
4435 },
4436 &quot;labels&quot;: { # A group of labels for the file.
4437 &quot;hidden&quot;: True or False, # Output only. Deprecated.
4438 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
4439 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
4440 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
4441 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
4442 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
4443 },
4444 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
4445 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4446 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4447 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4448 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4449 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4450 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4451 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4452 },
4453 },
4454 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
4455 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
4456 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
4457 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
4458 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
4459 },
4460 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
4461 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4462 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
4463 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
4464 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
4465 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
4466 &quot;a_key&quot;: &quot;A String&quot;,
4467 },
4468 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
4469 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
4470 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
4471 &quot;A String&quot;,
4472 ],
4473 &quot;owners&quot;: [ # Output only. 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.
4474 { # Information about a Drive user.
4475 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4476 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4477 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4478 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4479 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4480 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4481 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4482 },
4483 },
4484 ],
4485 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
4486 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
4487 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
4488 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
4489 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
4490 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
4491 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
4492 },
4493 ],
4494 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
4495 &quot;A String&quot;,
4496 ],
4497 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
4498 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
4499 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
4500 &quot;A String&quot;,
4501 ],
4502 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
4503 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4504 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
4505 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
4506 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
4507 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4508 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4509 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
4510 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
4511 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
4512 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
4513 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
4514 {
4515 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
4516 &quot;A String&quot;,
4517 ],
4518 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
4519 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
4520 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
4521 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
4522 },
4523 ],
4524 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
4525 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
4526 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
4527 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
4528 {
4529 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
4530 &quot;A String&quot;,
4531 ],
4532 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
4533 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
4534 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
4535 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
4536 },
4537 ],
4538 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
4539 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4540 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
4541 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
4542 },
4543 ],
4544 &quot;properties&quot;: [ # The list of properties.
4545 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
4546 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
4547 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
4548 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
4549 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
4550 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
4551 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
4552 },
4553 ],
4554 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
4555 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
4556 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
4557 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4558 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4559 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
4560 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
4561 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
4562 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
4563 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4564 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4565 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4566 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4567 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4568 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4569 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4570 },
4571 },
4572 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
4573 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
4574 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
4575 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
4576 },
4577 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
4578 &quot;A String&quot;,
4579 ],
4580 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
4581 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
4582 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
4583 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
4584 },
4585 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
4586 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
4587 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
4588 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
4589 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
4590 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4591 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4592 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4593 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4594 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4595 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4596 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4597 },
4598 },
4599 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
4600 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
4601 &quot;A String&quot;,
4602 ],
4603 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
4604 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4605 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
4606 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
4607 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
4608 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4609 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4610 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
4611 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
4612 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
4613 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
4614 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
4615 {
4616 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
4617 &quot;A String&quot;,
4618 ],
4619 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
4620 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
4621 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
4622 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
4623 },
4624 ],
4625 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
4626 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
4627 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
4628 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
4629 {
4630 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
4631 &quot;A String&quot;,
4632 ],
4633 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
4634 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
4635 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
4636 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
4637 },
4638 ],
4639 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
4640 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4641 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
4642 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
4643 },
4644 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
4645 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
4646 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
4647 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
4648 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
4649 },
4650 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
4651 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
4652 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
4653 }</pre>
4654 </div>
4655
4656 <div class="method">
4657 <code class="details" id="untrash">untrash(fileId, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
4658 <pre>Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files.
4659
4660 Args:
4661 fileId: string, The ID of the file to untrash. (required)
4662 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
4663 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
4664 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
4665 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
4666 x__xgafv: string, V1 error format.
4667 Allowed values
4668 1 - v1 error format
4669 2 - v2 error format
4670
4671 Returns:
4672 An object of the form:
4673
4674 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
4675 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
4676 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
4677 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
4678 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
4679 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
4680 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
4681 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
4682 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
4683 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
4684 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
4685 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
4686 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
4687 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
4688 &quot;canCopy&quot;: True or False, # Output only. 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.
4689 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
4690 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
4691 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
4692 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
4693 &quot;canEdit&quot;: True or False, # Output only. 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`.
4694 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
4695 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
4696 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
4697 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
4698 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
4699 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
4700 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
4701 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
4702 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
4703 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
4704 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
4705 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
4706 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
4707 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
4708 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
4709 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
4710 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
4711 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
4712 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
4713 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
4714 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
4715 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
4716 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
4717 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
4718 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
4719 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
4720 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
4721 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
4722 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
4723 },
4724 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
4725 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
4726 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
4727 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
4728 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
4729 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
4730 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
4731 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
4732 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
4733 },
4734 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
4735 },
4736 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
4737 { # A restriction for accessing the content of the file.
4738 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
4739 &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.
4740 &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`.
4741 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
4742 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4743 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4744 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4745 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4746 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4747 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4748 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4749 },
4750 },
4751 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
4752 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
4753 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
4754 },
4755 ],
4756 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
4757 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
4758 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
4759 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
4760 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
4761 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4762 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
4763 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
4764 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
4765 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
4766 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
4767 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
4768 &quot;a_key&quot;: &quot;A String&quot;,
4769 },
4770 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4771 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
4772 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
4773 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4774 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
4775 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
4776 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4777 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
4778 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
4779 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
4780 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
4781 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
4782 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
4783 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
4784 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
4785 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
4786 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
4787 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
4788 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
4789 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
4790 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
4791 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
4792 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
4793 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
4794 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
4795 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
4796 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
4797 },
4798 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
4799 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
4800 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
4801 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
4802 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
4803 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
4804 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
4805 },
4806 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
4807 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
4808 },
4809 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
4810 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
4811 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
4812 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
4813 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
4814 { # Representation of a label and label fields.
4815 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
4816 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
4817 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
4818 &quot;A String&quot;,
4819 ],
4820 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
4821 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
4822 &quot;A String&quot;,
4823 ],
4824 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
4825 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
4826 &quot;A String&quot;,
4827 ],
4828 &quot;text&quot;: [ # Only present if `valueType` is `text`.
4829 &quot;A String&quot;,
4830 ],
4831 &quot;user&quot;: [ # Only present if `valueType` is `user`.
4832 { # Information about a Drive user.
4833 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4834 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4835 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4836 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4837 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4838 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4839 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4840 },
4841 },
4842 ],
4843 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
4844 },
4845 },
4846 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
4847 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
4848 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
4849 },
4850 ],
4851 },
4852 &quot;labels&quot;: { # A group of labels for the file.
4853 &quot;hidden&quot;: True or False, # Output only. Deprecated.
4854 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
4855 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
4856 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
4857 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
4858 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
4859 },
4860 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
4861 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4862 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4863 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4864 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4865 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4866 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4867 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4868 },
4869 },
4870 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
4871 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
4872 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
4873 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
4874 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
4875 },
4876 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
4877 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4878 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
4879 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
4880 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
4881 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
4882 &quot;a_key&quot;: &quot;A String&quot;,
4883 },
4884 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
4885 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
4886 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
4887 &quot;A String&quot;,
4888 ],
4889 &quot;owners&quot;: [ # Output only. 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.
4890 { # Information about a Drive user.
4891 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4892 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4893 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4894 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4895 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4896 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4897 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4898 },
4899 },
4900 ],
4901 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
4902 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
4903 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
4904 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
4905 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
4906 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
4907 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
4908 },
4909 ],
4910 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
4911 &quot;A String&quot;,
4912 ],
4913 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
4914 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
4915 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
4916 &quot;A String&quot;,
4917 ],
4918 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
4919 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4920 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
4921 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
4922 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
4923 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4924 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4925 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
4926 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
4927 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
4928 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
4929 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
4930 {
4931 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
4932 &quot;A String&quot;,
4933 ],
4934 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
4935 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
4936 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
4937 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
4938 },
4939 ],
4940 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
4941 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
4942 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
4943 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
4944 {
4945 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
4946 &quot;A String&quot;,
4947 ],
4948 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
4949 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
4950 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
4951 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
4952 },
4953 ],
4954 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
4955 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
4956 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
4957 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
4958 },
4959 ],
4960 &quot;properties&quot;: [ # The list of properties.
4961 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
4962 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
4963 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
4964 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
4965 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
4966 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
4967 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
4968 },
4969 ],
4970 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
4971 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
4972 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
4973 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4974 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
4975 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
4976 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
4977 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
4978 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
4979 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
4980 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
4981 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
4982 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
4983 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
4984 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
4985 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
4986 },
4987 },
4988 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
4989 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
4990 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
4991 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
4992 },
4993 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
4994 &quot;A String&quot;,
4995 ],
4996 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
4997 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
4998 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
4999 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
5000 },
5001 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
5002 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
5003 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
5004 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
5005 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
5006 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5007 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5008 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5009 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5010 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5011 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5012 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5013 },
5014 },
5015 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
5016 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
5017 &quot;A String&quot;,
5018 ],
5019 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
5020 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
5021 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
5022 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
5023 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
5024 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
5025 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5026 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
5027 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
5028 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
5029 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
5030 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
5031 {
5032 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
5033 &quot;A String&quot;,
5034 ],
5035 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
5036 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
5037 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
5038 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
5039 },
5040 ],
5041 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
5042 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
5043 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
5044 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
5045 {
5046 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
5047 &quot;A String&quot;,
5048 ],
5049 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
5050 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
5051 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
5052 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
5053 },
5054 ],
5055 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
5056 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5057 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
5058 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
5059 },
5060 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
5061 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
5062 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
5063 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
5064 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
5065 },
5066 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
5067 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
5068 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
5069 }</pre>
5070 </div>
5071
5072 <div class="method">
5073 <code class="details" id="update">update(fileId, addParents=None, body=None, convert=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, media_body=None, media_mime_type=None, modifiedDateBehavior=None, newRevision=None, ocr=None, ocrLanguage=None, pinned=None, removeParents=None, setModifiedDate=None, supportsAllDrives=None, supportsTeamDrives=None, timedTextLanguage=None, timedTextTrackName=None, updateViewedDate=None, useContentAsIndexableText=None, x__xgafv=None)</code>
5074 <pre> Updates a file&#x27;s metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information, see [Google Workspace and Google Drive supported MIME types](https://developers.google.com/workspace/drive/api/guides/mime-types).) For more information on uploading files, see [Upload file data](https://developers.google.com/workspace/drive/api/guides/manage-uploads).
5075
5076 Args:
5077 fileId: string, The ID of the file to update. (required)
5078 body: object, The request body.
5079 The object takes the form of:
5080
5081 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
5082 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
5083 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
5084 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
5085 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
5086 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
5087 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
5088 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
5089 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
5090 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
5091 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
5092 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
5093 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
5094 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
5095 &quot;canCopy&quot;: True or False, # Output only. 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.
5096 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
5097 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
5098 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
5099 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
5100 &quot;canEdit&quot;: True or False, # Output only. 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`.
5101 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
5102 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
5103 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
5104 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
5105 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
5106 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
5107 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
5108 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
5109 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
5110 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
5111 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
5112 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
5113 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
5114 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
5115 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
5116 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
5117 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
5118 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
5119 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
5120 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
5121 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
5122 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
5123 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
5124 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
5125 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
5126 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
5127 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
5128 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
5129 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
5130 },
5131 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
5132 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
5133 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
5134 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
5135 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
5136 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
5137 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
5138 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
5139 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
5140 },
5141 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
5142 },
5143 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
5144 { # A restriction for accessing the content of the file.
5145 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
5146 &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.
5147 &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`.
5148 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
5149 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5150 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5151 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5152 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5153 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5154 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5155 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5156 },
5157 },
5158 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
5159 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
5160 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
5161 },
5162 ],
5163 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
5164 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
5165 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
5166 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
5167 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
5168 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
5169 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
5170 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
5171 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
5172 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
5173 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
5174 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
5175 &quot;a_key&quot;: &quot;A String&quot;,
5176 },
5177 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5178 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
5179 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
5180 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5181 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
5182 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
5183 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5184 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
5185 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
5186 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
5187 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
5188 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
5189 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
5190 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
5191 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
5192 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
5193 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
5194 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
5195 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
5196 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
5197 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
5198 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
5199 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
5200 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
5201 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
5202 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
5203 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
5204 },
5205 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
5206 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
5207 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
5208 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
5209 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
5210 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
5211 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
5212 },
5213 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
5214 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
5215 },
5216 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
5217 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
5218 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
5219 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
5220 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
5221 { # Representation of a label and label fields.
5222 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
5223 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
5224 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
5225 &quot;A String&quot;,
5226 ],
5227 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
5228 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
5229 &quot;A String&quot;,
5230 ],
5231 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
5232 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
5233 &quot;A String&quot;,
5234 ],
5235 &quot;text&quot;: [ # Only present if `valueType` is `text`.
5236 &quot;A String&quot;,
5237 ],
5238 &quot;user&quot;: [ # Only present if `valueType` is `user`.
5239 { # Information about a Drive user.
5240 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5241 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5242 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5243 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5244 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5245 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5246 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5247 },
5248 },
5249 ],
5250 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
5251 },
5252 },
5253 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
5254 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
5255 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
5256 },
5257 ],
5258 },
5259 &quot;labels&quot;: { # A group of labels for the file.
5260 &quot;hidden&quot;: True or False, # Output only. Deprecated.
5261 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
5262 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
5263 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
5264 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
5265 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
5266 },
5267 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
5268 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5269 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5270 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5271 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5272 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5273 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5274 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5275 },
5276 },
5277 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
5278 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
5279 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
5280 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
5281 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
5282 },
5283 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
5284 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5285 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
5286 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
5287 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
5288 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
5289 &quot;a_key&quot;: &quot;A String&quot;,
5290 },
5291 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
5292 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
5293 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
5294 &quot;A String&quot;,
5295 ],
5296 &quot;owners&quot;: [ # Output only. 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.
5297 { # Information about a Drive user.
5298 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5299 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5300 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5301 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5302 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5303 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5304 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5305 },
5306 },
5307 ],
5308 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
5309 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
5310 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
5311 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
5312 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
5313 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
5314 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
5315 },
5316 ],
5317 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
5318 &quot;A String&quot;,
5319 ],
5320 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
5321 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
5322 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
5323 &quot;A String&quot;,
5324 ],
5325 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
5326 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
5327 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
5328 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
5329 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
5330 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
5331 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5332 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
5333 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
5334 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
5335 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
5336 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
5337 {
5338 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
5339 &quot;A String&quot;,
5340 ],
5341 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
5342 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
5343 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
5344 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
5345 },
5346 ],
5347 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
5348 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
5349 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
5350 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
5351 {
5352 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
5353 &quot;A String&quot;,
5354 ],
5355 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
5356 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
5357 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
5358 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
5359 },
5360 ],
5361 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
5362 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5363 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
5364 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
5365 },
5366 ],
5367 &quot;properties&quot;: [ # The list of properties.
5368 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
5369 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
5370 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
5371 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
5372 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
5373 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
5374 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
5375 },
5376 ],
5377 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
5378 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
5379 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
5380 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5381 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5382 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
5383 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
5384 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
5385 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
5386 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5387 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5388 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5389 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5390 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5391 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5392 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5393 },
5394 },
5395 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
5396 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
5397 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
5398 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
5399 },
5400 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
5401 &quot;A String&quot;,
5402 ],
5403 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
5404 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
5405 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
5406 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
5407 },
5408 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
5409 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
5410 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
5411 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
5412 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
5413 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5414 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5415 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5416 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5417 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5418 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5419 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5420 },
5421 },
5422 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
5423 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
5424 &quot;A String&quot;,
5425 ],
5426 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
5427 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
5428 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
5429 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
5430 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
5431 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
5432 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5433 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
5434 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
5435 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
5436 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
5437 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
5438 {
5439 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
5440 &quot;A String&quot;,
5441 ],
5442 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
5443 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
5444 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
5445 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
5446 },
5447 ],
5448 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
5449 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
5450 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
5451 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
5452 {
5453 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
5454 &quot;A String&quot;,
5455 ],
5456 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
5457 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
5458 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
5459 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
5460 },
5461 ],
5462 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
5463 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5464 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
5465 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
5466 },
5467 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
5468 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
5469 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
5470 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
5471 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
5472 },
5473 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
5474 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
5475 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
5476 }
5477
5478 addParents: string, Comma-separated list of parent IDs to add.
5479 convert: boolean, Deprecated: This parameter has no function.
5480 enforceSingleParent: boolean, Deprecated: Adding files to multiple folders is no longer supported. Use `shortcuts` instead.
5481 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
5482 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
5483 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
5484 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
5485 modifiedDateBehavior: string, Determines the behavior in which `modifiedDate` is updated. This overrides `setModifiedDate`.
5486 Allowed values
5487 fromBody - Set `modifiedDate` to the value provided in the body of the request. No change if no value was provided.
5488 fromBodyIfNeeded - Set `modifiedDate` to the value provided in the body of the request depending on other contents of the update.
5489 fromBodyOrNow - Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.
5490 noChange - Maintain the previous value of `modifiedDate`.
5491 now - Set `modifiedDate` to the current time.
5492 nowIfNeeded - Set `modifiedDate` to the current time depending on contents of the update.
5493 newRevision: boolean, Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the [Drive Help Center](https://support.google.com/drive/answer/2409045).
5494 ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
5495 ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
5496 pinned: boolean, Whether to pin the new revision. A file can have a maximum of 200 pinned revisions.
5497 removeParents: string, Comma-separated list of parent IDs to remove.
5498 setModifiedDate: boolean, Whether to set the modified date using the value supplied in the request body. Setting this field to `true` is equivalent to `modifiedDateBehavior=fromBodyOrNow`, and `false` is equivalent to `modifiedDateBehavior=now`. To prevent any changes to the modified date set `modifiedDateBehavior=noChange`.
5499 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
5500 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
5501 timedTextLanguage: string, The language of the timed text.
5502 timedTextTrackName: string, The timed text track name.
5503 updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
5504 useContentAsIndexableText: boolean, Whether to use the content as indexable text.
5505 x__xgafv: string, V1 error format.
5506 Allowed values
5507 1 - v1 error format
5508 2 - v2 error format
5509
5510 Returns:
5511 An object of the form:
5512
5513 { # The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
5514 &quot;alternateLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer.
5515 &quot;appDataContents&quot;: True or False, # Output only. Whether this file is in the Application Data folder.
5516 &quot;canComment&quot;: True or False, # Output only. Deprecated: Use `capabilities/canComment` instead.
5517 &quot;canReadRevisions&quot;: True or False, # Output only. Deprecated: Use `capabilities/canReadRevisions` instead.
5518 &quot;capabilities&quot;: { # Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
5519 &quot;canAcceptOwnership&quot;: True or False, # Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
5520 &quot;canAddChildren&quot;: True or False, # Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
5521 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Output only. 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.
5522 &quot;canAddMyDriveParent&quot;: True or False, # Output only. 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.
5523 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
5524 &quot;canChangeRestrictedDownload&quot;: True or False, # Output only. Deprecated.
5525 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
5526 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
5527 &quot;canCopy&quot;: True or False, # Output only. 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.
5528 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
5529 &quot;canDeleteChildren&quot;: True or False, # Output only. 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.
5530 &quot;canDisableInheritedPermissions&quot;: True or False, # Output only. Whether a user can disable inherited permissions.
5531 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
5532 &quot;canEdit&quot;: True or False, # Output only. 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`.
5533 &quot;canEnableInheritedPermissions&quot;: True or False, # Output only. Whether a user can re-enable inherited permissions.
5534 &quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
5535 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
5536 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
5537 &quot;canModifyEditorContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
5538 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
5539 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
5540 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Output only. 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.
5541 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenOutOfDrive` instead.
5542 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Output only. 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.
5543 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveChildrenWithinDrive` instead.
5544 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
5545 &quot;canMoveItemOutOfDrive&quot;: True or False, # Output only. 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.
5546 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemOutOfDrive` instead.
5547 &quot;canMoveItemWithinDrive&quot;: True or False, # Output only. 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.
5548 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` instead.
5549 &quot;canMoveTeamDriveItem&quot;: True or False, # Output only. Deprecated: Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
5550 &quot;canReadDrive&quot;: True or False, # Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
5551 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
5552 &quot;canReadRevisions&quot;: True or False, # Output only. 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.
5553 &quot;canReadTeamDrive&quot;: True or False, # Output only. Deprecated: Use `canReadDrive` instead.
5554 &quot;canRemoveChildren&quot;: True or False, # Output only. 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.
5555 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there is a content restriction on the file that can be removed by the current user.
5556 &quot;canRemoveMyDriveParent&quot;: True or False, # Output only. 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.
5557 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
5558 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
5559 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
5560 &quot;canTrashChildren&quot;: True or False, # Output only. 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.
5561 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
5562 },
5563 &quot;clientEncryptionDetails&quot;: { # Details about the client-side encryption applied to the file. # Client Side Encryption related details. Contains details about the encryption state of the file and details regarding the encryption mechanism that clients need to use when decrypting the contents of this item. This will only be present on files and not on folders or shortcuts.
5564 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
5565 &quot;aes256GcmChunkSize&quot;: &quot;A String&quot;, # Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
5566 &quot;encryptionResourceKeyHash&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
5567 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
5568 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
5569 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
5570 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
5571 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
5572 },
5573 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
5574 },
5575 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
5576 { # A restriction for accessing the content of the file.
5577 &quot;ownerRestricted&quot;: True or False, # Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
5578 &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.
5579 &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`.
5580 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly` is true.
5581 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5582 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5583 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5584 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5585 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5586 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5587 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5588 },
5589 },
5590 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
5591 &quot;systemRestricted&quot;: True or False, # Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
5592 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
5593 },
5594 ],
5595 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
5596 &quot;copyable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canCopy` instead.
5597 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
5598 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # Output only. A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
5599 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
5600 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
5601 &quot;driveId&quot;: &quot;A String&quot;, # Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
5602 &quot;editable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canEdit` instead.
5603 &quot;embedLink&quot;: &quot;A String&quot;, # Output only. A link for embedding the file.
5604 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the file.
5605 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether this file has been explicitly trashed, as opposed to recursively trashed.
5606 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
5607 &quot;a_key&quot;: &quot;A String&quot;,
5608 },
5609 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension` with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5610 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and first party editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
5611 &quot;folderColorRgb&quot;: &quot;A String&quot;, # Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.
5612 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5613 &quot;hasAugmentedPermissions&quot;: True or False, # Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
5614 &quot;hasThumbnail&quot;: True or False, # Output only. 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.
5615 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5616 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A link to the file&#x27;s icon.
5617 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
5618 &quot;imageMediaMetadata&quot;: { # Output only. Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
5619 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
5620 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
5621 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
5622 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
5623 &quot;date&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF format timestamp).
5624 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
5625 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
5626 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
5627 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
5628 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
5629 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
5630 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
5631 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
5632 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
5633 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
5634 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
5635 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
5636 },
5637 &quot;maxApertureValue&quot;: 3.14, # Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
5638 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
5639 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
5640 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
5641 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
5642 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
5643 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
5644 },
5645 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
5646 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
5647 },
5648 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
5649 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
5650 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. The type of file. This is always `drive#file`.
5651 &quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
5652 &quot;labels&quot;: [ # Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
5653 { # Representation of a label and label fields.
5654 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
5655 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
5656 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
5657 &quot;A String&quot;,
5658 ],
5659 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
5660 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
5661 &quot;A String&quot;,
5662 ],
5663 &quot;kind&quot;: &quot;drive#labelField&quot;, # This is always `drive#labelField`.
5664 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
5665 &quot;A String&quot;,
5666 ],
5667 &quot;text&quot;: [ # Only present if `valueType` is `text`.
5668 &quot;A String&quot;,
5669 ],
5670 &quot;user&quot;: [ # Only present if `valueType` is `user`.
5671 { # Information about a Drive user.
5672 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5673 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5674 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5675 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5676 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5677 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5678 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5679 },
5680 },
5681 ],
5682 &quot;valueType&quot;: &quot;A String&quot;, # The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
5683 },
5684 },
5685 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
5686 &quot;kind&quot;: &quot;drive#label&quot;, # This is always `drive#label`
5687 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
5688 },
5689 ],
5690 },
5691 &quot;labels&quot;: { # A group of labels for the file.
5692 &quot;hidden&quot;: True or False, # Output only. Deprecated.
5693 &quot;modified&quot;: True or False, # Output only. Whether the file has been modified by this user.
5694 &quot;restricted&quot;: True or False, # Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
5695 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
5696 &quot;trashed&quot;: True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
5697 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
5698 },
5699 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify this file. This field is only populated when the last modification was performed by a signed-in user.
5700 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5701 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5702 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5703 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5704 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5705 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5706 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5707 },
5708 },
5709 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this file.
5710 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
5711 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
5712 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
5713 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
5714 },
5715 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
5716 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5717 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
5718 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
5719 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
5720 &quot;openWithLinks&quot;: { # Output only. A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
5721 &quot;a_key&quot;: &quot;A String&quot;,
5722 },
5723 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `title` field. This is only available for files with binary content in Google Drive.
5724 &quot;ownedByMe&quot;: True or False, # Output only. Whether the file is owned by the current user. Not populated for items in shared drives.
5725 &quot;ownerNames&quot;: [ # Output only. Name(s) of the owner(s) of this file. Not populated for items in shared drives.
5726 &quot;A String&quot;,
5727 ],
5728 &quot;owners&quot;: [ # Output only. 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.
5729 { # Information about a Drive user.
5730 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5731 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5732 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5733 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5734 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5735 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5736 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5737 },
5738 },
5739 ],
5740 &quot;parents&quot;: [ # The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. If not specified as part of an insert request, the file is placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
5741 { # A reference to a file&#x27;s parent. A file can only have one parent folder; specifying multiple parents isn&#x27;t supported. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.
5742 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
5743 &quot;isRoot&quot;: True or False, # Output only. Whether or not the parent is the root folder.
5744 &quot;kind&quot;: &quot;drive#parentReference&quot;, # Output only. This is always `drive#parentReference`.
5745 &quot;parentLink&quot;: &quot;A String&quot;, # Output only. A link to the parent.
5746 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this reference.
5747 },
5748 ],
5749 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
5750 &quot;A String&quot;,
5751 ],
5752 &quot;permissions&quot;: [ # Output only. The list of permissions for users with access to this file. Not populated for items in shared drives.
5753 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.
5754 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
5755 &quot;A String&quot;,
5756 ],
5757 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
5758 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
5759 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
5760 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
5761 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
5762 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
5763 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5764 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
5765 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
5766 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
5767 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
5768 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
5769 {
5770 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
5771 &quot;A String&quot;,
5772 ],
5773 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
5774 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
5775 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
5776 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
5777 },
5778 ],
5779 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
5780 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
5781 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
5782 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
5783 {
5784 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
5785 &quot;A String&quot;,
5786 ],
5787 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
5788 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
5789 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
5790 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
5791 },
5792 ],
5793 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
5794 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5795 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
5796 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
5797 },
5798 ],
5799 &quot;properties&quot;: [ # The list of properties.
5800 { # A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.
5801 &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the property.
5802 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
5803 &quot;kind&quot;: &quot;drive#property&quot;, # Output only. This is always `drive#property`.
5804 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. The link back to this property.
5805 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
5806 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private 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.
5807 },
5808 ],
5809 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of quota bytes used by this file.
5810 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
5811 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this file.
5812 &quot;sha1Checksum&quot;: &quot;A String&quot;, # Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5813 &quot;sha256Checksum&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
5814 &quot;shareable&quot;: True or False, # Output only. Deprecated: Use `capabilities/canShare` instead.
5815 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
5816 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
5817 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. User that shared the item with the current user, if available.
5818 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5819 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5820 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5821 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5822 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5823 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5824 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5825 },
5826 },
5827 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.insert` requests.
5828 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.insert` requests.
5829 &quot;targetMimeType&quot;: &quot;A String&quot;, # Output only. 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.
5830 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The ResourceKey for the target file.
5831 },
5832 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. Supported values are `drive`, `appDataFolder` and `photos`.
5833 &quot;A String&quot;,
5834 ],
5835 &quot;teamDriveId&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `driveId` instead.
5836 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
5837 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
5838 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
5839 },
5840 &quot;thumbnailLink&quot;: &quot;A String&quot;, # Output only. A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. 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.
5841 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
5842 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
5843 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
5844 &quot;trashingUser&quot;: { # Information about a Drive user. # Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
5845 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
5846 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. 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.
5847 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
5848 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
5849 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
5850 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
5851 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
5852 },
5853 },
5854 &quot;userPermission&quot;: { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive. # Output only. The permissions for the authenticated user on this file.
5855 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only `commenter` is currently allowed, though more may be supported in the future.
5856 &quot;A String&quot;,
5857 ],
5858 &quot;authKey&quot;: &quot;A String&quot;, # Output only. Deprecated.
5859 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
5860 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is `user`, `group` or `domain`.
5861 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is `user` or `group`.
5862 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the permission.
5863 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
5864 &quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the `permissionId` in the About and Files resources. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5865 &quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
5866 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. This is always `drive#permission`.
5867 &quot;name&quot;: &quot;A String&quot;, # Output only. The name for this permission.
5868 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
5869 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
5870 {
5871 &quot;additionalRoles&quot;: [ # Output only. Additional roles for this user. Only `commenter` is currently possible, though more may be supported in the future.
5872 &quot;A String&quot;,
5873 ],
5874 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated.
5875 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
5876 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
5877 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
5878 },
5879 ],
5880 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the profile photo, if available.
5881 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` * `reader`
5882 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this permission.
5883 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Use `permissionDetails` instead.
5884 {
5885 &quot;additionalRoles&quot;: [ # Output only. Deprecated: Use `permissionDetails/additionalRoles` instead.
5886 &quot;A String&quot;,
5887 ],
5888 &quot;inherited&quot;: True or False, # Output only. Deprecated: Use `permissionDetails/inherited` instead.
5889 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/inheritedFrom` instead.
5890 &quot;role&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/role` instead.
5891 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `permissionDetails/permissionType` instead.
5892 },
5893 ],
5894 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are: * `user` * `group` * `domain` * `anyone`
5895 &quot;value&quot;: &quot;A String&quot;, # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a `drive.permissions.insert` request, exactly one of the `id` or `value` fields must be specified unless the permission type is `anyone`, in which case both `id` and `value` are ignored.
5896 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
5897 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
5898 },
5899 &quot;version&quot;: &quot;A String&quot;, # Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
5900 &quot;videoMediaMetadata&quot;: { # Output only. Metadata about video media. This will only be present for video types.
5901 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
5902 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
5903 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
5904 },
5905 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
5906 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
5907 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
5908 }</pre>
5909 </div>
5910
5911 <div class="method">
5912 <code class="details" id="watch">watch(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None, x__xgafv=None)</code>
5913 <pre>Subscribes to changes to a file.
5914
5915 Args:
5916 fileId: string, The ID for the file in question. (required)
5917 body: object, The request body.
5918 The object takes the form of:
5919
5920 { # A notification channel used to watch for resource changes.
5921 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
5922 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
5923 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
5924 &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.
5925 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
5926 &quot;a_key&quot;: &quot;A String&quot;,
5927 },
5928 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
5929 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
5930 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
5931 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
5932 &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;.
5933 }
5934
5935 acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.
5936 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
5937 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
5938 projection: string, Deprecated: This parameter has no function.
5939 Allowed values
5940 BASIC - Deprecated.
5941 FULL - Deprecated.
5942 revisionId: string, Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
5943 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
5944 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
5945 updateViewedDate: boolean, Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.
5946 x__xgafv: string, V1 error format.
5947 Allowed values
5948 1 - v1 error format
5949 2 - v2 error format
5950
5951 Returns:
5952 An object of the form:
5953
5954 { # A notification channel used to watch for resource changes.
5955 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
5956 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
5957 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
5958 &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.
5959 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
5960 &quot;a_key&quot;: &quot;A String&quot;,
5961 },
5962 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
5963 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
5964 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
5965 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
5966 &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;.
5967 }</pre>
5968 </div>
5969
5970 </body></html>