Debian Codegraph @

docs/dyn/drive_v3.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_v3.html">Google Drive API</a> . <a href="drive_v3.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, enforceSingleParent=None, ignoreDefaultVisibility=None, includeLabels=None, includePermissionsForView=None, keepRevisionForever=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a copy of a file and applies any requested updates with patch semantics. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).</p>
83 <p class="toc_element">
84 <code><a href="#create">create(body=None, enforceSingleParent=None, ignoreDefaultVisibility=None, includeLabels=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None, x__xgafv=None)</a></code></p>
85 <p class="firstline"> Creates a file. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-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:* `*/*` (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). Apps creating shortcuts with the `create` method must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `name` 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 name. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(fileId, enforceSingleParent=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Permanently deletes a file owned by the user without moving it to the trash. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete). 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>
89 <p class="toc_element">
90 <code><a href="#download">download(fileId, mimeType=None, revisionId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Downloads the content of a file. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Operations are valid for 24 hours from the time of creation.</p>
92 <p class="toc_element">
93 <code><a href="#emptyTrash">emptyTrash(driveId=None, enforceSingleParent=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Permanently deletes all of the user's trashed files. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete).</p>
95 <p class="toc_element">
96 <code><a href="#export">export(fileId, mimeType, x__xgafv=None)</a></code></p>
97 <p class="firstline">Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Note that the exported content is limited to 10 MB.</p>
98 <p class="toc_element">
99 <code><a href="#export_media">export_media(fileId, mimeType, x__xgafv=None)</a></code></p>
100 <p class="firstline">Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Note that the exported content is limited to 10 MB.</p>
101 <p class="toc_element">
102 <code><a href="#generateCseToken">generateCseToken(fileId=None, parent=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Generates a CSE token which can be used to create or update CSE files.</p>
104 <p class="toc_element">
105 <code><a href="#generateIds">generateIds(count=None, space=None, type=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Generates a set of file IDs which can be provided in create or copy requests. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).</p>
107 <p class="toc_element">
108 <code><a href="#get">get(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
109 <p class="firstline"> Gets a file's metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). 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/v3/files/export) instead. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).</p>
110 <p class="toc_element">
111 <code><a href="#get_media">get_media(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
112 <p class="firstline"> Gets a file's metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). 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/v3/files/export) instead. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).</p>
113 <p class="toc_element">
114 <code><a href="#list">list(corpora=None, corpus=None, driveId=None, includeItemsFromAllDrives=None, includeLabels=None, includePermissionsForView=None, includeTeamDriveItems=None, orderBy=None, pageSize=None, pageToken=None, q=None, spaces=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None, x__xgafv=None)</a></code></p>
115 <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>
116 <p class="toc_element">
117 <code><a href="#listLabels">listLabels(fileId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Lists the labels on a file. For more information, see [List labels on a file](https://developers.google.com/workspace/drive/api/guides/list-labels).</p>
119 <p class="toc_element">
120 <code><a href="#listLabels_next">listLabels_next()</a></code></p>
121 <p class="firstline">Retrieves the next page of results.</p>
122 <p class="toc_element">
123 <code><a href="#list_next">list_next()</a></code></p>
124 <p class="firstline">Retrieves the next page of results.</p>
125 <p class="toc_element">
126 <code><a href="#modifyLabels">modifyLabels(fileId, body=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Modifies the set of labels applied to a file. For more information, see [Set a label field on a file](https://developers.google.com/workspace/drive/api/guides/set-label). Returns a list of the labels that were added or modified.</p>
128 <p class="toc_element">
129 <code><a href="#update">update(fileId, addParents=None, body=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, removeParents=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None, x__xgafv=None)</a></code></p>
130 <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>
131 <p class="toc_element">
132 <code><a href="#watch">watch(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Subscribes to changes to a file. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).</p>
134 <h3>Method Details</h3>
135 <div class="method">
136 <code class="details" id="close">close()</code>
137 <pre>Close httplib2 connections.</pre>
138 </div>
139
140 <div class="method">
141 <code class="details" id="copy">copy(fileId, body=None, enforceSingleParent=None, ignoreDefaultVisibility=None, includeLabels=None, includePermissionsForView=None, keepRevisionForever=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
142 <pre>Creates a copy of a file and applies any requested updates with patch semantics. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).
143
144 Args:
145 fileId: string, The ID of the file. (required)
146 body: object, The request body.
147 The object takes the form of:
148
149 { # 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.
150 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
151 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
152 &quot;a_key&quot;: &quot;A String&quot;,
153 },
154 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
155 &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.
156 &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 isn&#x27;t a folder.
157 &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 isn&#x27;t a folder. Only populated for items in shared drives.
158 &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.
159 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
160 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
161 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
162 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
163 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
164 &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 if it&#x27;s not a folder.
165 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
166 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
167 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
168 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
169 &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`.
170 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
171 &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 isn&#x27;t a folder.
172 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
173 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
174 &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.
175 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
176 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
177 &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 isn&#x27;t a folder. Only populated for items in shared drives.
178 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
179 &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 isn&#x27;t 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.
180 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
181 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
182 &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&#x27;s being added.
183 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
184 &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&#x27;s being added and the parent that is being removed.
185 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
186 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
187 &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.
188 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
189 &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 if it&#x27;s not a folder, can be read.
190 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
191 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
192 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
193 &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.
194 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
195 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
196 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
197 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
198 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
199 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
200 },
201 &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.
202 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
203 &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
204 &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
205 &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.
206 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
207 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
208 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
209 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
210 },
211 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
212 },
213 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
214 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
215 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
216 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
217 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
218 },
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=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;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
229 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
230 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
231 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
232 },
233 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
234 &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.
235 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
236 },
237 ],
238 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
239 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
240 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
241 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
242 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
243 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
244 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
245 },
246 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
247 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
248 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
249 },
250 },
251 &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.
252 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
253 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
254 &quot;a_key&quot;: &quot;A String&quot;,
255 },
256 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
257 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
258 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
259 &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.
260 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
261 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
262 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
263 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
264 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
265 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
266 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
267 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
268 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
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;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
288 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
289 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
290 },
291 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
292 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
293 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
294 &quot;labelInfo&quot;: { # Label information on the file.
295 &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.
296 { # Representation of label and label fields.
297 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
298 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
299 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
300 &quot;A String&quot;,
301 ],
302 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
303 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
304 &quot;A String&quot;,
305 ],
306 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
307 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
308 &quot;A String&quot;,
309 ],
310 &quot;text&quot;: [ # Only present if `valueType` is `text`.
311 &quot;A String&quot;,
312 ],
313 &quot;user&quot;: [ # Only present if `valueType` is `user`.
314 { # Information about a Drive user.
315 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
316 &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.
317 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
318 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
319 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
320 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
321 },
322 ],
323 &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`
324 },
325 },
326 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
327 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
328 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
329 },
330 ],
331 },
332 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
333 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
334 &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.
335 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
336 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
337 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
338 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
339 },
340 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
341 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
342 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
343 },
344 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
345 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
346 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
347 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
348 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
349 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
350 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
351 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
352 &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.
353 { # Information about a Drive user.
354 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
355 &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.
356 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
357 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
358 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
359 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
360 },
361 ],
362 &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 a create 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.
363 &quot;A String&quot;,
364 ],
365 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
366 &quot;A String&quot;,
367 ],
368 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
369 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
370 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
371 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
372 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
373 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
374 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
375 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
376 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
377 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
378 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
379 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
380 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
381 {
382 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
383 &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.
384 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
385 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
386 },
387 ],
388 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
389 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
390 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
391 {
392 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
393 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
394 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
395 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
396 },
397 ],
398 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
399 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
400 },
401 ],
402 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
403 # Entries with null values are cleared in update and copy requests.
404 &quot;a_key&quot;: &quot;A String&quot;,
405 },
406 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
407 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
408 &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&#x27;s not populated for Docs Editors or shortcut files.
409 &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&#x27;s not populated for Docs Editors or shortcut files.
410 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
411 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
412 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
413 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
414 &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.
415 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
416 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
417 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
418 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
419 },
420 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
421 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
422 &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.
423 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
424 },
425 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
426 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
427 &quot;A String&quot;,
428 ],
429 &quot;starred&quot;: True or False, # Whether the user has starred the file.
430 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
431 &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) policies. 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.
432 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
433 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
434 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
435 &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.
436 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
437 &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.
438 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
439 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
440 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
441 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
442 },
443 &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 user.
444 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
445 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
446 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
447 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
448 },
449 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
450 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
451 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
452 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
453 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
454 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
455 }
456
457 enforceSingleParent: boolean, Deprecated: Copying files into multiple folders is no longer supported. Use shortcuts instead.
458 ignoreDefaultVisibility: boolean, Whether to ignore the domain&#x27;s default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
459 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
460 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
461 keepRevisionForever: boolean, Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
462 ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
463 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
464 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
465 x__xgafv: string, V1 error format.
466 Allowed values
467 1 - v1 error format
468 2 - v2 error format
469
470 Returns:
471 An object of the form:
472
473 { # 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.
474 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
475 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
476 &quot;a_key&quot;: &quot;A String&quot;,
477 },
478 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
479 &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.
480 &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 isn&#x27;t a folder.
481 &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 isn&#x27;t a folder. Only populated for items in shared drives.
482 &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.
483 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
484 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
485 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
486 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
487 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
488 &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 if it&#x27;s not a folder.
489 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
490 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
491 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
492 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
493 &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`.
494 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
495 &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 isn&#x27;t a folder.
496 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
497 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
498 &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.
499 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
500 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
501 &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 isn&#x27;t a folder. Only populated for items in shared drives.
502 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
503 &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 isn&#x27;t 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.
504 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
505 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
506 &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&#x27;s being added.
507 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
508 &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&#x27;s being added and the parent that is being removed.
509 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
510 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
511 &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.
512 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
513 &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 if it&#x27;s not a folder, can be read.
514 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
515 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
516 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
517 &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.
518 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
519 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
520 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
521 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
522 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
523 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
524 },
525 &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.
526 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
527 &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
528 &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
529 &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.
530 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
531 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
532 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
533 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
534 },
535 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
536 },
537 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
538 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
539 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
540 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
541 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
542 },
543 },
544 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
545 { # A restriction for accessing the content of the file.
546 &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.
547 &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.
548 &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`.
549 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly=true`.
550 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
551 &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.
552 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
553 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
554 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
555 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
556 },
557 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
558 &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.
559 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
560 },
561 ],
562 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
563 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
564 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
565 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
566 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
567 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
568 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
569 },
570 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
571 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
572 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
573 },
574 },
575 &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.
576 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
577 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
578 &quot;a_key&quot;: &quot;A String&quot;,
579 },
580 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
581 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
582 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
583 &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.
584 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
585 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
586 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
587 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
588 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
589 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
590 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
591 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
592 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
593 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
594 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
595 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
596 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
597 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
598 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
599 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
600 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
601 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
602 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
603 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
604 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
605 },
606 &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).
607 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
608 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
609 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
610 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
611 &quot;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
612 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
613 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
614 },
615 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
616 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
617 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
618 &quot;labelInfo&quot;: { # Label information on the file.
619 &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.
620 { # Representation of label and label fields.
621 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
622 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
623 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
624 &quot;A String&quot;,
625 ],
626 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
627 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
628 &quot;A String&quot;,
629 ],
630 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
631 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
632 &quot;A String&quot;,
633 ],
634 &quot;text&quot;: [ # Only present if `valueType` is `text`.
635 &quot;A String&quot;,
636 ],
637 &quot;user&quot;: [ # Only present if `valueType` is `user`.
638 { # Information about a Drive user.
639 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
640 &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.
641 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
642 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
643 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
644 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
645 },
646 ],
647 &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`
648 },
649 },
650 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
651 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
652 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
653 },
654 ],
655 },
656 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
657 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
658 &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.
659 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
660 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
661 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
662 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
663 },
664 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
665 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
666 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
667 },
668 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
669 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
670 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
671 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
672 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
673 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
674 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
675 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
676 &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.
677 { # Information about a Drive user.
678 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
679 &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.
680 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
681 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
682 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
683 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
684 },
685 ],
686 &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 a create 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.
687 &quot;A String&quot;,
688 ],
689 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
690 &quot;A String&quot;,
691 ],
692 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
693 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
694 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
695 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
696 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
697 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
698 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
699 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
700 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
701 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
702 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
703 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
704 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
705 {
706 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
707 &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.
708 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
709 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
710 },
711 ],
712 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
713 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
714 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
715 {
716 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
717 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
718 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
719 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
720 },
721 ],
722 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
723 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
724 },
725 ],
726 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
727 # Entries with null values are cleared in update and copy requests.
728 &quot;a_key&quot;: &quot;A String&quot;,
729 },
730 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
731 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
732 &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&#x27;s not populated for Docs Editors or shortcut files.
733 &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&#x27;s not populated for Docs Editors or shortcut files.
734 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
735 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
736 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
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;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
740 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
741 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
742 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
743 },
744 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
745 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
746 &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.
747 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
748 },
749 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
750 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
751 &quot;A String&quot;,
752 ],
753 &quot;starred&quot;: True or False, # Whether the user has starred the file.
754 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
755 &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) policies. 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.
756 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
757 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
758 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
759 &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.
760 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
761 &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.
762 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
763 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
764 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
765 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
766 },
767 &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 user.
768 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
769 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
770 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
771 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
772 },
773 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
774 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
775 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
776 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
777 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
778 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
779 }</pre>
780 </div>
781
782 <div class="method">
783 <code class="details" id="create">create(body=None, enforceSingleParent=None, ignoreDefaultVisibility=None, includeLabels=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None, x__xgafv=None)</code>
784 <pre> Creates a file. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-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:* `*/*` (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). Apps creating shortcuts with the `create` method must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `&quot;name&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 `name` 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 name. In cases where the extension is missing, Drive attempts to determine the extension based on the file&#x27;s MIME type.
785
786 Args:
787 body: object, The request body.
788 The object takes the form of:
789
790 { # 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.
791 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
792 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
793 &quot;a_key&quot;: &quot;A String&quot;,
794 },
795 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
796 &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.
797 &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 isn&#x27;t a folder.
798 &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 isn&#x27;t a folder. Only populated for items in shared drives.
799 &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.
800 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
801 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
802 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
803 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
804 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
805 &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 if it&#x27;s not a folder.
806 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
807 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
808 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
809 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
810 &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`.
811 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
812 &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 isn&#x27;t a folder.
813 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
814 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
815 &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.
816 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
817 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
818 &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 isn&#x27;t a folder. Only populated for items in shared drives.
819 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
820 &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 isn&#x27;t 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.
821 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
822 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
823 &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&#x27;s being added.
824 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
825 &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&#x27;s being added and the parent that is being removed.
826 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
827 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
828 &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.
829 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
830 &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 if it&#x27;s not a folder, can be read.
831 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
832 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
833 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
834 &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.
835 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
836 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
837 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
838 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
839 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
840 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
841 },
842 &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.
843 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
844 &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
845 &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
846 &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.
847 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
848 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
849 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
850 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
851 },
852 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
853 },
854 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
855 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
856 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
857 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
858 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
859 },
860 },
861 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
862 { # A restriction for accessing the content of the file.
863 &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.
864 &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.
865 &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`.
866 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly=true`.
867 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
868 &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.
869 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
870 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
871 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
872 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
873 },
874 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
875 &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.
876 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
877 },
878 ],
879 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
880 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
881 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
882 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
883 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
884 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
885 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
886 },
887 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
888 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
889 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
890 },
891 },
892 &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.
893 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
894 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
895 &quot;a_key&quot;: &quot;A String&quot;,
896 },
897 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
898 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
899 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
900 &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.
901 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
902 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
903 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
904 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
905 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
906 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
907 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
908 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
909 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
910 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
911 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
912 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
913 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
914 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
915 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
916 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
917 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
918 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
919 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
920 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
921 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
922 },
923 &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).
924 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
925 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
926 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
927 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
928 &quot;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
929 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
930 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
931 },
932 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
933 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
934 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
935 &quot;labelInfo&quot;: { # Label information on the file.
936 &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.
937 { # Representation of label and label fields.
938 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
939 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
940 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
941 &quot;A String&quot;,
942 ],
943 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
944 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
945 &quot;A String&quot;,
946 ],
947 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
948 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
949 &quot;A String&quot;,
950 ],
951 &quot;text&quot;: [ # Only present if `valueType` is `text`.
952 &quot;A String&quot;,
953 ],
954 &quot;user&quot;: [ # Only present if `valueType` is `user`.
955 { # Information about a Drive user.
956 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
957 &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.
958 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
959 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
960 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
961 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
962 },
963 ],
964 &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`
965 },
966 },
967 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
968 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
969 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
970 },
971 ],
972 },
973 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
974 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
975 &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.
976 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
977 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
978 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
979 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
980 },
981 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
982 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
983 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
984 },
985 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
986 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
987 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
988 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
989 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
990 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
991 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
992 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
993 &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.
994 { # Information about a Drive user.
995 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
996 &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.
997 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
998 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
999 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1000 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1001 },
1002 ],
1003 &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 a create 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.
1004 &quot;A String&quot;,
1005 ],
1006 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
1007 &quot;A String&quot;,
1008 ],
1009 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
1010 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
1011 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
1012 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
1013 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
1014 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
1015 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
1016 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
1017 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
1018 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
1019 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
1020 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
1021 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
1022 {
1023 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
1024 &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.
1025 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
1026 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
1027 },
1028 ],
1029 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1030 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
1031 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
1032 {
1033 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
1034 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
1035 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
1036 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
1037 },
1038 ],
1039 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
1040 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
1041 },
1042 ],
1043 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
1044 # Entries with null values are cleared in update and copy requests.
1045 &quot;a_key&quot;: &quot;A String&quot;,
1046 },
1047 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
1048 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
1049 &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&#x27;s not populated for Docs Editors or shortcut files.
1050 &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&#x27;s not populated for Docs Editors or shortcut files.
1051 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
1052 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
1053 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
1054 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1055 &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.
1056 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1057 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1058 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1059 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1060 },
1061 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
1062 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
1063 &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.
1064 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
1065 },
1066 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
1067 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
1068 &quot;A String&quot;,
1069 ],
1070 &quot;starred&quot;: True or False, # Whether the user has starred the file.
1071 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
1072 &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) policies. 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.
1073 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
1074 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
1075 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
1076 &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.
1077 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1078 &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.
1079 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1080 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1081 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1082 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1083 },
1084 &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 user.
1085 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
1086 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
1087 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
1088 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
1089 },
1090 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
1091 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
1092 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
1093 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
1094 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
1095 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
1096 }
1097
1098 enforceSingleParent: boolean, Deprecated: Creating files in multiple folders is no longer supported.
1099 ignoreDefaultVisibility: boolean, Whether to ignore the domain&#x27;s default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
1100 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
1101 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
1102 keepRevisionForever: boolean, Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
1103 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
1104 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
1105 ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
1106 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1107 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1108 useContentAsIndexableText: boolean, Whether to use the uploaded content as indexable text.
1109 x__xgafv: string, V1 error format.
1110 Allowed values
1111 1 - v1 error format
1112 2 - v2 error format
1113
1114 Returns:
1115 An object of the form:
1116
1117 { # 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.
1118 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
1119 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
1120 &quot;a_key&quot;: &quot;A String&quot;,
1121 },
1122 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
1123 &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.
1124 &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 isn&#x27;t a folder.
1125 &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 isn&#x27;t a folder. Only populated for items in shared drives.
1126 &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.
1127 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
1128 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
1129 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
1130 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
1131 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
1132 &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 if it&#x27;s not a folder.
1133 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
1134 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
1135 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
1136 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
1137 &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`.
1138 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
1139 &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 isn&#x27;t a folder.
1140 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
1141 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
1142 &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.
1143 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
1144 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
1145 &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 isn&#x27;t a folder. Only populated for items in shared drives.
1146 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
1147 &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 isn&#x27;t 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.
1148 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
1149 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
1150 &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&#x27;s being added.
1151 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
1152 &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&#x27;s being added and the parent that is being removed.
1153 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
1154 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
1155 &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.
1156 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
1157 &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 if it&#x27;s not a folder, can be read.
1158 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
1159 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
1160 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
1161 &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.
1162 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
1163 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
1164 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
1165 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
1166 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
1167 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
1168 },
1169 &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.
1170 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
1171 &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
1172 &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
1173 &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.
1174 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
1175 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
1176 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
1177 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
1178 },
1179 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
1180 },
1181 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
1182 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
1183 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
1184 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
1185 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
1186 },
1187 },
1188 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1189 { # A restriction for accessing the content of the file.
1190 &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.
1191 &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.
1192 &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`.
1193 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly=true`.
1194 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1195 &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.
1196 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1197 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1198 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1199 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1200 },
1201 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1202 &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.
1203 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
1204 },
1205 ],
1206 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
1207 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
1208 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1209 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
1210 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
1211 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
1212 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
1213 },
1214 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
1215 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
1216 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
1217 },
1218 },
1219 &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.
1220 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
1221 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
1222 &quot;a_key&quot;: &quot;A String&quot;,
1223 },
1224 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
1225 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
1226 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
1227 &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.
1228 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1229 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
1230 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
1231 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1232 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
1233 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
1234 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
1235 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
1236 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
1237 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
1238 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
1239 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
1240 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
1241 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
1242 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
1243 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
1244 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
1245 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
1246 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
1247 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
1248 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
1249 },
1250 &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).
1251 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
1252 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1253 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
1254 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
1255 &quot;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
1256 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
1257 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
1258 },
1259 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
1260 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
1261 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
1262 &quot;labelInfo&quot;: { # Label information on the file.
1263 &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.
1264 { # Representation of label and label fields.
1265 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
1266 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
1267 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
1268 &quot;A String&quot;,
1269 ],
1270 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
1271 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
1272 &quot;A String&quot;,
1273 ],
1274 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
1275 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
1276 &quot;A String&quot;,
1277 ],
1278 &quot;text&quot;: [ # Only present if `valueType` is `text`.
1279 &quot;A String&quot;,
1280 ],
1281 &quot;user&quot;: [ # Only present if `valueType` is `user`.
1282 { # Information about a Drive user.
1283 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1284 &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.
1285 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1286 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1287 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1288 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1289 },
1290 ],
1291 &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`
1292 },
1293 },
1294 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
1295 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
1296 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
1297 },
1298 ],
1299 },
1300 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
1301 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1302 &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.
1303 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1304 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1305 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1306 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1307 },
1308 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
1309 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
1310 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
1311 },
1312 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
1313 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
1314 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
1315 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
1316 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
1317 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
1318 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
1319 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
1320 &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.
1321 { # Information about a Drive user.
1322 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1323 &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.
1324 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1325 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1326 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1327 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1328 },
1329 ],
1330 &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 a create 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.
1331 &quot;A String&quot;,
1332 ],
1333 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
1334 &quot;A String&quot;,
1335 ],
1336 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
1337 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
1338 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
1339 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
1340 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
1341 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
1342 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
1343 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
1344 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
1345 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
1346 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
1347 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
1348 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
1349 {
1350 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
1351 &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.
1352 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
1353 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
1354 },
1355 ],
1356 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1357 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
1358 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
1359 {
1360 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
1361 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
1362 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
1363 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
1364 },
1365 ],
1366 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
1367 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
1368 },
1369 ],
1370 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
1371 # Entries with null values are cleared in update and copy requests.
1372 &quot;a_key&quot;: &quot;A String&quot;,
1373 },
1374 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
1375 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
1376 &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&#x27;s not populated for Docs Editors or shortcut files.
1377 &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&#x27;s not populated for Docs Editors or shortcut files.
1378 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
1379 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
1380 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
1381 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1382 &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.
1383 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1384 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1385 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1386 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1387 },
1388 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
1389 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
1390 &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.
1391 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
1392 },
1393 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
1394 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
1395 &quot;A String&quot;,
1396 ],
1397 &quot;starred&quot;: True or False, # Whether the user has starred the file.
1398 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
1399 &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) policies. 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.
1400 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
1401 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
1402 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
1403 &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.
1404 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1405 &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.
1406 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1407 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1408 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1409 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1410 },
1411 &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 user.
1412 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
1413 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
1414 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
1415 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
1416 },
1417 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
1418 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
1419 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
1420 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
1421 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
1422 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
1423 }</pre>
1424 </div>
1425
1426 <div class="method">
1427 <code class="details" id="delete">delete(fileId, enforceSingleParent=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
1428 <pre>Permanently deletes a file owned by the user without moving it to the trash. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete). 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.
1429
1430 Args:
1431 fileId: string, The ID of the file. (required)
1432 enforceSingleParent: boolean, Deprecated: If an item isn&#x27;t in a shared drive and its last parent is deleted but the item itself isn&#x27;t, the item will be placed under its owner&#x27;s root.
1433 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1434 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1435 x__xgafv: string, V1 error format.
1436 Allowed values
1437 1 - v1 error format
1438 2 - v2 error format
1439 </pre>
1440 </div>
1441
1442 <div class="method">
1443 <code class="details" id="download">download(fileId, mimeType=None, revisionId=None, x__xgafv=None)</code>
1444 <pre>Downloads the content of a file. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Operations are valid for 24 hours from the time of creation.
1445
1446 Args:
1447 fileId: string, Required. The ID of the file to download. (required)
1448 mimeType: string, Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. For a list of supported MIME types, see [Export MIME types for Google Workspace documents](/workspace/drive/api/guides/ref-export-formats). If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.
1449 revisionId: string, Optional. The revision ID of the file to download. This field can only be set when downloading blob files, Google Docs, and Google Sheets. Returns `INVALID_ARGUMENT` if downloading a specific revision on the file is unsupported.
1450 x__xgafv: string, V1 error format.
1451 Allowed values
1452 1 - v1 error format
1453 2 - v2 error format
1454
1455 Returns:
1456 An object of the form:
1457
1458 { # This resource represents a long-running operation that is the result of a network API call.
1459 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1460 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1461 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1462 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1463 {
1464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1465 },
1466 ],
1467 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1468 },
1469 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1470 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1471 },
1472 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1473 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1474 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1475 },
1476 }</pre>
1477 </div>
1478
1479 <div class="method">
1480 <code class="details" id="emptyTrash">emptyTrash(driveId=None, enforceSingleParent=None, x__xgafv=None)</code>
1481 <pre>Permanently deletes all of the user&#x27;s trashed files. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete).
1482
1483 Args:
1484 driveId: string, If set, empties the trash of the provided shared drive.
1485 enforceSingleParent: boolean, Deprecated: If an item isn&#x27;t in a shared drive and its last parent is deleted but the item itself isn&#x27;t, the item will be placed under its owner&#x27;s root.
1486 x__xgafv: string, V1 error format.
1487 Allowed values
1488 1 - v1 error format
1489 2 - v2 error format
1490 </pre>
1491 </div>
1492
1493 <div class="method">
1494 <code class="details" id="export">export(fileId, mimeType, x__xgafv=None)</code>
1495 <pre>Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Note that the exported content is limited to 10 MB.
1496
1497 Args:
1498 fileId: string, The ID of the file. (required)
1499 mimeType: string, Required. The MIME type of the format requested for this export. For a list of supported MIME types, see [Export MIME types for Google Workspace documents](/workspace/drive/api/guides/ref-export-formats). (required)
1500 x__xgafv: string, V1 error format.
1501 Allowed values
1502 1 - v1 error format
1503 2 - v2 error format
1504 </pre>
1505 </div>
1506
1507 <div class="method">
1508 <code class="details" id="export_media">export_media(fileId, mimeType, x__xgafv=None)</code>
1509 <pre>Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Note that the exported content is limited to 10 MB.
1510
1511 Args:
1512 fileId: string, The ID of the file. (required)
1513 mimeType: string, Required. The MIME type of the format requested for this export. For a list of supported MIME types, see [Export MIME types for Google Workspace documents](/workspace/drive/api/guides/ref-export-formats). (required)
1514 x__xgafv: string, V1 error format.
1515 Allowed values
1516 1 - v1 error format
1517 2 - v2 error format
1518 </pre>
1519 </div>
1520
1521 <div class="method">
1522 <code class="details" id="generateCseToken">generateCseToken(fileId=None, parent=None, x__xgafv=None)</code>
1523 <pre>Generates a CSE token which can be used to create or update CSE files.
1524
1525 Args:
1526 fileId: string, The ID of the file for which the JWT should be generated. If not provided, an id will be generated.
1527 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.
1528 x__xgafv: string, V1 error format.
1529 Allowed values
1530 1 - v1 error format
1531 2 - v2 error format
1532
1533 Returns:
1534 An object of the form:
1535
1536 { # JWT and associated metadata used to generate CSE files.
1537 &quot;currentKaclsId&quot;: &quot;A String&quot;, # The current Key ACL Service (KACLS) ID associated with the JWT.
1538 &quot;currentKaclsName&quot;: &quot;A String&quot;, # Name of the KACLs that the returned KACLs ID points to.
1539 &quot;fileId&quot;: &quot;A String&quot;, # The fileId for which the JWT was generated.
1540 &quot;jwt&quot;: &quot;A String&quot;, # The signed JSON Web Token (JWT) for the file.
1541 &quot;kind&quot;: &quot;A String&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#generateCseTokenResponse&quot;`.
1542 }</pre>
1543 </div>
1544
1545 <div class="method">
1546 <code class="details" id="generateIds">generateIds(count=None, space=None, type=None, x__xgafv=None)</code>
1547 <pre>Generates a set of file IDs which can be provided in create or copy requests. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).
1548
1549 Args:
1550 count: integer, The number of IDs to return.
1551 space: string, The space in which the IDs can be used to create files. Supported values are `drive` and `appDataFolder`. (Default: `drive`.) For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).
1552 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`.) For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).
1553 x__xgafv: string, V1 error format.
1554 Allowed values
1555 1 - v1 error format
1556 2 - v2 error format
1557
1558 Returns:
1559 An object of the form:
1560
1561 { # A list of generated file IDs which can be provided in create requests.
1562 &quot;ids&quot;: [ # The IDs generated for the requesting user in the specified space.
1563 &quot;A String&quot;,
1564 ],
1565 &quot;kind&quot;: &quot;drive#generatedIds&quot;, # Identifies what kind of resource this is. Value: the fixed string `&quot;drive#generatedIds&quot;`.
1566 &quot;space&quot;: &quot;A String&quot;, # The type of file that can be created with these IDs.
1567 }</pre>
1568 </div>
1569
1570 <div class="method">
1571 <code class="details" id="get">get(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
1572 <pre> Gets a file&#x27;s metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). 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/v3/files/export) instead. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).
1573
1574 Args:
1575 fileId: string, The ID of the file. (required)
1576 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.
1577 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
1578 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
1579 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1580 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1581 x__xgafv: string, V1 error format.
1582 Allowed values
1583 1 - v1 error format
1584 2 - v2 error format
1585
1586 Returns:
1587 An object of the form:
1588
1589 { # 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.
1590 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
1591 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
1592 &quot;a_key&quot;: &quot;A String&quot;,
1593 },
1594 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
1595 &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.
1596 &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 isn&#x27;t a folder.
1597 &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 isn&#x27;t a folder. Only populated for items in shared drives.
1598 &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.
1599 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
1600 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
1601 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
1602 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
1603 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
1604 &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 if it&#x27;s not a folder.
1605 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
1606 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
1607 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
1608 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
1609 &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`.
1610 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
1611 &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 isn&#x27;t a folder.
1612 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
1613 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
1614 &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.
1615 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
1616 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
1617 &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 isn&#x27;t a folder. Only populated for items in shared drives.
1618 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
1619 &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 isn&#x27;t 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.
1620 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
1621 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
1622 &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&#x27;s being added.
1623 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
1624 &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&#x27;s being added and the parent that is being removed.
1625 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
1626 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
1627 &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.
1628 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
1629 &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 if it&#x27;s not a folder, can be read.
1630 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
1631 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
1632 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
1633 &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.
1634 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
1635 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
1636 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
1637 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
1638 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
1639 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
1640 },
1641 &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.
1642 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
1643 &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
1644 &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
1645 &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.
1646 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
1647 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
1648 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
1649 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
1650 },
1651 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
1652 },
1653 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
1654 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
1655 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
1656 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
1657 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
1658 },
1659 },
1660 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1661 { # A restriction for accessing the content of the file.
1662 &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.
1663 &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.
1664 &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`.
1665 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly=true`.
1666 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1667 &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.
1668 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1669 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1670 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1671 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1672 },
1673 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1674 &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.
1675 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
1676 },
1677 ],
1678 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
1679 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
1680 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1681 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
1682 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
1683 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
1684 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
1685 },
1686 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
1687 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
1688 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
1689 },
1690 },
1691 &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.
1692 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
1693 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
1694 &quot;a_key&quot;: &quot;A String&quot;,
1695 },
1696 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
1697 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
1698 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
1699 &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.
1700 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1701 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
1702 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
1703 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1704 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
1705 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
1706 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
1707 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
1708 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
1709 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
1710 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
1711 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
1712 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
1713 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
1714 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
1715 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
1716 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
1717 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
1718 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
1719 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
1720 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
1721 },
1722 &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).
1723 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
1724 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1725 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
1726 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
1727 &quot;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
1728 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
1729 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
1730 },
1731 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
1732 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
1733 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
1734 &quot;labelInfo&quot;: { # Label information on the file.
1735 &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.
1736 { # Representation of label and label fields.
1737 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
1738 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
1739 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
1740 &quot;A String&quot;,
1741 ],
1742 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
1743 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
1744 &quot;A String&quot;,
1745 ],
1746 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
1747 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
1748 &quot;A String&quot;,
1749 ],
1750 &quot;text&quot;: [ # Only present if `valueType` is `text`.
1751 &quot;A String&quot;,
1752 ],
1753 &quot;user&quot;: [ # Only present if `valueType` is `user`.
1754 { # Information about a Drive user.
1755 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1756 &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.
1757 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1758 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1759 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1760 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1761 },
1762 ],
1763 &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`
1764 },
1765 },
1766 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
1767 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
1768 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
1769 },
1770 ],
1771 },
1772 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
1773 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1774 &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.
1775 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1776 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1777 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1778 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1779 },
1780 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
1781 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
1782 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
1783 },
1784 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
1785 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
1786 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
1787 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
1788 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
1789 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
1790 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
1791 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
1792 &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.
1793 { # Information about a Drive user.
1794 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1795 &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.
1796 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1797 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1798 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1799 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1800 },
1801 ],
1802 &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 a create 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.
1803 &quot;A String&quot;,
1804 ],
1805 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
1806 &quot;A String&quot;,
1807 ],
1808 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
1809 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
1810 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
1811 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
1812 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
1813 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
1814 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
1815 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
1816 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
1817 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
1818 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
1819 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
1820 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
1821 {
1822 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
1823 &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.
1824 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
1825 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
1826 },
1827 ],
1828 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1829 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
1830 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
1831 {
1832 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
1833 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
1834 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
1835 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
1836 },
1837 ],
1838 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
1839 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
1840 },
1841 ],
1842 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
1843 # Entries with null values are cleared in update and copy requests.
1844 &quot;a_key&quot;: &quot;A String&quot;,
1845 },
1846 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
1847 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
1848 &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&#x27;s not populated for Docs Editors or shortcut files.
1849 &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&#x27;s not populated for Docs Editors or shortcut files.
1850 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
1851 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
1852 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
1853 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1854 &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.
1855 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1856 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1857 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1858 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1859 },
1860 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
1861 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
1862 &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.
1863 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
1864 },
1865 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
1866 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
1867 &quot;A String&quot;,
1868 ],
1869 &quot;starred&quot;: True or False, # Whether the user has starred the file.
1870 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
1871 &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) policies. 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.
1872 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
1873 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
1874 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
1875 &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.
1876 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
1877 &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.
1878 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
1879 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
1880 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
1881 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
1882 },
1883 &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 user.
1884 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
1885 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
1886 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
1887 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
1888 },
1889 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
1890 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
1891 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
1892 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
1893 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
1894 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
1895 }</pre>
1896 </div>
1897
1898 <div class="method">
1899 <code class="details" id="get_media">get_media(fileId, acknowledgeAbuse=None, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
1900 <pre> Gets a file&#x27;s metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). 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/v3/files/export) instead. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).
1901
1902 Args:
1903 fileId: string, The ID of the file. (required)
1904 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.
1905 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
1906 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
1907 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1908 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1909 x__xgafv: string, V1 error format.
1910 Allowed values
1911 1 - v1 error format
1912 2 - v2 error format
1913
1914 Returns:
1915 The media object as a string.
1916
1917 </pre>
1918 </div>
1919
1920 <div class="method">
1921 <code class="details" id="list">list(corpora=None, corpus=None, driveId=None, includeItemsFromAllDrives=None, includeLabels=None, includePermissionsForView=None, includeTeamDriveItems=None, orderBy=None, pageSize=None, pageToken=None, q=None, spaces=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None, x__xgafv=None)</code>
1922 <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.
1923
1924 Args:
1925 corpora: string, Specifies a collection of items (files or documents) to which the query applies. Supported items include: * `user` * `domain` * `drive` * `allDrives` Prefer `user` or `drive` to `allDrives` for efficiency. By default, corpora is set to `user`. However, this can change depending on the filter set through the `q` parameter. For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).
1926 corpus: string, Deprecated: The source of files to list. Use `corpora` instead.
1927 Allowed values
1928 domain - Files shared to the user&#x27;s domain.
1929 user - Files owned by or shared to the user.
1930 driveId: string, ID of the shared drive to search.
1931 includeItemsFromAllDrives: boolean, Whether both My Drive and shared drive items should be included in results.
1932 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
1933 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
1934 includeTeamDriveItems: boolean, Deprecated: Use `includeItemsFromAllDrives` instead.
1935 orderBy: string, A comma-separated list of sort keys. Valid keys are: * `createdTime`: When the file was created. Avoid using this key for queries on large item collections as it might result in timeouts or other issues. For time-related sorting on large item collections, use `modifiedTime desc` instead. * `folder`: The folder ID. This field is sorted using alphabetical ordering. * `modifiedByMeTime`: The last time the file was modified by the user. * `modifiedTime`: The last time the file was modified by anyone. * `name`: The name of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The name of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. * `quotaBytesUsed`: The number of storage quota bytes used by the file. * `recency`: The most recent timestamp from the file&#x27;s date-time fields. * `sharedWithMeTime`: When the file was shared with the user, if applicable. * `starred`: Whether the user has starred the file. * `viewedByMeTime`: The last time the file was viewed by the user. Each key sorts ascending by default, but can be reversed with the `desc` modifier. Example usage: `?orderBy=folder,modifiedTime desc,name`.
1936 pageSize: integer, The maximum number of files to return per page. Pages may be partial or empty even before reaching the end of the file list. If unspecified, at most 100 files are returned for shared drives, and the entire list of files for non-shared drives. The maximum value is 100; values above 100 are changed to 100.
1937 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.
1938 q: string, A query for filtering the file results. For supported syntax, see [Search for files and folders](/workspace/drive/api/guides/search-files).
1939 spaces: string, A comma-separated list of spaces to query within the corpora. Supported values are `drive` and `appDataFolder`. For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).
1940 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
1941 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
1942 teamDriveId: string, Deprecated: Use `driveId` instead.
1943 x__xgafv: string, V1 error format.
1944 Allowed values
1945 1 - v1 error format
1946 2 - v2 error format
1947
1948 Returns:
1949 An object of the form:
1950
1951 { # A list of files.
1952 &quot;files&quot;: [ # The list of files. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.
1953 { # 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.
1954 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
1955 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
1956 &quot;a_key&quot;: &quot;A String&quot;,
1957 },
1958 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
1959 &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.
1960 &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 isn&#x27;t a folder.
1961 &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 isn&#x27;t a folder. Only populated for items in shared drives.
1962 &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.
1963 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
1964 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
1965 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
1966 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
1967 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
1968 &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 if it&#x27;s not a folder.
1969 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
1970 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
1971 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
1972 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
1973 &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`.
1974 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
1975 &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 isn&#x27;t a folder.
1976 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
1977 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
1978 &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.
1979 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
1980 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
1981 &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 isn&#x27;t a folder. Only populated for items in shared drives.
1982 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
1983 &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 isn&#x27;t 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.
1984 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
1985 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
1986 &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&#x27;s being added.
1987 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
1988 &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&#x27;s being added and the parent that is being removed.
1989 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
1990 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
1991 &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.
1992 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
1993 &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 if it&#x27;s not a folder, can be read.
1994 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
1995 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
1996 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
1997 &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.
1998 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
1999 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
2000 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
2001 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
2002 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
2003 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
2004 },
2005 &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.
2006 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
2007 &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
2008 &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
2009 &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.
2010 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
2011 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
2012 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
2013 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
2014 },
2015 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
2016 },
2017 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
2018 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
2019 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
2020 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
2021 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
2022 },
2023 },
2024 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
2025 { # A restriction for accessing the content of the file.
2026 &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.
2027 &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.
2028 &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`.
2029 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly=true`.
2030 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2031 &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.
2032 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2033 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2034 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2035 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2036 },
2037 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
2038 &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.
2039 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
2040 },
2041 ],
2042 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
2043 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
2044 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
2045 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
2046 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
2047 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
2048 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
2049 },
2050 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
2051 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
2052 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
2053 },
2054 },
2055 &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.
2056 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
2057 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
2058 &quot;a_key&quot;: &quot;A String&quot;,
2059 },
2060 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
2061 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
2062 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
2063 &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.
2064 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
2065 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
2066 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
2067 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
2068 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
2069 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
2070 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
2071 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
2072 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
2073 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
2074 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
2075 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
2076 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
2077 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
2078 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
2079 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
2080 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
2081 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
2082 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
2083 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
2084 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
2085 },
2086 &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).
2087 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
2088 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
2089 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
2090 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
2091 &quot;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
2092 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
2093 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
2094 },
2095 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
2096 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
2097 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
2098 &quot;labelInfo&quot;: { # Label information on the file.
2099 &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.
2100 { # Representation of label and label fields.
2101 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2102 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2103 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2104 &quot;A String&quot;,
2105 ],
2106 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2107 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2108 &quot;A String&quot;,
2109 ],
2110 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
2111 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2112 &quot;A String&quot;,
2113 ],
2114 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2115 &quot;A String&quot;,
2116 ],
2117 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2118 { # Information about a Drive user.
2119 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2120 &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.
2121 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2122 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2123 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2124 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2125 },
2126 ],
2127 &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`
2128 },
2129 },
2130 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2131 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
2132 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2133 },
2134 ],
2135 },
2136 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
2137 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2138 &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.
2139 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2140 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2141 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2142 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2143 },
2144 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
2145 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
2146 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
2147 },
2148 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
2149 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
2150 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
2151 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
2152 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
2153 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
2154 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
2155 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
2156 &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.
2157 { # Information about a Drive user.
2158 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2159 &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.
2160 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2161 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2162 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2163 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2164 },
2165 ],
2166 &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 a create 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.
2167 &quot;A String&quot;,
2168 ],
2169 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
2170 &quot;A String&quot;,
2171 ],
2172 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
2173 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
2174 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
2175 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
2176 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
2177 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
2178 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
2179 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
2180 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
2181 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
2182 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
2183 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
2184 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
2185 {
2186 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
2187 &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.
2188 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
2189 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
2190 },
2191 ],
2192 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2193 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
2194 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
2195 {
2196 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
2197 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
2198 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
2199 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
2200 },
2201 ],
2202 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
2203 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
2204 },
2205 ],
2206 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
2207 # Entries with null values are cleared in update and copy requests.
2208 &quot;a_key&quot;: &quot;A String&quot;,
2209 },
2210 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
2211 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
2212 &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&#x27;s not populated for Docs Editors or shortcut files.
2213 &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&#x27;s not populated for Docs Editors or shortcut files.
2214 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
2215 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
2216 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
2217 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2218 &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.
2219 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2220 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2221 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2222 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2223 },
2224 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
2225 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
2226 &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.
2227 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
2228 },
2229 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
2230 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
2231 &quot;A String&quot;,
2232 ],
2233 &quot;starred&quot;: True or False, # Whether the user has starred the file.
2234 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
2235 &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) policies. 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.
2236 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
2237 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
2238 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
2239 &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.
2240 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2241 &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.
2242 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2243 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2244 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2245 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2246 },
2247 &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 user.
2248 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
2249 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
2250 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
2251 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
2252 },
2253 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
2254 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
2255 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
2256 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
2257 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
2258 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
2259 },
2260 ],
2261 &quot;incompleteSearch&quot;: True or False, # Whether the search process was incomplete. If true, then some search results might be missing, since all documents were not searched. This can occur when searching multiple drives with the `allDrives` corpora, but all corpora couldn&#x27;t be searched. When this happens, it&#x27;s suggested that clients narrow their query by choosing a different corpus such as `user` or `drive`.
2262 &quot;kind&quot;: &quot;drive#fileList&quot;, # Identifies what kind of resource this is. Value: the fixed string `&quot;drive#fileList&quot;`.
2263 &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. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.
2264 }</pre>
2265 </div>
2266
2267 <div class="method">
2268 <code class="details" id="listLabels">listLabels(fileId, maxResults=None, pageToken=None, x__xgafv=None)</code>
2269 <pre>Lists the labels on a file. For more information, see [List labels on a file](https://developers.google.com/workspace/drive/api/guides/list-labels).
2270
2271 Args:
2272 fileId: string, The ID for the file. (required)
2273 maxResults: integer, The maximum number of labels to return per page. When not set, defaults to 100.
2274 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.
2275 x__xgafv: string, V1 error format.
2276 Allowed values
2277 1 - v1 error format
2278 2 - v2 error format
2279
2280 Returns:
2281 An object of the form:
2282
2283 { # A list of labels applied to a file.
2284 &quot;kind&quot;: &quot;A String&quot;, # This is always `&quot;drive#labelList&quot;`.
2285 &quot;labels&quot;: [ # The list of labels.
2286 { # Representation of label and label fields.
2287 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2288 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2289 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2290 &quot;A String&quot;,
2291 ],
2292 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2293 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2294 &quot;A String&quot;,
2295 ],
2296 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
2297 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2298 &quot;A String&quot;,
2299 ],
2300 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2301 &quot;A String&quot;,
2302 ],
2303 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2304 { # Information about a Drive user.
2305 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2306 &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.
2307 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2308 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2309 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2310 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2311 },
2312 ],
2313 &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`
2314 },
2315 },
2316 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2317 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
2318 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2319 },
2320 ],
2321 &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. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.
2322 }</pre>
2323 </div>
2324
2325 <div class="method">
2326 <code class="details" id="listLabels_next">listLabels_next()</code>
2327 <pre>Retrieves the next page of results.
2328
2329 Args:
2330 previous_request: The request for the previous page. (required)
2331 previous_response: The response from the request for the previous page. (required)
2332
2333 Returns:
2334 A request object that you can call &#x27;execute()&#x27; on to request the next
2335 page. Returns None if there are no more items in the collection.
2336 </pre>
2337 </div>
2338
2339 <div class="method">
2340 <code class="details" id="list_next">list_next()</code>
2341 <pre>Retrieves the next page of results.
2342
2343 Args:
2344 previous_request: The request for the previous page. (required)
2345 previous_response: The response from the request for the previous page. (required)
2346
2347 Returns:
2348 A request object that you can call &#x27;execute()&#x27; on to request the next
2349 page. Returns None if there are no more items in the collection.
2350 </pre>
2351 </div>
2352
2353 <div class="method">
2354 <code class="details" id="modifyLabels">modifyLabels(fileId, body=None, x__xgafv=None)</code>
2355 <pre>Modifies the set of labels applied to a file. For more information, see [Set a label field on a file](https://developers.google.com/workspace/drive/api/guides/set-label). Returns a list of the labels that were added or modified.
2356
2357 Args:
2358 fileId: string, The ID of the file to which the labels belong. (required)
2359 body: object, The request body.
2360 The object takes the form of:
2361
2362 { # 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.
2363 &quot;kind&quot;: &quot;A String&quot;, # This is always `&quot;drive#modifyLabelsRequest&quot;`.
2364 &quot;labelModifications&quot;: [ # The list of modifications to apply to the labels on the file.
2365 { # 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.
2366 &quot;fieldModifications&quot;: [ # The list of modifications to this label&#x27;s fields.
2367 { # A modification to a label&#x27;s field.
2368 &quot;fieldId&quot;: &quot;A String&quot;, # The ID of the field to be modified.
2369 &quot;kind&quot;: &quot;A String&quot;, # This is always `&quot;drive#labelFieldModification&quot;`.
2370 &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.
2371 &quot;A String&quot;,
2372 ],
2373 &quot;setIntegerValues&quot;: [ # Replaces the value of an `integer` field with these new values.
2374 &quot;A String&quot;,
2375 ],
2376 &quot;setSelectionValues&quot;: [ # Replaces a `selection` field with these new values.
2377 &quot;A String&quot;,
2378 ],
2379 &quot;setTextValues&quot;: [ # Sets the value of a `text` field.
2380 &quot;A String&quot;,
2381 ],
2382 &quot;setUserValues&quot;: [ # Replaces a `user` field with these new values. The values must be a valid email addresses.
2383 &quot;A String&quot;,
2384 ],
2385 &quot;unsetValues&quot;: True or False, # Unsets the values for this field.
2386 },
2387 ],
2388 &quot;kind&quot;: &quot;A String&quot;, # This is always `&quot;drive#labelModification&quot;`.
2389 &quot;labelId&quot;: &quot;A String&quot;, # The ID of the label to modify.
2390 &quot;removeLabel&quot;: True or False, # If true, the label will be removed from the file.
2391 },
2392 ],
2393 }
2394
2395 x__xgafv: string, V1 error format.
2396 Allowed values
2397 1 - v1 error format
2398 2 - v2 error format
2399
2400 Returns:
2401 An object of the form:
2402
2403 { # Response to a `ModifyLabels` request. This contains only those labels which were added or updated by the request.
2404 &quot;kind&quot;: &quot;A String&quot;, # This is always `&quot;drive#modifyLabelsResponse&quot;`.
2405 &quot;modifiedLabels&quot;: [ # The list of labels which were added or updated by the request.
2406 { # Representation of label and label fields.
2407 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2408 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2409 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2410 &quot;A String&quot;,
2411 ],
2412 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2413 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2414 &quot;A String&quot;,
2415 ],
2416 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
2417 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2418 &quot;A String&quot;,
2419 ],
2420 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2421 &quot;A String&quot;,
2422 ],
2423 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2424 { # Information about a Drive user.
2425 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2426 &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.
2427 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2428 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2429 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2430 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2431 },
2432 ],
2433 &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`
2434 },
2435 },
2436 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2437 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
2438 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2439 },
2440 ],
2441 }</pre>
2442 </div>
2443
2444 <div class="method">
2445 <code class="details" id="update">update(fileId, addParents=None, body=None, enforceSingleParent=None, includeLabels=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, removeParents=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None, x__xgafv=None)</code>
2446 <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).
2447
2448 Args:
2449 fileId: string, The ID of the file. (required)
2450 body: object, The request body.
2451 The object takes the form of:
2452
2453 { # 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.
2454 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
2455 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
2456 &quot;a_key&quot;: &quot;A String&quot;,
2457 },
2458 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
2459 &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.
2460 &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 isn&#x27;t a folder.
2461 &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 isn&#x27;t a folder. Only populated for items in shared drives.
2462 &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.
2463 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
2464 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
2465 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
2466 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
2467 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
2468 &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 if it&#x27;s not a folder.
2469 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
2470 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
2471 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
2472 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
2473 &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`.
2474 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
2475 &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 isn&#x27;t a folder.
2476 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
2477 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
2478 &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.
2479 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
2480 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
2481 &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 isn&#x27;t a folder. Only populated for items in shared drives.
2482 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
2483 &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 isn&#x27;t 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.
2484 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
2485 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
2486 &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&#x27;s being added.
2487 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
2488 &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&#x27;s being added and the parent that is being removed.
2489 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
2490 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
2491 &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.
2492 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
2493 &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 if it&#x27;s not a folder, can be read.
2494 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
2495 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
2496 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
2497 &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.
2498 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
2499 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
2500 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
2501 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
2502 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
2503 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
2504 },
2505 &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.
2506 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
2507 &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
2508 &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
2509 &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.
2510 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
2511 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
2512 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
2513 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
2514 },
2515 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
2516 },
2517 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
2518 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
2519 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
2520 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
2521 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
2522 },
2523 },
2524 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
2525 { # A restriction for accessing the content of the file.
2526 &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.
2527 &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.
2528 &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`.
2529 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly=true`.
2530 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2531 &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.
2532 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2533 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2534 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2535 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2536 },
2537 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
2538 &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.
2539 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
2540 },
2541 ],
2542 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
2543 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
2544 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
2545 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
2546 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
2547 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
2548 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
2549 },
2550 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
2551 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
2552 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
2553 },
2554 },
2555 &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.
2556 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
2557 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
2558 &quot;a_key&quot;: &quot;A String&quot;,
2559 },
2560 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
2561 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
2562 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
2563 &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.
2564 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
2565 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
2566 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
2567 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
2568 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
2569 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
2570 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
2571 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
2572 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
2573 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
2574 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
2575 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
2576 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
2577 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
2578 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
2579 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
2580 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
2581 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
2582 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
2583 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
2584 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
2585 },
2586 &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).
2587 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
2588 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
2589 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
2590 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
2591 &quot;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
2592 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
2593 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
2594 },
2595 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
2596 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
2597 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
2598 &quot;labelInfo&quot;: { # Label information on the file.
2599 &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.
2600 { # Representation of label and label fields.
2601 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2602 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2603 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2604 &quot;A String&quot;,
2605 ],
2606 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2607 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2608 &quot;A String&quot;,
2609 ],
2610 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
2611 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2612 &quot;A String&quot;,
2613 ],
2614 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2615 &quot;A String&quot;,
2616 ],
2617 &quot;user&quot;: [ # Only present if `valueType` is `user`.
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;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2622 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2623 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2624 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2625 },
2626 ],
2627 &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`
2628 },
2629 },
2630 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2631 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
2632 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2633 },
2634 ],
2635 },
2636 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
2637 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2638 &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.
2639 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2640 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2641 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2642 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2643 },
2644 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
2645 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
2646 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
2647 },
2648 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
2649 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
2650 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
2651 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
2652 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
2653 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
2654 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
2655 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
2656 &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.
2657 { # Information about a Drive user.
2658 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2659 &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.
2660 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2661 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2662 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2663 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2664 },
2665 ],
2666 &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 a create 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.
2667 &quot;A String&quot;,
2668 ],
2669 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
2670 &quot;A String&quot;,
2671 ],
2672 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
2673 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
2674 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
2675 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
2676 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
2677 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
2678 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
2679 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
2680 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
2681 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
2682 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
2683 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
2684 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
2685 {
2686 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
2687 &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.
2688 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
2689 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
2690 },
2691 ],
2692 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2693 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
2694 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
2695 {
2696 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
2697 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
2698 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
2699 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
2700 },
2701 ],
2702 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
2703 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
2704 },
2705 ],
2706 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
2707 # Entries with null values are cleared in update and copy requests.
2708 &quot;a_key&quot;: &quot;A String&quot;,
2709 },
2710 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
2711 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
2712 &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&#x27;s not populated for Docs Editors or shortcut files.
2713 &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&#x27;s not populated for Docs Editors or shortcut files.
2714 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
2715 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
2716 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
2717 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2718 &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.
2719 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2720 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2721 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2722 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2723 },
2724 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
2725 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
2726 &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.
2727 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
2728 },
2729 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
2730 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
2731 &quot;A String&quot;,
2732 ],
2733 &quot;starred&quot;: True or False, # Whether the user has starred the file.
2734 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
2735 &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) policies. 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.
2736 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
2737 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
2738 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
2739 &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.
2740 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2741 &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.
2742 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2743 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2744 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2745 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2746 },
2747 &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 user.
2748 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
2749 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
2750 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
2751 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
2752 },
2753 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
2754 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
2755 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
2756 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
2757 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
2758 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
2759 }
2760
2761 addParents: string, A comma-separated list of parent IDs to add.
2762 enforceSingleParent: boolean, Deprecated: Adding files to multiple folders is no longer supported. Use shortcuts instead.
2763 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
2764 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
2765 keepRevisionForever: boolean, Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
2766 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
2767 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
2768 ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
2769 removeParents: string, A comma-separated list of parent IDs to remove.
2770 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
2771 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
2772 useContentAsIndexableText: boolean, Whether to use the uploaded content as indexable text.
2773 x__xgafv: string, V1 error format.
2774 Allowed values
2775 1 - v1 error format
2776 2 - v2 error format
2777
2778 Returns:
2779 An object of the form:
2780
2781 { # 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.
2782 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
2783 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
2784 &quot;a_key&quot;: &quot;A String&quot;,
2785 },
2786 &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. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
2787 &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.
2788 &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 isn&#x27;t a folder.
2789 &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 isn&#x27;t a folder. Only populated for items in shared drives.
2790 &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.
2791 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
2792 &quot;canChangeItemDownloadRestriction&quot;: True or False, # Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
2793 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
2794 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated: Output only.
2795 &quot;canComment&quot;: True or False, # Output only. Whether the current user can comment on this file.
2796 &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 if it&#x27;s not a folder.
2797 &quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
2798 &quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
2799 &quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
2800 &quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
2801 &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`.
2802 &quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
2803 &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 isn&#x27;t a folder.
2804 &quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
2805 &quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
2806 &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.
2807 &quot;canModifyLabels&quot;: True or False, # Output only. Whether the current user can modify the labels on the file.
2808 &quot;canModifyOwnerContentRestriction&quot;: True or False, # Output only. Whether the current user can add or modify content restrictions which are owner restricted.
2809 &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 isn&#x27;t a folder. Only populated for items in shared drives.
2810 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
2811 &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 isn&#x27;t 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.
2812 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
2813 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
2814 &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&#x27;s being added.
2815 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
2816 &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&#x27;s being added and the parent that is being removed.
2817 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
2818 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
2819 &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.
2820 &quot;canReadLabels&quot;: True or False, # Output only. Whether the current user can read the labels on the file.
2821 &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 if it&#x27;s not a folder, can be read.
2822 &quot;canReadTeamDrive&quot;: True or False, # Deprecated: Output only. Use `canReadDrive` instead.
2823 &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 isn&#x27;t a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
2824 &quot;canRemoveContentRestriction&quot;: True or False, # Output only. Whether there&#x27;s a content restriction on the file that can be removed by the current user.
2825 &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.
2826 &quot;canRename&quot;: True or False, # Output only. Whether the current user can rename this file.
2827 &quot;canShare&quot;: True or False, # Output only. Whether the current user can modify the sharing settings for this file.
2828 &quot;canStartApproval&quot;: True or False, # Whether the current user can start an approval on the file.
2829 &quot;canTrash&quot;: True or False, # Output only. Whether the current user can move this file to trash.
2830 &quot;canTrashChildren&quot;: True or False, # Output only. Whether the current user can trash children of this folder. This is `false` when the item isn&#x27;t a folder. Only populated for items in shared drives.
2831 &quot;canUntrash&quot;: True or False, # Output only. Whether the current user can restore this file from trash.
2832 },
2833 &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.
2834 &quot;decryptionMetadata&quot;: { # Representation of the CSE DecryptionMetadata. # The metadata used for client-side operations.
2835 &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
2836 &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
2837 &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.
2838 &quot;kaclsId&quot;: &quot;A String&quot;, # The ID of the KACLS (Key ACL Service) used to encrypt the file.
2839 &quot;kaclsName&quot;: &quot;A String&quot;, # The name of the KACLS (Key ACL Service) used to encrypt the file.
2840 &quot;keyFormat&quot;: &quot;A String&quot;, # Key format for the unwrapped key. Must be `tinkAesGcmKey`.
2841 &quot;wrappedKey&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
2842 },
2843 &quot;encryptionState&quot;: &quot;A String&quot;, # The encryption state of the file. The values expected here are: - encrypted - unencrypted
2844 },
2845 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
2846 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
2847 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
2848 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
2849 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
2850 },
2851 },
2852 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
2853 { # A restriction for accessing the content of the file.
2854 &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.
2855 &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.
2856 &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`.
2857 &quot;restrictingUser&quot;: { # Information about a Drive user. # Output only. The user who set the content restriction. Only populated if `readOnly=true`.
2858 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2859 &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.
2860 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2861 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2862 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2863 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2864 },
2865 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
2866 &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.
2867 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
2868 },
2869 ],
2870 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file should be disabled for readers and commenters.
2871 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
2872 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
2873 &quot;downloadRestrictions&quot;: { # Download restrictions applied to the file. # Download restrictions applied on the file.
2874 &quot;effectiveDownloadRestrictionWithContext&quot;: { # A restriction for copy and download of the file. # Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
2875 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
2876 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
2877 },
2878 &quot;itemDownloadRestriction&quot;: { # A restriction for copy and download of the file. # The download restriction of the file applied directly by the owner or organizer. This doesn&#x27;t take into account shared drive settings or DLP rules.
2879 &quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
2880 &quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
2881 },
2882 },
2883 &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.
2884 &quot;explicitlyTrashed&quot;: True or False, # Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
2885 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
2886 &quot;a_key&quot;: &quot;A String&quot;,
2887 },
2888 &quot;fileExtension&quot;: &quot;A String&quot;, # Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
2889 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
2890 &quot;fullFileExtension&quot;: &quot;A String&quot;, # Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it&#x27;s not cleared if the new name doesn&#x27;t contain a valid extension.
2891 &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.
2892 &quot;hasThumbnail&quot;: True or False, # Output only. Whether this file has a thumbnail. This doesn&#x27;t indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
2893 &quot;headRevisionId&quot;: &quot;A String&quot;, # Output only. The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
2894 &quot;iconLink&quot;: &quot;A String&quot;, # Output only. A static, unauthenticated link to the file&#x27;s icon.
2895 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
2896 &quot;imageMediaMetadata&quot;: { # Output only. Additional metadata about image media, if available.
2897 &quot;aperture&quot;: 3.14, # Output only. The aperture used to create the photo (f-number).
2898 &quot;cameraMake&quot;: &quot;A String&quot;, # Output only. The make of the camera used to create the photo.
2899 &quot;cameraModel&quot;: &quot;A String&quot;, # Output only. The model of the camera used to create the photo.
2900 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. The color space of the photo.
2901 &quot;exposureBias&quot;: 3.14, # Output only. The exposure bias of the photo (APEX value).
2902 &quot;exposureMode&quot;: &quot;A String&quot;, # Output only. The exposure mode used to create the photo.
2903 &quot;exposureTime&quot;: 3.14, # Output only. The length of the exposure, in seconds.
2904 &quot;flashUsed&quot;: True or False, # Output only. Whether a flash was used to create the photo.
2905 &quot;focalLength&quot;: 3.14, # Output only. The focal length used to create the photo, in millimeters.
2906 &quot;height&quot;: 42, # Output only. The height of the image in pixels.
2907 &quot;isoSpeed&quot;: 42, # Output only. The ISO speed used to create the photo.
2908 &quot;lens&quot;: &quot;A String&quot;, # Output only. The lens used to create the photo.
2909 &quot;location&quot;: { # Output only. Geographic location information stored in the image.
2910 &quot;altitude&quot;: 3.14, # Output only. The altitude stored in the image.
2911 &quot;latitude&quot;: 3.14, # Output only. The latitude stored in the image.
2912 &quot;longitude&quot;: 3.14, # Output only. The longitude stored in the image.
2913 },
2914 &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).
2915 &quot;meteringMode&quot;: &quot;A String&quot;, # Output only. The metering mode used to create the photo.
2916 &quot;rotation&quot;: 42, # Output only. The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
2917 &quot;sensor&quot;: &quot;A String&quot;, # Output only. The type of sensor used to create the photo.
2918 &quot;subjectDistance&quot;: 42, # Output only. The distance to the subject of the photo, in meters.
2919 &quot;time&quot;: &quot;A String&quot;, # Output only. The date and time the photo was taken (EXIF DateTime).
2920 &quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
2921 &quot;width&quot;: 42, # Output only. The width of the image in pixels.
2922 },
2923 &quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
2924 &quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
2925 &quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
2926 &quot;labelInfo&quot;: { # Label information on the file.
2927 &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.
2928 { # Representation of label and label fields.
2929 &quot;fields&quot;: { # A map of the fields on the label, keyed by the field&#x27;s ID.
2930 &quot;a_key&quot;: { # Representation of field, which is a typed key-value pair.
2931 &quot;dateString&quot;: [ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2932 &quot;A String&quot;,
2933 ],
2934 &quot;id&quot;: &quot;A String&quot;, # The identifier of this label field.
2935 &quot;integer&quot;: [ # Only present if `valueType` is `integer`.
2936 &quot;A String&quot;,
2937 ],
2938 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#labelField.
2939 &quot;selection&quot;: [ # Only present if `valueType` is `selection`
2940 &quot;A String&quot;,
2941 ],
2942 &quot;text&quot;: [ # Only present if `valueType` is `text`.
2943 &quot;A String&quot;,
2944 ],
2945 &quot;user&quot;: [ # Only present if `valueType` is `user`.
2946 { # Information about a Drive user.
2947 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2948 &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.
2949 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2950 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2951 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2952 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2953 },
2954 ],
2955 &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`
2956 },
2957 },
2958 &quot;id&quot;: &quot;A String&quot;, # The ID of the label.
2959 &quot;kind&quot;: &quot;A String&quot;, # This is always drive#label
2960 &quot;revisionId&quot;: &quot;A String&quot;, # The revision ID of the label.
2961 },
2962 ],
2963 },
2964 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # Output only. The last user to modify the file. This field is only populated when the last modification was performed by a signed-in user.
2965 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2966 &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.
2967 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2968 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2969 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2970 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2971 },
2972 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
2973 &quot;securityUpdateEligible&quot;: True or False, # Output only. Whether the file is eligible for security update.
2974 &quot;securityUpdateEnabled&quot;: True or False, # Output only. Whether the security update is enabled for this file.
2975 },
2976 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
2977 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
2978 &quot;modifiedByMe&quot;: True or False, # Output only. Whether the file has been modified by this user.
2979 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
2980 &quot;modifiedTime&quot;: &quot;A String&quot;, # he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
2981 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This isn&#x27;t necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
2982 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
2983 &quot;ownedByMe&quot;: True or False, # Output only. Whether the user owns the file. Not populated for items in shared drives.
2984 &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.
2985 { # Information about a Drive user.
2986 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
2987 &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.
2988 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
2989 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
2990 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
2991 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
2992 },
2993 ],
2994 &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 a create 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.
2995 &quot;A String&quot;,
2996 ],
2997 &quot;permissionIds&quot;: [ # Output only. List of permission IDs for users with access to this file.
2998 &quot;A String&quot;,
2999 ],
3000 &quot;permissions&quot;: [ # Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
3001 { # A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). 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.
3002 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
3003 &quot;deleted&quot;: True or False, # Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
3004 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User&#x27;s full name, as defined for their Google Account, such as &quot;Dana A.&quot; * `group` - Name of the Google Group, such as &quot;The Company Administrators.&quot; * `domain` - String domain name, such as &quot;cymbalgroup.com.&quot; * `anyone` - No `displayName` is present.
3005 &quot;domain&quot;: &quot;A String&quot;, # Output only. The domain to which this permission refers.
3006 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user or group to which this permission refers.
3007 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
3008 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
3009 &quot;inheritedPermissionsDisabled&quot;: True or False, # When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
3010 &quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
3011 &quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren&#x27;t in a shared drive.
3012 &quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or are directly on this item.
3013 {
3014 &quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
3015 &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.
3016 &quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. Supported values include: * `file` * `member`
3017 &quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
3018 },
3019 ],
3020 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
3021 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
3022 &quot;teamDrivePermissionDetails&quot;: [ # Output only. Deprecated: Output only. Use `permissionDetails` instead.
3023 {
3024 &quot;inherited&quot;: True or False, # Deprecated: Output only. Use `permissionDetails/inherited` instead.
3025 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
3026 &quot;role&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/role` instead.
3027 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `permissionDetails/permissionType` instead.
3028 },
3029 ],
3030 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
3031 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission&#x27;s role is `publishedReader`. * `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. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
3032 },
3033 ],
3034 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
3035 # Entries with null values are cleared in update and copy requests.
3036 &quot;a_key&quot;: &quot;A String&quot;,
3037 },
3038 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
3039 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. A key needed to access the item via a shared link.
3040 &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&#x27;s not populated for Docs Editors or shortcut files.
3041 &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&#x27;s not populated for Docs Editors or shortcut files.
3042 &quot;shared&quot;: True or False, # Output only. Whether the file has been shared. Not populated for items in shared drives.
3043 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
3044 &quot;sharingUser&quot;: { # Information about a Drive user. # Output only. The user who shared the file with the requesting user, if applicable.
3045 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3046 &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.
3047 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3048 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
3049 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3050 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
3051 },
3052 &quot;shortcutDetails&quot;: { # Information about a shortcut file.
3053 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
3054 &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.
3055 &quot;targetResourceKey&quot;: &quot;A String&quot;, # Output only. The `resourceKey` for the target file.
3056 },
3057 &quot;size&quot;: &quot;A String&quot;, # Output only. Size in bytes of blobs and Google Workspace editor files. Won&#x27;t be populated for files that have no size, like shortcuts and folders.
3058 &quot;spaces&quot;: [ # Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
3059 &quot;A String&quot;,
3060 ],
3061 &quot;starred&quot;: True or False, # Whether the user has starred the file.
3062 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated: Output only. Use `driveId` instead.
3063 &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) policies. 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.
3064 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # Output only. The thumbnail version for use in thumbnail cache invalidation.
3065 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner&#x27;s trash until it&#x27;s permanently deleted.
3066 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
3067 &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.
3068 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
3069 &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.
3070 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
3071 &quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
3072 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
3073 &quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
3074 },
3075 &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 user.
3076 &quot;videoMediaMetadata&quot;: { # Output only. Additional metadata about video media. This may not be available immediately upon upload.
3077 &quot;durationMillis&quot;: &quot;A String&quot;, # Output only. The duration of the video in milliseconds.
3078 &quot;height&quot;: 42, # Output only. The height of the video in pixels.
3079 &quot;width&quot;: 42, # Output only. The width of the video in pixels.
3080 },
3081 &quot;viewedByMe&quot;: True or False, # Output only. Whether the file has been viewed by this user.
3082 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
3083 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated: Use `copyRequiresWriterPermission` instead.
3084 &quot;webContentLink&quot;: &quot;A String&quot;, # Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
3085 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
3086 &quot;writersCanShare&quot;: True or False, # Whether users with only `writer` permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
3087 }</pre>
3088 </div>
3089
3090 <div class="method">
3091 <code class="details" id="watch">watch(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None, x__xgafv=None)</code>
3092 <pre>Subscribes to changes to a file. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).
3093
3094 Args:
3095 fileId: string, The ID of the file. (required)
3096 body: object, The request body.
3097 The object takes the form of:
3098
3099 { # A notification channel used to watch for resource changes.
3100 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
3101 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
3102 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
3103 &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`.
3104 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
3105 &quot;a_key&quot;: &quot;A String&quot;,
3106 },
3107 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
3108 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
3109 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
3110 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
3111 &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;.
3112 }
3113
3114 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.
3115 includeLabels: string, A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
3116 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only `published` is supported.
3117 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
3118 supportsTeamDrives: boolean, Deprecated: Use `supportsAllDrives` instead.
3119 x__xgafv: string, V1 error format.
3120 Allowed values
3121 1 - v1 error format
3122 2 - v2 error format
3123
3124 Returns:
3125 An object of the form:
3126
3127 { # A notification channel used to watch for resource changes.
3128 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
3129 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
3130 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
3131 &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`.
3132 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
3133 &quot;a_key&quot;: &quot;A String&quot;,
3134 },
3135 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
3136 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
3137 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
3138 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
3139 &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;.
3140 }</pre>
3141 </div>
3142
3143 </body></html>