@maxim_mazurok/gapi.client.drive-v3 0.0.20220731

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,2999 @@
1
+ /* Type definitions for non-npm package Drive API v3 0.0 */
2
+ // Project: https://developers.google.com/drive/
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://www.googleapis.com/discovery/v1/apis/drive/v3/rest
13
+ // Revision: 20220731
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Drive API v3 */
19
+ function load(urlOrObject: "https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "drive", version: "v3"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "drive", version: "v3", callback: () => any): void;
24
+
25
+ namespace drive {
26
+ interface About {
27
+ /** Whether the user has installed the requesting app. */
28
+ appInstalled?: boolean;
29
+ /** Whether the user can create shared drives. */
30
+ canCreateDrives?: boolean;
31
+ /** Deprecated - use canCreateDrives instead. */
32
+ canCreateTeamDrives?: boolean;
33
+ /** A list of themes that are supported for shared drives. */
34
+ driveThemes?: Array<{
35
+ /** A link to this theme's background image. */
36
+ backgroundImageLink?: string;
37
+ /** The color of this theme as an RGB hex string. */
38
+ colorRgb?: string;
39
+ /** The ID of the theme. */
40
+ id?: string;
41
+ }>;
42
+ /** A map of source MIME type to possible targets for all supported exports. */
43
+ exportFormats?: { [P in string]: string[] };
44
+ /** The currently supported folder colors as RGB hex strings. */
45
+ folderColorPalette?: string[];
46
+ /** A map of source MIME type to possible targets for all supported imports. */
47
+ importFormats?: { [P in string]: string[] };
48
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#about". */
49
+ kind?: string;
50
+ /** A map of maximum import sizes by MIME type, in bytes. */
51
+ maxImportSizes?: { [P in string]: string };
52
+ /** The maximum upload size in bytes. */
53
+ maxUploadSize?: string;
54
+ /** The user's storage quota limits and usage. All fields are measured in bytes. */
55
+ storageQuota?: {
56
+ /** The usage limit, if applicable. This will not be present if the user has unlimited storage. */
57
+ limit?: string;
58
+ /** The total usage across all services. */
59
+ usage?: string;
60
+ /** The usage by all files in Google Drive. */
61
+ usageInDrive?: string;
62
+ /** The usage by trashed files in Google Drive. */
63
+ usageInDriveTrash?: string;
64
+ };
65
+ /** Deprecated - use driveThemes instead. */
66
+ teamDriveThemes?: Array<{
67
+ /** Deprecated - use driveThemes/backgroundImageLink instead. */
68
+ backgroundImageLink?: string;
69
+ /** Deprecated - use driveThemes/colorRgb instead. */
70
+ colorRgb?: string;
71
+ /** Deprecated - use driveThemes/id instead. */
72
+ id?: string;
73
+ }>;
74
+ /** The authenticated user. */
75
+ user?: User;
76
+ }
77
+ interface Change {
78
+ /** The type of the change. Possible values are file and drive. */
79
+ changeType?: string;
80
+ /** The updated state of the shared drive. Present if the changeType is drive, the user is still a member of the shared drive, and the shared drive has not been deleted. */
81
+ drive?: Drive;
82
+ /** The ID of the shared drive associated with this change. */
83
+ driveId?: string;
84
+ /** The updated state of the file. Present if the type is file and the file has not been removed from this list of changes. */
85
+ file?: File;
86
+ /** The ID of the file which has changed. */
87
+ fileId?: string;
88
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#change". */
89
+ kind?: string;
90
+ /** Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access. */
91
+ removed?: boolean;
92
+ /** Deprecated - use drive instead. */
93
+ teamDrive?: TeamDrive;
94
+ /** Deprecated - use driveId instead. */
95
+ teamDriveId?: string;
96
+ /** The time of this change (RFC 3339 date-time). */
97
+ time?: string;
98
+ /** Deprecated - use changeType instead. */
99
+ type?: string;
100
+ }
101
+ interface ChangeList {
102
+ /** The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
103
+ changes?: Change[];
104
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#changeList". */
105
+ kind?: string;
106
+ /** The starting page token for future changes. This will be present only if the end of the current changes list has been reached. */
107
+ newStartPageToken?: string;
108
+ /**
109
+ * The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded,
110
+ * and pagination should be restarted from the first page of results.
111
+ */
112
+ nextPageToken?: string;
113
+ }
114
+ interface Channel {
115
+ /** The address where notifications are delivered for this channel. */
116
+ address?: string;
117
+ /** Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. */
118
+ expiration?: string;
119
+ /** A UUID or similar unique string that identifies this channel. */
120
+ id?: string;
121
+ /** Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel". */
122
+ kind?: string;
123
+ /** Additional parameters controlling delivery channel behavior. Optional. */
124
+ params?: { [P in string]: string };
125
+ /** A Boolean value to indicate whether payload is wanted. Optional. */
126
+ payload?: boolean;
127
+ /** An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. */
128
+ resourceId?: string;
129
+ /** A version-specific identifier for the watched resource. */
130
+ resourceUri?: string;
131
+ /** An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. */
132
+ token?: string;
133
+ /** The type of delivery mechanism used for this channel. Valid values are "web_hook" (or "webhook"). Both values refer to a channel where Http requests are used to deliver messages. */
134
+ type?: string;
135
+ }
136
+ interface Comment {
137
+ /** A region of the document represented as a JSON string. For details on defining anchor properties, refer to Add comments and replies. */
138
+ anchor?: string;
139
+ /** The author of the comment. The author's email address and permission ID will not be populated. */
140
+ author?: User;
141
+ /** The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. */
142
+ content?: string;
143
+ /** The time at which the comment was created (RFC 3339 date-time). */
144
+ createdTime?: string;
145
+ /** Whether the comment has been deleted. A deleted comment has no content. */
146
+ deleted?: boolean;
147
+ /** The content of the comment with HTML formatting. */
148
+ htmlContent?: string;
149
+ /** The ID of the comment. */
150
+ id?: string;
151
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#comment". */
152
+ kind?: string;
153
+ /** The last time the comment or any of its replies was modified (RFC 3339 date-time). */
154
+ modifiedTime?: string;
155
+ /** The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. */
156
+ quotedFileContent?: {
157
+ /** The MIME type of the quoted content. */
158
+ mimeType?: string;
159
+ /** The quoted content itself. This is interpreted as plain text if set through the API. */
160
+ value?: string;
161
+ };
162
+ /** The full list of replies to the comment in chronological order. */
163
+ replies?: Reply[];
164
+ /** Whether the comment has been resolved by one of its replies. */
165
+ resolved?: boolean;
166
+ }
167
+ interface CommentList {
168
+ /** The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
169
+ comments?: Comment[];
170
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#commentList". */
171
+ kind?: string;
172
+ /**
173
+ * The page token for the next page of comments. This will be absent if the end of the comments list has been reached. If the token is rejected for any reason, it should be discarded,
174
+ * and pagination should be restarted from the first page of results.
175
+ */
176
+ nextPageToken?: string;
177
+ }
178
+ interface ContentRestriction {
179
+ /**
180
+ * 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
181
+ * may not be modified.
182
+ */
183
+ readOnly?: boolean;
184
+ /** Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true. */
185
+ reason?: string;
186
+ /** The user who set the content restriction. Only populated if readOnly is true. */
187
+ restrictingUser?: User;
188
+ /** The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true. */
189
+ restrictionTime?: string;
190
+ /** The type of the content restriction. Currently the only possible value is globalContentRestriction. */
191
+ type?: string;
192
+ }
193
+ interface Drive {
194
+ /**
195
+ * An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that
196
+ * don't set themeId. When specified, all fields of the backgroundImageFile must be set.
197
+ */
198
+ backgroundImageFile?: {
199
+ /** The ID of an image file in Google Drive to use for the background image. */
200
+ id?: string;
201
+ /**
202
+ * The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is
203
+ * computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
204
+ */
205
+ width?: number;
206
+ /**
207
+ * The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal
208
+ * distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
209
+ */
210
+ xCoordinate?: number;
211
+ /**
212
+ * The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical
213
+ * distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
214
+ */
215
+ yCoordinate?: number;
216
+ };
217
+ /** A short-lived link to this shared drive's background image. */
218
+ backgroundImageLink?: string;
219
+ /** Capabilities the current user has on this shared drive. */
220
+ capabilities?: {
221
+ /** Whether the current user can add children to folders in this shared drive. */
222
+ canAddChildren?: boolean;
223
+ /** Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. */
224
+ canChangeCopyRequiresWriterPermissionRestriction?: boolean;
225
+ /** Whether the current user can change the domainUsersOnly restriction of this shared drive. */
226
+ canChangeDomainUsersOnlyRestriction?: boolean;
227
+ /** Whether the current user can change the background of this shared drive. */
228
+ canChangeDriveBackground?: boolean;
229
+ /** Whether the current user can change the driveMembersOnly restriction of this shared drive. */
230
+ canChangeDriveMembersOnlyRestriction?: boolean;
231
+ /** Whether the current user can comment on files in this shared drive. */
232
+ canComment?: boolean;
233
+ /** Whether the current user can copy files in this shared drive. */
234
+ canCopy?: boolean;
235
+ /** Whether the current user can delete children from folders in this shared drive. */
236
+ canDeleteChildren?: boolean;
237
+ /** Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. */
238
+ canDeleteDrive?: boolean;
239
+ /** Whether the current user can download files in this shared drive. */
240
+ canDownload?: boolean;
241
+ /** Whether the current user can edit files in this shared drive */
242
+ canEdit?: boolean;
243
+ /** Whether the current user can list the children of folders in this shared drive. */
244
+ canListChildren?: boolean;
245
+ /** Whether the current user can add members to this shared drive or remove them or change their role. */
246
+ canManageMembers?: boolean;
247
+ /** Whether the current user can read the revisions resource of files in this shared drive. */
248
+ canReadRevisions?: boolean;
249
+ /** Whether the current user can rename files or folders in this shared drive. */
250
+ canRename?: boolean;
251
+ /** Whether the current user can rename this shared drive. */
252
+ canRenameDrive?: boolean;
253
+ /** Whether the current user can reset the shared drive restrictions to defaults. */
254
+ canResetDriveRestrictions?: boolean;
255
+ /** Whether the current user can share files or folders in this shared drive. */
256
+ canShare?: boolean;
257
+ /** Whether the current user can trash children from folders in this shared drive. */
258
+ canTrashChildren?: boolean;
259
+ };
260
+ /** The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. */
261
+ colorRgb?: string;
262
+ /** The time at which the shared drive was created (RFC 3339 date-time). */
263
+ createdTime?: string;
264
+ /** Whether the shared drive is hidden from default view. */
265
+ hidden?: boolean;
266
+ /** The ID of this shared drive which is also the ID of the top level folder of this shared drive. */
267
+ id?: string;
268
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#drive". */
269
+ kind?: string;
270
+ /** The name of this shared drive. */
271
+ name?: string;
272
+ /** The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true. */
273
+ orgUnitId?: string;
274
+ /** A set of restrictions that apply to this shared drive or items inside this shared drive. */
275
+ restrictions?: {
276
+ /** Whether administrative privileges on this shared drive are required to modify restrictions. */
277
+ adminManagedRestrictions?: boolean;
278
+ /**
279
+ * Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will
280
+ * override the similarly named field to true for any file inside this shared drive.
281
+ */
282
+ copyRequiresWriterPermission?: boolean;
283
+ /**
284
+ * Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be
285
+ * overridden by other sharing policies controlled outside of this shared drive.
286
+ */
287
+ domainUsersOnly?: boolean;
288
+ /** Whether access to items inside this shared drive is restricted to its members. */
289
+ driveMembersOnly?: boolean;
290
+ };
291
+ /**
292
+ * The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a
293
+ * drive.drives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set
294
+ * colorRgb or backgroundImageFile.
295
+ */
296
+ themeId?: string;
297
+ }
298
+ interface DriveList {
299
+ /** The list of shared drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
300
+ drives?: Drive[];
301
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#driveList". */
302
+ kind?: string;
303
+ /**
304
+ * The page token for the next page of shared drives. This 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
305
+ * pagination should be restarted from the first page of results.
306
+ */
307
+ nextPageToken?: string;
308
+ }
309
+ interface File {
310
+ /**
311
+ * A collection of arbitrary key-value pairs which are private to the requesting app.
312
+ * 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
313
+ * token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
314
+ */
315
+ appProperties?: { [P in string]: string };
316
+ /** Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take. */
317
+ capabilities?: {
318
+ /** Whether the current user is the pending owner of the file. Not populated for shared drive files. */
319
+ canAcceptOwnership?: boolean;
320
+ /** Whether the current user can add children to this folder. This is always false when the item is not a folder. */
321
+ canAddChildren?: boolean;
322
+ /**
323
+ * Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for
324
+ * items in shared drives.
325
+ */
326
+ canAddFolderFromAnotherDrive?: boolean;
327
+ /** 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. */
328
+ canAddMyDriveParent?: boolean;
329
+ /** Whether the current user can change the copyRequiresWriterPermission restriction of this file. */
330
+ canChangeCopyRequiresWriterPermission?: boolean;
331
+ /** Whether the current user can change the securityUpdateEnabled field on link share metadata. */
332
+ canChangeSecurityUpdateEnabled?: boolean;
333
+ /** Deprecated */
334
+ canChangeViewersCanCopyContent?: boolean;
335
+ /** Whether the current user can comment on this file. */
336
+ canComment?: boolean;
337
+ /**
338
+ * Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is
339
+ * not a folder.
340
+ */
341
+ canCopy?: boolean;
342
+ /** Whether the current user can delete this file. */
343
+ canDelete?: boolean;
344
+ /** Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives. */
345
+ canDeleteChildren?: boolean;
346
+ /** Whether the current user can download this file. */
347
+ canDownload?: boolean;
348
+ /**
349
+ * 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
350
+ * canModifyContent.
351
+ */
352
+ canEdit?: boolean;
353
+ /** Whether the current user can list the children of this folder. This is always false when the item is not a folder. */
354
+ canListChildren?: boolean;
355
+ /** Whether the current user can modify the content of this file. */
356
+ canModifyContent?: boolean;
357
+ /** Whether the current user can modify restrictions on content of this file. */
358
+ canModifyContentRestriction?: boolean;
359
+ /** Whether the current user can modify the labels on this file. */
360
+ canModifyLabels?: boolean;
361
+ /** Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives. */
362
+ canMoveChildrenOutOfDrive?: boolean;
363
+ /** Deprecated - use canMoveChildrenOutOfDrive instead. */
364
+ canMoveChildrenOutOfTeamDrive?: boolean;
365
+ /**
366
+ * Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail
367
+ * depending on the current user's access to the child and to the destination folder.
368
+ */
369
+ canMoveChildrenWithinDrive?: boolean;
370
+ /** Deprecated - use canMoveChildrenWithinDrive instead. */
371
+ canMoveChildrenWithinTeamDrive?: boolean;
372
+ /** Deprecated - use canMoveItemOutOfDrive instead. */
373
+ canMoveItemIntoTeamDrive?: boolean;
374
+ /**
375
+ * 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
376
+ * new parent that is being added.
377
+ */
378
+ canMoveItemOutOfDrive?: boolean;
379
+ /** Deprecated - use canMoveItemOutOfDrive instead. */
380
+ canMoveItemOutOfTeamDrive?: boolean;
381
+ /**
382
+ * Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being
383
+ * added and the parent that is being removed.
384
+ */
385
+ canMoveItemWithinDrive?: boolean;
386
+ /** Deprecated - use canMoveItemWithinDrive instead. */
387
+ canMoveItemWithinTeamDrive?: boolean;
388
+ /** Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead. */
389
+ canMoveTeamDriveItem?: boolean;
390
+ /** Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives. */
391
+ canReadDrive?: boolean;
392
+ /** Whether the current user can read the labels on this file. */
393
+ canReadLabels?: boolean;
394
+ /**
395
+ * Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if
396
+ * it is not a folder, can be read.
397
+ */
398
+ canReadRevisions?: boolean;
399
+ /** Deprecated - use canReadDrive instead. */
400
+ canReadTeamDrive?: boolean;
401
+ /**
402
+ * Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or
403
+ * canTrashChildren instead.
404
+ */
405
+ canRemoveChildren?: boolean;
406
+ /** 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. */
407
+ canRemoveMyDriveParent?: boolean;
408
+ /** Whether the current user can rename this file. */
409
+ canRename?: boolean;
410
+ /** Whether the current user can modify the sharing settings for this file. */
411
+ canShare?: boolean;
412
+ /** Whether the current user can move this file to trash. */
413
+ canTrash?: boolean;
414
+ /** Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives. */
415
+ canTrashChildren?: boolean;
416
+ /** Whether the current user can restore this file from trash. */
417
+ canUntrash?: boolean;
418
+ };
419
+ /** Additional information about the content of the file. These fields are never populated in responses. */
420
+ contentHints?: {
421
+ /** Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements. */
422
+ indexableText?: string;
423
+ /** A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail. */
424
+ thumbnail?: {
425
+ /** The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5). */
426
+ image?: string;
427
+ /** The MIME type of the thumbnail. */
428
+ mimeType?: string;
429
+ };
430
+ };
431
+ /** Restrictions for accessing the content of the file. Only populated if such a restriction exists. */
432
+ contentRestrictions?: ContentRestriction[];
433
+ /** Whether the options to copy, print, or download this file, should be disabled for readers and commenters. */
434
+ copyRequiresWriterPermission?: boolean;
435
+ /** The time at which the file was created (RFC 3339 date-time). */
436
+ createdTime?: string;
437
+ /** A short description of the file. */
438
+ description?: string;
439
+ /** ID of the shared drive the file resides in. Only populated for items in shared drives. */
440
+ driveId?: string;
441
+ /** Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder. */
442
+ explicitlyTrashed?: boolean;
443
+ /** Links for exporting Docs Editors files to specific formats. */
444
+ exportLinks?: { [P in string]: string };
445
+ /** The final component of fullFileExtension. This is only available for files with binary content in Google Drive. */
446
+ fileExtension?: string;
447
+ /**
448
+ * The color for a folder or shortcut to a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
449
+ * If an unsupported color is specified, the closest color in the palette will be used instead.
450
+ */
451
+ folderColorRgb?: string;
452
+ /**
453
+ * The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google
454
+ * Drive.
455
+ * This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
456
+ */
457
+ fullFileExtension?: string;
458
+ /** Whether there are permissions directly on this file. This field is only populated for items in shared drives. */
459
+ hasAugmentedPermissions?: boolean;
460
+ /** Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field. */
461
+ hasThumbnail?: boolean;
462
+ /** The ID of the file's head revision. This is currently only available for files with binary content in Google Drive. */
463
+ headRevisionId?: string;
464
+ /** A static, unauthenticated link to the file's icon. */
465
+ iconLink?: string;
466
+ /** The ID of the file. */
467
+ id?: string;
468
+ /** Additional metadata about image media, if available. */
469
+ imageMediaMetadata?: {
470
+ /** The aperture used to create the photo (f-number). */
471
+ aperture?: number;
472
+ /** The make of the camera used to create the photo. */
473
+ cameraMake?: string;
474
+ /** The model of the camera used to create the photo. */
475
+ cameraModel?: string;
476
+ /** The color space of the photo. */
477
+ colorSpace?: string;
478
+ /** The exposure bias of the photo (APEX value). */
479
+ exposureBias?: number;
480
+ /** The exposure mode used to create the photo. */
481
+ exposureMode?: string;
482
+ /** The length of the exposure, in seconds. */
483
+ exposureTime?: number;
484
+ /** Whether a flash was used to create the photo. */
485
+ flashUsed?: boolean;
486
+ /** The focal length used to create the photo, in millimeters. */
487
+ focalLength?: number;
488
+ /** The height of the image in pixels. */
489
+ height?: number;
490
+ /** The ISO speed used to create the photo. */
491
+ isoSpeed?: number;
492
+ /** The lens used to create the photo. */
493
+ lens?: string;
494
+ /** Geographic location information stored in the image. */
495
+ location?: {
496
+ /** The altitude stored in the image. */
497
+ altitude?: number;
498
+ /** The latitude stored in the image. */
499
+ latitude?: number;
500
+ /** The longitude stored in the image. */
501
+ longitude?: number;
502
+ };
503
+ /** The smallest f-number of the lens at the focal length used to create the photo (APEX value). */
504
+ maxApertureValue?: number;
505
+ /** The metering mode used to create the photo. */
506
+ meteringMode?: string;
507
+ /** The number of clockwise 90 degree rotations applied from the image's original orientation. */
508
+ rotation?: number;
509
+ /** The type of sensor used to create the photo. */
510
+ sensor?: string;
511
+ /** The distance to the subject of the photo, in meters. */
512
+ subjectDistance?: number;
513
+ /** The date and time the photo was taken (EXIF DateTime). */
514
+ time?: string;
515
+ /** The white balance mode used to create the photo. */
516
+ whiteBalance?: string;
517
+ /** The width of the image in pixels. */
518
+ width?: number;
519
+ };
520
+ /** Whether the file was created or opened by the requesting app. */
521
+ isAppAuthorized?: boolean;
522
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#file". */
523
+ kind?: string;
524
+ /** An overview of the labels on the file. */
525
+ labelInfo?: {
526
+ /** The set of labels on the file as requested by the label IDs in the includeLabels parameter. By default, no labels are returned. */
527
+ labels?: Label[];
528
+ };
529
+ /** The last user to modify the file. */
530
+ lastModifyingUser?: User;
531
+ /** Contains details about the link URLs that clients are using to refer to this item. */
532
+ linkShareMetadata?: {
533
+ /** Whether the file is eligible for security update. */
534
+ securityUpdateEligible?: boolean;
535
+ /** Whether the security update is enabled for this file. */
536
+ securityUpdateEnabled?: boolean;
537
+ };
538
+ /** The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive. */
539
+ md5Checksum?: string;
540
+ /**
541
+ * The MIME type of the file.
542
+ * Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
543
+ * If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
544
+ */
545
+ mimeType?: string;
546
+ /** Whether the file has been modified by this user. */
547
+ modifiedByMe?: boolean;
548
+ /** The last time the file was modified by the user (RFC 3339 date-time). */
549
+ modifiedByMeTime?: string;
550
+ /**
551
+ * The last time the file was modified by anyone (RFC 3339 date-time).
552
+ * Note that setting modifiedTime will also update modifiedByMeTime for the user.
553
+ */
554
+ modifiedTime?: string;
555
+ /**
556
+ * The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and
557
+ * Application Data folder the name is constant.
558
+ */
559
+ name?: string;
560
+ /** 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. */
561
+ originalFilename?: string;
562
+ /** Whether the user owns the file. Not populated for items in shared drives. */
563
+ ownedByMe?: boolean;
564
+ /** The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives. */
565
+ owners?: User[];
566
+ /**
567
+ * The IDs of the parent folders which contain the file.
568
+ * If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any
569
+ * discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
570
+ */
571
+ parents?: string[];
572
+ /** List of permission IDs for users with access to this file. */
573
+ permissionIds?: string[];
574
+ /** 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. */
575
+ permissions?: Permission[];
576
+ /**
577
+ * A collection of arbitrary key-value pairs which are visible to all apps.
578
+ * Entries with null values are cleared in update and copy requests.
579
+ */
580
+ properties?: { [P in string]: string };
581
+ /** The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled. */
582
+ quotaBytesUsed?: string;
583
+ /** A key needed to access the item via a shared link. */
584
+ resourceKey?: string;
585
+ /** Whether the file has been shared. Not populated for items in shared drives. */
586
+ shared?: boolean;
587
+ /** The time at which the file was shared with the user, if applicable (RFC 3339 date-time). */
588
+ sharedWithMeTime?: string;
589
+ /** The user who shared the file with the requesting user, if applicable. */
590
+ sharingUser?: User;
591
+ /** Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut. */
592
+ shortcutDetails?: {
593
+ /** The ID of the file that this shortcut points to. */
594
+ targetId?: string;
595
+ /** The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created. */
596
+ targetMimeType?: string;
597
+ /** The ResourceKey for the target file. */
598
+ targetResourceKey?: string;
599
+ };
600
+ /** The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files. */
601
+ size?: string;
602
+ /** The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'. */
603
+ spaces?: string[];
604
+ /** Whether the user has starred the file. */
605
+ starred?: boolean;
606
+ /** Deprecated - use driveId instead. */
607
+ teamDriveId?: string;
608
+ /**
609
+ * A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content. If the file
610
+ * isn't shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
611
+ */
612
+ thumbnailLink?: string;
613
+ /** The thumbnail version for use in thumbnail cache invalidation. */
614
+ thumbnailVersion?: string;
615
+ /**
616
+ * Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses
617
+ * returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy,
618
+ * download, export, and share the file.
619
+ */
620
+ trashed?: boolean;
621
+ /** The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives. */
622
+ trashedTime?: string;
623
+ /** If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives. */
624
+ trashingUser?: User;
625
+ /** 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. */
626
+ version?: string;
627
+ /** Additional metadata about video media. This may not be available immediately upon upload. */
628
+ videoMediaMetadata?: {
629
+ /** The duration of the video in milliseconds. */
630
+ durationMillis?: string;
631
+ /** The height of the video in pixels. */
632
+ height?: number;
633
+ /** The width of the video in pixels. */
634
+ width?: number;
635
+ };
636
+ /** Whether the file has been viewed by this user. */
637
+ viewedByMe?: boolean;
638
+ /** The last time the file was viewed by the user (RFC 3339 date-time). */
639
+ viewedByMeTime?: string;
640
+ /** Deprecated - use copyRequiresWriterPermission instead. */
641
+ viewersCanCopyContent?: boolean;
642
+ /** A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive. */
643
+ webContentLink?: string;
644
+ /** A link for opening the file in a relevant Google editor or viewer in a browser. */
645
+ webViewLink?: string;
646
+ /** Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives. */
647
+ writersCanShare?: boolean;
648
+ }
649
+ interface FileList {
650
+ /** The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
651
+ files?: File[];
652
+ /**
653
+ * Whether the search process was incomplete. If true, then some search results may be missing, since all documents were not searched. This may occur when searching multiple drives
654
+ * with the "allDrives" corpora, but all corpora could not be searched. When this happens, it is suggested that clients narrow their query by choosing a different corpus such as "user"
655
+ * or "drive".
656
+ */
657
+ incompleteSearch?: boolean;
658
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#fileList". */
659
+ kind?: string;
660
+ /**
661
+ * 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
662
+ * pagination should be restarted from the first page of results.
663
+ */
664
+ nextPageToken?: string;
665
+ }
666
+ interface GeneratedIds {
667
+ /** The IDs generated for the requesting user in the specified space. */
668
+ ids?: string[];
669
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#generatedIds". */
670
+ kind?: string;
671
+ /** The type of file that can be created with these IDs. */
672
+ space?: string;
673
+ }
674
+ interface Label {
675
+ /** A map of the label's fields keyed by the field ID. */
676
+ fields?: { [P in string]: LabelField };
677
+ /** The ID of the label. */
678
+ id?: string;
679
+ /** This is always drive#label */
680
+ kind?: string;
681
+ /** The revision ID of the label. */
682
+ revisionId?: string;
683
+ }
684
+ interface LabelField {
685
+ /** Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD. */
686
+ dateString?: string[];
687
+ /** The identifier of this field. */
688
+ id?: string;
689
+ /** Only present if valueType is integer. */
690
+ integer?: string[];
691
+ /** This is always drive#labelField. */
692
+ kind?: string;
693
+ /** Only present if valueType is selection. */
694
+ selection?: string[];
695
+ /** Only present if valueType is text. */
696
+ text?: string[];
697
+ /** Only present if valueType is user. */
698
+ user?: User[];
699
+ /**
700
+ * The field type. While new values may be supported in the future, the following are currently allowed:
701
+ * - dateString
702
+ * - integer
703
+ * - selection
704
+ * - text
705
+ * - user
706
+ */
707
+ valueType?: string;
708
+ }
709
+ interface LabelFieldModification {
710
+ /** The ID of the Field to be modified. */
711
+ fieldId?: string;
712
+ /** This is always drive#labelFieldModification. */
713
+ kind?: string;
714
+ /** Replaces a dateString field with these new values. The values must be strings in the RFC 3339 full-date format: YYYY-MM-DD. */
715
+ setDateValues?: string[];
716
+ /** Replaces an integer field with these new values. */
717
+ setIntegerValues?: string[];
718
+ /** Replaces a selection field with these new values. */
719
+ setSelectionValues?: string[];
720
+ /** Replaces a text field with these new values. */
721
+ setTextValues?: string[];
722
+ /** Replaces a user field with these new values. The values must be valid email addresses. */
723
+ setUserValues?: string[];
724
+ /** Unsets the values for this field. */
725
+ unsetValues?: boolean;
726
+ }
727
+ interface LabelList {
728
+ /** This is always drive#labelList */
729
+ kind?: string;
730
+ /** The list of labels. */
731
+ labels?: Label[];
732
+ /**
733
+ * 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
734
+ * pagination should be restarted from the first page of results.
735
+ */
736
+ nextPageToken?: string;
737
+ }
738
+ interface LabelModification {
739
+ /** The list of modifications to this label's fields. */
740
+ fieldModifications?: LabelFieldModification[];
741
+ /** This is always drive#labelModification. */
742
+ kind?: string;
743
+ /** The ID of the label to modify. */
744
+ labelId?: string;
745
+ /** If true, the label will be removed from the file. */
746
+ removeLabel?: boolean;
747
+ }
748
+ interface ModifyLabelsRequest {
749
+ /** This is always drive#modifyLabelsRequest */
750
+ kind?: string;
751
+ /** The list of modifications to apply to the labels on the file. */
752
+ labelModifications?: LabelModification[];
753
+ }
754
+ interface ModifyLabelsResponse {
755
+ /** This is always drive#modifyLabelsResponse */
756
+ kind?: string;
757
+ /** The list of labels which were added or updated by the request. */
758
+ modifiedLabels?: Label[];
759
+ }
760
+ interface Permission {
761
+ /** Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone. */
762
+ allowFileDiscovery?: boolean;
763
+ /** Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions. */
764
+ deleted?: boolean;
765
+ /**
766
+ * The "pretty" name of the value of the permission. The following is a list of examples for each type of permission:
767
+ * - user - User's full name, as defined for their Google account, such as "Joe Smith."
768
+ * - group - Name of the Google Group, such as "The Company Administrators."
769
+ * - domain - String domain name, such as "thecompany.com."
770
+ * - anyone - No displayName is present.
771
+ */
772
+ displayName?: string;
773
+ /** The domain to which this permission refers. */
774
+ domain?: string;
775
+ /** The email address of the user or group to which this permission refers. */
776
+ emailAddress?: string;
777
+ /**
778
+ * The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
779
+ * - They can only be set on user and group permissions
780
+ * - The time must be in the future
781
+ * - The time cannot be more than a year in the future
782
+ */
783
+ expirationTime?: string;
784
+ /** The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values. */
785
+ id?: string;
786
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#permission". */
787
+ kind?: string;
788
+ /** Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that are not in a shared drive. */
789
+ pendingOwner?: boolean;
790
+ /** Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items. */
791
+ permissionDetails?: Array<{
792
+ /** Whether this permission is inherited. This field is always populated. This is an output-only field. */
793
+ inherited?: boolean;
794
+ /** The ID of the item from which this permission is inherited. This is an output-only field. */
795
+ inheritedFrom?: string;
796
+ /**
797
+ * The permission type for this user. While new values may be added in future, the following are currently possible:
798
+ * - file
799
+ * - member
800
+ */
801
+ permissionType?: string;
802
+ /**
803
+ * The primary role for this user. While new values may be added in the future, the following are currently possible:
804
+ * - organizer
805
+ * - fileOrganizer
806
+ * - writer
807
+ * - commenter
808
+ * - reader
809
+ */
810
+ role?: string;
811
+ }>;
812
+ /** A link to the user's profile photo, if available. */
813
+ photoLink?: string;
814
+ /**
815
+ * The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
816
+ * - owner
817
+ * - organizer
818
+ * - fileOrganizer
819
+ * - writer
820
+ * - commenter
821
+ * - reader
822
+ */
823
+ role?: string;
824
+ /** Deprecated - use permissionDetails instead. */
825
+ teamDrivePermissionDetails?: Array<{
826
+ /** Deprecated - use permissionDetails/inherited instead. */
827
+ inherited?: boolean;
828
+ /** Deprecated - use permissionDetails/inheritedFrom instead. */
829
+ inheritedFrom?: string;
830
+ /** Deprecated - use permissionDetails/role instead. */
831
+ role?: string;
832
+ /** Deprecated - use permissionDetails/permissionType instead. */
833
+ teamDrivePermissionType?: string;
834
+ }>;
835
+ /**
836
+ * The type of the grantee. Valid values are:
837
+ * - user
838
+ * - group
839
+ * - domain
840
+ * - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't
841
+ * extra information required for a anyone type.
842
+ */
843
+ type?: string;
844
+ /** Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value. */
845
+ view?: string;
846
+ }
847
+ interface PermissionList {
848
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#permissionList". */
849
+ kind?: string;
850
+ /**
851
+ * The page token for the next page of permissions. This field will be absent if the end of the permissions list has been reached. If the token is rejected for any reason, it should be
852
+ * discarded, and pagination should be restarted from the first page of results.
853
+ */
854
+ nextPageToken?: string;
855
+ /** The list of permissions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
856
+ permissions?: Permission[];
857
+ }
858
+ interface Reply {
859
+ /**
860
+ * The action the reply performed to the parent comment. Valid values are:
861
+ * - resolve
862
+ * - reopen
863
+ */
864
+ action?: string;
865
+ /** The author of the reply. The author's email address and permission ID will not be populated. */
866
+ author?: User;
867
+ /** The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. */
868
+ content?: string;
869
+ /** The time at which the reply was created (RFC 3339 date-time). */
870
+ createdTime?: string;
871
+ /** Whether the reply has been deleted. A deleted reply has no content. */
872
+ deleted?: boolean;
873
+ /** The content of the reply with HTML formatting. */
874
+ htmlContent?: string;
875
+ /** The ID of the reply. */
876
+ id?: string;
877
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#reply". */
878
+ kind?: string;
879
+ /** The last time the reply was modified (RFC 3339 date-time). */
880
+ modifiedTime?: string;
881
+ }
882
+ interface ReplyList {
883
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#replyList". */
884
+ kind?: string;
885
+ /**
886
+ * The page token for the next page of replies. This will be absent if the end of the replies list has been reached. If the token is rejected for any reason, it should be discarded,
887
+ * and pagination should be restarted from the first page of results.
888
+ */
889
+ nextPageToken?: string;
890
+ /** The list of replies. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
891
+ replies?: Reply[];
892
+ }
893
+ interface Revision {
894
+ /** Links for exporting Docs Editors files to specific formats. */
895
+ exportLinks?: { [P in string]: string };
896
+ /** The ID of the revision. */
897
+ id?: string;
898
+ /**
899
+ * Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This
900
+ * can be set on a maximum of 200 revisions for a file.
901
+ * This field is only applicable to files with binary content in Drive.
902
+ */
903
+ keepForever?: boolean;
904
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#revision". */
905
+ kind?: string;
906
+ /** The last user to modify this revision. */
907
+ lastModifyingUser?: User;
908
+ /** The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive. */
909
+ md5Checksum?: string;
910
+ /** The MIME type of the revision. */
911
+ mimeType?: string;
912
+ /** The last time the revision was modified (RFC 3339 date-time). */
913
+ modifiedTime?: string;
914
+ /** The original filename used to create this revision. This is only applicable to files with binary content in Drive. */
915
+ originalFilename?: string;
916
+ /** Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files. */
917
+ publishAuto?: boolean;
918
+ /** Whether this revision is published. This is only applicable to Docs Editors files. */
919
+ published?: boolean;
920
+ /** A link to the published revision. This is only populated for Google Sites files. */
921
+ publishedLink?: string;
922
+ /** Whether this revision is published outside the domain. This is only applicable to Docs Editors files. */
923
+ publishedOutsideDomain?: boolean;
924
+ /** The size of the revision's content in bytes. This is only applicable to files with binary content in Drive. */
925
+ size?: string;
926
+ }
927
+ interface RevisionList {
928
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#revisionList". */
929
+ kind?: string;
930
+ /**
931
+ * The page token for the next page of revisions. This will be absent if the end of the revisions list has been reached. If the token is rejected for any reason, it should be
932
+ * discarded, and pagination should be restarted from the first page of results.
933
+ */
934
+ nextPageToken?: string;
935
+ /** The list of revisions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
936
+ revisions?: Revision[];
937
+ }
938
+ interface StartPageToken {
939
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#startPageToken". */
940
+ kind?: string;
941
+ /** The starting page token for listing changes. */
942
+ startPageToken?: string;
943
+ }
944
+ interface TeamDrive {
945
+ /**
946
+ * An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests
947
+ * that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
948
+ */
949
+ backgroundImageFile?: {
950
+ /** The ID of an image file in Drive to use for the background image. */
951
+ id?: string;
952
+ /**
953
+ * The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is
954
+ * computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
955
+ */
956
+ width?: number;
957
+ /**
958
+ * The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal
959
+ * distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
960
+ */
961
+ xCoordinate?: number;
962
+ /**
963
+ * The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical
964
+ * distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
965
+ */
966
+ yCoordinate?: number;
967
+ };
968
+ /** A short-lived link to this Team Drive's background image. */
969
+ backgroundImageLink?: string;
970
+ /** Capabilities the current user has on this Team Drive. */
971
+ capabilities?: {
972
+ /** Whether the current user can add children to folders in this Team Drive. */
973
+ canAddChildren?: boolean;
974
+ /** Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. */
975
+ canChangeCopyRequiresWriterPermissionRestriction?: boolean;
976
+ /** Whether the current user can change the domainUsersOnly restriction of this Team Drive. */
977
+ canChangeDomainUsersOnlyRestriction?: boolean;
978
+ /** Whether the current user can change the background of this Team Drive. */
979
+ canChangeTeamDriveBackground?: boolean;
980
+ /** Whether the current user can change the teamMembersOnly restriction of this Team Drive. */
981
+ canChangeTeamMembersOnlyRestriction?: boolean;
982
+ /** Whether the current user can comment on files in this Team Drive. */
983
+ canComment?: boolean;
984
+ /** Whether the current user can copy files in this Team Drive. */
985
+ canCopy?: boolean;
986
+ /** Whether the current user can delete children from folders in this Team Drive. */
987
+ canDeleteChildren?: boolean;
988
+ /** Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive. */
989
+ canDeleteTeamDrive?: boolean;
990
+ /** Whether the current user can download files in this Team Drive. */
991
+ canDownload?: boolean;
992
+ /** Whether the current user can edit files in this Team Drive */
993
+ canEdit?: boolean;
994
+ /** Whether the current user can list the children of folders in this Team Drive. */
995
+ canListChildren?: boolean;
996
+ /** Whether the current user can add members to this Team Drive or remove them or change their role. */
997
+ canManageMembers?: boolean;
998
+ /** Whether the current user can read the revisions resource of files in this Team Drive. */
999
+ canReadRevisions?: boolean;
1000
+ /** Deprecated - use canDeleteChildren or canTrashChildren instead. */
1001
+ canRemoveChildren?: boolean;
1002
+ /** Whether the current user can rename files or folders in this Team Drive. */
1003
+ canRename?: boolean;
1004
+ /** Whether the current user can rename this Team Drive. */
1005
+ canRenameTeamDrive?: boolean;
1006
+ /** Whether the current user can reset the Team Drive restrictions to defaults. */
1007
+ canResetTeamDriveRestrictions?: boolean;
1008
+ /** Whether the current user can share files or folders in this Team Drive. */
1009
+ canShare?: boolean;
1010
+ /** Whether the current user can trash children from folders in this Team Drive. */
1011
+ canTrashChildren?: boolean;
1012
+ };
1013
+ /** The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId. */
1014
+ colorRgb?: string;
1015
+ /** The time at which the Team Drive was created (RFC 3339 date-time). */
1016
+ createdTime?: string;
1017
+ /** The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. */
1018
+ id?: string;
1019
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". */
1020
+ kind?: string;
1021
+ /** The name of this Team Drive. */
1022
+ name?: string;
1023
+ /** The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true. */
1024
+ orgUnitId?: string;
1025
+ /** A set of restrictions that apply to this Team Drive or items inside this Team Drive. */
1026
+ restrictions?: {
1027
+ /** Whether administrative privileges on this Team Drive are required to modify restrictions. */
1028
+ adminManagedRestrictions?: boolean;
1029
+ /**
1030
+ * Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will
1031
+ * override the similarly named field to true for any file inside this Team Drive.
1032
+ */
1033
+ copyRequiresWriterPermission?: boolean;
1034
+ /**
1035
+ * Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by
1036
+ * other sharing policies controlled outside of this Team Drive.
1037
+ */
1038
+ domainUsersOnly?: boolean;
1039
+ /** Whether access to items inside this Team Drive is restricted to members of this Team Drive. */
1040
+ teamMembersOnly?: boolean;
1041
+ };
1042
+ /**
1043
+ * The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified
1044
+ * on a drive.teamdrives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that
1045
+ * don't set colorRgb or backgroundImageFile.
1046
+ */
1047
+ themeId?: string;
1048
+ }
1049
+ interface TeamDriveList {
1050
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#teamDriveList". */
1051
+ kind?: string;
1052
+ /**
1053
+ * The page token for the next page of Team Drives. 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
1054
+ * discarded, and pagination should be restarted from the first page of results.
1055
+ */
1056
+ nextPageToken?: string;
1057
+ /** The list of Team Drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
1058
+ teamDrives?: TeamDrive[];
1059
+ }
1060
+ interface User {
1061
+ /** A plain text displayable name for this user. */
1062
+ displayName?: string;
1063
+ /** 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. */
1064
+ emailAddress?: string;
1065
+ /** Identifies what kind of resource this is. Value: the fixed string "drive#user". */
1066
+ kind?: string;
1067
+ /** Whether this user is the requesting user. */
1068
+ me?: boolean;
1069
+ /** The user's ID as visible in Permission resources. */
1070
+ permissionId?: string;
1071
+ /** A link to the user's profile photo, if available. */
1072
+ photoLink?: string;
1073
+ }
1074
+ interface AboutResource {
1075
+ /** Gets information about the user, the user's Drive, and system capabilities. */
1076
+ get(request?: {
1077
+ /** Data format for the response. */
1078
+ alt?: string;
1079
+ /** Selector specifying which fields to include in a partial response. */
1080
+ fields?: string;
1081
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1082
+ key?: string;
1083
+ /** OAuth 2.0 token for the current user. */
1084
+ oauth_token?: string;
1085
+ /** Returns response with indentations and line breaks. */
1086
+ prettyPrint?: boolean;
1087
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1088
+ quotaUser?: string;
1089
+ /** Deprecated. Please use quotaUser instead. */
1090
+ userIp?: string;
1091
+ }): Request<About>;
1092
+ }
1093
+ interface ChangesResource {
1094
+ /** Gets the starting pageToken for listing future changes. */
1095
+ getStartPageToken(request?: {
1096
+ /** Data format for the response. */
1097
+ alt?: string;
1098
+ /** The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned. */
1099
+ driveId?: string;
1100
+ /** Selector specifying which fields to include in a partial response. */
1101
+ fields?: string;
1102
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1103
+ key?: string;
1104
+ /** OAuth 2.0 token for the current user. */
1105
+ oauth_token?: string;
1106
+ /** Returns response with indentations and line breaks. */
1107
+ prettyPrint?: boolean;
1108
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1109
+ quotaUser?: string;
1110
+ /** Whether the requesting application supports both My Drives and shared drives. */
1111
+ supportsAllDrives?: boolean;
1112
+ /** Deprecated use supportsAllDrives instead. */
1113
+ supportsTeamDrives?: boolean;
1114
+ /** Deprecated use driveId instead. */
1115
+ teamDriveId?: string;
1116
+ /** Deprecated. Please use quotaUser instead. */
1117
+ userIp?: string;
1118
+ }): Request<StartPageToken>;
1119
+ /** Lists the changes for a user or shared drive. */
1120
+ list(request?: {
1121
+ /** Data format for the response. */
1122
+ alt?: string;
1123
+ /** The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier. */
1124
+ driveId?: string;
1125
+ /** Selector specifying which fields to include in a partial response. */
1126
+ fields?: string;
1127
+ /**
1128
+ * Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes
1129
+ * and there will be no further change entries for this file.
1130
+ */
1131
+ includeCorpusRemovals?: boolean;
1132
+ /** Whether both My Drive and shared drive items should be included in results. */
1133
+ includeItemsFromAllDrives?: boolean;
1134
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1135
+ includeLabels?: string;
1136
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1137
+ includePermissionsForView?: string;
1138
+ /** Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. */
1139
+ includeRemoved?: boolean;
1140
+ /** Deprecated use includeItemsFromAllDrives instead. */
1141
+ includeTeamDriveItems?: boolean;
1142
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1143
+ key?: string;
1144
+ /** OAuth 2.0 token for the current user. */
1145
+ oauth_token?: string;
1146
+ /** The maximum number of changes to return per page. */
1147
+ pageSize?: number;
1148
+ /**
1149
+ * 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
1150
+ * getStartPageToken method.
1151
+ */
1152
+ pageToken: string;
1153
+ /** Returns response with indentations and line breaks. */
1154
+ prettyPrint?: boolean;
1155
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1156
+ quotaUser?: string;
1157
+ /**
1158
+ * Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not
1159
+ * been added to My Drive.
1160
+ */
1161
+ restrictToMyDrive?: boolean;
1162
+ /** A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. */
1163
+ spaces?: string;
1164
+ /** Whether the requesting application supports both My Drives and shared drives. */
1165
+ supportsAllDrives?: boolean;
1166
+ /** Deprecated use supportsAllDrives instead. */
1167
+ supportsTeamDrives?: boolean;
1168
+ /** Deprecated use driveId instead. */
1169
+ teamDriveId?: string;
1170
+ /** Deprecated. Please use quotaUser instead. */
1171
+ userIp?: string;
1172
+ }): Request<ChangeList>;
1173
+ /** Subscribes to changes for a user. */
1174
+ watch(request: {
1175
+ /** Data format for the response. */
1176
+ alt?: string;
1177
+ /** The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier. */
1178
+ driveId?: string;
1179
+ /** Selector specifying which fields to include in a partial response. */
1180
+ fields?: string;
1181
+ /**
1182
+ * Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes
1183
+ * and there will be no further change entries for this file.
1184
+ */
1185
+ includeCorpusRemovals?: boolean;
1186
+ /** Whether both My Drive and shared drive items should be included in results. */
1187
+ includeItemsFromAllDrives?: boolean;
1188
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1189
+ includeLabels?: string;
1190
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1191
+ includePermissionsForView?: string;
1192
+ /** Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. */
1193
+ includeRemoved?: boolean;
1194
+ /** Deprecated use includeItemsFromAllDrives instead. */
1195
+ includeTeamDriveItems?: boolean;
1196
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1197
+ key?: string;
1198
+ /** OAuth 2.0 token for the current user. */
1199
+ oauth_token?: string;
1200
+ /** The maximum number of changes to return per page. */
1201
+ pageSize?: number;
1202
+ /**
1203
+ * 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
1204
+ * getStartPageToken method.
1205
+ */
1206
+ pageToken: string;
1207
+ /** Returns response with indentations and line breaks. */
1208
+ prettyPrint?: boolean;
1209
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1210
+ quotaUser?: string;
1211
+ /**
1212
+ * Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not
1213
+ * been added to My Drive.
1214
+ */
1215
+ restrictToMyDrive?: boolean;
1216
+ /** A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. */
1217
+ spaces?: string;
1218
+ /** Whether the requesting application supports both My Drives and shared drives. */
1219
+ supportsAllDrives?: boolean;
1220
+ /** Deprecated use supportsAllDrives instead. */
1221
+ supportsTeamDrives?: boolean;
1222
+ /** Deprecated use driveId instead. */
1223
+ teamDriveId?: string;
1224
+ /** Deprecated. Please use quotaUser instead. */
1225
+ userIp?: string;
1226
+ /** Request body */
1227
+ resource: Channel;
1228
+ }): Request<Channel>;
1229
+ watch(request: {
1230
+ /** Data format for the response. */
1231
+ alt?: string;
1232
+ /** The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier. */
1233
+ driveId?: string;
1234
+ /** Selector specifying which fields to include in a partial response. */
1235
+ fields?: string;
1236
+ /**
1237
+ * Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes
1238
+ * and there will be no further change entries for this file.
1239
+ */
1240
+ includeCorpusRemovals?: boolean;
1241
+ /** Whether both My Drive and shared drive items should be included in results. */
1242
+ includeItemsFromAllDrives?: boolean;
1243
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1244
+ includeLabels?: string;
1245
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1246
+ includePermissionsForView?: string;
1247
+ /** Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. */
1248
+ includeRemoved?: boolean;
1249
+ /** Deprecated use includeItemsFromAllDrives instead. */
1250
+ includeTeamDriveItems?: boolean;
1251
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1252
+ key?: string;
1253
+ /** OAuth 2.0 token for the current user. */
1254
+ oauth_token?: string;
1255
+ /** The maximum number of changes to return per page. */
1256
+ pageSize?: number;
1257
+ /**
1258
+ * 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
1259
+ * getStartPageToken method.
1260
+ */
1261
+ pageToken: string;
1262
+ /** Returns response with indentations and line breaks. */
1263
+ prettyPrint?: boolean;
1264
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1265
+ quotaUser?: string;
1266
+ /**
1267
+ * Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not
1268
+ * been added to My Drive.
1269
+ */
1270
+ restrictToMyDrive?: boolean;
1271
+ /** A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. */
1272
+ spaces?: string;
1273
+ /** Whether the requesting application supports both My Drives and shared drives. */
1274
+ supportsAllDrives?: boolean;
1275
+ /** Deprecated use supportsAllDrives instead. */
1276
+ supportsTeamDrives?: boolean;
1277
+ /** Deprecated use driveId instead. */
1278
+ teamDriveId?: string;
1279
+ /** Deprecated. Please use quotaUser instead. */
1280
+ userIp?: string;
1281
+ },
1282
+ body: Channel): Request<Channel>;
1283
+ }
1284
+ interface ChannelsResource {
1285
+ /** Stop watching resources through this channel */
1286
+ stop(request: {
1287
+ /** Data format for the response. */
1288
+ alt?: string;
1289
+ /** Selector specifying which fields to include in a partial response. */
1290
+ fields?: string;
1291
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1292
+ key?: string;
1293
+ /** OAuth 2.0 token for the current user. */
1294
+ oauth_token?: string;
1295
+ /** Returns response with indentations and line breaks. */
1296
+ prettyPrint?: boolean;
1297
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1298
+ quotaUser?: string;
1299
+ /** Deprecated. Please use quotaUser instead. */
1300
+ userIp?: string;
1301
+ /** Request body */
1302
+ resource: Channel;
1303
+ }): Request<void>;
1304
+ stop(request: {
1305
+ /** Data format for the response. */
1306
+ alt?: string;
1307
+ /** Selector specifying which fields to include in a partial response. */
1308
+ fields?: string;
1309
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1310
+ key?: string;
1311
+ /** OAuth 2.0 token for the current user. */
1312
+ oauth_token?: string;
1313
+ /** Returns response with indentations and line breaks. */
1314
+ prettyPrint?: boolean;
1315
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1316
+ quotaUser?: string;
1317
+ /** Deprecated. Please use quotaUser instead. */
1318
+ userIp?: string;
1319
+ },
1320
+ body: Channel): Request<void>;
1321
+ }
1322
+ interface CommentsResource {
1323
+ /** Creates a new comment on a file. */
1324
+ create(request: {
1325
+ /** Data format for the response. */
1326
+ alt?: string;
1327
+ /** Selector specifying which fields to include in a partial response. */
1328
+ fields?: string;
1329
+ /** The ID of the file. */
1330
+ fileId: string;
1331
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1332
+ key?: string;
1333
+ /** OAuth 2.0 token for the current user. */
1334
+ oauth_token?: string;
1335
+ /** Returns response with indentations and line breaks. */
1336
+ prettyPrint?: boolean;
1337
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1338
+ quotaUser?: string;
1339
+ /** Deprecated. Please use quotaUser instead. */
1340
+ userIp?: string;
1341
+ /** Request body */
1342
+ resource: Comment;
1343
+ }): Request<Comment>;
1344
+ create(request: {
1345
+ /** Data format for the response. */
1346
+ alt?: string;
1347
+ /** Selector specifying which fields to include in a partial response. */
1348
+ fields?: string;
1349
+ /** The ID of the file. */
1350
+ fileId: string;
1351
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1352
+ key?: string;
1353
+ /** OAuth 2.0 token for the current user. */
1354
+ oauth_token?: string;
1355
+ /** Returns response with indentations and line breaks. */
1356
+ prettyPrint?: boolean;
1357
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1358
+ quotaUser?: string;
1359
+ /** Deprecated. Please use quotaUser instead. */
1360
+ userIp?: string;
1361
+ },
1362
+ body: Comment): Request<Comment>;
1363
+ /** Deletes a comment. */
1364
+ delete(request?: {
1365
+ /** Data format for the response. */
1366
+ alt?: string;
1367
+ /** The ID of the comment. */
1368
+ commentId: string;
1369
+ /** Selector specifying which fields to include in a partial response. */
1370
+ fields?: string;
1371
+ /** The ID of the file. */
1372
+ fileId: string;
1373
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1374
+ key?: string;
1375
+ /** OAuth 2.0 token for the current user. */
1376
+ oauth_token?: string;
1377
+ /** Returns response with indentations and line breaks. */
1378
+ prettyPrint?: boolean;
1379
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1380
+ quotaUser?: string;
1381
+ /** Deprecated. Please use quotaUser instead. */
1382
+ userIp?: string;
1383
+ }): Request<void>;
1384
+ /** Gets a comment by ID. */
1385
+ get(request?: {
1386
+ /** Data format for the response. */
1387
+ alt?: string;
1388
+ /** The ID of the comment. */
1389
+ commentId: string;
1390
+ /** Selector specifying which fields to include in a partial response. */
1391
+ fields?: string;
1392
+ /** The ID of the file. */
1393
+ fileId: string;
1394
+ /** Whether to return deleted comments. Deleted comments will not include their original content. */
1395
+ includeDeleted?: boolean;
1396
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1397
+ key?: string;
1398
+ /** OAuth 2.0 token for the current user. */
1399
+ oauth_token?: string;
1400
+ /** Returns response with indentations and line breaks. */
1401
+ prettyPrint?: boolean;
1402
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1403
+ quotaUser?: string;
1404
+ /** Deprecated. Please use quotaUser instead. */
1405
+ userIp?: string;
1406
+ }): Request<Comment>;
1407
+ /** Lists a file's comments. */
1408
+ list(request?: {
1409
+ /** Data format for the response. */
1410
+ alt?: string;
1411
+ /** Selector specifying which fields to include in a partial response. */
1412
+ fields?: string;
1413
+ /** The ID of the file. */
1414
+ fileId: string;
1415
+ /** Whether to include deleted comments. Deleted comments will not include their original content. */
1416
+ includeDeleted?: boolean;
1417
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1418
+ key?: string;
1419
+ /** OAuth 2.0 token for the current user. */
1420
+ oauth_token?: string;
1421
+ /** The maximum number of comments to return per page. */
1422
+ pageSize?: number;
1423
+ /** 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. */
1424
+ pageToken?: string;
1425
+ /** Returns response with indentations and line breaks. */
1426
+ prettyPrint?: boolean;
1427
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1428
+ quotaUser?: string;
1429
+ /** The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time). */
1430
+ startModifiedTime?: string;
1431
+ /** Deprecated. Please use quotaUser instead. */
1432
+ userIp?: string;
1433
+ }): Request<CommentList>;
1434
+ /** Updates a comment with patch semantics. */
1435
+ update(request: {
1436
+ /** Data format for the response. */
1437
+ alt?: string;
1438
+ /** The ID of the comment. */
1439
+ commentId: string;
1440
+ /** Selector specifying which fields to include in a partial response. */
1441
+ fields?: string;
1442
+ /** The ID of the file. */
1443
+ fileId: string;
1444
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1445
+ key?: string;
1446
+ /** OAuth 2.0 token for the current user. */
1447
+ oauth_token?: string;
1448
+ /** Returns response with indentations and line breaks. */
1449
+ prettyPrint?: boolean;
1450
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1451
+ quotaUser?: string;
1452
+ /** Deprecated. Please use quotaUser instead. */
1453
+ userIp?: string;
1454
+ /** Request body */
1455
+ resource: Comment;
1456
+ }): Request<Comment>;
1457
+ update(request: {
1458
+ /** Data format for the response. */
1459
+ alt?: string;
1460
+ /** The ID of the comment. */
1461
+ commentId: string;
1462
+ /** Selector specifying which fields to include in a partial response. */
1463
+ fields?: string;
1464
+ /** The ID of the file. */
1465
+ fileId: string;
1466
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1467
+ key?: string;
1468
+ /** OAuth 2.0 token for the current user. */
1469
+ oauth_token?: string;
1470
+ /** Returns response with indentations and line breaks. */
1471
+ prettyPrint?: boolean;
1472
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1473
+ quotaUser?: string;
1474
+ /** Deprecated. Please use quotaUser instead. */
1475
+ userIp?: string;
1476
+ },
1477
+ body: Comment): Request<Comment>;
1478
+ }
1479
+ interface DrivesResource {
1480
+ /** Creates a new shared drive. */
1481
+ create(request: {
1482
+ /** Data format for the response. */
1483
+ alt?: string;
1484
+ /** Selector specifying which fields to include in a partial response. */
1485
+ fields?: string;
1486
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1487
+ key?: string;
1488
+ /** OAuth 2.0 token for the current user. */
1489
+ oauth_token?: string;
1490
+ /** Returns response with indentations and line breaks. */
1491
+ prettyPrint?: boolean;
1492
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1493
+ quotaUser?: string;
1494
+ /**
1495
+ * An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same
1496
+ * request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.
1497
+ */
1498
+ requestId: string;
1499
+ /** Deprecated. Please use quotaUser instead. */
1500
+ userIp?: string;
1501
+ /** Request body */
1502
+ resource: Drive;
1503
+ }): Request<Drive>;
1504
+ create(request: {
1505
+ /** Data format for the response. */
1506
+ alt?: string;
1507
+ /** Selector specifying which fields to include in a partial response. */
1508
+ fields?: string;
1509
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1510
+ key?: string;
1511
+ /** OAuth 2.0 token for the current user. */
1512
+ oauth_token?: string;
1513
+ /** Returns response with indentations and line breaks. */
1514
+ prettyPrint?: boolean;
1515
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1516
+ quotaUser?: string;
1517
+ /**
1518
+ * An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same
1519
+ * request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.
1520
+ */
1521
+ requestId: string;
1522
+ /** Deprecated. Please use quotaUser instead. */
1523
+ userIp?: string;
1524
+ },
1525
+ body: Drive): Request<Drive>;
1526
+ /** Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. */
1527
+ delete(request?: {
1528
+ /** Whether any items inside the shared drive should also be deleted. This option is only supported when useDomainAdminAccess is also set to true. */
1529
+ allowItemDeletion?: boolean;
1530
+ /** Data format for the response. */
1531
+ alt?: string;
1532
+ /** The ID of the shared drive. */
1533
+ driveId: string;
1534
+ /** Selector specifying which fields to include in a partial response. */
1535
+ fields?: string;
1536
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1537
+ key?: string;
1538
+ /** OAuth 2.0 token for the current user. */
1539
+ oauth_token?: string;
1540
+ /** Returns response with indentations and line breaks. */
1541
+ prettyPrint?: boolean;
1542
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1543
+ quotaUser?: string;
1544
+ /**
1545
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive
1546
+ * belongs.
1547
+ */
1548
+ useDomainAdminAccess?: boolean;
1549
+ /** Deprecated. Please use quotaUser instead. */
1550
+ userIp?: string;
1551
+ }): Request<void>;
1552
+ /** Gets a shared drive's metadata by ID. */
1553
+ get(request?: {
1554
+ /** Data format for the response. */
1555
+ alt?: string;
1556
+ /** The ID of the shared drive. */
1557
+ driveId: string;
1558
+ /** Selector specifying which fields to include in a partial response. */
1559
+ fields?: string;
1560
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1561
+ key?: string;
1562
+ /** OAuth 2.0 token for the current user. */
1563
+ oauth_token?: string;
1564
+ /** Returns response with indentations and line breaks. */
1565
+ prettyPrint?: boolean;
1566
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1567
+ quotaUser?: string;
1568
+ /**
1569
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive
1570
+ * belongs.
1571
+ */
1572
+ useDomainAdminAccess?: boolean;
1573
+ /** Deprecated. Please use quotaUser instead. */
1574
+ userIp?: string;
1575
+ }): Request<Drive>;
1576
+ /** Hides a shared drive from the default view. */
1577
+ hide(request?: {
1578
+ /** Data format for the response. */
1579
+ alt?: string;
1580
+ /** The ID of the shared drive. */
1581
+ driveId: string;
1582
+ /** Selector specifying which fields to include in a partial response. */
1583
+ fields?: string;
1584
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1585
+ key?: string;
1586
+ /** OAuth 2.0 token for the current user. */
1587
+ oauth_token?: string;
1588
+ /** Returns response with indentations and line breaks. */
1589
+ prettyPrint?: boolean;
1590
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1591
+ quotaUser?: string;
1592
+ /** Deprecated. Please use quotaUser instead. */
1593
+ userIp?: string;
1594
+ }): Request<Drive>;
1595
+ /** Lists the user's shared drives. */
1596
+ list(request?: {
1597
+ /** Data format for the response. */
1598
+ alt?: string;
1599
+ /** Selector specifying which fields to include in a partial response. */
1600
+ fields?: string;
1601
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1602
+ key?: string;
1603
+ /** OAuth 2.0 token for the current user. */
1604
+ oauth_token?: string;
1605
+ /** Maximum number of shared drives to return per page. */
1606
+ pageSize?: number;
1607
+ /** Page token for shared drives. */
1608
+ pageToken?: string;
1609
+ /** Returns response with indentations and line breaks. */
1610
+ prettyPrint?: boolean;
1611
+ /** Query string for searching shared drives. */
1612
+ q?: string;
1613
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1614
+ quotaUser?: string;
1615
+ /** Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned. */
1616
+ useDomainAdminAccess?: boolean;
1617
+ /** Deprecated. Please use quotaUser instead. */
1618
+ userIp?: string;
1619
+ }): Request<DriveList>;
1620
+ /** Restores a shared drive to the default view. */
1621
+ unhide(request?: {
1622
+ /** Data format for the response. */
1623
+ alt?: string;
1624
+ /** The ID of the shared drive. */
1625
+ driveId: string;
1626
+ /** Selector specifying which fields to include in a partial response. */
1627
+ fields?: string;
1628
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1629
+ key?: string;
1630
+ /** OAuth 2.0 token for the current user. */
1631
+ oauth_token?: string;
1632
+ /** Returns response with indentations and line breaks. */
1633
+ prettyPrint?: boolean;
1634
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1635
+ quotaUser?: string;
1636
+ /** Deprecated. Please use quotaUser instead. */
1637
+ userIp?: string;
1638
+ }): Request<Drive>;
1639
+ /** Updates the metadate for a shared drive. */
1640
+ update(request: {
1641
+ /** Data format for the response. */
1642
+ alt?: string;
1643
+ /** The ID of the shared drive. */
1644
+ driveId: string;
1645
+ /** Selector specifying which fields to include in a partial response. */
1646
+ fields?: string;
1647
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1648
+ key?: string;
1649
+ /** OAuth 2.0 token for the current user. */
1650
+ oauth_token?: string;
1651
+ /** Returns response with indentations and line breaks. */
1652
+ prettyPrint?: boolean;
1653
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1654
+ quotaUser?: string;
1655
+ /**
1656
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive
1657
+ * belongs.
1658
+ */
1659
+ useDomainAdminAccess?: boolean;
1660
+ /** Deprecated. Please use quotaUser instead. */
1661
+ userIp?: string;
1662
+ /** Request body */
1663
+ resource: Drive;
1664
+ }): Request<Drive>;
1665
+ update(request: {
1666
+ /** Data format for the response. */
1667
+ alt?: string;
1668
+ /** The ID of the shared drive. */
1669
+ driveId: string;
1670
+ /** Selector specifying which fields to include in a partial response. */
1671
+ fields?: string;
1672
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1673
+ key?: string;
1674
+ /** OAuth 2.0 token for the current user. */
1675
+ oauth_token?: string;
1676
+ /** Returns response with indentations and line breaks. */
1677
+ prettyPrint?: boolean;
1678
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1679
+ quotaUser?: string;
1680
+ /**
1681
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive
1682
+ * belongs.
1683
+ */
1684
+ useDomainAdminAccess?: boolean;
1685
+ /** Deprecated. Please use quotaUser instead. */
1686
+ userIp?: string;
1687
+ },
1688
+ body: Drive): Request<Drive>;
1689
+ }
1690
+ interface FilesResource {
1691
+ /** Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. */
1692
+ copy(request: {
1693
+ /** Data format for the response. */
1694
+ alt?: string;
1695
+ /** Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. */
1696
+ enforceSingleParent?: boolean;
1697
+ /** Selector specifying which fields to include in a partial response. */
1698
+ fields?: string;
1699
+ /** The ID of the file. */
1700
+ fileId: string;
1701
+ /**
1702
+ * Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default;
1703
+ * this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
1704
+ */
1705
+ ignoreDefaultVisibility?: boolean;
1706
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1707
+ includeLabels?: string;
1708
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1709
+ includePermissionsForView?: string;
1710
+ /**
1711
+ * 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
1712
+ * kept forever. If the limit is reached, try deleting pinned revisions.
1713
+ */
1714
+ keepRevisionForever?: boolean;
1715
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1716
+ key?: string;
1717
+ /** OAuth 2.0 token for the current user. */
1718
+ oauth_token?: string;
1719
+ /** A language hint for OCR processing during image import (ISO 639-1 code). */
1720
+ ocrLanguage?: string;
1721
+ /** Returns response with indentations and line breaks. */
1722
+ prettyPrint?: boolean;
1723
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1724
+ quotaUser?: string;
1725
+ /** Whether the requesting application supports both My Drives and shared drives. */
1726
+ supportsAllDrives?: boolean;
1727
+ /** Deprecated use supportsAllDrives instead. */
1728
+ supportsTeamDrives?: boolean;
1729
+ /** Deprecated. Please use quotaUser instead. */
1730
+ userIp?: string;
1731
+ /** Request body */
1732
+ resource: File;
1733
+ }): Request<File>;
1734
+ copy(request: {
1735
+ /** Data format for the response. */
1736
+ alt?: string;
1737
+ /** Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. */
1738
+ enforceSingleParent?: boolean;
1739
+ /** Selector specifying which fields to include in a partial response. */
1740
+ fields?: string;
1741
+ /** The ID of the file. */
1742
+ fileId: string;
1743
+ /**
1744
+ * Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default;
1745
+ * this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
1746
+ */
1747
+ ignoreDefaultVisibility?: boolean;
1748
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1749
+ includeLabels?: string;
1750
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1751
+ includePermissionsForView?: string;
1752
+ /**
1753
+ * 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
1754
+ * kept forever. If the limit is reached, try deleting pinned revisions.
1755
+ */
1756
+ keepRevisionForever?: boolean;
1757
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1758
+ key?: string;
1759
+ /** OAuth 2.0 token for the current user. */
1760
+ oauth_token?: string;
1761
+ /** A language hint for OCR processing during image import (ISO 639-1 code). */
1762
+ ocrLanguage?: string;
1763
+ /** Returns response with indentations and line breaks. */
1764
+ prettyPrint?: boolean;
1765
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1766
+ quotaUser?: string;
1767
+ /** Whether the requesting application supports both My Drives and shared drives. */
1768
+ supportsAllDrives?: boolean;
1769
+ /** Deprecated use supportsAllDrives instead. */
1770
+ supportsTeamDrives?: boolean;
1771
+ /** Deprecated. Please use quotaUser instead. */
1772
+ userIp?: string;
1773
+ },
1774
+ body: File): Request<File>;
1775
+ /** Creates a new file. */
1776
+ create(request: {
1777
+ /** Data format for the response. */
1778
+ alt?: string;
1779
+ /** Deprecated. Creating files in multiple folders is no longer supported. */
1780
+ enforceSingleParent?: boolean;
1781
+ /** Selector specifying which fields to include in a partial response. */
1782
+ fields?: string;
1783
+ /**
1784
+ * Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default;
1785
+ * this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
1786
+ */
1787
+ ignoreDefaultVisibility?: boolean;
1788
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1789
+ includeLabels?: string;
1790
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1791
+ includePermissionsForView?: string;
1792
+ /**
1793
+ * 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
1794
+ * kept forever. If the limit is reached, try deleting pinned revisions.
1795
+ */
1796
+ keepRevisionForever?: boolean;
1797
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1798
+ key?: string;
1799
+ /** OAuth 2.0 token for the current user. */
1800
+ oauth_token?: string;
1801
+ /** A language hint for OCR processing during image import (ISO 639-1 code). */
1802
+ ocrLanguage?: string;
1803
+ /** Returns response with indentations and line breaks. */
1804
+ prettyPrint?: boolean;
1805
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1806
+ quotaUser?: string;
1807
+ /** Whether the requesting application supports both My Drives and shared drives. */
1808
+ supportsAllDrives?: boolean;
1809
+ /** Deprecated use supportsAllDrives instead. */
1810
+ supportsTeamDrives?: boolean;
1811
+ /** Whether to use the uploaded content as indexable text. */
1812
+ useContentAsIndexableText?: boolean;
1813
+ /** Deprecated. Please use quotaUser instead. */
1814
+ userIp?: string;
1815
+ /** Request body */
1816
+ resource: File;
1817
+ }): Request<File>;
1818
+ create(request: {
1819
+ /** Data format for the response. */
1820
+ alt?: string;
1821
+ /** Deprecated. Creating files in multiple folders is no longer supported. */
1822
+ enforceSingleParent?: boolean;
1823
+ /** Selector specifying which fields to include in a partial response. */
1824
+ fields?: string;
1825
+ /**
1826
+ * Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default;
1827
+ * this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
1828
+ */
1829
+ ignoreDefaultVisibility?: boolean;
1830
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1831
+ includeLabels?: string;
1832
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1833
+ includePermissionsForView?: string;
1834
+ /**
1835
+ * 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
1836
+ * kept forever. If the limit is reached, try deleting pinned revisions.
1837
+ */
1838
+ keepRevisionForever?: boolean;
1839
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1840
+ key?: string;
1841
+ /** OAuth 2.0 token for the current user. */
1842
+ oauth_token?: string;
1843
+ /** A language hint for OCR processing during image import (ISO 639-1 code). */
1844
+ ocrLanguage?: string;
1845
+ /** Returns response with indentations and line breaks. */
1846
+ prettyPrint?: boolean;
1847
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1848
+ quotaUser?: string;
1849
+ /** Whether the requesting application supports both My Drives and shared drives. */
1850
+ supportsAllDrives?: boolean;
1851
+ /** Deprecated use supportsAllDrives instead. */
1852
+ supportsTeamDrives?: boolean;
1853
+ /** Whether to use the uploaded content as indexable text. */
1854
+ useContentAsIndexableText?: boolean;
1855
+ /** Deprecated. Please use quotaUser instead. */
1856
+ userIp?: string;
1857
+ },
1858
+ body: File): Request<File>;
1859
+ /**
1860
+ * Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a
1861
+ * folder, all descendants owned by the user are also deleted.
1862
+ */
1863
+ delete(request?: {
1864
+ /** Data format for the response. */
1865
+ alt?: string;
1866
+ /** Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. */
1867
+ enforceSingleParent?: boolean;
1868
+ /** Selector specifying which fields to include in a partial response. */
1869
+ fields?: string;
1870
+ /** The ID of the file. */
1871
+ fileId: string;
1872
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1873
+ key?: string;
1874
+ /** OAuth 2.0 token for the current user. */
1875
+ oauth_token?: string;
1876
+ /** Returns response with indentations and line breaks. */
1877
+ prettyPrint?: boolean;
1878
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1879
+ quotaUser?: string;
1880
+ /** Whether the requesting application supports both My Drives and shared drives. */
1881
+ supportsAllDrives?: boolean;
1882
+ /** Deprecated use supportsAllDrives instead. */
1883
+ supportsTeamDrives?: boolean;
1884
+ /** Deprecated. Please use quotaUser instead. */
1885
+ userIp?: string;
1886
+ }): Request<void>;
1887
+ /** Permanently deletes all of the user's trashed files. */
1888
+ emptyTrash(request?: {
1889
+ /** Data format for the response. */
1890
+ alt?: string;
1891
+ /** Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. */
1892
+ enforceSingleParent?: boolean;
1893
+ /** Selector specifying which fields to include in a partial response. */
1894
+ fields?: string;
1895
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1896
+ key?: string;
1897
+ /** OAuth 2.0 token for the current user. */
1898
+ oauth_token?: string;
1899
+ /** Returns response with indentations and line breaks. */
1900
+ prettyPrint?: boolean;
1901
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1902
+ quotaUser?: string;
1903
+ /** Deprecated. Please use quotaUser instead. */
1904
+ userIp?: string;
1905
+ }): Request<void>;
1906
+ /** Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. */
1907
+ export(request?: {
1908
+ /** Data format for the response. */
1909
+ alt?: string;
1910
+ /** Selector specifying which fields to include in a partial response. */
1911
+ fields?: string;
1912
+ /** The ID of the file. */
1913
+ fileId: string;
1914
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1915
+ key?: string;
1916
+ /** The MIME type of the format requested for this export. */
1917
+ mimeType: string;
1918
+ /** OAuth 2.0 token for the current user. */
1919
+ oauth_token?: string;
1920
+ /** Returns response with indentations and line breaks. */
1921
+ prettyPrint?: boolean;
1922
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1923
+ quotaUser?: string;
1924
+ /** Deprecated. Please use quotaUser instead. */
1925
+ userIp?: string;
1926
+ }): Request<void>;
1927
+ /** Generates a set of file IDs which can be provided in create or copy requests. */
1928
+ generateIds(request?: {
1929
+ /** Data format for the response. */
1930
+ alt?: string;
1931
+ /** The number of IDs to return. */
1932
+ count?: number;
1933
+ /** Selector specifying which fields to include in a partial response. */
1934
+ fields?: string;
1935
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1936
+ key?: string;
1937
+ /** OAuth 2.0 token for the current user. */
1938
+ oauth_token?: string;
1939
+ /** Returns response with indentations and line breaks. */
1940
+ prettyPrint?: boolean;
1941
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1942
+ quotaUser?: string;
1943
+ /** The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive') */
1944
+ space?: string;
1945
+ /** 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') */
1946
+ type?: string;
1947
+ /** Deprecated. Please use quotaUser instead. */
1948
+ userIp?: string;
1949
+ }): Request<GeneratedIds>;
1950
+ /** Gets a file's metadata or content by ID. */
1951
+ get(request?: {
1952
+ /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
1953
+ acknowledgeAbuse?: boolean;
1954
+ /** Data format for the response. */
1955
+ alt?: string;
1956
+ /** Selector specifying which fields to include in a partial response. */
1957
+ fields?: string;
1958
+ /** The ID of the file. */
1959
+ fileId: string;
1960
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1961
+ includeLabels?: string;
1962
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
1963
+ includePermissionsForView?: string;
1964
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1965
+ key?: string;
1966
+ /** OAuth 2.0 token for the current user. */
1967
+ oauth_token?: string;
1968
+ /** Returns response with indentations and line breaks. */
1969
+ prettyPrint?: boolean;
1970
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1971
+ quotaUser?: string;
1972
+ /** Whether the requesting application supports both My Drives and shared drives. */
1973
+ supportsAllDrives?: boolean;
1974
+ /** Deprecated use supportsAllDrives instead. */
1975
+ supportsTeamDrives?: boolean;
1976
+ /** Deprecated. Please use quotaUser instead. */
1977
+ userIp?: string;
1978
+ }): Request<File>;
1979
+ /** Lists or searches files. */
1980
+ list(request?: {
1981
+ /** Data format for the response. */
1982
+ alt?: string;
1983
+ /**
1984
+ * Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified
1985
+ * shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is
1986
+ * a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.
1987
+ */
1988
+ corpora?: string;
1989
+ /** The source of files to list. Deprecated: use 'corpora' instead. */
1990
+ corpus?: string;
1991
+ /** ID of the shared drive to search. */
1992
+ driveId?: string;
1993
+ /** Selector specifying which fields to include in a partial response. */
1994
+ fields?: string;
1995
+ /** Whether both My Drive and shared drive items should be included in results. */
1996
+ includeItemsFromAllDrives?: boolean;
1997
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1998
+ includeLabels?: string;
1999
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
2000
+ includePermissionsForView?: string;
2001
+ /** Deprecated use includeItemsFromAllDrives instead. */
2002
+ includeTeamDriveItems?: boolean;
2003
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2004
+ key?: string;
2005
+ /** OAuth 2.0 token for the current user. */
2006
+ oauth_token?: string;
2007
+ /**
2008
+ * A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency',
2009
+ * 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage:
2010
+ * ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is
2011
+ * ignored.
2012
+ */
2013
+ orderBy?: string;
2014
+ /** The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached. */
2015
+ pageSize?: number;
2016
+ /** 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. */
2017
+ pageToken?: string;
2018
+ /** Returns response with indentations and line breaks. */
2019
+ prettyPrint?: boolean;
2020
+ /** A query for filtering the file results. See the "Search for Files" guide for supported syntax. */
2021
+ q?: string;
2022
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2023
+ quotaUser?: string;
2024
+ /** A comma-separated list of spaces to query within the corpus. Supported values are 'drive' and 'appDataFolder'. */
2025
+ spaces?: string;
2026
+ /** Whether the requesting application supports both My Drives and shared drives. */
2027
+ supportsAllDrives?: boolean;
2028
+ /** Deprecated use supportsAllDrives instead. */
2029
+ supportsTeamDrives?: boolean;
2030
+ /** Deprecated use driveId instead. */
2031
+ teamDriveId?: string;
2032
+ /** Deprecated. Please use quotaUser instead. */
2033
+ userIp?: string;
2034
+ }): Request<FileList>;
2035
+ /** Lists the labels on a file. */
2036
+ listLabels(request?: {
2037
+ /** Data format for the response. */
2038
+ alt?: string;
2039
+ /** Selector specifying which fields to include in a partial response. */
2040
+ fields?: string;
2041
+ /** The ID of the file. */
2042
+ fileId: string;
2043
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2044
+ key?: string;
2045
+ /** The maximum number of labels to return per page. When not set, this defaults to 100. */
2046
+ maxResults?: number;
2047
+ /** OAuth 2.0 token for the current user. */
2048
+ oauth_token?: string;
2049
+ /** 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. */
2050
+ pageToken?: string;
2051
+ /** Returns response with indentations and line breaks. */
2052
+ prettyPrint?: boolean;
2053
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2054
+ quotaUser?: string;
2055
+ /** Deprecated. Please use quotaUser instead. */
2056
+ userIp?: string;
2057
+ }): Request<LabelList>;
2058
+ /** Modifies the set of labels on a file. */
2059
+ modifyLabels(request: {
2060
+ /** Data format for the response. */
2061
+ alt?: string;
2062
+ /** Selector specifying which fields to include in a partial response. */
2063
+ fields?: string;
2064
+ /** The ID of the file for which the labels are modified. */
2065
+ fileId: string;
2066
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2067
+ key?: string;
2068
+ /** OAuth 2.0 token for the current user. */
2069
+ oauth_token?: string;
2070
+ /** Returns response with indentations and line breaks. */
2071
+ prettyPrint?: boolean;
2072
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2073
+ quotaUser?: string;
2074
+ /** Deprecated. Please use quotaUser instead. */
2075
+ userIp?: string;
2076
+ /** Request body */
2077
+ resource: ModifyLabelsRequest;
2078
+ }): Request<ModifyLabelsResponse>;
2079
+ modifyLabels(request: {
2080
+ /** Data format for the response. */
2081
+ alt?: string;
2082
+ /** Selector specifying which fields to include in a partial response. */
2083
+ fields?: string;
2084
+ /** The ID of the file for which the labels are modified. */
2085
+ fileId: string;
2086
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2087
+ key?: string;
2088
+ /** OAuth 2.0 token for the current user. */
2089
+ oauth_token?: string;
2090
+ /** Returns response with indentations and line breaks. */
2091
+ prettyPrint?: boolean;
2092
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2093
+ quotaUser?: string;
2094
+ /** Deprecated. Please use quotaUser instead. */
2095
+ userIp?: string;
2096
+ },
2097
+ body: ModifyLabelsRequest): Request<ModifyLabelsResponse>;
2098
+ /**
2099
+ * Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change
2100
+ * automatically, such as modifiedDate. This method supports patch semantics.
2101
+ */
2102
+ update(request: {
2103
+ /** A comma-separated list of parent IDs to add. */
2104
+ addParents?: string;
2105
+ /** Data format for the response. */
2106
+ alt?: string;
2107
+ /** Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. */
2108
+ enforceSingleParent?: boolean;
2109
+ /** Selector specifying which fields to include in a partial response. */
2110
+ fields?: string;
2111
+ /** The ID of the file. */
2112
+ fileId: string;
2113
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2114
+ includeLabels?: string;
2115
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
2116
+ includePermissionsForView?: string;
2117
+ /**
2118
+ * 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
2119
+ * kept forever. If the limit is reached, try deleting pinned revisions.
2120
+ */
2121
+ keepRevisionForever?: boolean;
2122
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2123
+ key?: string;
2124
+ /** OAuth 2.0 token for the current user. */
2125
+ oauth_token?: string;
2126
+ /** A language hint for OCR processing during image import (ISO 639-1 code). */
2127
+ ocrLanguage?: string;
2128
+ /** Returns response with indentations and line breaks. */
2129
+ prettyPrint?: boolean;
2130
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2131
+ quotaUser?: string;
2132
+ /** A comma-separated list of parent IDs to remove. */
2133
+ removeParents?: string;
2134
+ /** Whether the requesting application supports both My Drives and shared drives. */
2135
+ supportsAllDrives?: boolean;
2136
+ /** Deprecated use supportsAllDrives instead. */
2137
+ supportsTeamDrives?: boolean;
2138
+ /** Whether to use the uploaded content as indexable text. */
2139
+ useContentAsIndexableText?: boolean;
2140
+ /** Deprecated. Please use quotaUser instead. */
2141
+ userIp?: string;
2142
+ /** Request body */
2143
+ resource: File;
2144
+ }): Request<File>;
2145
+ update(request: {
2146
+ /** A comma-separated list of parent IDs to add. */
2147
+ addParents?: string;
2148
+ /** Data format for the response. */
2149
+ alt?: string;
2150
+ /** Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. */
2151
+ enforceSingleParent?: boolean;
2152
+ /** Selector specifying which fields to include in a partial response. */
2153
+ fields?: string;
2154
+ /** The ID of the file. */
2155
+ fileId: string;
2156
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2157
+ includeLabels?: string;
2158
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
2159
+ includePermissionsForView?: string;
2160
+ /**
2161
+ * 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
2162
+ * kept forever. If the limit is reached, try deleting pinned revisions.
2163
+ */
2164
+ keepRevisionForever?: boolean;
2165
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2166
+ key?: string;
2167
+ /** OAuth 2.0 token for the current user. */
2168
+ oauth_token?: string;
2169
+ /** A language hint for OCR processing during image import (ISO 639-1 code). */
2170
+ ocrLanguage?: string;
2171
+ /** Returns response with indentations and line breaks. */
2172
+ prettyPrint?: boolean;
2173
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2174
+ quotaUser?: string;
2175
+ /** A comma-separated list of parent IDs to remove. */
2176
+ removeParents?: string;
2177
+ /** Whether the requesting application supports both My Drives and shared drives. */
2178
+ supportsAllDrives?: boolean;
2179
+ /** Deprecated use supportsAllDrives instead. */
2180
+ supportsTeamDrives?: boolean;
2181
+ /** Whether to use the uploaded content as indexable text. */
2182
+ useContentAsIndexableText?: boolean;
2183
+ /** Deprecated. Please use quotaUser instead. */
2184
+ userIp?: string;
2185
+ },
2186
+ body: File): Request<File>;
2187
+ /** Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification. */
2188
+ watch(request: {
2189
+ /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
2190
+ acknowledgeAbuse?: boolean;
2191
+ /** Data format for the response. */
2192
+ alt?: string;
2193
+ /** Selector specifying which fields to include in a partial response. */
2194
+ fields?: string;
2195
+ /** The ID of the file. */
2196
+ fileId: string;
2197
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2198
+ includeLabels?: string;
2199
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
2200
+ includePermissionsForView?: string;
2201
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2202
+ key?: string;
2203
+ /** OAuth 2.0 token for the current user. */
2204
+ oauth_token?: string;
2205
+ /** Returns response with indentations and line breaks. */
2206
+ prettyPrint?: boolean;
2207
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2208
+ quotaUser?: string;
2209
+ /** Whether the requesting application supports both My Drives and shared drives. */
2210
+ supportsAllDrives?: boolean;
2211
+ /** Deprecated use supportsAllDrives instead. */
2212
+ supportsTeamDrives?: boolean;
2213
+ /** Deprecated. Please use quotaUser instead. */
2214
+ userIp?: string;
2215
+ /** Request body */
2216
+ resource: Channel;
2217
+ }): Request<Channel>;
2218
+ watch(request: {
2219
+ /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
2220
+ acknowledgeAbuse?: boolean;
2221
+ /** Data format for the response. */
2222
+ alt?: string;
2223
+ /** Selector specifying which fields to include in a partial response. */
2224
+ fields?: string;
2225
+ /** The ID of the file. */
2226
+ fileId: string;
2227
+ /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2228
+ includeLabels?: string;
2229
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
2230
+ includePermissionsForView?: string;
2231
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2232
+ key?: string;
2233
+ /** OAuth 2.0 token for the current user. */
2234
+ oauth_token?: string;
2235
+ /** Returns response with indentations and line breaks. */
2236
+ prettyPrint?: boolean;
2237
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2238
+ quotaUser?: string;
2239
+ /** Whether the requesting application supports both My Drives and shared drives. */
2240
+ supportsAllDrives?: boolean;
2241
+ /** Deprecated use supportsAllDrives instead. */
2242
+ supportsTeamDrives?: boolean;
2243
+ /** Deprecated. Please use quotaUser instead. */
2244
+ userIp?: string;
2245
+ },
2246
+ body: Channel): Request<Channel>;
2247
+ }
2248
+ interface PermissionsResource {
2249
+ /** Creates a permission for a file or shared drive. */
2250
+ create(request: {
2251
+ /** Data format for the response. */
2252
+ alt?: string;
2253
+ /** A plain text custom message to include in the notification email. */
2254
+ emailMessage?: string;
2255
+ /** Deprecated. See moveToNewOwnersRoot for details. */
2256
+ enforceSingleParent?: boolean;
2257
+ /** Selector specifying which fields to include in a partial response. */
2258
+ fields?: string;
2259
+ /** The ID of the file or shared drive. */
2260
+ fileId: string;
2261
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2262
+ key?: string;
2263
+ /**
2264
+ * This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be
2265
+ * moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.
2266
+ */
2267
+ moveToNewOwnersRoot?: boolean;
2268
+ /** OAuth 2.0 token for the current user. */
2269
+ oauth_token?: string;
2270
+ /** Returns response with indentations and line breaks. */
2271
+ prettyPrint?: boolean;
2272
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2273
+ quotaUser?: string;
2274
+ /**
2275
+ * Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled
2276
+ * for ownership transfers.
2277
+ */
2278
+ sendNotificationEmail?: boolean;
2279
+ /** Whether the requesting application supports both My Drives and shared drives. */
2280
+ supportsAllDrives?: boolean;
2281
+ /** Deprecated use supportsAllDrives instead. */
2282
+ supportsTeamDrives?: boolean;
2283
+ /**
2284
+ * Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners
2285
+ * can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are
2286
+ * not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to
2287
+ * them.
2288
+ */
2289
+ transferOwnership?: boolean;
2290
+ /**
2291
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an
2292
+ * administrator of the domain to which the shared drive belongs.
2293
+ */
2294
+ useDomainAdminAccess?: boolean;
2295
+ /** Deprecated. Please use quotaUser instead. */
2296
+ userIp?: string;
2297
+ /** Request body */
2298
+ resource: Permission;
2299
+ }): Request<Permission>;
2300
+ create(request: {
2301
+ /** Data format for the response. */
2302
+ alt?: string;
2303
+ /** A plain text custom message to include in the notification email. */
2304
+ emailMessage?: string;
2305
+ /** Deprecated. See moveToNewOwnersRoot for details. */
2306
+ enforceSingleParent?: boolean;
2307
+ /** Selector specifying which fields to include in a partial response. */
2308
+ fields?: string;
2309
+ /** The ID of the file or shared drive. */
2310
+ fileId: string;
2311
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2312
+ key?: string;
2313
+ /**
2314
+ * This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be
2315
+ * moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.
2316
+ */
2317
+ moveToNewOwnersRoot?: boolean;
2318
+ /** OAuth 2.0 token for the current user. */
2319
+ oauth_token?: string;
2320
+ /** Returns response with indentations and line breaks. */
2321
+ prettyPrint?: boolean;
2322
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2323
+ quotaUser?: string;
2324
+ /**
2325
+ * Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled
2326
+ * for ownership transfers.
2327
+ */
2328
+ sendNotificationEmail?: boolean;
2329
+ /** Whether the requesting application supports both My Drives and shared drives. */
2330
+ supportsAllDrives?: boolean;
2331
+ /** Deprecated use supportsAllDrives instead. */
2332
+ supportsTeamDrives?: boolean;
2333
+ /**
2334
+ * Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners
2335
+ * can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are
2336
+ * not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to
2337
+ * them.
2338
+ */
2339
+ transferOwnership?: boolean;
2340
+ /**
2341
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an
2342
+ * administrator of the domain to which the shared drive belongs.
2343
+ */
2344
+ useDomainAdminAccess?: boolean;
2345
+ /** Deprecated. Please use quotaUser instead. */
2346
+ userIp?: string;
2347
+ },
2348
+ body: Permission): Request<Permission>;
2349
+ /** Deletes a permission. */
2350
+ delete(request?: {
2351
+ /** Data format for the response. */
2352
+ alt?: string;
2353
+ /** Selector specifying which fields to include in a partial response. */
2354
+ fields?: string;
2355
+ /** The ID of the file or shared drive. */
2356
+ fileId: string;
2357
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2358
+ key?: string;
2359
+ /** OAuth 2.0 token for the current user. */
2360
+ oauth_token?: string;
2361
+ /** The ID of the permission. */
2362
+ permissionId: string;
2363
+ /** Returns response with indentations and line breaks. */
2364
+ prettyPrint?: boolean;
2365
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2366
+ quotaUser?: string;
2367
+ /** Whether the requesting application supports both My Drives and shared drives. */
2368
+ supportsAllDrives?: boolean;
2369
+ /** Deprecated use supportsAllDrives instead. */
2370
+ supportsTeamDrives?: boolean;
2371
+ /**
2372
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an
2373
+ * administrator of the domain to which the shared drive belongs.
2374
+ */
2375
+ useDomainAdminAccess?: boolean;
2376
+ /** Deprecated. Please use quotaUser instead. */
2377
+ userIp?: string;
2378
+ }): Request<void>;
2379
+ /** Gets a permission by ID. */
2380
+ get(request?: {
2381
+ /** Data format for the response. */
2382
+ alt?: string;
2383
+ /** Selector specifying which fields to include in a partial response. */
2384
+ fields?: string;
2385
+ /** The ID of the file. */
2386
+ fileId: string;
2387
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2388
+ key?: string;
2389
+ /** OAuth 2.0 token for the current user. */
2390
+ oauth_token?: string;
2391
+ /** The ID of the permission. */
2392
+ permissionId: string;
2393
+ /** Returns response with indentations and line breaks. */
2394
+ prettyPrint?: boolean;
2395
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2396
+ quotaUser?: string;
2397
+ /** Whether the requesting application supports both My Drives and shared drives. */
2398
+ supportsAllDrives?: boolean;
2399
+ /** Deprecated use supportsAllDrives instead. */
2400
+ supportsTeamDrives?: boolean;
2401
+ /**
2402
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an
2403
+ * administrator of the domain to which the shared drive belongs.
2404
+ */
2405
+ useDomainAdminAccess?: boolean;
2406
+ /** Deprecated. Please use quotaUser instead. */
2407
+ userIp?: string;
2408
+ }): Request<Permission>;
2409
+ /** Lists a file's or shared drive's permissions. */
2410
+ list(request?: {
2411
+ /** Data format for the response. */
2412
+ alt?: string;
2413
+ /** Selector specifying which fields to include in a partial response. */
2414
+ fields?: string;
2415
+ /** The ID of the file or shared drive. */
2416
+ fileId: string;
2417
+ /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
2418
+ includePermissionsForView?: string;
2419
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2420
+ key?: string;
2421
+ /** OAuth 2.0 token for the current user. */
2422
+ oauth_token?: string;
2423
+ /**
2424
+ * The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a
2425
+ * shared drive, the entire list will be returned.
2426
+ */
2427
+ pageSize?: number;
2428
+ /** 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. */
2429
+ pageToken?: string;
2430
+ /** Returns response with indentations and line breaks. */
2431
+ prettyPrint?: boolean;
2432
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2433
+ quotaUser?: string;
2434
+ /** Whether the requesting application supports both My Drives and shared drives. */
2435
+ supportsAllDrives?: boolean;
2436
+ /** Deprecated use supportsAllDrives instead. */
2437
+ supportsTeamDrives?: boolean;
2438
+ /**
2439
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an
2440
+ * administrator of the domain to which the shared drive belongs.
2441
+ */
2442
+ useDomainAdminAccess?: boolean;
2443
+ /** Deprecated. Please use quotaUser instead. */
2444
+ userIp?: string;
2445
+ }): Request<PermissionList>;
2446
+ /** Updates a permission with patch semantics. */
2447
+ update(request: {
2448
+ /** Data format for the response. */
2449
+ alt?: string;
2450
+ /** Selector specifying which fields to include in a partial response. */
2451
+ fields?: string;
2452
+ /** The ID of the file or shared drive. */
2453
+ fileId: string;
2454
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2455
+ key?: string;
2456
+ /** OAuth 2.0 token for the current user. */
2457
+ oauth_token?: string;
2458
+ /** The ID of the permission. */
2459
+ permissionId: string;
2460
+ /** Returns response with indentations and line breaks. */
2461
+ prettyPrint?: boolean;
2462
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2463
+ quotaUser?: string;
2464
+ /** Whether to remove the expiration date. */
2465
+ removeExpiration?: boolean;
2466
+ /** Whether the requesting application supports both My Drives and shared drives. */
2467
+ supportsAllDrives?: boolean;
2468
+ /** Deprecated use supportsAllDrives instead. */
2469
+ supportsTeamDrives?: boolean;
2470
+ /**
2471
+ * Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners
2472
+ * can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are
2473
+ * not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to
2474
+ * them.
2475
+ */
2476
+ transferOwnership?: boolean;
2477
+ /**
2478
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an
2479
+ * administrator of the domain to which the shared drive belongs.
2480
+ */
2481
+ useDomainAdminAccess?: boolean;
2482
+ /** Deprecated. Please use quotaUser instead. */
2483
+ userIp?: string;
2484
+ /** Request body */
2485
+ resource: Permission;
2486
+ }): Request<Permission>;
2487
+ update(request: {
2488
+ /** Data format for the response. */
2489
+ alt?: string;
2490
+ /** Selector specifying which fields to include in a partial response. */
2491
+ fields?: string;
2492
+ /** The ID of the file or shared drive. */
2493
+ fileId: string;
2494
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2495
+ key?: string;
2496
+ /** OAuth 2.0 token for the current user. */
2497
+ oauth_token?: string;
2498
+ /** The ID of the permission. */
2499
+ permissionId: string;
2500
+ /** Returns response with indentations and line breaks. */
2501
+ prettyPrint?: boolean;
2502
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2503
+ quotaUser?: string;
2504
+ /** Whether to remove the expiration date. */
2505
+ removeExpiration?: boolean;
2506
+ /** Whether the requesting application supports both My Drives and shared drives. */
2507
+ supportsAllDrives?: boolean;
2508
+ /** Deprecated use supportsAllDrives instead. */
2509
+ supportsTeamDrives?: boolean;
2510
+ /**
2511
+ * Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners
2512
+ * can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are
2513
+ * not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to
2514
+ * them.
2515
+ */
2516
+ transferOwnership?: boolean;
2517
+ /**
2518
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an
2519
+ * administrator of the domain to which the shared drive belongs.
2520
+ */
2521
+ useDomainAdminAccess?: boolean;
2522
+ /** Deprecated. Please use quotaUser instead. */
2523
+ userIp?: string;
2524
+ },
2525
+ body: Permission): Request<Permission>;
2526
+ }
2527
+ interface RepliesResource {
2528
+ /** Creates a new reply to a comment. */
2529
+ create(request: {
2530
+ /** Data format for the response. */
2531
+ alt?: string;
2532
+ /** The ID of the comment. */
2533
+ commentId: string;
2534
+ /** Selector specifying which fields to include in a partial response. */
2535
+ fields?: string;
2536
+ /** The ID of the file. */
2537
+ fileId: string;
2538
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2539
+ key?: string;
2540
+ /** OAuth 2.0 token for the current user. */
2541
+ oauth_token?: string;
2542
+ /** Returns response with indentations and line breaks. */
2543
+ prettyPrint?: boolean;
2544
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2545
+ quotaUser?: string;
2546
+ /** Deprecated. Please use quotaUser instead. */
2547
+ userIp?: string;
2548
+ /** Request body */
2549
+ resource: Reply;
2550
+ }): Request<Reply>;
2551
+ create(request: {
2552
+ /** Data format for the response. */
2553
+ alt?: string;
2554
+ /** The ID of the comment. */
2555
+ commentId: string;
2556
+ /** Selector specifying which fields to include in a partial response. */
2557
+ fields?: string;
2558
+ /** The ID of the file. */
2559
+ fileId: string;
2560
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2561
+ key?: string;
2562
+ /** OAuth 2.0 token for the current user. */
2563
+ oauth_token?: string;
2564
+ /** Returns response with indentations and line breaks. */
2565
+ prettyPrint?: boolean;
2566
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2567
+ quotaUser?: string;
2568
+ /** Deprecated. Please use quotaUser instead. */
2569
+ userIp?: string;
2570
+ },
2571
+ body: Reply): Request<Reply>;
2572
+ /** Deletes a reply. */
2573
+ delete(request?: {
2574
+ /** Data format for the response. */
2575
+ alt?: string;
2576
+ /** The ID of the comment. */
2577
+ commentId: string;
2578
+ /** Selector specifying which fields to include in a partial response. */
2579
+ fields?: string;
2580
+ /** The ID of the file. */
2581
+ fileId: string;
2582
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2583
+ key?: string;
2584
+ /** OAuth 2.0 token for the current user. */
2585
+ oauth_token?: string;
2586
+ /** Returns response with indentations and line breaks. */
2587
+ prettyPrint?: boolean;
2588
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2589
+ quotaUser?: string;
2590
+ /** The ID of the reply. */
2591
+ replyId: string;
2592
+ /** Deprecated. Please use quotaUser instead. */
2593
+ userIp?: string;
2594
+ }): Request<void>;
2595
+ /** Gets a reply by ID. */
2596
+ get(request?: {
2597
+ /** Data format for the response. */
2598
+ alt?: string;
2599
+ /** The ID of the comment. */
2600
+ commentId: string;
2601
+ /** Selector specifying which fields to include in a partial response. */
2602
+ fields?: string;
2603
+ /** The ID of the file. */
2604
+ fileId: string;
2605
+ /** Whether to return deleted replies. Deleted replies will not include their original content. */
2606
+ includeDeleted?: boolean;
2607
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2608
+ key?: string;
2609
+ /** OAuth 2.0 token for the current user. */
2610
+ oauth_token?: string;
2611
+ /** Returns response with indentations and line breaks. */
2612
+ prettyPrint?: boolean;
2613
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2614
+ quotaUser?: string;
2615
+ /** The ID of the reply. */
2616
+ replyId: string;
2617
+ /** Deprecated. Please use quotaUser instead. */
2618
+ userIp?: string;
2619
+ }): Request<Reply>;
2620
+ /** Lists a comment's replies. */
2621
+ list(request?: {
2622
+ /** Data format for the response. */
2623
+ alt?: string;
2624
+ /** The ID of the comment. */
2625
+ commentId: string;
2626
+ /** Selector specifying which fields to include in a partial response. */
2627
+ fields?: string;
2628
+ /** The ID of the file. */
2629
+ fileId: string;
2630
+ /** Whether to include deleted replies. Deleted replies will not include their original content. */
2631
+ includeDeleted?: boolean;
2632
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2633
+ key?: string;
2634
+ /** OAuth 2.0 token for the current user. */
2635
+ oauth_token?: string;
2636
+ /** The maximum number of replies to return per page. */
2637
+ pageSize?: number;
2638
+ /** 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. */
2639
+ pageToken?: string;
2640
+ /** Returns response with indentations and line breaks. */
2641
+ prettyPrint?: boolean;
2642
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2643
+ quotaUser?: string;
2644
+ /** Deprecated. Please use quotaUser instead. */
2645
+ userIp?: string;
2646
+ }): Request<ReplyList>;
2647
+ /** Updates a reply with patch semantics. */
2648
+ update(request: {
2649
+ /** Data format for the response. */
2650
+ alt?: string;
2651
+ /** The ID of the comment. */
2652
+ commentId: string;
2653
+ /** Selector specifying which fields to include in a partial response. */
2654
+ fields?: string;
2655
+ /** The ID of the file. */
2656
+ fileId: string;
2657
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2658
+ key?: string;
2659
+ /** OAuth 2.0 token for the current user. */
2660
+ oauth_token?: string;
2661
+ /** Returns response with indentations and line breaks. */
2662
+ prettyPrint?: boolean;
2663
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2664
+ quotaUser?: string;
2665
+ /** The ID of the reply. */
2666
+ replyId: string;
2667
+ /** Deprecated. Please use quotaUser instead. */
2668
+ userIp?: string;
2669
+ /** Request body */
2670
+ resource: Reply;
2671
+ }): Request<Reply>;
2672
+ update(request: {
2673
+ /** Data format for the response. */
2674
+ alt?: string;
2675
+ /** The ID of the comment. */
2676
+ commentId: string;
2677
+ /** Selector specifying which fields to include in a partial response. */
2678
+ fields?: string;
2679
+ /** The ID of the file. */
2680
+ fileId: string;
2681
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2682
+ key?: string;
2683
+ /** OAuth 2.0 token for the current user. */
2684
+ oauth_token?: string;
2685
+ /** Returns response with indentations and line breaks. */
2686
+ prettyPrint?: boolean;
2687
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2688
+ quotaUser?: string;
2689
+ /** The ID of the reply. */
2690
+ replyId: string;
2691
+ /** Deprecated. Please use quotaUser instead. */
2692
+ userIp?: string;
2693
+ },
2694
+ body: Reply): Request<Reply>;
2695
+ }
2696
+ interface RevisionsResource {
2697
+ /**
2698
+ * Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs
2699
+ * or Sheets, and the last remaining file version can't be deleted.
2700
+ */
2701
+ delete(request?: {
2702
+ /** Data format for the response. */
2703
+ alt?: string;
2704
+ /** Selector specifying which fields to include in a partial response. */
2705
+ fields?: string;
2706
+ /** The ID of the file. */
2707
+ fileId: string;
2708
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2709
+ key?: string;
2710
+ /** OAuth 2.0 token for the current user. */
2711
+ oauth_token?: string;
2712
+ /** Returns response with indentations and line breaks. */
2713
+ prettyPrint?: boolean;
2714
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2715
+ quotaUser?: string;
2716
+ /** The ID of the revision. */
2717
+ revisionId: string;
2718
+ /** Deprecated. Please use quotaUser instead. */
2719
+ userIp?: string;
2720
+ }): Request<void>;
2721
+ /** Gets a revision's metadata or content by ID. */
2722
+ get(request?: {
2723
+ /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
2724
+ acknowledgeAbuse?: boolean;
2725
+ /** Data format for the response. */
2726
+ alt?: string;
2727
+ /** Selector specifying which fields to include in a partial response. */
2728
+ fields?: string;
2729
+ /** The ID of the file. */
2730
+ fileId: string;
2731
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2732
+ key?: string;
2733
+ /** OAuth 2.0 token for the current user. */
2734
+ oauth_token?: string;
2735
+ /** Returns response with indentations and line breaks. */
2736
+ prettyPrint?: boolean;
2737
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2738
+ quotaUser?: string;
2739
+ /** The ID of the revision. */
2740
+ revisionId: string;
2741
+ /** Deprecated. Please use quotaUser instead. */
2742
+ userIp?: string;
2743
+ }): Request<Revision>;
2744
+ /** Lists a file's revisions. */
2745
+ list(request?: {
2746
+ /** Data format for the response. */
2747
+ alt?: string;
2748
+ /** Selector specifying which fields to include in a partial response. */
2749
+ fields?: string;
2750
+ /** The ID of the file. */
2751
+ fileId: string;
2752
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2753
+ key?: string;
2754
+ /** OAuth 2.0 token for the current user. */
2755
+ oauth_token?: string;
2756
+ /** The maximum number of revisions to return per page. */
2757
+ pageSize?: number;
2758
+ /** 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. */
2759
+ pageToken?: string;
2760
+ /** Returns response with indentations and line breaks. */
2761
+ prettyPrint?: boolean;
2762
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2763
+ quotaUser?: string;
2764
+ /** Deprecated. Please use quotaUser instead. */
2765
+ userIp?: string;
2766
+ }): Request<RevisionList>;
2767
+ /** Updates a revision with patch semantics. */
2768
+ update(request: {
2769
+ /** Data format for the response. */
2770
+ alt?: string;
2771
+ /** Selector specifying which fields to include in a partial response. */
2772
+ fields?: string;
2773
+ /** The ID of the file. */
2774
+ fileId: string;
2775
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2776
+ key?: string;
2777
+ /** OAuth 2.0 token for the current user. */
2778
+ oauth_token?: string;
2779
+ /** Returns response with indentations and line breaks. */
2780
+ prettyPrint?: boolean;
2781
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2782
+ quotaUser?: string;
2783
+ /** The ID of the revision. */
2784
+ revisionId: string;
2785
+ /** Deprecated. Please use quotaUser instead. */
2786
+ userIp?: string;
2787
+ /** Request body */
2788
+ resource: Revision;
2789
+ }): Request<Revision>;
2790
+ update(request: {
2791
+ /** Data format for the response. */
2792
+ alt?: string;
2793
+ /** Selector specifying which fields to include in a partial response. */
2794
+ fields?: string;
2795
+ /** The ID of the file. */
2796
+ fileId: string;
2797
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2798
+ key?: string;
2799
+ /** OAuth 2.0 token for the current user. */
2800
+ oauth_token?: string;
2801
+ /** Returns response with indentations and line breaks. */
2802
+ prettyPrint?: boolean;
2803
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2804
+ quotaUser?: string;
2805
+ /** The ID of the revision. */
2806
+ revisionId: string;
2807
+ /** Deprecated. Please use quotaUser instead. */
2808
+ userIp?: string;
2809
+ },
2810
+ body: Revision): Request<Revision>;
2811
+ }
2812
+ interface TeamdrivesResource {
2813
+ /** Deprecated use drives.create instead. */
2814
+ create(request: {
2815
+ /** Data format for the response. */
2816
+ alt?: string;
2817
+ /** Selector specifying which fields to include in a partial response. */
2818
+ fields?: string;
2819
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2820
+ key?: string;
2821
+ /** OAuth 2.0 token for the current user. */
2822
+ oauth_token?: string;
2823
+ /** Returns response with indentations and line breaks. */
2824
+ prettyPrint?: boolean;
2825
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2826
+ quotaUser?: string;
2827
+ /**
2828
+ * 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
2829
+ * request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.
2830
+ */
2831
+ requestId: string;
2832
+ /** Deprecated. Please use quotaUser instead. */
2833
+ userIp?: string;
2834
+ /** Request body */
2835
+ resource: TeamDrive;
2836
+ }): Request<TeamDrive>;
2837
+ create(request: {
2838
+ /** Data format for the response. */
2839
+ alt?: string;
2840
+ /** Selector specifying which fields to include in a partial response. */
2841
+ fields?: string;
2842
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2843
+ key?: string;
2844
+ /** OAuth 2.0 token for the current user. */
2845
+ oauth_token?: string;
2846
+ /** Returns response with indentations and line breaks. */
2847
+ prettyPrint?: boolean;
2848
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2849
+ quotaUser?: string;
2850
+ /**
2851
+ * 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
2852
+ * request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.
2853
+ */
2854
+ requestId: string;
2855
+ /** Deprecated. Please use quotaUser instead. */
2856
+ userIp?: string;
2857
+ },
2858
+ body: TeamDrive): Request<TeamDrive>;
2859
+ /** Deprecated use drives.delete instead. */
2860
+ delete(request?: {
2861
+ /** Data format for the response. */
2862
+ alt?: string;
2863
+ /** Selector specifying which fields to include in a partial response. */
2864
+ fields?: string;
2865
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2866
+ key?: string;
2867
+ /** OAuth 2.0 token for the current user. */
2868
+ oauth_token?: string;
2869
+ /** Returns response with indentations and line breaks. */
2870
+ prettyPrint?: boolean;
2871
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2872
+ quotaUser?: string;
2873
+ /** The ID of the Team Drive */
2874
+ teamDriveId: string;
2875
+ /** Deprecated. Please use quotaUser instead. */
2876
+ userIp?: string;
2877
+ }): Request<void>;
2878
+ /** Deprecated use drives.get instead. */
2879
+ get(request?: {
2880
+ /** Data format for the response. */
2881
+ alt?: string;
2882
+ /** Selector specifying which fields to include in a partial response. */
2883
+ fields?: string;
2884
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2885
+ key?: string;
2886
+ /** OAuth 2.0 token for the current user. */
2887
+ oauth_token?: string;
2888
+ /** Returns response with indentations and line breaks. */
2889
+ prettyPrint?: boolean;
2890
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2891
+ quotaUser?: string;
2892
+ /** The ID of the Team Drive */
2893
+ teamDriveId: string;
2894
+ /**
2895
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive
2896
+ * belongs.
2897
+ */
2898
+ useDomainAdminAccess?: boolean;
2899
+ /** Deprecated. Please use quotaUser instead. */
2900
+ userIp?: string;
2901
+ }): Request<TeamDrive>;
2902
+ /** Deprecated use drives.list instead. */
2903
+ list(request?: {
2904
+ /** Data format for the response. */
2905
+ alt?: string;
2906
+ /** Selector specifying which fields to include in a partial response. */
2907
+ fields?: string;
2908
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2909
+ key?: string;
2910
+ /** OAuth 2.0 token for the current user. */
2911
+ oauth_token?: string;
2912
+ /** Maximum number of Team Drives to return. */
2913
+ pageSize?: number;
2914
+ /** Page token for Team Drives. */
2915
+ pageToken?: string;
2916
+ /** Returns response with indentations and line breaks. */
2917
+ prettyPrint?: boolean;
2918
+ /** Query string for searching Team Drives. */
2919
+ q?: string;
2920
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2921
+ quotaUser?: string;
2922
+ /** Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned. */
2923
+ useDomainAdminAccess?: boolean;
2924
+ /** Deprecated. Please use quotaUser instead. */
2925
+ userIp?: string;
2926
+ }): Request<TeamDriveList>;
2927
+ /** Deprecated use drives.update instead */
2928
+ update(request: {
2929
+ /** Data format for the response. */
2930
+ alt?: string;
2931
+ /** Selector specifying which fields to include in a partial response. */
2932
+ fields?: string;
2933
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2934
+ key?: string;
2935
+ /** OAuth 2.0 token for the current user. */
2936
+ oauth_token?: string;
2937
+ /** Returns response with indentations and line breaks. */
2938
+ prettyPrint?: boolean;
2939
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2940
+ quotaUser?: string;
2941
+ /** The ID of the Team Drive */
2942
+ teamDriveId: string;
2943
+ /**
2944
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive
2945
+ * belongs.
2946
+ */
2947
+ useDomainAdminAccess?: boolean;
2948
+ /** Deprecated. Please use quotaUser instead. */
2949
+ userIp?: string;
2950
+ /** Request body */
2951
+ resource: TeamDrive;
2952
+ }): Request<TeamDrive>;
2953
+ update(request: {
2954
+ /** Data format for the response. */
2955
+ alt?: string;
2956
+ /** Selector specifying which fields to include in a partial response. */
2957
+ fields?: string;
2958
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2959
+ key?: string;
2960
+ /** OAuth 2.0 token for the current user. */
2961
+ oauth_token?: string;
2962
+ /** Returns response with indentations and line breaks. */
2963
+ prettyPrint?: boolean;
2964
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2965
+ quotaUser?: string;
2966
+ /** The ID of the Team Drive */
2967
+ teamDriveId: string;
2968
+ /**
2969
+ * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive
2970
+ * belongs.
2971
+ */
2972
+ useDomainAdminAccess?: boolean;
2973
+ /** Deprecated. Please use quotaUser instead. */
2974
+ userIp?: string;
2975
+ },
2976
+ body: TeamDrive): Request<TeamDrive>;
2977
+ }
2978
+
2979
+ const about: AboutResource;
2980
+
2981
+ const changes: ChangesResource;
2982
+
2983
+ const channels: ChannelsResource;
2984
+
2985
+ const comments: CommentsResource;
2986
+
2987
+ const drives: DrivesResource;
2988
+
2989
+ const files: FilesResource;
2990
+
2991
+ const permissions: PermissionsResource;
2992
+
2993
+ const replies: RepliesResource;
2994
+
2995
+ const revisions: RevisionsResource;
2996
+
2997
+ const teamdrives: TeamdrivesResource;
2998
+ }
2999
+ }