Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: discovery/googleapis/drive__v3.json

Issue 2734843002: Api-roll 46: 2017-03-06 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/drive__v2.json ('k') | discovery/googleapis/firebasedynamiclinks__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/drive": { 5 "https://www.googleapis.com/auth/drive": {
6 "description": "View and manage the files in your Google Dri ve" 6 "description": "View and manage the files in your Google Dri ve"
7 }, 7 },
8 "https://www.googleapis.com/auth/drive.appdata": { 8 "https://www.googleapis.com/auth/drive.appdata": {
9 "description": "View and manage its own configuration data i n your Google Drive" 9 "description": "View and manage its own configuration data i n your Google Drive"
10 }, 10 },
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 } 29 }
30 } 30 }
31 }, 31 },
32 "basePath": "/drive/v3/", 32 "basePath": "/drive/v3/",
33 "baseUrl": "https://www.googleapis.com/drive/v3/", 33 "baseUrl": "https://www.googleapis.com/drive/v3/",
34 "batchPath": "batch", 34 "batchPath": "batch",
35 "description": "Manages files in Drive including uploading, downloading, sea rching, detecting changes, and updating sharing permissions.", 35 "description": "Manages files in Drive including uploading, downloading, sea rching, detecting changes, and updating sharing permissions.",
36 "discoveryVersion": "v1", 36 "discoveryVersion": "v1",
37 "documentationLink": "https://developers.google.com/drive/", 37 "documentationLink": "https://developers.google.com/drive/",
38 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/DTDvxbIAPnA3cI4luILp1rGGI24\"", 38 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/_OPinYCRtT0LlK4YpUqsg4iEUmE\"",
39 "icons": { 39 "icons": {
40 "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", 40 "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
41 "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" 41 "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
42 }, 42 },
43 "id": "drive:v3", 43 "id": "drive:v3",
44 "kind": "discovery#restDescription", 44 "kind": "discovery#restDescription",
45 "name": "drive", 45 "name": "drive",
46 "ownerDomain": "google.com", 46 "ownerDomain": "google.com",
47 "ownerName": "Google", 47 "ownerName": "Google",
48 "parameters": { 48 "parameters": {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 ] 113 ]
114 } 114 }
115 } 115 }
116 }, 116 },
117 "changes": { 117 "changes": {
118 "methods": { 118 "methods": {
119 "getStartPageToken": { 119 "getStartPageToken": {
120 "description": "Gets the starting pageToken for listing futu re changes.", 120 "description": "Gets the starting pageToken for listing futu re changes.",
121 "httpMethod": "GET", 121 "httpMethod": "GET",
122 "id": "drive.changes.getStartPageToken", 122 "id": "drive.changes.getStartPageToken",
123 "parameters": {
124 "supportsTeamDrives": {
125 "default": "false",
126 "description": "Whether the requesting application s upports Team Drives.",
127 "location": "query",
128 "type": "boolean"
129 },
130 "teamDriveId": {
131 "description": "The ID of the Team Drive for which t he starting pageToken for listing future changes from that Team Drive will be re turned.",
132 "location": "query",
133 "type": "string"
134 }
135 },
123 "path": "changes/startPageToken", 136 "path": "changes/startPageToken",
124 "response": { 137 "response": {
125 "$ref": "StartPageToken" 138 "$ref": "StartPageToken"
126 }, 139 },
127 "scopes": [ 140 "scopes": [
128 "https://www.googleapis.com/auth/drive", 141 "https://www.googleapis.com/auth/drive",
129 "https://www.googleapis.com/auth/drive.appdata", 142 "https://www.googleapis.com/auth/drive.appdata",
130 "https://www.googleapis.com/auth/drive.file", 143 "https://www.googleapis.com/auth/drive.file",
131 "https://www.googleapis.com/auth/drive.metadata", 144 "https://www.googleapis.com/auth/drive.metadata",
132 "https://www.googleapis.com/auth/drive.metadata.readonly ", 145 "https://www.googleapis.com/auth/drive.metadata.readonly ",
133 "https://www.googleapis.com/auth/drive.photos.readonly", 146 "https://www.googleapis.com/auth/drive.photos.readonly",
134 "https://www.googleapis.com/auth/drive.readonly" 147 "https://www.googleapis.com/auth/drive.readonly"
135 ] 148 ]
136 }, 149 },
137 "list": { 150 "list": {
138 "description": "Lists changes for a user.", 151 "description": "Lists the changes for a user or Team Drive." ,
139 "httpMethod": "GET", 152 "httpMethod": "GET",
140 "id": "drive.changes.list", 153 "id": "drive.changes.list",
141 "parameterOrder": [ 154 "parameterOrder": [
142 "pageToken" 155 "pageToken"
143 ], 156 ],
144 "parameters": { 157 "parameters": {
145 "includeRemoved": { 158 "includeCorpusRemovals": {
146 "default": "true", 159 "default": "false",
147 "description": "Whether to include changes indicatin g that items have left the view of the changes list, for example by deletion or lost access.", 160 "description": "Whether changes should include the f ile resource if the file is still accessible by the user at the time of the requ est, even when a file was removed from the list of changes and there will be no further change entries for this file.",
148 "location": "query", 161 "location": "query",
149 "type": "boolean" 162 "type": "boolean"
150 }, 163 },
164 "includeRemoved": {
165 "default": "true",
166 "description": "Whether to include changes indicatin g that items have been removed from the list of changes, for example by deletion or loss of access.",
167 "location": "query",
168 "type": "boolean"
169 },
170 "includeTeamDriveItems": {
171 "default": "false",
172 "description": "Whether Team Drive files or changes should be included in results.",
173 "location": "query",
174 "type": "boolean"
175 },
151 "pageSize": { 176 "pageSize": {
152 "default": "100", 177 "default": "100",
153 "description": "The maximum number of changes to ret urn per page.", 178 "description": "The maximum number of changes to ret urn per page.",
154 "format": "int32", 179 "format": "int32",
155 "location": "query", 180 "location": "query",
156 "maximum": "1000", 181 "maximum": "1000",
157 "minimum": "1", 182 "minimum": "1",
158 "type": "integer" 183 "type": "integer"
159 }, 184 },
160 "pageToken": { 185 "pageToken": {
161 "description": "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 or to the response from the getStartPageToken metho d.", 186 "description": "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 or to the response from the getStartPageToken metho d.",
162 "location": "query", 187 "location": "query",
163 "required": true, 188 "required": true,
164 "type": "string" 189 "type": "string"
165 }, 190 },
166 "restrictToMyDrive": { 191 "restrictToMyDrive": {
167 "default": "false", 192 "default": "false",
168 "description": "Whether to restrict the results to c hanges inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My D rive.", 193 "description": "Whether to restrict the results to c hanges inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My D rive.",
169 "location": "query", 194 "location": "query",
170 "type": "boolean" 195 "type": "boolean"
171 }, 196 },
172 "spaces": { 197 "spaces": {
173 "default": "drive", 198 "default": "drive",
174 "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", 199 "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.",
175 "location": "query", 200 "location": "query",
176 "type": "string" 201 "type": "string"
202 },
203 "supportsTeamDrives": {
204 "default": "false",
205 "description": "Whether the requesting application s upports Team Drives.",
206 "location": "query",
207 "type": "boolean"
208 },
209 "teamDriveId": {
210 "description": "The Team Drive from which changes wi ll be returned. If specified the change IDs will be reflective of the Team Drive ; use the combined Team Drive ID and change ID as an identifier.",
211 "location": "query",
212 "type": "string"
177 } 213 }
178 }, 214 },
179 "path": "changes", 215 "path": "changes",
180 "response": { 216 "response": {
181 "$ref": "ChangeList" 217 "$ref": "ChangeList"
182 }, 218 },
183 "scopes": [ 219 "scopes": [
184 "https://www.googleapis.com/auth/drive", 220 "https://www.googleapis.com/auth/drive",
185 "https://www.googleapis.com/auth/drive.appdata", 221 "https://www.googleapis.com/auth/drive.appdata",
186 "https://www.googleapis.com/auth/drive.file", 222 "https://www.googleapis.com/auth/drive.file",
187 "https://www.googleapis.com/auth/drive.metadata", 223 "https://www.googleapis.com/auth/drive.metadata",
188 "https://www.googleapis.com/auth/drive.metadata.readonly ", 224 "https://www.googleapis.com/auth/drive.metadata.readonly ",
189 "https://www.googleapis.com/auth/drive.photos.readonly", 225 "https://www.googleapis.com/auth/drive.photos.readonly",
190 "https://www.googleapis.com/auth/drive.readonly" 226 "https://www.googleapis.com/auth/drive.readonly"
191 ], 227 ],
192 "supportsSubscription": true 228 "supportsSubscription": true
193 }, 229 },
194 "watch": { 230 "watch": {
195 "description": "Subscribes to changes for a user.", 231 "description": "Subscribes to changes for a user.",
196 "httpMethod": "POST", 232 "httpMethod": "POST",
197 "id": "drive.changes.watch", 233 "id": "drive.changes.watch",
198 "parameterOrder": [ 234 "parameterOrder": [
199 "pageToken" 235 "pageToken"
200 ], 236 ],
201 "parameters": { 237 "parameters": {
202 "includeRemoved": { 238 "includeCorpusRemovals": {
203 "default": "true", 239 "default": "false",
204 "description": "Whether to include changes indicatin g that items have left the view of the changes list, for example by deletion or lost access.", 240 "description": "Whether changes should include the f ile resource if the file is still accessible by the user at the time of the requ est, even when a file was removed from the list of changes and there will be no further change entries for this file.",
205 "location": "query", 241 "location": "query",
206 "type": "boolean" 242 "type": "boolean"
207 }, 243 },
244 "includeRemoved": {
245 "default": "true",
246 "description": "Whether to include changes indicatin g that items have been removed from the list of changes, for example by deletion or loss of access.",
247 "location": "query",
248 "type": "boolean"
249 },
250 "includeTeamDriveItems": {
251 "default": "false",
252 "description": "Whether Team Drive files or changes should be included in results.",
253 "location": "query",
254 "type": "boolean"
255 },
208 "pageSize": { 256 "pageSize": {
209 "default": "100", 257 "default": "100",
210 "description": "The maximum number of changes to ret urn per page.", 258 "description": "The maximum number of changes to ret urn per page.",
211 "format": "int32", 259 "format": "int32",
212 "location": "query", 260 "location": "query",
213 "maximum": "1000", 261 "maximum": "1000",
214 "minimum": "1", 262 "minimum": "1",
215 "type": "integer" 263 "type": "integer"
216 }, 264 },
217 "pageToken": { 265 "pageToken": {
218 "description": "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 or to the response from the getStartPageToken metho d.", 266 "description": "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 or to the response from the getStartPageToken metho d.",
219 "location": "query", 267 "location": "query",
220 "required": true, 268 "required": true,
221 "type": "string" 269 "type": "string"
222 }, 270 },
223 "restrictToMyDrive": { 271 "restrictToMyDrive": {
224 "default": "false", 272 "default": "false",
225 "description": "Whether to restrict the results to c hanges inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My D rive.", 273 "description": "Whether to restrict the results to c hanges inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My D rive.",
226 "location": "query", 274 "location": "query",
227 "type": "boolean" 275 "type": "boolean"
228 }, 276 },
229 "spaces": { 277 "spaces": {
230 "default": "drive", 278 "default": "drive",
231 "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", 279 "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.",
232 "location": "query", 280 "location": "query",
233 "type": "string" 281 "type": "string"
282 },
283 "supportsTeamDrives": {
284 "default": "false",
285 "description": "Whether the requesting application s upports Team Drives.",
286 "location": "query",
287 "type": "boolean"
288 },
289 "teamDriveId": {
290 "description": "The Team Drive from which changes wi ll be returned. If specified the change IDs will be reflective of the Team Drive ; use the combined Team Drive ID and change ID as an identifier.",
291 "location": "query",
292 "type": "string"
234 } 293 }
235 }, 294 },
236 "path": "changes/watch", 295 "path": "changes/watch",
237 "request": { 296 "request": {
238 "$ref": "Channel", 297 "$ref": "Channel",
239 "parameterName": "resource" 298 "parameterName": "resource"
240 }, 299 },
241 "response": { 300 "response": {
242 "$ref": "Channel" 301 "$ref": "Channel"
243 }, 302 },
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 "keepRevisionForever": { 542 "keepRevisionForever": {
484 "default": "false", 543 "default": "false",
485 "description": "Whether to set the 'keepForever' fie ld in the new head revision. This is only applicable to files with binary conten t in Drive.", 544 "description": "Whether to set the 'keepForever' fie ld in the new head revision. This is only applicable to files with binary conten t in Drive.",
486 "location": "query", 545 "location": "query",
487 "type": "boolean" 546 "type": "boolean"
488 }, 547 },
489 "ocrLanguage": { 548 "ocrLanguage": {
490 "description": "A language hint for OCR processing d uring image import (ISO 639-1 code).", 549 "description": "A language hint for OCR processing d uring image import (ISO 639-1 code).",
491 "location": "query", 550 "location": "query",
492 "type": "string" 551 "type": "string"
552 },
553 "supportsTeamDrives": {
554 "default": "false",
555 "description": "Whether the requesting application s upports Team Drives.",
556 "location": "query",
557 "type": "boolean"
493 } 558 }
494 }, 559 },
495 "path": "files/{fileId}/copy", 560 "path": "files/{fileId}/copy",
496 "request": { 561 "request": {
497 "$ref": "File" 562 "$ref": "File"
498 }, 563 },
499 "response": { 564 "response": {
500 "$ref": "File" 565 "$ref": "File"
501 }, 566 },
502 "scopes": [ 567 "scopes": [
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 "default": "false", 602 "default": "false",
538 "description": "Whether to set the 'keepForever' fie ld in the new head revision. This is only applicable to files with binary conten t in Drive.", 603 "description": "Whether to set the 'keepForever' fie ld in the new head revision. This is only applicable to files with binary conten t in Drive.",
539 "location": "query", 604 "location": "query",
540 "type": "boolean" 605 "type": "boolean"
541 }, 606 },
542 "ocrLanguage": { 607 "ocrLanguage": {
543 "description": "A language hint for OCR processing d uring image import (ISO 639-1 code).", 608 "description": "A language hint for OCR processing d uring image import (ISO 639-1 code).",
544 "location": "query", 609 "location": "query",
545 "type": "string" 610 "type": "string"
546 }, 611 },
612 "supportsTeamDrives": {
613 "default": "false",
614 "description": "Whether the requesting application s upports Team Drives.",
615 "location": "query",
616 "type": "boolean"
617 },
547 "useContentAsIndexableText": { 618 "useContentAsIndexableText": {
548 "default": "false", 619 "default": "false",
549 "description": "Whether to use the uploaded content as indexable text.", 620 "description": "Whether to use the uploaded content as indexable text.",
550 "location": "query", 621 "location": "query",
551 "type": "boolean" 622 "type": "boolean"
552 } 623 }
553 }, 624 },
554 "path": "files", 625 "path": "files",
555 "request": { 626 "request": {
556 "$ref": "File" 627 "$ref": "File"
557 }, 628 },
558 "response": { 629 "response": {
559 "$ref": "File" 630 "$ref": "File"
560 }, 631 },
561 "scopes": [ 632 "scopes": [
562 "https://www.googleapis.com/auth/drive", 633 "https://www.googleapis.com/auth/drive",
563 "https://www.googleapis.com/auth/drive.appdata", 634 "https://www.googleapis.com/auth/drive.appdata",
564 "https://www.googleapis.com/auth/drive.file" 635 "https://www.googleapis.com/auth/drive.file"
565 ], 636 ],
566 "supportsMediaUpload": true, 637 "supportsMediaUpload": true,
567 "supportsSubscription": true 638 "supportsSubscription": true
568 }, 639 },
569 "delete": { 640 "delete": {
570 "description": "Permanently deletes a file owned by the user without moving it to the trash. If the target is a folder, all descendants owne d by the user are also deleted.", 641 "description": "Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a Team Drive the user mu st be an organizer on the parent. If the target is a folder, all descendants own ed by the user are also deleted.",
571 "httpMethod": "DELETE", 642 "httpMethod": "DELETE",
572 "id": "drive.files.delete", 643 "id": "drive.files.delete",
573 "parameterOrder": [ 644 "parameterOrder": [
574 "fileId" 645 "fileId"
575 ], 646 ],
576 "parameters": { 647 "parameters": {
577 "fileId": { 648 "fileId": {
578 "description": "The ID of the file.", 649 "description": "The ID of the file.",
579 "location": "path", 650 "location": "path",
580 "required": true, 651 "required": true,
581 "type": "string" 652 "type": "string"
653 },
654 "supportsTeamDrives": {
655 "default": "false",
656 "description": "Whether the requesting application s upports Team Drives.",
657 "location": "query",
658 "type": "boolean"
582 } 659 }
583 }, 660 },
584 "path": "files/{fileId}", 661 "path": "files/{fileId}",
585 "scopes": [ 662 "scopes": [
586 "https://www.googleapis.com/auth/drive", 663 "https://www.googleapis.com/auth/drive",
587 "https://www.googleapis.com/auth/drive.appdata", 664 "https://www.googleapis.com/auth/drive.appdata",
588 "https://www.googleapis.com/auth/drive.file" 665 "https://www.googleapis.com/auth/drive.file"
589 ] 666 ]
590 }, 667 },
591 "emptyTrash": { 668 "emptyTrash": {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 "default": "false", 747 "default": "false",
671 "description": "Whether the user is acknowledging th e risk of downloading known malware or other abusive files. This is only applica ble when alt=media.", 748 "description": "Whether the user is acknowledging th e risk of downloading known malware or other abusive files. This is only applica ble when alt=media.",
672 "location": "query", 749 "location": "query",
673 "type": "boolean" 750 "type": "boolean"
674 }, 751 },
675 "fileId": { 752 "fileId": {
676 "description": "The ID of the file.", 753 "description": "The ID of the file.",
677 "location": "path", 754 "location": "path",
678 "required": true, 755 "required": true,
679 "type": "string" 756 "type": "string"
757 },
758 "supportsTeamDrives": {
759 "default": "false",
760 "description": "Whether the requesting application s upports Team Drives.",
761 "location": "query",
762 "type": "boolean"
680 } 763 }
681 }, 764 },
682 "path": "files/{fileId}", 765 "path": "files/{fileId}",
683 "response": { 766 "response": {
684 "$ref": "File" 767 "$ref": "File"
685 }, 768 },
686 "scopes": [ 769 "scopes": [
687 "https://www.googleapis.com/auth/drive", 770 "https://www.googleapis.com/auth/drive",
688 "https://www.googleapis.com/auth/drive.appdata", 771 "https://www.googleapis.com/auth/drive.appdata",
689 "https://www.googleapis.com/auth/drive.file", 772 "https://www.googleapis.com/auth/drive.file",
690 "https://www.googleapis.com/auth/drive.metadata", 773 "https://www.googleapis.com/auth/drive.metadata",
691 "https://www.googleapis.com/auth/drive.metadata.readonly ", 774 "https://www.googleapis.com/auth/drive.metadata.readonly ",
692 "https://www.googleapis.com/auth/drive.photos.readonly", 775 "https://www.googleapis.com/auth/drive.photos.readonly",
693 "https://www.googleapis.com/auth/drive.readonly" 776 "https://www.googleapis.com/auth/drive.readonly"
694 ], 777 ],
695 "supportsMediaDownload": true, 778 "supportsMediaDownload": true,
696 "supportsSubscription": true 779 "supportsSubscription": true
697 }, 780 },
698 "list": { 781 "list": {
699 "description": "Lists or searches files.", 782 "description": "Lists or searches files.",
700 "httpMethod": "GET", 783 "httpMethod": "GET",
701 "id": "drive.files.list", 784 "id": "drive.files.list",
702 "parameters": { 785 "parameters": {
786 "corpora": {
787 "description": "Comma-separated list of bodies of it ems (files/documents) to which the query applies. Supported bodies are 'user', ' domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined with 'user'; all other values must be used in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.",
788 "location": "query",
789 "type": "string"
790 },
703 "corpus": { 791 "corpus": {
704 "default": "user", 792 "description": "The source of files to list. Depreca ted: use 'corpora' instead.",
705 "description": "The source of files to list.",
706 "enum": [ 793 "enum": [
707 "domain", 794 "domain",
708 "user" 795 "user"
709 ], 796 ],
710 "enumDescriptions": [ 797 "enumDescriptions": [
711 "Files shared to the user's domain.", 798 "Files shared to the user's domain.",
712 "Files owned by or shared to the user." 799 "Files owned by or shared to the user."
713 ], 800 ],
714 "location": "query", 801 "location": "query",
715 "type": "string" 802 "type": "string"
716 }, 803 },
804 "includeTeamDriveItems": {
805 "default": "false",
806 "description": "Whether Team Drive items should be i ncluded in results.",
807 "location": "query",
808 "type": "boolean"
809 },
717 "orderBy": { 810 "orderBy": {
718 "description": "A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'na me', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMe Time'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note tha t there is a current limitation for users with approximately one million files i n which the requested sort order is ignored.", 811 "description": "A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'na me', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMe Time'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note tha t there is a current limitation for users with approximately one million files i n which the requested sort order is ignored.",
719 "location": "query", 812 "location": "query",
720 "type": "string" 813 "type": "string"
721 }, 814 },
722 "pageSize": { 815 "pageSize": {
723 "default": "100", 816 "default": "100",
724 "description": "The maximum number of files to retur n per page.", 817 "description": "The maximum number of files to retur n per page.",
725 "format": "int32", 818 "format": "int32",
726 "location": "query", 819 "location": "query",
727 "maximum": "1000", 820 "maximum": "1000",
728 "minimum": "1", 821 "minimum": "1",
729 "type": "integer" 822 "type": "integer"
730 }, 823 },
731 "pageToken": { 824 "pageToken": {
732 "description": "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.", 825 "description": "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.",
733 "location": "query", 826 "location": "query",
734 "type": "string" 827 "type": "string"
735 }, 828 },
736 "q": { 829 "q": {
737 "description": "A query for filtering the file resul ts. See the \"Search for Files\" guide for supported syntax.", 830 "description": "A query for filtering the file resul ts. See the \"Search for Files\" guide for supported syntax.",
738 "location": "query", 831 "location": "query",
739 "type": "string" 832 "type": "string"
740 }, 833 },
741 "spaces": { 834 "spaces": {
742 "default": "drive", 835 "default": "drive",
743 "description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'phot os'.", 836 "description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'phot os'.",
744 "location": "query", 837 "location": "query",
745 "type": "string" 838 "type": "string"
839 },
840 "supportsTeamDrives": {
841 "default": "false",
842 "description": "Whether the requesting application s upports Team Drives.",
843 "location": "query",
844 "type": "boolean"
845 },
846 "teamDriveId": {
847 "description": "ID of Team Drive to search.",
848 "location": "query",
849 "type": "string"
746 } 850 }
747 }, 851 },
748 "path": "files", 852 "path": "files",
749 "response": { 853 "response": {
750 "$ref": "FileList" 854 "$ref": "FileList"
751 }, 855 },
752 "scopes": [ 856 "scopes": [
753 "https://www.googleapis.com/auth/drive", 857 "https://www.googleapis.com/auth/drive",
754 "https://www.googleapis.com/auth/drive.appdata", 858 "https://www.googleapis.com/auth/drive.appdata",
755 "https://www.googleapis.com/auth/drive.file", 859 "https://www.googleapis.com/auth/drive.file",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 "ocrLanguage": { 907 "ocrLanguage": {
804 "description": "A language hint for OCR processing d uring image import (ISO 639-1 code).", 908 "description": "A language hint for OCR processing d uring image import (ISO 639-1 code).",
805 "location": "query", 909 "location": "query",
806 "type": "string" 910 "type": "string"
807 }, 911 },
808 "removeParents": { 912 "removeParents": {
809 "description": "A comma-separated list of parent IDs to remove.", 913 "description": "A comma-separated list of parent IDs to remove.",
810 "location": "query", 914 "location": "query",
811 "type": "string" 915 "type": "string"
812 }, 916 },
917 "supportsTeamDrives": {
918 "default": "false",
919 "description": "Whether the requesting application s upports Team Drives.",
920 "location": "query",
921 "type": "boolean"
922 },
813 "useContentAsIndexableText": { 923 "useContentAsIndexableText": {
814 "default": "false", 924 "default": "false",
815 "description": "Whether to use the uploaded content as indexable text.", 925 "description": "Whether to use the uploaded content as indexable text.",
816 "location": "query", 926 "location": "query",
817 "type": "boolean" 927 "type": "boolean"
818 } 928 }
819 }, 929 },
820 "path": "files/{fileId}", 930 "path": "files/{fileId}",
821 "request": { 931 "request": {
822 "$ref": "File" 932 "$ref": "File"
(...skipping 22 matching lines...) Expand all
845 "default": "false", 955 "default": "false",
846 "description": "Whether the user is acknowledging th e risk of downloading known malware or other abusive files. This is only applica ble when alt=media.", 956 "description": "Whether the user is acknowledging th e risk of downloading known malware or other abusive files. This is only applica ble when alt=media.",
847 "location": "query", 957 "location": "query",
848 "type": "boolean" 958 "type": "boolean"
849 }, 959 },
850 "fileId": { 960 "fileId": {
851 "description": "The ID of the file.", 961 "description": "The ID of the file.",
852 "location": "path", 962 "location": "path",
853 "required": true, 963 "required": true,
854 "type": "string" 964 "type": "string"
965 },
966 "supportsTeamDrives": {
967 "default": "false",
968 "description": "Whether the requesting application s upports Team Drives.",
969 "location": "query",
970 "type": "boolean"
855 } 971 }
856 }, 972 },
857 "path": "files/{fileId}/watch", 973 "path": "files/{fileId}/watch",
858 "request": { 974 "request": {
859 "$ref": "Channel", 975 "$ref": "Channel",
860 "parameterName": "resource" 976 "parameterName": "resource"
861 }, 977 },
862 "response": { 978 "response": {
863 "$ref": "Channel" 979 "$ref": "Channel"
864 }, 980 },
865 "scopes": [ 981 "scopes": [
866 "https://www.googleapis.com/auth/drive", 982 "https://www.googleapis.com/auth/drive",
867 "https://www.googleapis.com/auth/drive.appdata", 983 "https://www.googleapis.com/auth/drive.appdata",
868 "https://www.googleapis.com/auth/drive.file", 984 "https://www.googleapis.com/auth/drive.file",
869 "https://www.googleapis.com/auth/drive.metadata", 985 "https://www.googleapis.com/auth/drive.metadata",
870 "https://www.googleapis.com/auth/drive.metadata.readonly ", 986 "https://www.googleapis.com/auth/drive.metadata.readonly ",
871 "https://www.googleapis.com/auth/drive.photos.readonly", 987 "https://www.googleapis.com/auth/drive.photos.readonly",
872 "https://www.googleapis.com/auth/drive.readonly" 988 "https://www.googleapis.com/auth/drive.readonly"
873 ], 989 ],
874 "supportsMediaDownload": true, 990 "supportsMediaDownload": true,
875 "supportsSubscription": true 991 "supportsSubscription": true
876 } 992 }
877 } 993 }
878 }, 994 },
879 "permissions": { 995 "permissions": {
880 "methods": { 996 "methods": {
881 "create": { 997 "create": {
882 "description": "Creates a permission for a file.", 998 "description": "Creates a permission for a file or Team Driv e.",
883 "httpMethod": "POST", 999 "httpMethod": "POST",
884 "id": "drive.permissions.create", 1000 "id": "drive.permissions.create",
885 "parameterOrder": [ 1001 "parameterOrder": [
886 "fileId" 1002 "fileId"
887 ], 1003 ],
888 "parameters": { 1004 "parameters": {
889 "emailMessage": { 1005 "emailMessage": {
890 "description": "A custom message to include in the n otification email.", 1006 "description": "A custom message to include in the n otification email.",
891 "location": "query", 1007 "location": "query",
892 "type": "string" 1008 "type": "string"
893 }, 1009 },
894 "fileId": { 1010 "fileId": {
895 "description": "The ID of the file.", 1011 "description": "The ID of the file or Team Drive.",
896 "location": "path", 1012 "location": "path",
897 "required": true, 1013 "required": true,
898 "type": "string" 1014 "type": "string"
899 }, 1015 },
900 "sendNotificationEmail": { 1016 "sendNotificationEmail": {
901 "description": "Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, an d is not allowed for other requests. It must not be disabled for ownership trans fers.", 1017 "description": "Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, an d is not allowed for other requests. It must not be disabled for ownership trans fers.",
902 "location": "query", 1018 "location": "query",
903 "type": "boolean" 1019 "type": "boolean"
904 }, 1020 },
1021 "supportsTeamDrives": {
1022 "default": "false",
1023 "description": "Whether the requesting application s upports Team Drives.",
1024 "location": "query",
1025 "type": "boolean"
1026 },
905 "transferOwnership": { 1027 "transferOwnership": {
906 "default": "false", 1028 "default": "false",
907 "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is r equired as an acknowledgement of the side effect.", 1029 "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is r equired as an acknowledgement of the side effect.",
908 "location": "query", 1030 "location": "query",
909 "type": "boolean" 1031 "type": "boolean"
910 } 1032 }
911 }, 1033 },
912 "path": "files/{fileId}/permissions", 1034 "path": "files/{fileId}/permissions",
913 "request": { 1035 "request": {
914 "$ref": "Permission" 1036 "$ref": "Permission"
915 }, 1037 },
916 "response": { 1038 "response": {
917 "$ref": "Permission" 1039 "$ref": "Permission"
918 }, 1040 },
919 "scopes": [ 1041 "scopes": [
920 "https://www.googleapis.com/auth/drive", 1042 "https://www.googleapis.com/auth/drive",
921 "https://www.googleapis.com/auth/drive.file" 1043 "https://www.googleapis.com/auth/drive.file"
922 ] 1044 ]
923 }, 1045 },
924 "delete": { 1046 "delete": {
925 "description": "Deletes a permission.", 1047 "description": "Deletes a permission.",
926 "httpMethod": "DELETE", 1048 "httpMethod": "DELETE",
927 "id": "drive.permissions.delete", 1049 "id": "drive.permissions.delete",
928 "parameterOrder": [ 1050 "parameterOrder": [
929 "fileId", 1051 "fileId",
930 "permissionId" 1052 "permissionId"
931 ], 1053 ],
932 "parameters": { 1054 "parameters": {
933 "fileId": { 1055 "fileId": {
934 "description": "The ID of the file.", 1056 "description": "The ID of the file or Team Drive.",
935 "location": "path", 1057 "location": "path",
936 "required": true, 1058 "required": true,
937 "type": "string" 1059 "type": "string"
938 }, 1060 },
939 "permissionId": { 1061 "permissionId": {
940 "description": "The ID of the permission.", 1062 "description": "The ID of the permission.",
941 "location": "path", 1063 "location": "path",
942 "required": true, 1064 "required": true,
943 "type": "string" 1065 "type": "string"
1066 },
1067 "supportsTeamDrives": {
1068 "default": "false",
1069 "description": "Whether the requesting application s upports Team Drives.",
1070 "location": "query",
1071 "type": "boolean"
944 } 1072 }
945 }, 1073 },
946 "path": "files/{fileId}/permissions/{permissionId}", 1074 "path": "files/{fileId}/permissions/{permissionId}",
947 "scopes": [ 1075 "scopes": [
948 "https://www.googleapis.com/auth/drive", 1076 "https://www.googleapis.com/auth/drive",
949 "https://www.googleapis.com/auth/drive.file" 1077 "https://www.googleapis.com/auth/drive.file"
950 ] 1078 ]
951 }, 1079 },
952 "get": { 1080 "get": {
953 "description": "Gets a permission by ID.", 1081 "description": "Gets a permission by ID.",
954 "httpMethod": "GET", 1082 "httpMethod": "GET",
955 "id": "drive.permissions.get", 1083 "id": "drive.permissions.get",
956 "parameterOrder": [ 1084 "parameterOrder": [
957 "fileId", 1085 "fileId",
958 "permissionId" 1086 "permissionId"
959 ], 1087 ],
960 "parameters": { 1088 "parameters": {
961 "fileId": { 1089 "fileId": {
962 "description": "The ID of the file.", 1090 "description": "The ID of the file.",
963 "location": "path", 1091 "location": "path",
964 "required": true, 1092 "required": true,
965 "type": "string" 1093 "type": "string"
966 }, 1094 },
967 "permissionId": { 1095 "permissionId": {
968 "description": "The ID of the permission.", 1096 "description": "The ID of the permission.",
969 "location": "path", 1097 "location": "path",
970 "required": true, 1098 "required": true,
971 "type": "string" 1099 "type": "string"
1100 },
1101 "supportsTeamDrives": {
1102 "default": "false",
1103 "description": "Whether the requesting application s upports Team Drives.",
1104 "location": "query",
1105 "type": "boolean"
972 } 1106 }
973 }, 1107 },
974 "path": "files/{fileId}/permissions/{permissionId}", 1108 "path": "files/{fileId}/permissions/{permissionId}",
975 "response": { 1109 "response": {
976 "$ref": "Permission" 1110 "$ref": "Permission"
977 }, 1111 },
978 "scopes": [ 1112 "scopes": [
979 "https://www.googleapis.com/auth/drive", 1113 "https://www.googleapis.com/auth/drive",
980 "https://www.googleapis.com/auth/drive.file", 1114 "https://www.googleapis.com/auth/drive.file",
981 "https://www.googleapis.com/auth/drive.metadata", 1115 "https://www.googleapis.com/auth/drive.metadata",
982 "https://www.googleapis.com/auth/drive.metadata.readonly ", 1116 "https://www.googleapis.com/auth/drive.metadata.readonly ",
983 "https://www.googleapis.com/auth/drive.photos.readonly", 1117 "https://www.googleapis.com/auth/drive.photos.readonly",
984 "https://www.googleapis.com/auth/drive.readonly" 1118 "https://www.googleapis.com/auth/drive.readonly"
985 ] 1119 ]
986 }, 1120 },
987 "list": { 1121 "list": {
988 "description": "Lists a file's permissions.", 1122 "description": "Lists a file's or Team Drive's permissions." ,
989 "httpMethod": "GET", 1123 "httpMethod": "GET",
990 "id": "drive.permissions.list", 1124 "id": "drive.permissions.list",
991 "parameterOrder": [ 1125 "parameterOrder": [
992 "fileId" 1126 "fileId"
993 ], 1127 ],
994 "parameters": { 1128 "parameters": {
995 "fileId": { 1129 "fileId": {
996 "description": "The ID of the file.", 1130 "description": "The ID of the file or Team Drive.",
997 "location": "path", 1131 "location": "path",
998 "required": true, 1132 "required": true,
999 "type": "string" 1133 "type": "string"
1134 },
1135 "pageSize": {
1136 "description": "The maximum number of permissions to return per page. When not set for files in a Team Drive, at most 100 results wi ll be returned. When not set for files that are not in a Team Drive, the entire list will be returned.",
1137 "format": "int32",
1138 "location": "query",
1139 "maximum": "100",
1140 "minimum": "1",
1141 "type": "integer"
1142 },
1143 "pageToken": {
1144 "description": "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.",
1145 "location": "query",
1146 "type": "string"
1147 },
1148 "supportsTeamDrives": {
1149 "default": "false",
1150 "description": "Whether the requesting application s upports Team Drives.",
1151 "location": "query",
1152 "type": "boolean"
1000 } 1153 }
1001 }, 1154 },
1002 "path": "files/{fileId}/permissions", 1155 "path": "files/{fileId}/permissions",
1003 "response": { 1156 "response": {
1004 "$ref": "PermissionList" 1157 "$ref": "PermissionList"
1005 }, 1158 },
1006 "scopes": [ 1159 "scopes": [
1007 "https://www.googleapis.com/auth/drive", 1160 "https://www.googleapis.com/auth/drive",
1008 "https://www.googleapis.com/auth/drive.file", 1161 "https://www.googleapis.com/auth/drive.file",
1009 "https://www.googleapis.com/auth/drive.metadata", 1162 "https://www.googleapis.com/auth/drive.metadata",
1010 "https://www.googleapis.com/auth/drive.metadata.readonly ", 1163 "https://www.googleapis.com/auth/drive.metadata.readonly ",
1011 "https://www.googleapis.com/auth/drive.photos.readonly", 1164 "https://www.googleapis.com/auth/drive.photos.readonly",
1012 "https://www.googleapis.com/auth/drive.readonly" 1165 "https://www.googleapis.com/auth/drive.readonly"
1013 ] 1166 ]
1014 }, 1167 },
1015 "update": { 1168 "update": {
1016 "description": "Updates a permission with patch semantics.", 1169 "description": "Updates a permission with patch semantics.",
1017 "httpMethod": "PATCH", 1170 "httpMethod": "PATCH",
1018 "id": "drive.permissions.update", 1171 "id": "drive.permissions.update",
1019 "parameterOrder": [ 1172 "parameterOrder": [
1020 "fileId", 1173 "fileId",
1021 "permissionId" 1174 "permissionId"
1022 ], 1175 ],
1023 "parameters": { 1176 "parameters": {
1024 "fileId": { 1177 "fileId": {
1025 "description": "The ID of the file.", 1178 "description": "The ID of the file or Team Drive.",
1026 "location": "path", 1179 "location": "path",
1027 "required": true, 1180 "required": true,
1028 "type": "string" 1181 "type": "string"
1029 }, 1182 },
1030 "permissionId": { 1183 "permissionId": {
1031 "description": "The ID of the permission.", 1184 "description": "The ID of the permission.",
1032 "location": "path", 1185 "location": "path",
1033 "required": true, 1186 "required": true,
1034 "type": "string" 1187 "type": "string"
1035 }, 1188 },
1036 "removeExpiration": { 1189 "removeExpiration": {
1037 "default": "false", 1190 "default": "false",
1038 "description": "Whether to remove the expiration dat e.", 1191 "description": "Whether to remove the expiration dat e.",
1039 "location": "query", 1192 "location": "query",
1040 "type": "boolean" 1193 "type": "boolean"
1041 }, 1194 },
1195 "supportsTeamDrives": {
1196 "default": "false",
1197 "description": "Whether the requesting application s upports Team Drives.",
1198 "location": "query",
1199 "type": "boolean"
1200 },
1042 "transferOwnership": { 1201 "transferOwnership": {
1043 "default": "false", 1202 "default": "false",
1044 "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is r equired as an acknowledgement of the side effect.", 1203 "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is r equired as an acknowledgement of the side effect.",
1045 "location": "query", 1204 "location": "query",
1046 "type": "boolean" 1205 "type": "boolean"
1047 } 1206 }
1048 }, 1207 },
1049 "path": "files/{fileId}/permissions/{permissionId}", 1208 "path": "files/{fileId}/permissions/{permissionId}",
1050 "request": { 1209 "request": {
1051 "$ref": "Permission" 1210 "$ref": "Permission"
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 "response": { 1576 "response": {
1418 "$ref": "Revision" 1577 "$ref": "Revision"
1419 }, 1578 },
1420 "scopes": [ 1579 "scopes": [
1421 "https://www.googleapis.com/auth/drive", 1580 "https://www.googleapis.com/auth/drive",
1422 "https://www.googleapis.com/auth/drive.appdata", 1581 "https://www.googleapis.com/auth/drive.appdata",
1423 "https://www.googleapis.com/auth/drive.file" 1582 "https://www.googleapis.com/auth/drive.file"
1424 ] 1583 ]
1425 } 1584 }
1426 } 1585 }
1586 },
1587 "teamdrives": {
1588 "methods": {
1589 "create": {
1590 "description": "Creates a new Team Drive.",
1591 "httpMethod": "POST",
1592 "id": "drive.teamdrives.create",
1593 "parameterOrder": [
1594 "requestId"
1595 ],
1596 "parameters": {
1597 "requestId": {
1598 "description": "An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid cre ating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.",
1599 "location": "query",
1600 "required": true,
1601 "type": "string"
1602 }
1603 },
1604 "path": "teamdrives",
1605 "request": {
1606 "$ref": "TeamDrive"
1607 },
1608 "response": {
1609 "$ref": "TeamDrive"
1610 },
1611 "scopes": [
1612 "https://www.googleapis.com/auth/drive"
1613 ]
1614 },
1615 "delete": {
1616 "description": "Permanently deletes a Team Drive for which t he user is an organizer. The Team Drive cannot contain any untrashed items.",
1617 "httpMethod": "DELETE",
1618 "id": "drive.teamdrives.delete",
1619 "parameterOrder": [
1620 "teamDriveId"
1621 ],
1622 "parameters": {
1623 "teamDriveId": {
1624 "description": "The ID of the Team Drive",
1625 "location": "path",
1626 "required": true,
1627 "type": "string"
1628 }
1629 },
1630 "path": "teamdrives/{teamDriveId}",
1631 "scopes": [
1632 "https://www.googleapis.com/auth/drive"
1633 ]
1634 },
1635 "get": {
1636 "description": "Gets a Team Drive's metadata by ID.",
1637 "httpMethod": "GET",
1638 "id": "drive.teamdrives.get",
1639 "parameterOrder": [
1640 "teamDriveId"
1641 ],
1642 "parameters": {
1643 "teamDriveId": {
1644 "description": "The ID of the Team Drive",
1645 "location": "path",
1646 "required": true,
1647 "type": "string"
1648 }
1649 },
1650 "path": "teamdrives/{teamDriveId}",
1651 "response": {
1652 "$ref": "TeamDrive"
1653 },
1654 "scopes": [
1655 "https://www.googleapis.com/auth/drive",
1656 "https://www.googleapis.com/auth/drive.readonly"
1657 ]
1658 },
1659 "list": {
1660 "description": "Lists the user's Team Drives.",
1661 "httpMethod": "GET",
1662 "id": "drive.teamdrives.list",
1663 "parameters": {
1664 "pageSize": {
1665 "default": "10",
1666 "description": "Maximum number of Team Drives to ret urn.",
1667 "format": "int32",
1668 "location": "query",
1669 "maximum": "100",
1670 "minimum": "1",
1671 "type": "integer"
1672 },
1673 "pageToken": {
1674 "description": "Page token for Team Drives.",
1675 "location": "query",
1676 "type": "string"
1677 }
1678 },
1679 "path": "teamdrives",
1680 "response": {
1681 "$ref": "TeamDriveList"
1682 },
1683 "scopes": [
1684 "https://www.googleapis.com/auth/drive",
1685 "https://www.googleapis.com/auth/drive.readonly"
1686 ]
1687 },
1688 "update": {
1689 "description": "Updates a Team Drive's metadata",
1690 "httpMethod": "PATCH",
1691 "id": "drive.teamdrives.update",
1692 "parameterOrder": [
1693 "teamDriveId"
1694 ],
1695 "parameters": {
1696 "teamDriveId": {
1697 "description": "The ID of the Team Drive",
1698 "location": "path",
1699 "required": true,
1700 "type": "string"
1701 }
1702 },
1703 "path": "teamdrives/{teamDriveId}",
1704 "request": {
1705 "$ref": "TeamDrive"
1706 },
1707 "response": {
1708 "$ref": "TeamDrive"
1709 },
1710 "scopes": [
1711 "https://www.googleapis.com/auth/drive"
1712 ]
1713 }
1714 }
1427 } 1715 }
1428 }, 1716 },
1429 "revision": "20170207", 1717 "revision": "20170228",
1430 "rootUrl": "https://www.googleapis.com/", 1718 "rootUrl": "https://www.googleapis.com/",
1431 "schemas": { 1719 "schemas": {
1432 "About": { 1720 "About": {
1433 "description": "Information about the user, the user's Drive, and sy stem capabilities.", 1721 "description": "Information about the user, the user's Drive, and sy stem capabilities.",
1434 "id": "About", 1722 "id": "About",
1435 "properties": { 1723 "properties": {
1436 "appInstalled": { 1724 "appInstalled": {
1437 "description": "Whether the user has installed the requestin g app.", 1725 "description": "Whether the user has installed the requestin g app.",
1438 "type": "boolean" 1726 "type": "boolean"
1439 }, 1727 },
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 "type": "object" 1797 "type": "object"
1510 }, 1798 },
1511 "user": { 1799 "user": {
1512 "$ref": "User", 1800 "$ref": "User",
1513 "description": "The authenticated user." 1801 "description": "The authenticated user."
1514 } 1802 }
1515 }, 1803 },
1516 "type": "object" 1804 "type": "object"
1517 }, 1805 },
1518 "Change": { 1806 "Change": {
1519 "description": "A change to a file.", 1807 "description": "A change to a file or Team Drive.",
1520 "id": "Change", 1808 "id": "Change",
1521 "properties": { 1809 "properties": {
1522 "file": { 1810 "file": {
1523 "$ref": "File", 1811 "$ref": "File",
1524 "description": "The updated state of the file. Present if th e file has not been removed." 1812 "description": "The updated state of the file. Present if th e type is file and the file has not been removed from this list of changes."
1525 }, 1813 },
1526 "fileId": { 1814 "fileId": {
1527 "description": "The ID of the file which has changed.", 1815 "description": "The ID of the file which has changed.",
1528 "type": "string" 1816 "type": "string"
1529 }, 1817 },
1530 "kind": { 1818 "kind": {
1531 "default": "drive#change", 1819 "default": "drive#change",
1532 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#change\".", 1820 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#change\".",
1533 "type": "string" 1821 "type": "string"
1534 }, 1822 },
1535 "removed": { 1823 "removed": {
1536 "description": "Whether the file has been removed from the v iew of the changes list, for example by deletion or lost access.", 1824 "description": "Whether the file or Team Drive has been remo ved from this list of changes, for example by deletion or loss of access.",
1537 "type": "boolean" 1825 "type": "boolean"
1538 }, 1826 },
1827 "teamDrive": {
1828 "$ref": "TeamDrive",
1829 "description": "The updated state of the Team Drive. Present if the type is teamDrive, the user is still a member of the Team Drive, and the Team Drive has not been removed."
1830 },
1831 "teamDriveId": {
1832 "description": "The ID of the Team Drive associated with thi s change.",
1833 "type": "string"
1834 },
1539 "time": { 1835 "time": {
1540 "description": "The time of this change (RFC 3339 date-time) .", 1836 "description": "The time of this change (RFC 3339 date-time) .",
1541 "format": "date-time", 1837 "format": "date-time",
1542 "type": "string" 1838 "type": "string"
1839 },
1840 "type": {
1841 "description": "The type of the change. Possible values are file and teamDrive.",
1842 "type": "string"
1543 } 1843 }
1544 }, 1844 },
1545 "type": "object" 1845 "type": "object"
1546 }, 1846 },
1547 "ChangeList": { 1847 "ChangeList": {
1548 "description": "A list of changes for a user.", 1848 "description": "A list of changes for a user.",
1549 "id": "ChangeList", 1849 "id": "ChangeList",
1550 "properties": { 1850 "properties": {
1551 "changes": { 1851 "changes": {
1552 "description": "The list of changes. If nextPageToken is pop ulated, then this list may be incomplete and an additional page of results shoul d be fetched.", 1852 "description": "The list of changes. If nextPageToken is pop ulated, then this list may be incomplete and an additional page of results shoul d be fetched.",
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 "id": "File", 2029 "id": "File",
1730 "properties": { 2030 "properties": {
1731 "appProperties": { 2031 "appProperties": {
1732 "additionalProperties": { 2032 "additionalProperties": {
1733 "type": "string" 2033 "type": "string"
1734 }, 2034 },
1735 "description": "A collection of arbitrary key-value pairs wh ich are private to the requesting app.\nEntries with null values are cleared in update and copy requests.", 2035 "description": "A collection of arbitrary key-value pairs wh ich are private to the requesting app.\nEntries with null values are cleared in update and copy requests.",
1736 "type": "object" 2036 "type": "object"
1737 }, 2037 },
1738 "capabilities": { 2038 "capabilities": {
1739 "description": "Capabilities the current user has on the fil e.", 2039 "description": "Capabilities the current user has on the fil e. Each capability corresponds to a fine-grained action that a user may take.",
1740 "properties": { 2040 "properties": {
2041 "canAddChildren": {
2042 "description": "Whether the user can add children to this folder. This is always false when the item is not a folder.",
2043 "type": "boolean"
2044 },
1741 "canComment": { 2045 "canComment": {
1742 "description": "Whether the user can comment on the file.", 2046 "description": "Whether the user can comment on the file.",
1743 "type": "boolean" 2047 "type": "boolean"
1744 }, 2048 },
1745 "canCopy": { 2049 "canCopy": {
1746 "description": "Whether the user can copy the file." , 2050 "description": "Whether the user can copy the file. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.",
2051 "type": "boolean"
2052 },
2053 "canDelete": {
2054 "description": "Whether the file can be deleted by t he user.",
2055 "type": "boolean"
2056 },
2057 "canDownload": {
2058 "description": "Whether the file can be downloaded b y the user.",
1747 "type": "boolean" 2059 "type": "boolean"
1748 }, 2060 },
1749 "canEdit": { 2061 "canEdit": {
1750 "description": "Whether the user can edit the file's content.", 2062 "description": "Whether the user can edit the file's content.",
1751 "type": "boolean" 2063 "type": "boolean"
1752 }, 2064 },
2065 "canListChildren": {
2066 "description": "Whether the user can list the childr en of this folder. This is always false when the item is not a folder.",
2067 "type": "boolean"
2068 },
2069 "canMoveItemIntoTeamDrive": {
2070 "description": "Whether the current user can move th is item into a Team Drive. If the item is in a Team Drive, this field is equival ent to canMoveTeamDriveItem.",
2071 "type": "boolean"
2072 },
2073 "canMoveTeamDriveItem": {
2074 "description": "Whether the user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only p opulated for Team Drive files.",
2075 "type": "boolean"
2076 },
1753 "canReadRevisions": { 2077 "canReadRevisions": {
1754 "description": "Whether the current user has read ac cess to the Revisions resource of the file.", 2078 "description": "Whether the user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.",
2079 "type": "boolean"
2080 },
2081 "canReadTeamDrive": {
2082 "description": "Whether the user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files." ,
2083 "type": "boolean"
2084 },
2085 "canRemoveChildren": {
2086 "description": "Whether the user can remove children from this folder. This is always false when the item is not a folder.",
2087 "type": "boolean"
2088 },
2089 "canRename": {
2090 "description": "Whether the file can be renamed by t he user.",
1755 "type": "boolean" 2091 "type": "boolean"
1756 }, 2092 },
1757 "canShare": { 2093 "canShare": {
1758 "description": "Whether the user can modify the file 's permissions and sharing settings.", 2094 "description": "Whether the user can modify the file 's permissions and sharing settings.",
1759 "type": "boolean" 2095 "type": "boolean"
2096 },
2097 "canTrash": {
2098 "description": "Whether the file can be trashed by t he user.",
2099 "type": "boolean"
2100 },
2101 "canUntrash": {
2102 "description": "Whether the file can be restored fro m the trash by the current user.",
2103 "type": "boolean"
1760 } 2104 }
1761 }, 2105 },
1762 "type": "object" 2106 "type": "object"
1763 }, 2107 },
1764 "contentHints": { 2108 "contentHints": {
1765 "description": "Additional information about the content of the file. These fields are never populated in responses.", 2109 "description": "Additional information about the content of the file. These fields are never populated in responses.",
1766 "properties": { 2110 "properties": {
1767 "indexableText": { 2111 "indexableText": {
1768 "description": "Text to be indexed for the file to i mprove fullText queries. This is limited to 128KB in length and may contain HTML elements.", 2112 "description": "Text to be indexed for the file to i mprove fullText queries. This is limited to 128KB in length and may contain HTML elements.",
1769 "type": "string" 2113 "type": "string"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 "type": "string" 2148 "type": "string"
1805 }, 2149 },
1806 "folderColorRgb": { 2150 "folderColorRgb": {
1807 "description": "The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.\nIf an unsupported color is specified, the closest color in the palet te will be used instead.", 2151 "description": "The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.\nIf an unsupported color is specified, the closest color in the palet te will be used instead.",
1808 "type": "string" 2152 "type": "string"
1809 }, 2153 },
1810 "fullFileExtension": { 2154 "fullFileExtension": {
1811 "description": "The full file extension extracted from the n ame field. May contain multiple concatenated extensions, such as \"tar.gz\". Thi s is only available for files with binary content in Drive.\nThis is automatical ly updated when the name field changes, however it is not cleared if the new nam e does not contain a valid extension.", 2155 "description": "The full file extension extracted from the n ame field. May contain multiple concatenated extensions, such as \"tar.gz\". Thi s is only available for files with binary content in Drive.\nThis is automatical ly updated when the name field changes, however it is not cleared if the new nam e does not contain a valid extension.",
1812 "type": "string" 2156 "type": "string"
1813 }, 2157 },
2158 "hasAugmentedPermissions": {
2159 "description": "Whether any users are granted file access di rectly on this file. This field is only populated for Team Drive files.",
2160 "type": "boolean"
2161 },
1814 "hasThumbnail": { 2162 "hasThumbnail": {
1815 "description": "Whether this file has a thumbnail.", 2163 "description": "Whether this file has a thumbnail.",
1816 "type": "boolean" 2164 "type": "boolean"
1817 }, 2165 },
1818 "headRevisionId": { 2166 "headRevisionId": {
1819 "description": "The ID of the file's head revision. This is currently only available for files with binary content in Drive.", 2167 "description": "The ID of the file's head revision. This is currently only available for files with binary content in Drive.",
1820 "type": "string" 2168 "type": "string"
1821 }, 2169 },
1822 "iconLink": { 2170 "iconLink": {
1823 "description": "A static, unauthenticated link to the file's icon.", 2171 "description": "A static, unauthenticated link to the file's icon.",
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 }, 2329 },
1982 "name": { 2330 "name": {
1983 "description": "The name of the file. This is not necessaril y unique within a folder.", 2331 "description": "The name of the file. This is not necessaril y unique within a folder.",
1984 "type": "string" 2332 "type": "string"
1985 }, 2333 },
1986 "originalFilename": { 2334 "originalFilename": {
1987 "description": "The original filename of the uploaded conten t if available, or else the original value of the name field. This is only avail able for files with binary content in Drive.", 2335 "description": "The original filename of the uploaded conten t if available, or else the original value of the name field. This is only avail able for files with binary content in Drive.",
1988 "type": "string" 2336 "type": "string"
1989 }, 2337 },
1990 "ownedByMe": { 2338 "ownedByMe": {
1991 "description": "Whether the user owns the file.", 2339 "description": "Whether the user owns the file. Not populate d for Team Drive files.",
1992 "type": "boolean" 2340 "type": "boolean"
1993 }, 2341 },
1994 "owners": { 2342 "owners": {
1995 "description": "The owners of the file. Currently, only cert ain legacy files may have more than one owner.", 2343 "description": "The owners of the file. Currently, only cert ain legacy files may have more than one owner. Not populated for Team Drive file s.",
1996 "items": { 2344 "items": {
1997 "$ref": "User" 2345 "$ref": "User"
1998 }, 2346 },
1999 "type": "array" 2347 "type": "array"
2000 }, 2348 },
2001 "parents": { 2349 "parents": {
2002 "description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the My Drive folder. Update requests must use the addParents and re moveParents parameters to modify the values.", 2350 "description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the My Drive folder. Update requests must use the addParents and re moveParents parameters to modify the values.",
2003 "items": { 2351 "items": {
2004 "type": "string" 2352 "type": "string"
2005 }, 2353 },
2006 "type": "array" 2354 "type": "array"
2007 }, 2355 },
2008 "permissions": { 2356 "permissions": {
2009 "description": "The full list of permissions for the file. T his is only available if the requesting user can share the file.", 2357 "description": "The full list of permissions for the file. T his is only available if the requesting user can share the file. Not populated f or Team Drive files.",
2010 "items": { 2358 "items": {
2011 "$ref": "Permission" 2359 "$ref": "Permission"
2012 }, 2360 },
2013 "type": "array" 2361 "type": "array"
2014 }, 2362 },
2015 "properties": { 2363 "properties": {
2016 "additionalProperties": { 2364 "additionalProperties": {
2017 "type": "string" 2365 "type": "string"
2018 }, 2366 },
2019 "description": "A collection of arbitrary key-value pairs wh ich are visible to all apps.\nEntries with null values are cleared in update and copy requests.", 2367 "description": "A collection of arbitrary key-value pairs wh ich are visible to all apps.\nEntries with null values are cleared in update and copy requests.",
2020 "type": "object" 2368 "type": "object"
2021 }, 2369 },
2022 "quotaBytesUsed": { 2370 "quotaBytesUsed": {
2023 "description": "The number of storage quota bytes used by th e file. This includes the head revision as well as previous revisions with keepF orever enabled.", 2371 "description": "The number of storage quota bytes used by th e file. This includes the head revision as well as previous revisions with keepF orever enabled.",
2024 "format": "int64", 2372 "format": "int64",
2025 "type": "string" 2373 "type": "string"
2026 }, 2374 },
2027 "shared": { 2375 "shared": {
2028 "description": "Whether the file has been shared.", 2376 "description": "Whether the file has been shared. Not popula ted for Team Drive files.",
2029 "type": "boolean" 2377 "type": "boolean"
2030 }, 2378 },
2031 "sharedWithMeTime": { 2379 "sharedWithMeTime": {
2032 "description": "The time at which the file was shared with t he user, if applicable (RFC 3339 date-time).", 2380 "description": "The time at which the file was shared with t he user, if applicable (RFC 3339 date-time).",
2033 "format": "date-time", 2381 "format": "date-time",
2034 "type": "string" 2382 "type": "string"
2035 }, 2383 },
2036 "sharingUser": { 2384 "sharingUser": {
2037 "$ref": "User", 2385 "$ref": "User",
2038 "description": "The user who shared the file with the reques ting user, if applicable." 2386 "description": "The user who shared the file with the reques ting user, if applicable."
2039 }, 2387 },
2040 "size": { 2388 "size": {
2041 "description": "The size of the file's content in bytes. Thi s is only applicable to files with binary content in Drive.", 2389 "description": "The size of the file's content in bytes. Thi s is only applicable to files with binary content in Drive.",
2042 "format": "int64", 2390 "format": "int64",
2043 "type": "string" 2391 "type": "string"
2044 }, 2392 },
2045 "spaces": { 2393 "spaces": {
2046 "description": "The list of spaces which contain the file. T he currently supported values are 'drive', 'appDataFolder' and 'photos'.", 2394 "description": "The list of spaces which contain the file. T he currently supported values are 'drive', 'appDataFolder' and 'photos'.",
2047 "items": { 2395 "items": {
2048 "type": "string" 2396 "type": "string"
2049 }, 2397 },
2050 "type": "array" 2398 "type": "array"
2051 }, 2399 },
2052 "starred": { 2400 "starred": {
2053 "description": "Whether the user has starred the file.", 2401 "description": "Whether the user has starred the file.",
2054 "type": "boolean" 2402 "type": "boolean"
2055 }, 2403 },
2404 "teamDriveId": {
2405 "description": "ID of the Team Drive the file resides in.",
2406 "type": "string"
2407 },
2056 "thumbnailLink": { 2408 "thumbnailLink": {
2057 "description": "A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the req uesting app can access the file's content.", 2409 "description": "A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the req uesting app can access the file's content.",
2058 "type": "string" 2410 "type": "string"
2059 }, 2411 },
2060 "thumbnailVersion": { 2412 "thumbnailVersion": {
2061 "description": "The thumbnail version for use in thumbnail c ache invalidation.", 2413 "description": "The thumbnail version for use in thumbnail c ache invalidation.",
2062 "format": "int64", 2414 "format": "int64",
2063 "type": "string" 2415 "type": "string"
2064 }, 2416 },
2065 "trashed": { 2417 "trashed": {
2066 "description": "Whether the file has been trashed, either ex plicitly or from a trashed parent folder. Only the owner may trash a file, and o ther users cannot see files in the owner's trash.", 2418 "description": "Whether the file has been trashed, either ex plicitly or from a trashed parent folder. Only the owner may trash a file, and o ther users cannot see files in the owner's trash.",
2067 "type": "boolean" 2419 "type": "boolean"
2068 }, 2420 },
2421 "trashedTime": {
2422 "description": "The time that the item was trashed (RFC 3339 date-time). Only populated for Team Drive files.",
2423 "format": "date-time",
2424 "type": "string"
2425 },
2426 "trashingUser": {
2427 "$ref": "User",
2428 "description": "If the file has been explicitly trashed, the user who trashed it. Only populated for Team Drive files."
2429 },
2069 "version": { 2430 "version": {
2070 "description": "A monotonically increasing version number fo r the file. This reflects every change made to the file on the server, even thos e not visible to the user.", 2431 "description": "A monotonically increasing version number fo r the file. This reflects every change made to the file on the server, even thos e not visible to the user.",
2071 "format": "int64", 2432 "format": "int64",
2072 "type": "string" 2433 "type": "string"
2073 }, 2434 },
2074 "videoMediaMetadata": { 2435 "videoMediaMetadata": {
2075 "description": "Additional metadata about video media. This may not be available immediately upon upload.", 2436 "description": "Additional metadata about video media. This may not be available immediately upon upload.",
2076 "properties": { 2437 "properties": {
2077 "durationMillis": { 2438 "durationMillis": {
2078 "description": "The duration of the video in millise conds.", 2439 "description": "The duration of the video in millise conds.",
(...skipping 28 matching lines...) Expand all
2107 }, 2468 },
2108 "webContentLink": { 2469 "webContentLink": {
2109 "description": "A link for downloading the content of the fi le in a browser. This is only available for files with binary content in Drive." , 2470 "description": "A link for downloading the content of the fi le in a browser. This is only available for files with binary content in Drive." ,
2110 "type": "string" 2471 "type": "string"
2111 }, 2472 },
2112 "webViewLink": { 2473 "webViewLink": {
2113 "description": "A link for opening the file in a relevant Go ogle editor or viewer in a browser.", 2474 "description": "A link for opening the file in a relevant Go ogle editor or viewer in a browser.",
2114 "type": "string" 2475 "type": "string"
2115 }, 2476 },
2116 "writersCanShare": { 2477 "writersCanShare": {
2117 "description": "Whether users with only writer permission ca n modify the file's permissions.", 2478 "description": "Whether users with only writer permission ca n modify the file's permissions. Not populated for Team Drive files.",
2118 "type": "boolean" 2479 "type": "boolean"
2119 } 2480 }
2120 }, 2481 },
2121 "type": "object" 2482 "type": "object"
2122 }, 2483 },
2123 "FileList": { 2484 "FileList": {
2124 "description": "A list of files.", 2485 "description": "A list of files.",
2125 "id": "FileList", 2486 "id": "FileList",
2126 "properties": { 2487 "properties": {
2127 "files": { 2488 "files": {
2128 "description": "The list of files. If nextPageToken is popul ated, then this list may be incomplete and an additional page of results should be fetched.", 2489 "description": "The list of files. If nextPageToken is popul ated, then this list may be incomplete and an additional page of results should be fetched.",
2129 "items": { 2490 "items": {
2130 "$ref": "File" 2491 "$ref": "File"
2131 }, 2492 },
2132 "type": "array" 2493 "type": "array"
2133 }, 2494 },
2495 "incompleteSearch": {
2496 "description": "Whether the search process was incomplete. I f true, then some search results may be missing, since all documents were not se arched. This may occur when searching multiple Team Drives with the \"user,allTe amDrives\" corpora, but all corpora could not be searched. When this happens, it is suggested that clients narrow their query by choosing a different corpus suc h as \"user\" or \"teamDrive\".",
2497 "type": "boolean"
2498 },
2134 "kind": { 2499 "kind": {
2135 "default": "drive#fileList", 2500 "default": "drive#fileList",
2136 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#fileList\".", 2501 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#fileList\".",
2137 "type": "string" 2502 "type": "string"
2138 }, 2503 },
2139 "nextPageToken": { 2504 "nextPageToken": {
2140 "description": "The page token for the next page of files. T his will be absent if the end of the files list has been reached. If the token i s rejected for any reason, it should be discarded, and pagination should be rest arted from the first page of results.", 2505 "description": "The page token for the next page of files. T his will be absent if the end of the files list has been reached. If the token i s rejected for any reason, it should be discarded, and pagination should be rest arted from the first page of results.",
2141 "type": "string" 2506 "type": "string"
2142 } 2507 }
2143 }, 2508 },
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 }, 2545 },
2181 "domain": { 2546 "domain": {
2182 "description": "The domain to which this permission refers." , 2547 "description": "The domain to which this permission refers." ,
2183 "type": "string" 2548 "type": "string"
2184 }, 2549 },
2185 "emailAddress": { 2550 "emailAddress": {
2186 "description": "The email address of the user or group to wh ich this permission refers.", 2551 "description": "The email address of the user or group to wh ich this permission refers.",
2187 "type": "string" 2552 "type": "string"
2188 }, 2553 },
2189 "expirationTime": { 2554 "expirationTime": {
2190 "description": "The time at which this permission will expir e (RFC 3339 date-time).", 2555 "description": "The time at which this permission will expir e (RFC 3339 date-time). Expiration times have the following restrictions: \n- T hey can only be set on user and group permissions \n- The time must be in the fu ture \n- The time cannot be more than a year in the future",
2191 "format": "date-time", 2556 "format": "date-time",
2192 "type": "string" 2557 "type": "string"
2193 }, 2558 },
2194 "id": { 2559 "id": {
2195 "description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId." , 2560 "description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId." ,
2196 "type": "string" 2561 "type": "string"
2197 }, 2562 },
2198 "kind": { 2563 "kind": {
2199 "default": "drive#permission", 2564 "default": "drive#permission",
2200 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#permission\".", 2565 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#permission\".",
2201 "type": "string" 2566 "type": "string"
2202 }, 2567 },
2203 "photoLink": { 2568 "photoLink": {
2204 "description": "A link to the user's profile photo, if avail able.", 2569 "description": "A link to the user's profile photo, if avail able.",
2205 "type": "string" 2570 "type": "string"
2206 }, 2571 },
2207 "role": { 2572 "role": {
2208 "annotations": { 2573 "annotations": {
2209 "required": [ 2574 "required": [
2210 "drive.permissions.create" 2575 "drive.permissions.create"
2211 ] 2576 ]
2212 }, 2577 },
2213 "description": "The role granted by this permission. Valid v alues are: \n- owner \n- writer \n- commenter \n- reader", 2578 "description": "The role granted by this permission. While n ew values may be supported in the future, the following are currently allowed: \n- organizer \n- owner \n- writer \n- commenter \n- reader",
2214 "type": "string" 2579 "type": "string"
2215 }, 2580 },
2581 "teamDrivePermissionDetails": {
2582 "description": "Details of whether the Permissions on this T eam Drive item are inherited or directly on this item. This is an output-only fi eld which is present only for Team Drive items.",
2583 "items": {
2584 "properties": {
2585 "inherited": {
2586 "description": "Whether this permission is inher ited. This field is always populated. This is an output-only field.",
2587 "type": "boolean"
2588 },
2589 "inheritedFrom": {
2590 "description": "The ID of the item from which th is permission is inherited. This is an output-only field and is only populated f or members of the Team Drive.",
2591 "type": "string"
2592 },
2593 "role": {
2594 "description": "The primary role for this user. While new values may be added in the future, the following are currently possibl e: \n- organizer \n- writer \n- commenter \n- reader",
2595 "type": "string"
2596 },
2597 "teamDrivePermissionType": {
2598 "description": "The Team Drive permission type f or this user. While new values may be added in future, the following are current ly possible: \n- file\n- \n- member",
2599 "type": "string"
2600 }
2601 },
2602 "type": "object"
2603 },
2604 "type": "array"
2605 },
2216 "type": { 2606 "type": {
2217 "annotations": { 2607 "annotations": {
2218 "required": [ 2608 "required": [
2219 "drive.permissions.create" 2609 "drive.permissions.create"
2220 ] 2610 ]
2221 }, 2611 },
2222 "description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone", 2612 "description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone",
2223 "type": "string" 2613 "type": "string"
2224 } 2614 }
2225 }, 2615 },
2226 "type": "object" 2616 "type": "object"
2227 }, 2617 },
2228 "PermissionList": { 2618 "PermissionList": {
2229 "description": "A list of permissions for a file.", 2619 "description": "A list of permissions for a file.",
2230 "id": "PermissionList", 2620 "id": "PermissionList",
2231 "properties": { 2621 "properties": {
2232 "kind": { 2622 "kind": {
2233 "default": "drive#permissionList", 2623 "default": "drive#permissionList",
2234 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#permissionList\".", 2624 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#permissionList\".",
2235 "type": "string" 2625 "type": "string"
2236 }, 2626 },
2627 "nextPageToken": {
2628 "description": "The page token for the next page of permissi ons. This field will be absent if the end of the permissions list has been reach ed. If the token is rejected for any reason, it should be discarded, and paginat ion should be restarted from the first page of results.",
2629 "type": "string"
2630 },
2237 "permissions": { 2631 "permissions": {
2238 "description": "The list of permissions.", 2632 "description": "The list of permissions. If nextPageToken is populated, then this list may be incomplete and an additional page of results s hould be fetched.",
2239 "items": { 2633 "items": {
2240 "$ref": "Permission" 2634 "$ref": "Permission"
2241 }, 2635 },
2242 "type": "array" 2636 "type": "array"
2243 } 2637 }
2244 }, 2638 },
2245 "type": "object" 2639 "type": "object"
2246 }, 2640 },
2247 "Reply": { 2641 "Reply": {
2248 "description": "A reply to a comment on a file.", 2642 "description": "A reply to a comment on a file.",
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#startPageToken\".", 2801 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#startPageToken\".",
2408 "type": "string" 2802 "type": "string"
2409 }, 2803 },
2410 "startPageToken": { 2804 "startPageToken": {
2411 "description": "The starting page token for listing changes. ", 2805 "description": "The starting page token for listing changes. ",
2412 "type": "string" 2806 "type": "string"
2413 } 2807 }
2414 }, 2808 },
2415 "type": "object" 2809 "type": "object"
2416 }, 2810 },
2811 "TeamDrive": {
2812 "description": "Representation of a Team Drive.",
2813 "id": "TeamDrive",
2814 "properties": {
2815 "capabilities": {
2816 "description": "Capabilities the current user has on this Te am Drive.",
2817 "properties": {
2818 "canAddChildren": {
2819 "description": "Whether the current user can add chi ldren to folders in this Team Drive.",
2820 "type": "boolean"
2821 },
2822 "canComment": {
2823 "description": "Whether the current user can comment on files in this Team Drive.",
2824 "type": "boolean"
2825 },
2826 "canCopy": {
2827 "description": "Whether files in this Team Drive can be copied by the current user.",
2828 "type": "boolean"
2829 },
2830 "canDeleteTeamDrive": {
2831 "description": "Whether this Team Drive can be delet ed by the current user.",
2832 "type": "boolean"
2833 },
2834 "canDownload": {
2835 "description": "Whether files in this Team Drive can be downloaded by the current user.",
2836 "type": "boolean"
2837 },
2838 "canEdit": {
2839 "description": "Whether files in this Team Drive can be edited by the current user.",
2840 "type": "boolean"
2841 },
2842 "canListChildren": {
2843 "description": "Whether the current user can list th e children of folders in this Team Drive.",
2844 "type": "boolean"
2845 },
2846 "canManageMembers": {
2847 "description": "Whether the current user can add mem bers to this Team Drive or remove them or change their role.",
2848 "type": "boolean"
2849 },
2850 "canReadRevisions": {
2851 "description": "Whether the current user has read ac cess to the Revisions resource of files in this Team Drive.",
2852 "type": "boolean"
2853 },
2854 "canRemoveChildren": {
2855 "description": "Whether the current user can remove children from folders in this Team Drive.",
2856 "type": "boolean"
2857 },
2858 "canRename": {
2859 "description": "Whether files or folders in this Tea m Drive can be renamed by the current user.",
2860 "type": "boolean"
2861 },
2862 "canRenameTeamDrive": {
2863 "description": "Whether this Team Drive can be renam ed by the current user.",
2864 "type": "boolean"
2865 },
2866 "canShare": {
2867 "description": "Whether the current user can share f iles or folders in this Team Drive.",
2868 "type": "boolean"
2869 }
2870 },
2871 "type": "object"
2872 },
2873 "id": {
2874 "description": "The ID of this Team Drive which is also the ID of the top level folder for this Team Drive.",
2875 "type": "string"
2876 },
2877 "kind": {
2878 "default": "drive#teamDrive",
2879 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#teamDrive\".",
2880 "type": "string"
2881 },
2882 "name": {
2883 "description": "The name of this Team Drive.",
2884 "type": "string"
2885 }
2886 },
2887 "type": "object"
2888 },
2889 "TeamDriveList": {
2890 "description": "A list of Team Drives.",
2891 "id": "TeamDriveList",
2892 "properties": {
2893 "kind": {
2894 "default": "drive#teamDriveList",
2895 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"drive#teamDriveList\".",
2896 "type": "string"
2897 },
2898 "nextPageToken": {
2899 "description": "The page token for the next page of Team Dri ves. This will be absent if the end of the Team Drives list has been reached. If the token is rejected for any reason, it should be discarded, and pagination sh ould be restarted from the first page of results.",
2900 "type": "string"
2901 },
2902 "teamDrives": {
2903 "description": "The list of Team Drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results s hould be fetched.",
2904 "items": {
2905 "$ref": "TeamDrive"
2906 },
2907 "type": "array"
2908 }
2909 },
2910 "type": "object"
2911 },
2417 "User": { 2912 "User": {
2418 "description": "Information about a Drive user.", 2913 "description": "Information about a Drive user.",
2419 "id": "User", 2914 "id": "User",
2420 "properties": { 2915 "properties": {
2421 "displayName": { 2916 "displayName": {
2422 "description": "A plain text displayable name for this user. ", 2917 "description": "A plain text displayable name for this user. ",
2423 "type": "string" 2918 "type": "string"
2424 }, 2919 },
2425 "emailAddress": { 2920 "emailAddress": {
2426 "description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visi ble to the requester.", 2921 "description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visi ble to the requester.",
(...skipping 17 matching lines...) Expand all
2444 "type": "string" 2939 "type": "string"
2445 } 2940 }
2446 }, 2941 },
2447 "type": "object" 2942 "type": "object"
2448 } 2943 }
2449 }, 2944 },
2450 "servicePath": "drive/v3/", 2945 "servicePath": "drive/v3/",
2451 "title": "Drive API", 2946 "title": "Drive API",
2452 "version": "v3" 2947 "version": "v3"
2453 } 2948 }
OLDNEW
« no previous file with comments | « discovery/googleapis/drive__v2.json ('k') | discovery/googleapis/firebasedynamiclinks__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698