@maxim_mazurok/gapi.client.drive-v3 0.0.20230514 → 0.0.20230517

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.
Files changed (4) hide show
  1. package/index.d.ts +1530 -761
  2. package/package.json +2 -2
  3. package/readme.md +24 -24
  4. package/tests.ts +47 -24
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Type definitions for non-npm package Drive API v3 0.0 */
1
+ /* Type definitions for non-npm package Google Drive API v3 0.0 */
2
2
  // Project: https://developers.google.com/drive/
3
3
  // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
4
  // Nick Amoscato <https://github.com/namoscato>
@@ -9,12 +9,12 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://www.googleapis.com/discovery/v1/apis/drive/v3/rest
12
- // Revision: 20230514
12
+ // Revision: 20230517
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Drive API v3 */
17
+ /** Load Google Drive API v3 */
18
18
  function load(urlOrObject: "https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"): Promise<void>;
19
19
  /** @deprecated Please load APIs with discovery documents. */
20
20
  function load(name: "drive", version: "v3"): Promise<void>;
@@ -29,7 +29,7 @@ declare namespace gapi.client {
29
29
  /** Whether the user can create shared drives. */
30
30
  canCreateDrives?:
31
31
  boolean;
32
- /** Deprecated - use canCreateDrives instead. */
32
+ /** Deprecated: Use `canCreateDrives` instead. */
33
33
  canCreateTeamDrives?:
34
34
  boolean;
35
35
  /** A list of themes that are supported for shared drives. */
@@ -54,7 +54,7 @@ declare namespace gapi.client {
54
54
  /** A map of source MIME type to possible targets for all supported imports. */
55
55
  importFormats?:
56
56
  { [P in string]: string[] };
57
- /** Identifies what kind of resource this is. Value: the fixed string "drive#about". */
57
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#about"`. */
58
58
  kind?:
59
59
  string;
60
60
  /** A map of maximum import sizes by MIME type, in bytes. */
@@ -79,16 +79,16 @@ declare namespace gapi.client {
79
79
  usageInDriveTrash?:
80
80
  string;
81
81
  };
82
- /** Deprecated - use driveThemes instead. */
82
+ /** Deprecated: Use `driveThemes` instead. */
83
83
  teamDriveThemes?:
84
84
  Array<{
85
- /** Deprecated - use driveThemes/backgroundImageLink instead. */
85
+ /** Deprecated: Use `driveThemes/backgroundImageLink` instead. */
86
86
  backgroundImageLink?:
87
87
  string;
88
- /** Deprecated - use driveThemes/colorRgb instead. */
88
+ /** Deprecated: Use `driveThemes/colorRgb` instead. */
89
89
  colorRgb?:
90
90
  string;
91
- /** Deprecated - use driveThemes/id instead. */
91
+ /** Deprecated: Use `driveThemes/id` instead. */
92
92
  id?:
93
93
  string;
94
94
  }>;
@@ -97,7 +97,7 @@ declare namespace gapi.client {
97
97
  User;
98
98
  }
99
99
  interface Change {
100
- /** The type of the change. Possible values are file and drive. */
100
+ /** The type of the change. Possible values are `file` and `drive`. */
101
101
  changeType?:
102
102
  string;
103
103
  /** 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. */
@@ -112,22 +112,22 @@ declare namespace gapi.client {
112
112
  /** The ID of the file which has changed. */
113
113
  fileId?:
114
114
  string;
115
- /** Identifies what kind of resource this is. Value: the fixed string "drive#change". */
115
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#change"`. */
116
116
  kind?:
117
117
  string;
118
118
  /** Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access. */
119
119
  removed?:
120
120
  boolean;
121
- /** Deprecated - use drive instead. */
121
+ /** Deprecated: Use `drive` instead. */
122
122
  teamDrive?:
123
123
  TeamDrive;
124
- /** Deprecated - use driveId instead. */
124
+ /** Deprecated: Use `driveId` instead. */
125
125
  teamDriveId?:
126
126
  string;
127
127
  /** The time of this change (RFC 3339 date-time). */
128
128
  time?:
129
129
  string;
130
- /** Deprecated - use changeType instead. */
130
+ /** Deprecated: Use `changeType` instead. */
131
131
  type?:
132
132
  string;
133
133
  }
@@ -135,7 +135,7 @@ declare namespace gapi.client {
135
135
  /** The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
136
136
  changes?:
137
137
  Change[];
138
- /** Identifies what kind of resource this is. Value: the fixed string "drive#changeList". */
138
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#changeList"`. */
139
139
  kind?:
140
140
  string;
141
141
  /** The starting page token for future changes. This will be present only if the end of the current changes list has been reached. */
@@ -158,7 +158,7 @@ declare namespace gapi.client {
158
158
  /** A UUID or similar unique string that identifies this channel. */
159
159
  id?:
160
160
  string;
161
- /** Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel". */
161
+ /** Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`. */
162
162
  kind?:
163
163
  string;
164
164
  /** Additional parameters controlling delivery channel behavior. Optional. */
@@ -176,33 +176,36 @@ declare namespace gapi.client {
176
176
  /** An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. */
177
177
  token?:
178
178
  string;
179
- /** 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. */
179
+ /** The type of delivery mechanism used for this channel. */
180
180
  type?:
181
181
  string;
182
182
  }
183
183
  interface Comment {
184
- /** A region of the document represented as a JSON string. For details on defining anchor properties, refer to Add comments and replies. */
184
+ /**
185
+ * A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and
186
+ * replies](https://developers.google.com/drive/api/v3/manage-comments).
187
+ */
185
188
  anchor?:
186
189
  string;
187
- /** The author of the comment. The author's email address and permission ID will not be populated. */
190
+ /** Output only. The author of the comment. The author's email address and permission ID will not be populated. */
188
191
  author?:
189
192
  User;
190
- /** The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. */
193
+ /** The plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed. */
191
194
  content?:
192
195
  string;
193
196
  /** The time at which the comment was created (RFC 3339 date-time). */
194
197
  createdTime?:
195
198
  string;
196
- /** Whether the comment has been deleted. A deleted comment has no content. */
199
+ /** Output only. Whether the comment has been deleted. A deleted comment has no content. */
197
200
  deleted?:
198
201
  boolean;
199
- /** The content of the comment with HTML formatting. */
202
+ /** Output only. The content of the comment with HTML formatting. */
200
203
  htmlContent?:
201
204
  string;
202
- /** The ID of the comment. */
205
+ /** Output only. The ID of the comment. */
203
206
  id?:
204
207
  string;
205
- /** Identifies what kind of resource this is. Value: the fixed string "drive#comment". */
208
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#comment"`. */
206
209
  kind?:
207
210
  string;
208
211
  /** The last time the comment or any of its replies was modified (RFC 3339 date-time). */
@@ -218,10 +221,10 @@ declare namespace gapi.client {
218
221
  value?:
219
222
  string;
220
223
  };
221
- /** The full list of replies to the comment in chronological order. */
224
+ /** Output only. The full list of replies to the comment in chronological order. */
222
225
  replies?:
223
226
  Reply[];
224
- /** Whether the comment has been resolved by one of its replies. */
227
+ /** Output only. Whether the comment has been resolved by one of its replies. */
225
228
  resolved?:
226
229
  boolean;
227
230
  }
@@ -229,7 +232,7 @@ declare namespace gapi.client {
229
232
  /** The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
230
233
  comments?:
231
234
  Comment[];
232
- /** Identifies what kind of resource this is. Value: the fixed string "drive#commentList". */
235
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#commentList"`. */
233
236
  kind?:
234
237
  string;
235
238
  /**
@@ -246,23 +249,23 @@ declare namespace gapi.client {
246
249
  */
247
250
  readOnly?:
248
251
  boolean;
249
- /** Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true. */
252
+ /** Reason for why the content of the file is restricted. This is only mutable on requests that also set `readOnly=true`. */
250
253
  reason?:
251
254
  string;
252
- /** The user who set the content restriction. Only populated if readOnly is true. */
255
+ /** Output only. The user who set the content restriction. Only populated if `readOnly` is true. */
253
256
  restrictingUser?:
254
257
  User;
255
258
  /** The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true. */
256
259
  restrictionTime?:
257
260
  string;
258
- /** The type of the content restriction. Currently the only possible value is globalContentRestriction. */
261
+ /** Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`. */
259
262
  type?:
260
263
  string;
261
264
  }
262
265
  interface Drive {
263
266
  /**
264
- * 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
265
- * don't set themeId. When specified, all fields of the backgroundImageFile must be set.
267
+ * 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
268
+ * that don't set `themeId`. When specified, all fields of the `backgroundImageFile` must be set.
266
269
  */
267
270
  backgroundImageFile?:
268
271
  {
@@ -288,74 +291,77 @@ declare namespace gapi.client {
288
291
  yCoordinate?:
289
292
  number;
290
293
  };
291
- /** A short-lived link to this shared drive's background image. */
294
+ /** Output only. A short-lived link to this shared drive's background image. */
292
295
  backgroundImageLink?:
293
296
  string;
294
- /** Capabilities the current user has on this shared drive. */
297
+ /** Output only. Capabilities the current user has on this shared drive. */
295
298
  capabilities?:
296
299
  {
297
- /** Whether the current user can add children to folders in this shared drive. */
300
+ /** Output only. Whether the current user can add children to folders in this shared drive. */
298
301
  canAddChildren?:
299
302
  boolean;
300
- /** Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. */
303
+ /** Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this shared drive. */
301
304
  canChangeCopyRequiresWriterPermissionRestriction?:
302
305
  boolean;
303
- /** Whether the current user can change the domainUsersOnly restriction of this shared drive. */
306
+ /** Output only. Whether the current user can change the `domainUsersOnly` restriction of this shared drive. */
304
307
  canChangeDomainUsersOnlyRestriction?:
305
308
  boolean;
306
- /** Whether the current user can change the background of this shared drive. */
309
+ /** Output only. Whether the current user can change the background of this shared drive. */
307
310
  canChangeDriveBackground?:
308
311
  boolean;
309
- /** Whether the current user can change the driveMembersOnly restriction of this shared drive. */
312
+ /** Output only. Whether the current user can change the `driveMembersOnly` restriction of this shared drive. */
310
313
  canChangeDriveMembersOnlyRestriction?:
311
314
  boolean;
312
- /** Whether the current user can change the sharingFoldersRequiresOrganizerPermission restriction of this shared drive. */
315
+ /** Output only. Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction of this shared drive. */
313
316
  canChangeSharingFoldersRequiresOrganizerPermissionRestriction?:
314
317
  boolean;
315
- /** Whether the current user can comment on files in this shared drive. */
318
+ /** Output only. Whether the current user can comment on files in this shared drive. */
316
319
  canComment?:
317
320
  boolean;
318
- /** Whether the current user can copy files in this shared drive. */
321
+ /** Output only. Whether the current user can copy files in this shared drive. */
319
322
  canCopy?:
320
323
  boolean;
321
- /** Whether the current user can delete children from folders in this shared drive. */
324
+ /** Output only. Whether the current user can delete children from folders in this shared drive. */
322
325
  canDeleteChildren?:
323
326
  boolean;
324
- /** 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. */
327
+ /**
328
+ * Output only. 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
329
+ * drive.
330
+ */
325
331
  canDeleteDrive?:
326
332
  boolean;
327
- /** Whether the current user can download files in this shared drive. */
333
+ /** Output only. Whether the current user can download files in this shared drive. */
328
334
  canDownload?:
329
335
  boolean;
330
- /** Whether the current user can edit files in this shared drive */
336
+ /** Output only. Whether the current user can edit files in this shared drive */
331
337
  canEdit?:
332
338
  boolean;
333
- /** Whether the current user can list the children of folders in this shared drive. */
339
+ /** Output only. Whether the current user can list the children of folders in this shared drive. */
334
340
  canListChildren?:
335
341
  boolean;
336
- /** Whether the current user can add members to this shared drive or remove them or change their role. */
342
+ /** Output only. Whether the current user can add members to this shared drive or remove them or change their role. */
337
343
  canManageMembers?:
338
344
  boolean;
339
- /** Whether the current user can read the revisions resource of files in this shared drive. */
345
+ /** Output only. Whether the current user can read the revisions resource of files in this shared drive. */
340
346
  canReadRevisions?:
341
347
  boolean;
342
- /** Whether the current user can rename files or folders in this shared drive. */
348
+ /** Output only. Whether the current user can rename files or folders in this shared drive. */
343
349
  canRename?:
344
350
  boolean;
345
- /** Whether the current user can rename this shared drive. */
351
+ /** Output only. Whether the current user can rename this shared drive. */
346
352
  canRenameDrive?:
347
353
  boolean;
348
- /** Whether the current user can reset the shared drive restrictions to defaults. */
354
+ /** Output only. Whether the current user can reset the shared drive restrictions to defaults. */
349
355
  canResetDriveRestrictions?:
350
356
  boolean;
351
- /** Whether the current user can share files or folders in this shared drive. */
357
+ /** Output only. Whether the current user can share files or folders in this shared drive. */
352
358
  canShare?:
353
359
  boolean;
354
- /** Whether the current user can trash children from folders in this shared drive. */
360
+ /** Output only. Whether the current user can trash children from folders in this shared drive. */
355
361
  canTrashChildren?:
356
362
  boolean;
357
363
  };
358
- /** The color of this shared drive as an RGB hex string. It can only be set on drive.drives.update requests that don't set themeId. */
364
+ /** 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`. */
359
365
  colorRgb?:
360
366
  string;
361
367
  /** The time at which the shared drive was created (RFC 3339 date-time). */
@@ -364,16 +370,16 @@ declare namespace gapi.client {
364
370
  /** Whether the shared drive is hidden from default view. */
365
371
  hidden?:
366
372
  boolean;
367
- /** The ID of this shared drive which is also the ID of the top level folder of this shared drive. */
373
+ /** Output only. The ID of this shared drive which is also the ID of the top level folder of this shared drive. */
368
374
  id?:
369
375
  string;
370
- /** Identifies what kind of resource this is. Value: the fixed string "drive#drive". */
376
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#drive"`. */
371
377
  kind?:
372
378
  string;
373
379
  /** The name of this shared drive. */
374
380
  name?:
375
381
  string;
376
- /** The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true. */
382
+ /** Output only. The organizational unit of this shared drive. This field is only populated on `drives.list` responses when the `useDomainAdminAccess` parameter is set to `true`. */
377
383
  orgUnitId?:
378
384
  string;
379
385
  /** A set of restrictions that apply to this shared drive or items inside this shared drive. */
@@ -383,8 +389,8 @@ declare namespace gapi.client {
383
389
  adminManagedRestrictions?:
384
390
  boolean;
385
391
  /**
386
- * 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
387
- * override the similarly named field to true for any file inside this shared drive.
392
+ * 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
393
+ * will override the similarly named field to `true` for any file inside this shared drive.
388
394
  */
389
395
  copyRequiresWriterPermission?:
390
396
  boolean;
@@ -402,9 +408,9 @@ declare namespace gapi.client {
402
408
  boolean;
403
409
  };
404
410
  /**
405
- * The ID of the theme from which the background image and color are set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a
406
- * 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
407
- * colorRgb or backgroundImageFile.
411
+ * 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
412
+ * on a `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
413
+ * set `colorRgb` or `backgroundImageFile`.
408
414
  */
409
415
  themeId?:
410
416
  string;
@@ -413,7 +419,7 @@ declare namespace gapi.client {
413
419
  /** The list of shared drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
414
420
  drives?:
415
421
  Drive[];
416
- /** Identifies what kind of resource this is. Value: the fixed string "drive#driveList". */
422
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#driveList"`. */
417
423
  kind?:
418
424
  string;
419
425
  /**
@@ -425,161 +431,161 @@ declare namespace gapi.client {
425
431
  }
426
432
  interface File {
427
433
  /**
428
- * A collection of arbitrary key-value pairs that are private to the requesting app.
434
+ * A collection of arbitrary key-value pairs which are private to the requesting app.
429
435
  * 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
430
- * token obtained with an OAuth 2 client ID. You cannot use an API key to retrieve private properties.
436
+ * token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
431
437
  */
432
438
  appProperties?:
433
439
  { [P in string]: string };
434
- /** Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user can take. */
440
+ /** Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take. */
435
441
  capabilities?:
436
442
  {
437
- /** Whether the current user is the pending owner of the file. Not populated for shared drive files. */
443
+ /** Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files. */
438
444
  canAcceptOwnership?:
439
445
  boolean;
440
- /** Whether the current user can add children to this folder. This is always false when the item isn't a folder. */
446
+ /** Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder. */
441
447
  canAddChildren?:
442
448
  boolean;
443
449
  /**
444
- * Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item isn't a folder. Only populated
445
- * for items in shared drives.
450
+ * Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder.
451
+ * Only populated for items in shared drives.
446
452
  */
447
453
  canAddFolderFromAnotherDrive?:
448
454
  boolean;
449
- /** 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. */
455
+ /** Output only. Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files. */
450
456
  canAddMyDriveParent?:
451
457
  boolean;
452
- /** Whether the current user can change the copyRequiresWriterPermission restriction of this file. */
458
+ /** Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file. */
453
459
  canChangeCopyRequiresWriterPermission?:
454
460
  boolean;
455
- /** Whether the current user can change the securityUpdateEnabled field on link share metadata. */
461
+ /** Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata. */
456
462
  canChangeSecurityUpdateEnabled?:
457
463
  boolean;
458
- /** Deprecated */
464
+ /** Deprecated: Output only. */
459
465
  canChangeViewersCanCopyContent?:
460
466
  boolean;
461
- /** Whether the current user can comment on this file. */
467
+ /** Output only. Whether the current user can comment on this file. */
462
468
  canComment?:
463
469
  boolean;
464
470
  /**
465
- * 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
466
- * it's not a folder.
471
+ * Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item
472
+ * itself if it is not a folder.
467
473
  */
468
474
  canCopy?:
469
475
  boolean;
470
- /** Whether the current user can delete this file. */
476
+ /** Output only. Whether the current user can delete this file. */
471
477
  canDelete?:
472
478
  boolean;
473
- /** Whether the current user can delete children of this folder. This is false when the item isn't a folder. Only populated for items in shared drives. */
479
+ /** Output only. Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives. */
474
480
  canDeleteChildren?:
475
481
  boolean;
476
- /** Whether the current user can download this file. */
482
+ /** Output only. Whether the current user can download this file. */
477
483
  canDownload?:
478
484
  boolean;
479
485
  /**
480
- * Whether the current user can edit this file. Other factors might limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission
481
- * or canModifyContent.
486
+ * Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see
487
+ * `canChangeCopyRequiresWriterPermission` or `canModifyContent`.
482
488
  */
483
489
  canEdit?:
484
490
  boolean;
485
- /** Whether the current user can list the children of this folder. This is always false when the item isn't a folder. */
491
+ /** Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder. */
486
492
  canListChildren?:
487
493
  boolean;
488
- /** Whether the current user can modify the content of this file. */
494
+ /** Output only. Whether the current user can modify the content of this file. */
489
495
  canModifyContent?:
490
496
  boolean;
491
- /** Whether the current user can modify restrictions on content of this file. */
497
+ /** Output only. Whether the current user can modify restrictions on content of this file. */
492
498
  canModifyContentRestriction?:
493
499
  boolean;
494
- /** Whether the current user can modify the labels on this file. */
500
+ /** Output only. Whether the current user can modify the labels on the file. */
495
501
  canModifyLabels?:
496
502
  boolean;
497
- /** Whether the current user can move children of this folder outside of the shared drive. This is false when the item isn't a folder. Only populated for items in shared drives. */
503
+ /**
504
+ * Output only. Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in
505
+ * shared drives.
506
+ */
498
507
  canMoveChildrenOutOfDrive?:
499
508
  boolean;
500
- /** Deprecated - use canMoveChildrenOutOfDrive instead. */
509
+ /** Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead. */
501
510
  canMoveChildrenOutOfTeamDrive?:
502
511
  boolean;
503
512
  /**
504
- * Whether the current user can move children of this folder within this shared drive or My Drive. This is false when the item isn't a folder. Note that a request to move the
505
- * child might still fail depending on the current user's access to the child and to the destination folder.
513
+ * Output only. Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child
514
+ * may still fail depending on the current user's access to the child and to the destination folder.
506
515
  */
507
516
  canMoveChildrenWithinDrive?:
508
517
  boolean;
509
- /** Deprecated - use canMoveChildrenWithinDrive instead. */
518
+ /** Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead. */
510
519
  canMoveChildrenWithinTeamDrive?:
511
520
  boolean;
512
- /** Deprecated - use canMoveItemOutOfDrive instead. */
521
+ /** Deprecated: Output only. Use `canMoveItemOutOfDrive` instead. */
513
522
  canMoveItemIntoTeamDrive?:
514
523
  boolean;
515
524
  /**
516
- * Whether the current user can move this item outside of this shared drive or My Drive by changing its parent. Note that a request to change the parent of the item might still
517
- * fail depending on the new parent that's being added.
525
+ * Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail
526
+ * depending on the new parent that is being added.
518
527
  */
519
528
  canMoveItemOutOfDrive?:
520
529
  boolean;
521
- /** Deprecated - use canMoveItemOutOfDrive instead. */
530
+ /** Deprecated: Output only. Use `canMoveItemOutOfDrive` instead. */
522
531
  canMoveItemOutOfTeamDrive?:
523
532
  boolean;
524
533
  /**
525
- * Whether the current user can move this item within this shared drive or My Drive. Note that a request to change the parent of the item might still fail depending on the new
526
- * parent that's being added and the parent that's being removed.
534
+ * Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent
535
+ * that is being added and the parent that is being removed.
527
536
  */
528
537
  canMoveItemWithinDrive?:
529
538
  boolean;
530
- /** Deprecated - use canMoveItemWithinDrive instead. */
539
+ /** Deprecated: Output only. Use `canMoveItemWithinDrive` instead. */
531
540
  canMoveItemWithinTeamDrive?:
532
541
  boolean;
533
- /** Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead. */
542
+ /** Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead. */
534
543
  canMoveTeamDriveItem?:
535
544
  boolean;
536
- /** Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives. */
545
+ /** Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives. */
537
546
  canReadDrive?:
538
547
  boolean;
539
- /** Whether the current user can read the labels on this file. */
548
+ /** Output only. Whether the current user can read the labels on the file. */
540
549
  canReadLabels?:
541
550
  boolean;
542
551
  /**
543
- * 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
544
- * if it's not a folder, can be read.
552
+ * Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or
553
+ * this item itself if it is not a folder, can be read.
545
554
  */
546
555
  canReadRevisions?:
547
556
  boolean;
548
- /** Deprecated - use canReadDrive instead. */
557
+ /** Deprecated: Output only. Use `canReadDrive` instead. */
549
558
  canReadTeamDrive?:
550
559
  boolean;
551
560
  /**
552
- * Whether the current user can remove children from this folder. This is always false when the item isn't a folder. For a folder in a shared drive, use canDeleteChildren or
553
- * canTrashChildren instead.
561
+ * Output only. Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use
562
+ * `canDeleteChildren` or `canTrashChildren` instead.
554
563
  */
555
564
  canRemoveChildren?:
556
565
  boolean;
557
- /** 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. */
566
+ /** Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files. */
558
567
  canRemoveMyDriveParent?:
559
568
  boolean;
560
- /** Whether the current user can rename this file. */
569
+ /** Output only. Whether the current user can rename this file. */
561
570
  canRename?:
562
571
  boolean;
563
- /** Whether the current user can modify the sharing settings for this file. */
572
+ /** Output only. Whether the current user can modify the sharing settings for this file. */
564
573
  canShare?:
565
574
  boolean;
566
- /** Whether the current user can move this file to trash. */
575
+ /** Output only. Whether the current user can move this file to trash. */
567
576
  canTrash?:
568
577
  boolean;
569
- /** Whether the current user can trash children of this folder. This is false when the item isn't a folder. Only populated for items in shared drives. */
578
+ /** Output only. Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives. */
570
579
  canTrashChildren?:
571
580
  boolean;
572
- /** Whether the current user can restore this file from trash. */
581
+ /** Output only. Whether the current user can restore this file from trash. */
573
582
  canUntrash?:
574
583
  boolean;
575
584
  };
576
585
  /** Additional information about the content of the file. These fields are never populated in responses. */
577
586
  contentHints?:
578
587
  {
579
- /**
580
- * Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and might contain HTML elements. For more information, see Manage file
581
- * metadata.
582
- */
588
+ /** Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements. */
583
589
  indexableText?:
584
590
  string;
585
591
  /** A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail. */
@@ -605,314 +611,303 @@ declare namespace gapi.client {
605
611
  /** A short description of the file. */
606
612
  description?:
607
613
  string;
608
- /** ID of the shared drive the file resides in. Only populated for items in shared drives. */
614
+ /** Output only. ID of the shared drive the file resides in. Only populated for items in shared drives. */
609
615
  driveId?:
610
616
  string;
611
- /** Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder. */
617
+ /** Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder. */
612
618
  explicitlyTrashed?:
613
619
  boolean;
614
- /** Links for exporting Docs Editors files to specific formats. */
620
+ /** Output only. Links for exporting Docs Editors files to specific formats. */
615
621
  exportLinks?:
616
622
  { [P in string]: string };
617
- /** The final component of fullFileExtension. This is only available for files with binary content in Google Drive. */
623
+ /** Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive. */
618
624
  fileExtension?:
619
625
  string;
620
626
  /**
621
- * 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.
622
- * If an unsupported color is specified, the closest color in the palette will be used instead.
627
+ * The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the About resource. If an unsupported
628
+ * color is specified, the closest color in the palette is used instead.
623
629
  */
624
630
  folderColorRgb?:
625
631
  string;
626
632
  /**
627
- * The full file extension extracted from the name field. Can contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google
628
- * Drive.
629
- * This is automatically updated when the name field changes, however it's not cleared if the new name does not contain a valid extension.
633
+ * Output only. 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
634
+ * content in Google Drive. This is automatically updated when the `name` field changes, however it is not cleared if the new name does not contain a valid extension.
630
635
  */
631
636
  fullFileExtension?:
632
637
  string;
633
- /** Whether there are permissions directly on this file. This field is only populated for items in shared drives. */
638
+ /** Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives. */
634
639
  hasAugmentedPermissions?:
635
640
  boolean;
636
- /** 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. */
641
+ /**
642
+ * Output only. Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the
643
+ * thumbnailLink field.
644
+ */
637
645
  hasThumbnail?:
638
646
  boolean;
639
- /** The ID of the file's head revision. This is only available for files with binary content in Google Drive. */
647
+ /** Output only. The ID of the file's head revision. This is currently only available for files with binary content in Google Drive. */
640
648
  headRevisionId?:
641
649
  string;
642
- /** A static, unauthenticated link to the file's icon. */
650
+ /** Output only. A static, unauthenticated link to the file's icon. */
643
651
  iconLink?:
644
652
  string;
645
653
  /** The ID of the file. */
646
654
  id?:
647
655
  string;
648
- /** Additional metadata about image media, if available. */
656
+ /** Output only. Additional metadata about image media, if available. */
649
657
  imageMediaMetadata?:
650
658
  {
651
- /** The aperture used to create the photo (f-number). */
659
+ /** Output only. The aperture used to create the photo (f-number). */
652
660
  aperture?:
653
661
  number;
654
- /** The make of the camera used to create the photo. */
662
+ /** Output only. The make of the camera used to create the photo. */
655
663
  cameraMake?:
656
664
  string;
657
- /** The model of the camera used to create the photo. */
665
+ /** Output only. The model of the camera used to create the photo. */
658
666
  cameraModel?:
659
667
  string;
660
- /** The color space of the photo. */
668
+ /** Output only. The color space of the photo. */
661
669
  colorSpace?:
662
670
  string;
663
- /** The exposure bias of the photo (APEX value). */
671
+ /** Output only. The exposure bias of the photo (APEX value). */
664
672
  exposureBias?:
665
673
  number;
666
- /** The exposure mode used to create the photo. */
674
+ /** Output only. The exposure mode used to create the photo. */
667
675
  exposureMode?:
668
676
  string;
669
- /** The length of the exposure, in seconds. */
677
+ /** Output only. The length of the exposure, in seconds. */
670
678
  exposureTime?:
671
679
  number;
672
- /** Whether a flash was used to create the photo. */
680
+ /** Output only. Whether a flash was used to create the photo. */
673
681
  flashUsed?:
674
682
  boolean;
675
- /** The focal length used to create the photo, in millimeters. */
683
+ /** Output only. The focal length used to create the photo, in millimeters. */
676
684
  focalLength?:
677
685
  number;
678
- /** The height of the image in pixels. */
686
+ /** Output only. The height of the image in pixels. */
679
687
  height?:
680
688
  number;
681
- /** The ISO speed used to create the photo. */
689
+ /** Output only. The ISO speed used to create the photo. */
682
690
  isoSpeed?:
683
691
  number;
684
- /** The lens used to create the photo. */
692
+ /** Output only. The lens used to create the photo. */
685
693
  lens?:
686
694
  string;
687
- /** Geographic location information stored in the image. */
695
+ /** Output only. Geographic location information stored in the image. */
688
696
  location?:
689
697
  {
690
- /** The altitude stored in the image. */
698
+ /** Output only. The altitude stored in the image. */
691
699
  altitude?:
692
700
  number;
693
- /** The latitude stored in the image. */
701
+ /** Output only. The latitude stored in the image. */
694
702
  latitude?:
695
703
  number;
696
- /** The longitude stored in the image. */
704
+ /** Output only. The longitude stored in the image. */
697
705
  longitude?:
698
706
  number;
699
707
  };
700
- /** The smallest f-number of the lens at the focal length used to create the photo (APEX value). */
708
+ /** Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value). */
701
709
  maxApertureValue?:
702
710
  number;
703
- /** The metering mode used to create the photo. */
711
+ /** Output only. The metering mode used to create the photo. */
704
712
  meteringMode?:
705
713
  string;
706
- /** The number of clockwise 90-degree rotations applied from the image's original orientation. */
714
+ /** Output only. The number of clockwise 90 degree rotations applied from the image's original orientation. */
707
715
  rotation?:
708
716
  number;
709
- /** The type of sensor used to create the photo. */
717
+ /** Output only. The type of sensor used to create the photo. */
710
718
  sensor?:
711
719
  string;
712
- /** The distance to the subject of the photo, in meters. */
720
+ /** Output only. The distance to the subject of the photo, in meters. */
713
721
  subjectDistance?:
714
722
  number;
715
- /** The date and time the photo was taken (EXIF DateTime). */
723
+ /** Output only. The date and time the photo was taken (EXIF DateTime). */
716
724
  time?:
717
725
  string;
718
- /** The white balance mode used to create the photo. */
726
+ /** Output only. The white balance mode used to create the photo. */
719
727
  whiteBalance?:
720
728
  string;
721
- /** The width of the image in pixels. */
729
+ /** Output only. The width of the image in pixels. */
722
730
  width?:
723
731
  number;
724
732
  };
725
- /** Whether the requesting app created or opened the file. */
733
+ /** Output only. Whether the file was created or opened by the requesting app. */
726
734
  isAppAuthorized?:
727
735
  boolean;
728
- /** Identifies what kind of resource this is. Value: the fixed string "drive#file". */
736
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#file"`. */
729
737
  kind?:
730
738
  string;
731
- /** An overview of the labels on the file. */
739
+ /** Output only. An overview of the labels on the file. */
732
740
  labelInfo?:
733
741
  {
734
- /** The set of labels on the file as requested by the label IDs in the includeLabels parameter. By default, no labels are returned. */
742
+ /** Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned. */
735
743
  labels?:
736
744
  Label[];
737
745
  };
738
- /** The last user to modify the file. */
746
+ /** Output only. The last user to modify the file. */
739
747
  lastModifyingUser?:
740
748
  User;
741
749
  /** Contains details about the link URLs that clients are using to refer to this item. */
742
750
  linkShareMetadata?:
743
751
  {
744
- /** Whether the file is eligible for security update. */
752
+ /** Output only. Whether the file is eligible for security update. */
745
753
  securityUpdateEligible?:
746
754
  boolean;
747
- /** Whether the security update is enabled for this file. */
755
+ /** Output only. Whether the security update is enabled for this file. */
748
756
  securityUpdateEnabled?:
749
757
  boolean;
750
758
  };
751
- /** The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive. */
759
+ /** Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive. */
752
760
  md5Checksum?:
753
761
  string;
754
762
  /**
755
- * The MIME type of the file.
756
- * 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.
757
- * 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.
763
+ * The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a
764
+ * new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the About
765
+ * resource.
758
766
  */
759
767
  mimeType?:
760
768
  string;
761
- /** Whether this user has modified the file. */
769
+ /** Output only. Whether the file has been modified by this user. */
762
770
  modifiedByMe?:
763
771
  boolean;
764
- /** The last time the user modified the file (RFC 3339 date-time). */
772
+ /** The last time the file was modified by the user (RFC 3339 date-time). */
765
773
  modifiedByMeTime?:
766
774
  string;
767
- /**
768
- * The last time anyone modified the file (RFC 3339 date-time).
769
- * Note that setting modifiedTime will also update modifiedByMeTime for the user.
770
- */
775
+ /** he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user. */
771
776
  modifiedTime?:
772
777
  string;
773
778
  /**
774
- * The name of the file. This isn't necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, My Drive root folder, and
779
+ * 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
775
780
  * Application Data folder the name is constant.
776
781
  */
777
782
  name?:
778
783
  string;
779
- /** 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. */
784
+ /** 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. */
780
785
  originalFilename?:
781
786
  string;
782
- /** Whether the user owns the file. Not populated for items in shared drives. */
787
+ /** Output only. Whether the user owns the file. Not populated for items in shared drives. */
783
788
  ownedByMe?:
784
789
  boolean;
785
- /** The owner of this file. Only certain legacy files might have more than one owner. This field isn't populated for items in shared drives. */
790
+ /** Output only. 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. */
786
791
  owners?:
787
792
  User[];
788
793
  /**
789
- * The IDs of the parent folders that contain the file.
790
- * 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
791
- * discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
794
+ * The IDs of the parent folders which contain the file. If not specified as part of a create request, the file is placed directly in the user's My Drive folder. If not specified as
795
+ * part of a copy request, the file inherits any discoverable parents of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents
796
+ * list.
792
797
  */
793
798
  parents?:
794
799
  string[];
795
- /** List of permission IDs for users with access to this file. */
800
+ /** Output only. List of permission IDs for users with access to this file. */
796
801
  permissionIds?:
797
802
  string[];
798
- /** 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. */
803
+ /** Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives. */
799
804
  permissions?:
800
805
  Permission[];
801
806
  /**
802
- * A collection of arbitrary key-value pairs that are visible to all apps.
807
+ * A collection of arbitrary key-value pairs which are visible to all apps.
803
808
  * Entries with null values are cleared in update and copy requests.
804
809
  */
805
810
  properties?:
806
811
  { [P in string]: string };
807
- /** The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled. */
812
+ /** Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled. */
808
813
  quotaBytesUsed?:
809
814
  string;
810
- /** A key needed to access the item via a shared link. */
815
+ /** Output only. A key needed to access the item via a shared link. */
811
816
  resourceKey?:
812
817
  string;
813
818
  /**
814
- * The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or
815
- * shortcut files.
819
+ * Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs
820
+ * Editors or shortcut files.
816
821
  */
817
822
  sha1Checksum?:
818
823
  string;
819
824
  /**
820
- * The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or
821
- * shortcut files.
825
+ * Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs
826
+ * Editors or shortcut files.
822
827
  */
823
828
  sha256Checksum?:
824
829
  string;
825
- /** Whether the file has been shared. Not populated for items in shared drives. */
830
+ /** Output only. Whether the file has been shared. Not populated for items in shared drives. */
826
831
  shared?:
827
832
  boolean;
828
833
  /** The time at which the file was shared with the user, if applicable (RFC 3339 date-time). */
829
834
  sharedWithMeTime?:
830
835
  string;
831
- /** The user who shared the file with the requesting user, if applicable. */
836
+ /** Output only. The user who shared the file with the requesting user, if applicable. */
832
837
  sharingUser?:
833
838
  User;
834
- /** Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut. */
839
+ /** Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. */
835
840
  shortcutDetails?:
836
841
  {
837
842
  /** The ID of the file that this shortcut points to. */
838
843
  targetId?:
839
844
  string;
840
- /** 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. */
845
+ /** Output only. 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. */
841
846
  targetMimeType?:
842
847
  string;
843
- /** The ResourceKey for the target file. */
848
+ /** Output only. The ResourceKey for the target file. */
844
849
  targetResourceKey?:
845
850
  string;
846
851
  };
847
- /**
848
- * The size of the file's content in bytes. This field is populated for files with binary content stored in Google Drive and for Docs Editors files; it's not populated for shortcuts or
849
- * folders.
850
- */
852
+ /** Output only. Size in bytes of blobs and first party editor files. Won't be populated for files that have no size, like shortcuts and folders. */
851
853
  size?:
852
854
  string;
853
- /** The list of spaces that contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'. */
855
+ /** Output only. The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'. */
854
856
  spaces?:
855
857
  string[];
856
858
  /** Whether the user has starred the file. */
857
859
  starred?:
858
860
  boolean;
859
- /** Deprecated - use driveId instead. */
861
+ /** Deprecated: Output only. Use `driveId` instead. */
860
862
  teamDriveId?:
861
863
  string;
862
- /**
863
- * 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
864
- * isn't shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
865
- */
864
+ /** Output only. 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. */
866
865
  thumbnailLink?:
867
866
  string;
868
- /** The thumbnail version for use in thumbnail cache invalidation. */
867
+ /** Output only. The thumbnail version for use in thumbnail cache invalidation. */
869
868
  thumbnailVersion?:
870
869
  string;
871
- /**
872
- * Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner can trash a file. The trashed item is excluded from all files.list responses
873
- * 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,
874
- * download, export, and share the file.
875
- */
870
+ /** Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash. */
876
871
  trashed?:
877
872
  boolean;
878
873
  /** The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives. */
879
874
  trashedTime?:
880
875
  string;
881
- /** If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives. */
876
+ /** Output only. If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives. */
882
877
  trashingUser?:
883
878
  User;
884
- /** 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. */
879
+ /** Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user. */
885
880
  version?:
886
881
  string;
887
- /** Additional metadata about video media. This might not be available immediately upon upload. */
882
+ /** Output only. Additional metadata about video media. This may not be available immediately upon upload. */
888
883
  videoMediaMetadata?:
889
884
  {
890
- /** The duration of the video in milliseconds. */
885
+ /** Output only. The duration of the video in milliseconds. */
891
886
  durationMillis?:
892
887
  string;
893
- /** The height of the video in pixels. */
888
+ /** Output only. The height of the video in pixels. */
894
889
  height?:
895
890
  number;
896
- /** The width of the video in pixels. */
891
+ /** Output only. The width of the video in pixels. */
897
892
  width?:
898
893
  number;
899
894
  };
900
- /** Whether this user has viewed the file. */
895
+ /** Output only. Whether the file has been viewed by this user. */
901
896
  viewedByMe?:
902
897
  boolean;
903
- /** The last time the user viewed the file (RFC 3339 date-time). */
898
+ /** The last time the file was viewed by the user (RFC 3339 date-time). */
904
899
  viewedByMeTime?:
905
900
  string;
906
- /** Deprecated - use copyRequiresWriterPermission instead. */
901
+ /** Deprecated: Use `copyRequiresWriterPermission` instead. */
907
902
  viewersCanCopyContent?:
908
903
  boolean;
909
- /** A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive. */
904
+ /** Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive. */
910
905
  webContentLink?:
911
906
  string;
912
- /** A link for opening the file in a relevant Google editor or viewer in a browser. */
907
+ /** Output only. A link for opening the file in a relevant Google editor or viewer in a browser. */
913
908
  webViewLink?:
914
909
  string;
915
- /** Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives. */
910
+ /** Whether users with only `writer` permission can modify the file's permissions. Not populated for items in shared drives. */
916
911
  writersCanShare?:
917
912
  boolean;
918
913
  }
@@ -921,13 +916,13 @@ declare namespace gapi.client {
921
916
  files?:
922
917
  File[];
923
918
  /**
924
- * 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
925
- * 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"
926
- * or "drive".
919
+ * Whether the search process was incomplete. If true, then some search results might be missing, since all documents were not searched. This can occur when searching multiple drives
920
+ * with the 'allDrives' corpora, but all corpora couldn't be searched. When this happens, it's suggested that clients narrow their query by choosing a different corpus such as 'user'
921
+ * or 'drive'.
927
922
  */
928
923
  incompleteSearch?:
929
924
  boolean;
930
- /** Identifies what kind of resource this is. Value: the fixed string "drive#fileList". */
925
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#fileList"`. */
931
926
  kind?:
932
927
  string;
933
928
  /**
@@ -941,7 +936,7 @@ declare namespace gapi.client {
941
936
  /** The IDs generated for the requesting user in the specified space. */
942
937
  ids?:
943
938
  string[];
944
- /** Identifies what kind of resource this is. Value: the fixed string "drive#generatedIds". */
939
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#generatedIds"`. */
945
940
  kind?:
946
941
  string;
947
942
  /** The type of file that can be created with these IDs. */
@@ -949,7 +944,7 @@ declare namespace gapi.client {
949
944
  string;
950
945
  }
951
946
  interface Label {
952
- /** A map of the label's fields keyed by the field ID. */
947
+ /** A map of the fields on the label, keyed by the field's ID. */
953
948
  fields?:
954
949
  { [P in string]: LabelField };
955
950
  /** The ID of the label. */
@@ -966,55 +961,48 @@ declare namespace gapi.client {
966
961
  /** Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD. */
967
962
  dateString?:
968
963
  string[];
969
- /** The identifier of this field. */
964
+ /** The identifier of this label field. */
970
965
  id?:
971
966
  string;
972
- /** Only present if valueType is integer. */
967
+ /** Only present if `valueType` is `integer`. */
973
968
  integer?:
974
969
  string[];
975
970
  /** This is always drive#labelField. */
976
971
  kind?:
977
972
  string;
978
- /** Only present if valueType is selection. */
973
+ /** Only present if `valueType` is `selection` */
979
974
  selection?:
980
975
  string[];
981
- /** Only present if valueType is text. */
976
+ /** Only present if `valueType` is `text`. */
982
977
  text?:
983
978
  string[];
984
- /** Only present if valueType is user. */
979
+ /** Only present if `valueType` is `user`. */
985
980
  user?:
986
981
  User[];
987
- /**
988
- * The field type. While new values may be supported in the future, the following are currently allowed:
989
- * - dateString
990
- * - integer
991
- * - selection
992
- * - text
993
- * - user
994
- */
982
+ /** The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user` */
995
983
  valueType?:
996
984
  string;
997
985
  }
998
986
  interface LabelFieldModification {
999
- /** The ID of the Field to be modified. */
987
+ /** The ID of the field to be modified. */
1000
988
  fieldId?:
1001
989
  string;
1002
990
  /** This is always drive#labelFieldModification. */
1003
991
  kind?:
1004
992
  string;
1005
- /** Replaces a dateString field with these new values. The values must be strings in the RFC 3339 full-date format: YYYY-MM-DD. */
993
+ /** Replaces the value of a dateString Field with these new values. The string must be in the RFC 3339 full-date format: YYYY-MM-DD. */
1006
994
  setDateValues?:
1007
995
  string[];
1008
- /** Replaces an integer field with these new values. */
996
+ /** Replaces the value of an `integer` field with these new values. */
1009
997
  setIntegerValues?:
1010
998
  string[];
1011
- /** Replaces a selection field with these new values. */
999
+ /** Replaces a `selection` field with these new values. */
1012
1000
  setSelectionValues?:
1013
1001
  string[];
1014
- /** Replaces a text field with these new values. */
1002
+ /** Sets the value of a `text` field. */
1015
1003
  setTextValues?:
1016
1004
  string[];
1017
- /** Replaces a user field with these new values. The values must be valid email addresses. */
1005
+ /** Replaces a `user` field with these new values. The values must be valid email addresses. */
1018
1006
  setUserValues?:
1019
1007
  string[];
1020
1008
  /** Unsets the values for this field. */
@@ -1050,7 +1038,7 @@ declare namespace gapi.client {
1050
1038
  boolean;
1051
1039
  }
1052
1040
  interface ModifyLabelsRequest {
1053
- /** This is always drive#modifyLabelsRequest */
1041
+ /** This is always drive#modifyLabelsRequest. */
1054
1042
  kind?:
1055
1043
  string;
1056
1044
  /** The list of modifications to apply to the labels on the file. */
@@ -1066,122 +1054,99 @@ declare namespace gapi.client {
1066
1054
  Label[];
1067
1055
  }
1068
1056
  interface Permission {
1069
- /** Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone. */
1057
+ /** Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`. */
1070
1058
  allowFileDiscovery?:
1071
1059
  boolean;
1072
- /** Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions. */
1060
+ /** Output only. Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions. */
1073
1061
  deleted?:
1074
1062
  boolean;
1075
1063
  /**
1076
- * The "pretty" name of the value of the permission. The following is a list of examples for each type of permission:
1077
- * - user - User's full name, as defined for their Google Account, such as "Joe Smith."
1078
- * - group - Name of the Google Group, such as "The Company Administrators."
1079
- * - domain - String domain name, such as "your-company.com."
1080
- * - anyone - No displayName is present.
1064
+ * Output only. The "pretty" name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User's full name, as defined for their
1065
+ * Google account, such as "Joe Smith." * `group` - Name of the Google Group, such as "The Company Administrators." * `domain` - String domain name, such as "thecompany.com." *
1066
+ * `anyone` - No `displayName` is present.
1081
1067
  */
1082
1068
  displayName?:
1083
1069
  string;
1084
- /**
1085
- * The domain to which this permission refers. The following options are currently allowed:
1086
- * - The entire domain, such as "your-company.com."
1087
- * - A target audience, such as "ID.audience.googledomains.com."
1088
- */
1070
+ /** The domain to which this permission refers. */
1089
1071
  domain?:
1090
1072
  string;
1091
1073
  /** The email address of the user or group to which this permission refers. */
1092
1074
  emailAddress?:
1093
1075
  string;
1094
1076
  /**
1095
- * The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
1096
- * - They cannot be set on shared drive items.
1097
- * - They can only be set on user and group permissions.
1098
- * - The time must be in the future.
1099
- * - The time cannot be more than one year in the future.
1077
+ * The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time
1078
+ * must be in the future - The time cannot be more than a year in the future
1100
1079
  */
1101
1080
  expirationTime?:
1102
1081
  string;
1103
- /** 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. */
1082
+ /** Output only. 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. */
1104
1083
  id?:
1105
1084
  string;
1106
- /** Identifies what kind of resource this is. Value: the fixed string "drive#permission". */
1085
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#permission"`. */
1107
1086
  kind?:
1108
1087
  string;
1109
- /** Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that aren't in a shared drive. */
1088
+ /** 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. */
1110
1089
  pendingOwner?:
1111
1090
  boolean;
1112
- /** Details of whether the permissions on this shared drive item are inherited or are directly on this item. This is an output-only field that's present only for shared drive items. */
1091
+ /**
1092
+ * Output only. 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
1093
+ * items.
1094
+ */
1113
1095
  permissionDetails?:
1114
1096
  Array<{
1115
- /** Whether this permission is inherited. This field is always populated. This is an output-only field. */
1097
+ /** Output only. Whether this permission is inherited. This field is always populated. This is an output-only field. */
1116
1098
  inherited?:
1117
1099
  boolean;
1118
- /** The ID of the item from which this permission is inherited. This is an output-only field. */
1100
+ /** Output only. The ID of the item from which this permission is inherited. This is an output-only field. */
1119
1101
  inheritedFrom?:
1120
1102
  string;
1121
- /**
1122
- * The permission type for this user. While new values may be added in future, the following are currently allowed:
1123
- * - file
1124
- * - member
1125
- */
1103
+ /** Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member` */
1126
1104
  permissionType?:
1127
1105
  string;
1128
1106
  /**
1129
- * The primary role for this user. While new values may be added in the future, the following are currently allowed:
1130
- * - organizer
1131
- * - fileOrganizer
1132
- * - writer
1133
- * - commenter
1134
- * - reader
1107
+ * Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` *
1108
+ * `commenter` * `reader`
1135
1109
  */
1136
1110
  role?:
1137
1111
  string;
1138
1112
  }>;
1139
- /** A link to the user's profile photo, if available. */
1113
+ /** Output only. A link to the user's profile photo, if available. */
1140
1114
  photoLink?:
1141
1115
  string;
1142
1116
  /**
1143
- * The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
1144
- * - owner
1145
- * - organizer
1146
- * - fileOrganizer
1147
- * - writer
1148
- * - commenter
1149
- * - reader
1117
+ * The role granted by this permission. While new values may be supported in the future, the following are currently allowed: * `owner` * `organizer` * `fileOrganizer` * `writer` *
1118
+ * `commenter` * `reader`
1150
1119
  */
1151
1120
  role?:
1152
1121
  string;
1153
- /** Deprecated - use permissionDetails instead. */
1122
+ /** Output only. Deprecated: Output only. Use `permissionDetails` instead. */
1154
1123
  teamDrivePermissionDetails?:
1155
1124
  Array<{
1156
- /** Deprecated - use permissionDetails/inherited instead. */
1125
+ /** Deprecated: Output only. Use `permissionDetails/inherited` instead. */
1157
1126
  inherited?:
1158
1127
  boolean;
1159
- /** Deprecated - use permissionDetails/inheritedFrom instead. */
1128
+ /** Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead. */
1160
1129
  inheritedFrom?:
1161
1130
  string;
1162
- /** Deprecated - use permissionDetails/role instead. */
1131
+ /** Deprecated: Output only. Use `permissionDetails/role` instead. */
1163
1132
  role?:
1164
1133
  string;
1165
- /** Deprecated - use permissionDetails/permissionType instead. */
1134
+ /** Deprecated: Output only. Use `permissionDetails/permissionType` instead. */
1166
1135
  teamDrivePermissionType?:
1167
1136
  string;
1168
1137
  }>;
1169
1138
  /**
1170
- * The type of the grantee. Valid values are:
1171
- * - user
1172
- * - group
1173
- * - domain
1174
- * - 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
1175
- * extra information required for the anyone type.
1139
+ * The type of the grantee. Valid values are: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress`
1140
+ * for the user or group. When `type` is `domain`, you must provide a `domain`. There isn't extra information required for an `anyone` type.
1176
1141
  */
1177
1142
  type?:
1178
1143
  string;
1179
- /** Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value. */
1144
+ /** Indicates the view for this permission. Only populated for permissions that belong to a view. 'published' is the only supported value. */
1180
1145
  view?:
1181
1146
  string;
1182
1147
  }
1183
1148
  interface PermissionList {
1184
- /** Identifies what kind of resource this is. Value: the fixed string "drive#permissionList". */
1149
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#permissionList"`. */
1185
1150
  kind?:
1186
1151
  string;
1187
1152
  /**
@@ -1195,32 +1160,28 @@ declare namespace gapi.client {
1195
1160
  Permission[];
1196
1161
  }
1197
1162
  interface Reply {
1198
- /**
1199
- * The action the reply performed to the parent comment. Valid values are:
1200
- * - resolve
1201
- * - reopen
1202
- */
1163
+ /** The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen` */
1203
1164
  action?:
1204
1165
  string;
1205
- /** The author of the reply. The author's email address and permission ID will not be populated. */
1166
+ /** Output only. The author of the reply. The author's email address and permission ID will not be populated. */
1206
1167
  author?:
1207
1168
  User;
1208
- /** 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. */
1169
+ /** 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. */
1209
1170
  content?:
1210
1171
  string;
1211
1172
  /** The time at which the reply was created (RFC 3339 date-time). */
1212
1173
  createdTime?:
1213
1174
  string;
1214
- /** Whether the reply has been deleted. A deleted reply has no content. */
1175
+ /** Output only. Whether the reply has been deleted. A deleted reply has no content. */
1215
1176
  deleted?:
1216
1177
  boolean;
1217
- /** The content of the reply with HTML formatting. */
1178
+ /** Output only. The content of the reply with HTML formatting. */
1218
1179
  htmlContent?:
1219
1180
  string;
1220
- /** The ID of the reply. */
1181
+ /** Output only. The ID of the reply. */
1221
1182
  id?:
1222
1183
  string;
1223
- /** Identifies what kind of resource this is. Value: the fixed string "drive#reply". */
1184
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#reply"`. */
1224
1185
  kind?:
1225
1186
  string;
1226
1187
  /** The last time the reply was modified (RFC 3339 date-time). */
@@ -1228,7 +1189,7 @@ declare namespace gapi.client {
1228
1189
  string;
1229
1190
  }
1230
1191
  interface ReplyList {
1231
- /** Identifies what kind of resource this is. Value: the fixed string "drive#replyList". */
1192
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#replyList"`. */
1232
1193
  kind?:
1233
1194
  string;
1234
1195
  /**
@@ -1242,35 +1203,34 @@ declare namespace gapi.client {
1242
1203
  Reply[];
1243
1204
  }
1244
1205
  interface Revision {
1245
- /** Links for exporting Docs Editors files to specific formats. */
1206
+ /** Output only. Links for exporting Docs Editors files to specific formats. */
1246
1207
  exportLinks?:
1247
1208
  { [P in string]: string };
1248
- /** The ID of the revision. */
1209
+ /** Output only. The ID of the revision. */
1249
1210
  id?:
1250
1211
  string;
1251
1212
  /**
1252
1213
  * 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
1253
- * can be set on a maximum of 200 revisions for a file.
1254
- * This field is only applicable to files with binary content in Drive.
1214
+ * can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.
1255
1215
  */
1256
1216
  keepForever?:
1257
1217
  boolean;
1258
- /** Identifies what kind of resource this is. Value: the fixed string "drive#revision". */
1218
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#revision"`. */
1259
1219
  kind?:
1260
1220
  string;
1261
- /** The last user to modify this revision. */
1221
+ /** Output only. The last user to modify this revision. */
1262
1222
  lastModifyingUser?:
1263
1223
  User;
1264
- /** The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive. */
1224
+ /** Output only. The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive. */
1265
1225
  md5Checksum?:
1266
1226
  string;
1267
- /** The MIME type of the revision. */
1227
+ /** Output only. The MIME type of the revision. */
1268
1228
  mimeType?:
1269
1229
  string;
1270
1230
  /** The last time the revision was modified (RFC 3339 date-time). */
1271
1231
  modifiedTime?:
1272
1232
  string;
1273
- /** The original filename used to create this revision. This is only applicable to files with binary content in Drive. */
1233
+ /** Output only. The original filename used to create this revision. This is only applicable to files with binary content in Drive. */
1274
1234
  originalFilename?:
1275
1235
  string;
1276
1236
  /** Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files. */
@@ -1279,18 +1239,18 @@ declare namespace gapi.client {
1279
1239
  /** Whether this revision is published. This is only applicable to Docs Editors files. */
1280
1240
  published?:
1281
1241
  boolean;
1282
- /** A link to the published revision. This is only populated for Google Sites files. */
1242
+ /** Output only. A link to the published revision. This is only populated for Google Sites files. */
1283
1243
  publishedLink?:
1284
1244
  string;
1285
1245
  /** Whether this revision is published outside the domain. This is only applicable to Docs Editors files. */
1286
1246
  publishedOutsideDomain?:
1287
1247
  boolean;
1288
- /** The size of the revision's content in bytes. This is only applicable to files with binary content in Drive. */
1248
+ /** Output only. The size of the revision's content in bytes. This is only applicable to files with binary content in Drive. */
1289
1249
  size?:
1290
1250
  string;
1291
1251
  }
1292
1252
  interface RevisionList {
1293
- /** Identifies what kind of resource this is. Value: the fixed string "drive#revisionList". */
1253
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#revisionList"`. */
1294
1254
  kind?:
1295
1255
  string;
1296
1256
  /**
@@ -1304,7 +1264,7 @@ declare namespace gapi.client {
1304
1264
  Revision[];
1305
1265
  }
1306
1266
  interface StartPageToken {
1307
- /** Identifies what kind of resource this is. Value: the fixed string "drive#startPageToken". */
1267
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#startPageToken"`. */
1308
1268
  kind?:
1309
1269
  string;
1310
1270
  /** The starting page token for listing changes. */
@@ -1313,8 +1273,8 @@ declare namespace gapi.client {
1313
1273
  }
1314
1274
  interface TeamDrive {
1315
1275
  /**
1316
- * 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
1317
- * that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
1276
+ * 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
1277
+ * that don't set `themeId`. When specified, all fields of the `backgroundImageFile` must be set.
1318
1278
  */
1319
1279
  backgroundImageFile?:
1320
1280
  {
@@ -1349,19 +1309,19 @@ declare namespace gapi.client {
1349
1309
  /** Whether the current user can add children to folders in this Team Drive. */
1350
1310
  canAddChildren?:
1351
1311
  boolean;
1352
- /** Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. */
1312
+ /** Whether the current user can change the `copyRequiresWriterPermission` restriction of this Team Drive. */
1353
1313
  canChangeCopyRequiresWriterPermissionRestriction?:
1354
1314
  boolean;
1355
- /** Whether the current user can change the domainUsersOnly restriction of this Team Drive. */
1315
+ /** Whether the current user can change the `domainUsersOnly` restriction of this Team Drive. */
1356
1316
  canChangeDomainUsersOnlyRestriction?:
1357
1317
  boolean;
1358
- /** Whether the current user can change the sharingFoldersRequiresOrganizerPermission restriction of this Team Drive. */
1318
+ /** Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction of this Team Drive. */
1359
1319
  canChangeSharingFoldersRequiresOrganizerPermissionRestriction?:
1360
1320
  boolean;
1361
1321
  /** Whether the current user can change the background of this Team Drive. */
1362
1322
  canChangeTeamDriveBackground?:
1363
1323
  boolean;
1364
- /** Whether the current user can change the teamMembersOnly restriction of this Team Drive. */
1324
+ /** Whether the current user can change the `teamMembersOnly` restriction of this Team Drive. */
1365
1325
  canChangeTeamMembersOnlyRestriction?:
1366
1326
  boolean;
1367
1327
  /** Whether the current user can comment on files in this Team Drive. */
@@ -1391,7 +1351,7 @@ declare namespace gapi.client {
1391
1351
  /** Whether the current user can read the revisions resource of files in this Team Drive. */
1392
1352
  canReadRevisions?:
1393
1353
  boolean;
1394
- /** Deprecated - use canDeleteChildren or canTrashChildren instead. */
1354
+ /** Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead. */
1395
1355
  canRemoveChildren?:
1396
1356
  boolean;
1397
1357
  /** Whether the current user can rename files or folders in this Team Drive. */
@@ -1410,7 +1370,7 @@ declare namespace gapi.client {
1410
1370
  canTrashChildren?:
1411
1371
  boolean;
1412
1372
  };
1413
- /** 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. */
1373
+ /** 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`. */
1414
1374
  colorRgb?:
1415
1375
  string;
1416
1376
  /** The time at which the Team Drive was created (RFC 3339 date-time). */
@@ -1419,13 +1379,13 @@ declare namespace gapi.client {
1419
1379
  /** The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. */
1420
1380
  id?:
1421
1381
  string;
1422
- /** Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". */
1382
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#teamDrive"`. */
1423
1383
  kind?:
1424
1384
  string;
1425
1385
  /** The name of this Team Drive. */
1426
1386
  name?:
1427
1387
  string;
1428
- /** The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true. */
1388
+ /** The organizational unit of this shared drive. This field is only populated on `drives.list` responses when the `useDomainAdminAccess` parameter is set to `true`. */
1429
1389
  orgUnitId?:
1430
1390
  string;
1431
1391
  /** A set of restrictions that apply to this Team Drive or items inside this Team Drive. */
@@ -1435,8 +1395,8 @@ declare namespace gapi.client {
1435
1395
  adminManagedRestrictions?:
1436
1396
  boolean;
1437
1397
  /**
1438
- * 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
1439
- * override the similarly named field to true for any file inside this Team Drive.
1398
+ * 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
1399
+ * override the similarly named field to `true` for any file inside this Team Drive.
1440
1400
  */
1441
1401
  copyRequiresWriterPermission?:
1442
1402
  boolean;
@@ -1454,15 +1414,15 @@ declare namespace gapi.client {
1454
1414
  boolean;
1455
1415
  };
1456
1416
  /**
1457
- * 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
1458
- * 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
1459
- * don't set colorRgb or backgroundImageFile.
1417
+ * 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
1418
+ * specified 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
1419
+ * requests that don't set `colorRgb` or `backgroundImageFile`.
1460
1420
  */
1461
1421
  themeId?:
1462
1422
  string;
1463
1423
  }
1464
1424
  interface TeamDriveList {
1465
- /** Identifies what kind of resource this is. Value: the fixed string "drive#teamDriveList". */
1425
+ /** Identifies what kind of resource this is. Value: the fixed string `"drive#teamDriveList"`. */
1466
1426
  kind?:
1467
1427
  string;
1468
1428
  /**
@@ -1476,31 +1436,40 @@ declare namespace gapi.client {
1476
1436
  TeamDrive[];
1477
1437
  }
1478
1438
  interface User {
1479
- /** A plain text displayable name for this user. */
1439
+ /** Output only. A plain text displayable name for this user. */
1480
1440
  displayName?:
1481
1441
  string;
1482
- /** The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. */
1442
+ /** Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. */
1483
1443
  emailAddress?:
1484
1444
  string;
1485
- /** Identifies what kind of resource this is. Value: the fixed string "drive#user". */
1445
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#user"`. */
1486
1446
  kind?:
1487
1447
  string;
1488
- /** Whether this user is the requesting user. */
1448
+ /** Output only. Whether this user is the requesting user. */
1489
1449
  me?:
1490
1450
  boolean;
1491
- /** The user's ID as visible in Permission resources. */
1451
+ /** Output only. The user's ID as visible in Permission resources. */
1492
1452
  permissionId?:
1493
1453
  string;
1494
- /** A link to the user's profile photo, if available. */
1454
+ /** Output only. A link to the user's profile photo, if available. */
1495
1455
  photoLink?:
1496
1456
  string;
1497
1457
  }
1498
1458
  interface AboutResource {
1499
1459
  /** Gets information about the user, the user's Drive, and system capabilities. */
1500
1460
  get(request?: {
1501
- /** Data format for the response. */
1461
+ /** V1 error format. */
1462
+ "$.xgafv"?:
1463
+ string;
1464
+ /** OAuth access token. */
1465
+ access_token?:
1466
+ string;
1467
+ /** Data format for response. */
1502
1468
  alt?:
1503
1469
  string;
1470
+ /** JSONP */
1471
+ callback?:
1472
+ string;
1504
1473
  /** Selector specifying which fields to include in a partial response. */
1505
1474
  fields?:
1506
1475
  string;
@@ -1513,21 +1482,33 @@ declare namespace gapi.client {
1513
1482
  /** Returns response with indentations and line breaks. */
1514
1483
  prettyPrint?:
1515
1484
  boolean;
1516
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1485
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1517
1486
  quotaUser?:
1518
1487
  string;
1519
- /** Deprecated. Please use quotaUser instead. */
1520
- userIp?:
1488
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1489
+ upload_protocol?:
1490
+ string;
1491
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1492
+ uploadType?:
1521
1493
  string;
1522
1494
  }): Request<About>;
1523
1495
  }
1524
1496
  interface ChangesResource {
1525
1497
  /** Gets the starting pageToken for listing future changes. */
1526
1498
  getStartPageToken(request?: {
1527
- /** Data format for the response. */
1499
+ /** V1 error format. */
1500
+ "$.xgafv"?:
1501
+ string;
1502
+ /** OAuth access token. */
1503
+ access_token?:
1504
+ string;
1505
+ /** Data format for response. */
1528
1506
  alt?:
1529
1507
  string;
1530
- /** The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned. */
1508
+ /** JSONP */
1509
+ callback?:
1510
+ string;
1511
+ /** The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive will be returned. */
1531
1512
  driveId?:
1532
1513
  string;
1533
1514
  /** Selector specifying which fields to include in a partial response. */
@@ -1542,28 +1523,43 @@ declare namespace gapi.client {
1542
1523
  /** Returns response with indentations and line breaks. */
1543
1524
  prettyPrint?:
1544
1525
  boolean;
1545
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1526
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1546
1527
  quotaUser?:
1547
1528
  string;
1548
1529
  /** Whether the requesting application supports both My Drives and shared drives. */
1549
1530
  supportsAllDrives?:
1550
1531
  boolean;
1551
- /** Deprecated use supportsAllDrives instead. */
1532
+ /** Deprecated: Use `supportsAllDrives` instead. */
1552
1533
  supportsTeamDrives?:
1553
1534
  boolean;
1554
- /** Deprecated use driveId instead. */
1535
+ /** Deprecated: Use `driveId` instead. */
1555
1536
  teamDriveId?:
1556
1537
  string;
1557
- /** Deprecated. Please use quotaUser instead. */
1558
- userIp?:
1538
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1539
+ upload_protocol?:
1540
+ string;
1541
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1542
+ uploadType?:
1559
1543
  string;
1560
1544
  }): Request<StartPageToken>;
1561
1545
  /** Lists the changes for a user or shared drive. */
1562
1546
  list(request?: {
1563
- /** Data format for the response. */
1547
+ /** V1 error format. */
1548
+ "$.xgafv"?:
1549
+ string;
1550
+ /** OAuth access token. */
1551
+ access_token?:
1552
+ string;
1553
+ /** Data format for response. */
1564
1554
  alt?:
1565
1555
  string;
1566
- /** 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. */
1556
+ /** JSONP */
1557
+ callback?:
1558
+ string;
1559
+ /**
1560
+ * The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an
1561
+ * identifier.
1562
+ */
1567
1563
  driveId?:
1568
1564
  string;
1569
1565
  /** Selector specifying which fields to include in a partial response. */
@@ -1578,7 +1574,7 @@ declare namespace gapi.client {
1578
1574
  /** Whether both My Drive and shared drive items should be included in results. */
1579
1575
  includeItemsFromAllDrives?:
1580
1576
  boolean;
1581
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1577
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
1582
1578
  includeLabels?:
1583
1579
  string;
1584
1580
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -1587,7 +1583,7 @@ declare namespace gapi.client {
1587
1583
  /** Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. */
1588
1584
  includeRemoved?:
1589
1585
  boolean;
1590
- /** Deprecated use includeItemsFromAllDrives instead. */
1586
+ /** Deprecated: Use `includeItemsFromAllDrives` instead. */
1591
1587
  includeTeamDriveItems?:
1592
1588
  boolean;
1593
1589
  /** 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. */
@@ -1608,7 +1604,7 @@ declare namespace gapi.client {
1608
1604
  /** Returns response with indentations and line breaks. */
1609
1605
  prettyPrint?:
1610
1606
  boolean;
1611
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1607
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1612
1608
  quotaUser?:
1613
1609
  string;
1614
1610
  /**
@@ -1623,22 +1619,37 @@ declare namespace gapi.client {
1623
1619
  /** Whether the requesting application supports both My Drives and shared drives. */
1624
1620
  supportsAllDrives?:
1625
1621
  boolean;
1626
- /** Deprecated use supportsAllDrives instead. */
1622
+ /** Deprecated: Use `supportsAllDrives` instead. */
1627
1623
  supportsTeamDrives?:
1628
1624
  boolean;
1629
- /** Deprecated use driveId instead. */
1625
+ /** Deprecated: Use `driveId` instead. */
1630
1626
  teamDriveId?:
1631
1627
  string;
1632
- /** Deprecated. Please use quotaUser instead. */
1633
- userIp?:
1628
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1629
+ upload_protocol?:
1630
+ string;
1631
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1632
+ uploadType?:
1634
1633
  string;
1635
1634
  }): Request<ChangeList>;
1636
- /** Subscribes to changes for a user. To use this method, you must include the pageToken query parameter. */
1635
+ /** Subscribes to changes for a user. */
1637
1636
  watch(request: {
1638
- /** Data format for the response. */
1637
+ /** V1 error format. */
1638
+ "$.xgafv"?:
1639
+ string;
1640
+ /** OAuth access token. */
1641
+ access_token?:
1642
+ string;
1643
+ /** Data format for response. */
1639
1644
  alt?:
1640
1645
  string;
1641
- /** 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. */
1646
+ /** JSONP */
1647
+ callback?:
1648
+ string;
1649
+ /**
1650
+ * The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an
1651
+ * identifier.
1652
+ */
1642
1653
  driveId?:
1643
1654
  string;
1644
1655
  /** Selector specifying which fields to include in a partial response. */
@@ -1653,7 +1664,7 @@ declare namespace gapi.client {
1653
1664
  /** Whether both My Drive and shared drive items should be included in results. */
1654
1665
  includeItemsFromAllDrives?:
1655
1666
  boolean;
1656
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1667
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
1657
1668
  includeLabels?:
1658
1669
  string;
1659
1670
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -1662,7 +1673,7 @@ declare namespace gapi.client {
1662
1673
  /** Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. */
1663
1674
  includeRemoved?:
1664
1675
  boolean;
1665
- /** Deprecated use includeItemsFromAllDrives instead. */
1676
+ /** Deprecated: Use `includeItemsFromAllDrives` instead. */
1666
1677
  includeTeamDriveItems?:
1667
1678
  boolean;
1668
1679
  /** 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. */
@@ -1683,7 +1694,7 @@ declare namespace gapi.client {
1683
1694
  /** Returns response with indentations and line breaks. */
1684
1695
  prettyPrint?:
1685
1696
  boolean;
1686
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1697
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1687
1698
  quotaUser?:
1688
1699
  string;
1689
1700
  /**
@@ -1698,24 +1709,39 @@ declare namespace gapi.client {
1698
1709
  /** Whether the requesting application supports both My Drives and shared drives. */
1699
1710
  supportsAllDrives?:
1700
1711
  boolean;
1701
- /** Deprecated use supportsAllDrives instead. */
1712
+ /** Deprecated: Use `supportsAllDrives` instead. */
1702
1713
  supportsTeamDrives?:
1703
1714
  boolean;
1704
- /** Deprecated use driveId instead. */
1715
+ /** Deprecated: Use `driveId` instead. */
1705
1716
  teamDriveId?:
1706
1717
  string;
1707
- /** Deprecated. Please use quotaUser instead. */
1708
- userIp?:
1718
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1719
+ upload_protocol?:
1720
+ string;
1721
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1722
+ uploadType?:
1709
1723
  string;
1710
1724
  /** Request body */
1711
1725
  resource:
1712
1726
  Channel;
1713
1727
  }): Request<Channel>;
1714
1728
  watch(request: {
1715
- /** Data format for the response. */
1729
+ /** V1 error format. */
1730
+ "$.xgafv"?:
1731
+ string;
1732
+ /** OAuth access token. */
1733
+ access_token?:
1734
+ string;
1735
+ /** Data format for response. */
1716
1736
  alt?:
1717
1737
  string;
1718
- /** 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. */
1738
+ /** JSONP */
1739
+ callback?:
1740
+ string;
1741
+ /**
1742
+ * The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an
1743
+ * identifier.
1744
+ */
1719
1745
  driveId?:
1720
1746
  string;
1721
1747
  /** Selector specifying which fields to include in a partial response. */
@@ -1730,7 +1756,7 @@ declare namespace gapi.client {
1730
1756
  /** Whether both My Drive and shared drive items should be included in results. */
1731
1757
  includeItemsFromAllDrives?:
1732
1758
  boolean;
1733
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
1759
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
1734
1760
  includeLabels?:
1735
1761
  string;
1736
1762
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -1739,7 +1765,7 @@ declare namespace gapi.client {
1739
1765
  /** Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. */
1740
1766
  includeRemoved?:
1741
1767
  boolean;
1742
- /** Deprecated use includeItemsFromAllDrives instead. */
1768
+ /** Deprecated: Use `includeItemsFromAllDrives` instead. */
1743
1769
  includeTeamDriveItems?:
1744
1770
  boolean;
1745
1771
  /** 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. */
@@ -1760,7 +1786,7 @@ declare namespace gapi.client {
1760
1786
  /** Returns response with indentations and line breaks. */
1761
1787
  prettyPrint?:
1762
1788
  boolean;
1763
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1789
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1764
1790
  quotaUser?:
1765
1791
  string;
1766
1792
  /**
@@ -1775,24 +1801,36 @@ declare namespace gapi.client {
1775
1801
  /** Whether the requesting application supports both My Drives and shared drives. */
1776
1802
  supportsAllDrives?:
1777
1803
  boolean;
1778
- /** Deprecated use supportsAllDrives instead. */
1804
+ /** Deprecated: Use `supportsAllDrives` instead. */
1779
1805
  supportsTeamDrives?:
1780
1806
  boolean;
1781
- /** Deprecated use driveId instead. */
1807
+ /** Deprecated: Use `driveId` instead. */
1782
1808
  teamDriveId?:
1783
1809
  string;
1784
- /** Deprecated. Please use quotaUser instead. */
1785
- userIp?:
1810
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1811
+ upload_protocol?:
1812
+ string;
1813
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1814
+ uploadType?:
1786
1815
  string;
1787
1816
  },
1788
1817
  body: Channel): Request<Channel>;
1789
1818
  }
1790
1819
  interface ChannelsResource {
1791
- /** Stop watching resources through this channel */
1820
+ /** Stops watching resources through this channel. */
1792
1821
  stop(request: {
1793
- /** Data format for the response. */
1822
+ /** V1 error format. */
1823
+ "$.xgafv"?:
1824
+ string;
1825
+ /** OAuth access token. */
1826
+ access_token?:
1827
+ string;
1828
+ /** Data format for response. */
1794
1829
  alt?:
1795
1830
  string;
1831
+ /** JSONP */
1832
+ callback?:
1833
+ string;
1796
1834
  /** Selector specifying which fields to include in a partial response. */
1797
1835
  fields?:
1798
1836
  string;
@@ -1805,20 +1843,32 @@ declare namespace gapi.client {
1805
1843
  /** Returns response with indentations and line breaks. */
1806
1844
  prettyPrint?:
1807
1845
  boolean;
1808
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1846
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1809
1847
  quotaUser?:
1810
1848
  string;
1811
- /** Deprecated. Please use quotaUser instead. */
1812
- userIp?:
1849
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1850
+ upload_protocol?:
1851
+ string;
1852
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1853
+ uploadType?:
1813
1854
  string;
1814
1855
  /** Request body */
1815
1856
  resource:
1816
1857
  Channel;
1817
1858
  }): Request<void>;
1818
1859
  stop(request: {
1819
- /** Data format for the response. */
1860
+ /** V1 error format. */
1861
+ "$.xgafv"?:
1862
+ string;
1863
+ /** OAuth access token. */
1864
+ access_token?:
1865
+ string;
1866
+ /** Data format for response. */
1820
1867
  alt?:
1821
1868
  string;
1869
+ /** JSONP */
1870
+ callback?:
1871
+ string;
1822
1872
  /** Selector specifying which fields to include in a partial response. */
1823
1873
  fields?:
1824
1874
  string;
@@ -1831,11 +1881,14 @@ declare namespace gapi.client {
1831
1881
  /** Returns response with indentations and line breaks. */
1832
1882
  prettyPrint?:
1833
1883
  boolean;
1834
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1884
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1835
1885
  quotaUser?:
1836
1886
  string;
1837
- /** Deprecated. Please use quotaUser instead. */
1838
- userIp?:
1887
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1888
+ upload_protocol?:
1889
+ string;
1890
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1891
+ uploadType?:
1839
1892
  string;
1840
1893
  },
1841
1894
  body: Channel): Request<void>;
@@ -1843,9 +1896,18 @@ declare namespace gapi.client {
1843
1896
  interface CommentsResource {
1844
1897
  /** Creates a comment on a file. */
1845
1898
  create(request: {
1846
- /** Data format for the response. */
1899
+ /** V1 error format. */
1900
+ "$.xgafv"?:
1901
+ string;
1902
+ /** OAuth access token. */
1903
+ access_token?:
1904
+ string;
1905
+ /** Data format for response. */
1847
1906
  alt?:
1848
1907
  string;
1908
+ /** JSONP */
1909
+ callback?:
1910
+ string;
1849
1911
  /** Selector specifying which fields to include in a partial response. */
1850
1912
  fields?:
1851
1913
  string;
@@ -1861,20 +1923,32 @@ declare namespace gapi.client {
1861
1923
  /** Returns response with indentations and line breaks. */
1862
1924
  prettyPrint?:
1863
1925
  boolean;
1864
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1926
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1865
1927
  quotaUser?:
1866
1928
  string;
1867
- /** Deprecated. Please use quotaUser instead. */
1868
- userIp?:
1929
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1930
+ upload_protocol?:
1931
+ string;
1932
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1933
+ uploadType?:
1869
1934
  string;
1870
1935
  /** Request body */
1871
1936
  resource:
1872
1937
  Comment;
1873
1938
  }): Request<Comment>;
1874
1939
  create(request: {
1875
- /** Data format for the response. */
1940
+ /** V1 error format. */
1941
+ "$.xgafv"?:
1942
+ string;
1943
+ /** OAuth access token. */
1944
+ access_token?:
1945
+ string;
1946
+ /** Data format for response. */
1876
1947
  alt?:
1877
1948
  string;
1949
+ /** JSONP */
1950
+ callback?:
1951
+ string;
1878
1952
  /** Selector specifying which fields to include in a partial response. */
1879
1953
  fields?:
1880
1954
  string;
@@ -1890,19 +1964,31 @@ declare namespace gapi.client {
1890
1964
  /** Returns response with indentations and line breaks. */
1891
1965
  prettyPrint?:
1892
1966
  boolean;
1893
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1967
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1894
1968
  quotaUser?:
1895
1969
  string;
1896
- /** Deprecated. Please use quotaUser instead. */
1897
- userIp?:
1970
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1971
+ upload_protocol?:
1972
+ string;
1973
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1974
+ uploadType?:
1898
1975
  string;
1899
1976
  },
1900
1977
  body: Comment): Request<Comment>;
1901
1978
  /** Deletes a comment. */
1902
1979
  delete(request?: {
1903
- /** Data format for the response. */
1980
+ /** V1 error format. */
1981
+ "$.xgafv"?:
1982
+ string;
1983
+ /** OAuth access token. */
1984
+ access_token?:
1985
+ string;
1986
+ /** Data format for response. */
1904
1987
  alt?:
1905
1988
  string;
1989
+ /** JSONP */
1990
+ callback?:
1991
+ string;
1906
1992
  /** The ID of the comment. */
1907
1993
  commentId:
1908
1994
  string;
@@ -1921,18 +2007,30 @@ declare namespace gapi.client {
1921
2007
  /** Returns response with indentations and line breaks. */
1922
2008
  prettyPrint?:
1923
2009
  boolean;
1924
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2010
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1925
2011
  quotaUser?:
1926
2012
  string;
1927
- /** Deprecated. Please use quotaUser instead. */
1928
- userIp?:
2013
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2014
+ upload_protocol?:
2015
+ string;
2016
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2017
+ uploadType?:
1929
2018
  string;
1930
2019
  }): Request<void>;
1931
2020
  /** Gets a comment by ID. */
1932
2021
  get(request?: {
1933
- /** Data format for the response. */
2022
+ /** V1 error format. */
2023
+ "$.xgafv"?:
2024
+ string;
2025
+ /** OAuth access token. */
2026
+ access_token?:
2027
+ string;
2028
+ /** Data format for response. */
1934
2029
  alt?:
1935
2030
  string;
2031
+ /** JSONP */
2032
+ callback?:
2033
+ string;
1936
2034
  /** The ID of the comment. */
1937
2035
  commentId:
1938
2036
  string;
@@ -1954,18 +2052,30 @@ declare namespace gapi.client {
1954
2052
  /** Returns response with indentations and line breaks. */
1955
2053
  prettyPrint?:
1956
2054
  boolean;
1957
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2055
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1958
2056
  quotaUser?:
1959
2057
  string;
1960
- /** Deprecated. Please use quotaUser instead. */
1961
- userIp?:
2058
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2059
+ upload_protocol?:
2060
+ string;
2061
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2062
+ uploadType?:
1962
2063
  string;
1963
2064
  }): Request<Comment>;
1964
2065
  /** Lists a file's comments. */
1965
2066
  list(request?: {
1966
- /** Data format for the response. */
2067
+ /** V1 error format. */
2068
+ "$.xgafv"?:
2069
+ string;
2070
+ /** OAuth access token. */
2071
+ access_token?:
2072
+ string;
2073
+ /** Data format for response. */
1967
2074
  alt?:
1968
2075
  string;
2076
+ /** JSONP */
2077
+ callback?:
2078
+ string;
1969
2079
  /** Selector specifying which fields to include in a partial response. */
1970
2080
  fields?:
1971
2081
  string;
@@ -1990,21 +2100,33 @@ declare namespace gapi.client {
1990
2100
  /** Returns response with indentations and line breaks. */
1991
2101
  prettyPrint?:
1992
2102
  boolean;
1993
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2103
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1994
2104
  quotaUser?:
1995
2105
  string;
1996
2106
  /** The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time). */
1997
2107
  startModifiedTime?:
1998
2108
  string;
1999
- /** Deprecated. Please use quotaUser instead. */
2000
- userIp?:
2109
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2110
+ upload_protocol?:
2111
+ string;
2112
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2113
+ uploadType?:
2001
2114
  string;
2002
2115
  }): Request<CommentList>;
2003
2116
  /** Updates a comment with patch semantics. */
2004
2117
  update(request: {
2005
- /** Data format for the response. */
2118
+ /** V1 error format. */
2119
+ "$.xgafv"?:
2120
+ string;
2121
+ /** OAuth access token. */
2122
+ access_token?:
2123
+ string;
2124
+ /** Data format for response. */
2006
2125
  alt?:
2007
2126
  string;
2127
+ /** JSONP */
2128
+ callback?:
2129
+ string;
2008
2130
  /** The ID of the comment. */
2009
2131
  commentId:
2010
2132
  string;
@@ -2023,20 +2145,32 @@ declare namespace gapi.client {
2023
2145
  /** Returns response with indentations and line breaks. */
2024
2146
  prettyPrint?:
2025
2147
  boolean;
2026
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2148
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2027
2149
  quotaUser?:
2028
2150
  string;
2029
- /** Deprecated. Please use quotaUser instead. */
2030
- userIp?:
2151
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2152
+ upload_protocol?:
2153
+ string;
2154
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2155
+ uploadType?:
2031
2156
  string;
2032
2157
  /** Request body */
2033
2158
  resource:
2034
2159
  Comment;
2035
2160
  }): Request<Comment>;
2036
2161
  update(request: {
2037
- /** Data format for the response. */
2162
+ /** V1 error format. */
2163
+ "$.xgafv"?:
2164
+ string;
2165
+ /** OAuth access token. */
2166
+ access_token?:
2167
+ string;
2168
+ /** Data format for response. */
2038
2169
  alt?:
2039
2170
  string;
2171
+ /** JSONP */
2172
+ callback?:
2173
+ string;
2040
2174
  /** The ID of the comment. */
2041
2175
  commentId:
2042
2176
  string;
@@ -2055,11 +2189,14 @@ declare namespace gapi.client {
2055
2189
  /** Returns response with indentations and line breaks. */
2056
2190
  prettyPrint?:
2057
2191
  boolean;
2058
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2192
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2059
2193
  quotaUser?:
2060
2194
  string;
2061
- /** Deprecated. Please use quotaUser instead. */
2062
- userIp?:
2195
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2196
+ upload_protocol?:
2197
+ string;
2198
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2199
+ uploadType?:
2063
2200
  string;
2064
2201
  },
2065
2202
  body: Comment): Request<Comment>;
@@ -2067,9 +2204,18 @@ declare namespace gapi.client {
2067
2204
  interface DrivesResource {
2068
2205
  /** Creates a shared drive. */
2069
2206
  create(request: {
2070
- /** Data format for the response. */
2207
+ /** V1 error format. */
2208
+ "$.xgafv"?:
2209
+ string;
2210
+ /** OAuth access token. */
2211
+ access_token?:
2212
+ string;
2213
+ /** Data format for response. */
2071
2214
  alt?:
2072
2215
  string;
2216
+ /** JSONP */
2217
+ callback?:
2218
+ string;
2073
2219
  /** Selector specifying which fields to include in a partial response. */
2074
2220
  fields?:
2075
2221
  string;
@@ -2082,26 +2228,38 @@ declare namespace gapi.client {
2082
2228
  /** Returns response with indentations and line breaks. */
2083
2229
  prettyPrint?:
2084
2230
  boolean;
2085
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2231
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2086
2232
  quotaUser?:
2087
2233
  string;
2088
2234
  /**
2089
- * 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
2090
- * 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.
2235
+ * Required. 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
2236
+ * same 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.
2091
2237
  */
2092
2238
  requestId:
2093
2239
  string;
2094
- /** Deprecated. Please use quotaUser instead. */
2095
- userIp?:
2240
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2241
+ upload_protocol?:
2242
+ string;
2243
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2244
+ uploadType?:
2096
2245
  string;
2097
2246
  /** Request body */
2098
2247
  resource:
2099
2248
  Drive;
2100
2249
  }): Request<Drive>;
2101
2250
  create(request: {
2102
- /** Data format for the response. */
2251
+ /** V1 error format. */
2252
+ "$.xgafv"?:
2253
+ string;
2254
+ /** OAuth access token. */
2255
+ access_token?:
2256
+ string;
2257
+ /** Data format for response. */
2103
2258
  alt?:
2104
2259
  string;
2260
+ /** JSONP */
2261
+ callback?:
2262
+ string;
2105
2263
  /** Selector specifying which fields to include in a partial response. */
2106
2264
  fields?:
2107
2265
  string;
@@ -2114,28 +2272,40 @@ declare namespace gapi.client {
2114
2272
  /** Returns response with indentations and line breaks. */
2115
2273
  prettyPrint?:
2116
2274
  boolean;
2117
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2275
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2118
2276
  quotaUser?:
2119
2277
  string;
2120
2278
  /**
2121
- * 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
2122
- * 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.
2279
+ * Required. 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
2280
+ * same 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.
2123
2281
  */
2124
2282
  requestId:
2125
2283
  string;
2126
- /** Deprecated. Please use quotaUser instead. */
2127
- userIp?:
2284
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2285
+ upload_protocol?:
2286
+ string;
2287
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2288
+ uploadType?:
2128
2289
  string;
2129
2290
  },
2130
2291
  body: Drive): Request<Drive>;
2131
2292
  /** Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. */
2132
2293
  delete(request?: {
2133
- /** Whether any items inside the shared drive should also be deleted. This option is only supported when useDomainAdminAccess is also set to true. */
2294
+ /** V1 error format. */
2295
+ "$.xgafv"?:
2296
+ string;
2297
+ /** OAuth access token. */
2298
+ access_token?:
2299
+ string;
2300
+ /** Whether any items inside the shared drive should also be deleted. This option is only supported when `useDomainAdminAccess` is also set to `true`. */
2134
2301
  allowItemDeletion?:
2135
2302
  boolean;
2136
- /** Data format for the response. */
2303
+ /** Data format for response. */
2137
2304
  alt?:
2138
2305
  string;
2306
+ /** JSONP */
2307
+ callback?:
2308
+ string;
2139
2309
  /** The ID of the shared drive. */
2140
2310
  driveId:
2141
2311
  string;
@@ -2151,24 +2321,36 @@ declare namespace gapi.client {
2151
2321
  /** Returns response with indentations and line breaks. */
2152
2322
  prettyPrint?:
2153
2323
  boolean;
2154
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2324
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2155
2325
  quotaUser?:
2156
2326
  string;
2327
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2328
+ upload_protocol?:
2329
+ string;
2330
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2331
+ uploadType?:
2332
+ string;
2157
2333
  /**
2158
2334
  * 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
2159
2335
  * belongs.
2160
2336
  */
2161
2337
  useDomainAdminAccess?:
2162
2338
  boolean;
2163
- /** Deprecated. Please use quotaUser instead. */
2164
- userIp?:
2165
- string;
2166
2339
  }): Request<void>;
2167
2340
  /** Gets a shared drive's metadata by ID. */
2168
2341
  get(request?: {
2169
- /** Data format for the response. */
2342
+ /** V1 error format. */
2343
+ "$.xgafv"?:
2344
+ string;
2345
+ /** OAuth access token. */
2346
+ access_token?:
2347
+ string;
2348
+ /** Data format for response. */
2170
2349
  alt?:
2171
2350
  string;
2351
+ /** JSONP */
2352
+ callback?:
2353
+ string;
2172
2354
  /** The ID of the shared drive. */
2173
2355
  driveId:
2174
2356
  string;
@@ -2184,24 +2366,36 @@ declare namespace gapi.client {
2184
2366
  /** Returns response with indentations and line breaks. */
2185
2367
  prettyPrint?:
2186
2368
  boolean;
2187
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2369
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2188
2370
  quotaUser?:
2189
2371
  string;
2372
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2373
+ upload_protocol?:
2374
+ string;
2375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2376
+ uploadType?:
2377
+ string;
2190
2378
  /**
2191
2379
  * 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
2192
2380
  * belongs.
2193
2381
  */
2194
2382
  useDomainAdminAccess?:
2195
2383
  boolean;
2196
- /** Deprecated. Please use quotaUser instead. */
2197
- userIp?:
2198
- string;
2199
2384
  }): Request<Drive>;
2200
2385
  /** Hides a shared drive from the default view. */
2201
2386
  hide(request?: {
2202
- /** Data format for the response. */
2387
+ /** V1 error format. */
2388
+ "$.xgafv"?:
2389
+ string;
2390
+ /** OAuth access token. */
2391
+ access_token?:
2392
+ string;
2393
+ /** Data format for response. */
2203
2394
  alt?:
2204
2395
  string;
2396
+ /** JSONP */
2397
+ callback?:
2398
+ string;
2205
2399
  /** The ID of the shared drive. */
2206
2400
  driveId:
2207
2401
  string;
@@ -2217,18 +2411,33 @@ declare namespace gapi.client {
2217
2411
  /** Returns response with indentations and line breaks. */
2218
2412
  prettyPrint?:
2219
2413
  boolean;
2220
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2414
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2221
2415
  quotaUser?:
2222
2416
  string;
2223
- /** Deprecated. Please use quotaUser instead. */
2224
- userIp?:
2417
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2418
+ upload_protocol?:
2419
+ string;
2420
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2421
+ uploadType?:
2225
2422
  string;
2226
2423
  }): Request<Drive>;
2227
- /** Lists the user's shared drives. */
2424
+ /**
2425
+ * Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for shared
2426
+ * drives](/drive/api/guides/search-shareddrives) guide.
2427
+ */
2228
2428
  list(request?: {
2229
- /** Data format for the response. */
2429
+ /** V1 error format. */
2430
+ "$.xgafv"?:
2431
+ string;
2432
+ /** OAuth access token. */
2433
+ access_token?:
2434
+ string;
2435
+ /** Data format for response. */
2230
2436
  alt?:
2231
2437
  string;
2438
+ /** JSONP */
2439
+ callback?:
2440
+ string;
2232
2441
  /** Selector specifying which fields to include in a partial response. */
2233
2442
  fields?:
2234
2443
  string;
@@ -2250,21 +2459,33 @@ declare namespace gapi.client {
2250
2459
  /** Query string for searching shared drives. */
2251
2460
  q?:
2252
2461
  string;
2253
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2462
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2254
2463
  quotaUser?:
2255
2464
  string;
2465
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2466
+ upload_protocol?:
2467
+ string;
2468
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2469
+ uploadType?:
2470
+ string;
2256
2471
  /** 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. */
2257
2472
  useDomainAdminAccess?:
2258
2473
  boolean;
2259
- /** Deprecated. Please use quotaUser instead. */
2260
- userIp?:
2261
- string;
2262
2474
  }): Request<DriveList>;
2263
2475
  /** Restores a shared drive to the default view. */
2264
2476
  unhide(request?: {
2265
- /** Data format for the response. */
2477
+ /** V1 error format. */
2478
+ "$.xgafv"?:
2479
+ string;
2480
+ /** OAuth access token. */
2481
+ access_token?:
2482
+ string;
2483
+ /** Data format for response. */
2266
2484
  alt?:
2267
2485
  string;
2486
+ /** JSONP */
2487
+ callback?:
2488
+ string;
2268
2489
  /** The ID of the shared drive. */
2269
2490
  driveId:
2270
2491
  string;
@@ -2280,18 +2501,30 @@ declare namespace gapi.client {
2280
2501
  /** Returns response with indentations and line breaks. */
2281
2502
  prettyPrint?:
2282
2503
  boolean;
2283
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2504
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2284
2505
  quotaUser?:
2285
2506
  string;
2286
- /** Deprecated. Please use quotaUser instead. */
2287
- userIp?:
2507
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2508
+ upload_protocol?:
2509
+ string;
2510
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2511
+ uploadType?:
2288
2512
  string;
2289
2513
  }): Request<Drive>;
2290
- /** Updates the metadata for a shared drive. */
2514
+ /** Updates the metadate for a shared drive. */
2291
2515
  update(request: {
2292
- /** Data format for the response. */
2516
+ /** V1 error format. */
2517
+ "$.xgafv"?:
2518
+ string;
2519
+ /** OAuth access token. */
2520
+ access_token?:
2521
+ string;
2522
+ /** Data format for response. */
2293
2523
  alt?:
2294
2524
  string;
2525
+ /** JSONP */
2526
+ callback?:
2527
+ string;
2295
2528
  /** The ID of the shared drive. */
2296
2529
  driveId:
2297
2530
  string;
@@ -2307,23 +2540,38 @@ declare namespace gapi.client {
2307
2540
  /** Returns response with indentations and line breaks. */
2308
2541
  prettyPrint?:
2309
2542
  boolean;
2310
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2543
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2311
2544
  quotaUser?:
2312
2545
  string;
2313
- /** Issue the request as a domain administrator. If set to true, then the requester is granted access if they're an administrator of the domain to which the shared drive belongs. */
2546
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2547
+ upload_protocol?:
2548
+ string;
2549
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2550
+ uploadType?:
2551
+ string;
2552
+ /**
2553
+ * 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
2554
+ * belongs.
2555
+ */
2314
2556
  useDomainAdminAccess?:
2315
2557
  boolean;
2316
- /** Deprecated. Please use quotaUser instead. */
2317
- userIp?:
2318
- string;
2319
2558
  /** Request body */
2320
2559
  resource:
2321
2560
  Drive;
2322
2561
  }): Request<Drive>;
2323
2562
  update(request: {
2324
- /** Data format for the response. */
2563
+ /** V1 error format. */
2564
+ "$.xgafv"?:
2565
+ string;
2566
+ /** OAuth access token. */
2567
+ access_token?:
2568
+ string;
2569
+ /** Data format for response. */
2325
2570
  alt?:
2326
2571
  string;
2572
+ /** JSONP */
2573
+ callback?:
2574
+ string;
2327
2575
  /** The ID of the shared drive. */
2328
2576
  driveId:
2329
2577
  string;
@@ -2339,24 +2587,39 @@ declare namespace gapi.client {
2339
2587
  /** Returns response with indentations and line breaks. */
2340
2588
  prettyPrint?:
2341
2589
  boolean;
2342
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2590
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2343
2591
  quotaUser?:
2344
2592
  string;
2345
- /** Issue the request as a domain administrator. If set to true, then the requester is granted access if they're an administrator of the domain to which the shared drive belongs. */
2593
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2594
+ upload_protocol?:
2595
+ string;
2596
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2597
+ uploadType?:
2598
+ string;
2599
+ /**
2600
+ * 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
2601
+ * belongs.
2602
+ */
2346
2603
  useDomainAdminAccess?:
2347
2604
  boolean;
2348
- /** Deprecated. Please use quotaUser instead. */
2349
- userIp?:
2350
- string;
2351
2605
  },
2352
2606
  body: Drive): Request<Drive>;
2353
2607
  }
2354
2608
  interface FilesResource {
2355
- /** Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. */
2609
+ /** Creates a copy of a file and applies any requested updates with patch semantics. */
2356
2610
  copy(request: {
2357
- /** Data format for the response. */
2611
+ /** V1 error format. */
2612
+ "$.xgafv"?:
2613
+ string;
2614
+ /** OAuth access token. */
2615
+ access_token?:
2616
+ string;
2617
+ /** Data format for response. */
2358
2618
  alt?:
2359
2619
  string;
2620
+ /** JSONP */
2621
+ callback?:
2622
+ string;
2360
2623
  /** Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. */
2361
2624
  enforceSingleParent?:
2362
2625
  boolean;
@@ -2372,7 +2635,7 @@ declare namespace gapi.client {
2372
2635
  */
2373
2636
  ignoreDefaultVisibility?:
2374
2637
  boolean;
2375
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2638
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
2376
2639
  includeLabels?:
2377
2640
  string;
2378
2641
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -2396,26 +2659,38 @@ declare namespace gapi.client {
2396
2659
  /** Returns response with indentations and line breaks. */
2397
2660
  prettyPrint?:
2398
2661
  boolean;
2399
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2662
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2400
2663
  quotaUser?:
2401
2664
  string;
2402
2665
  /** Whether the requesting application supports both My Drives and shared drives. */
2403
2666
  supportsAllDrives?:
2404
2667
  boolean;
2405
- /** Deprecated use supportsAllDrives instead. */
2668
+ /** Deprecated: Use `supportsAllDrives` instead. */
2406
2669
  supportsTeamDrives?:
2407
2670
  boolean;
2408
- /** Deprecated. Please use quotaUser instead. */
2409
- userIp?:
2671
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2672
+ upload_protocol?:
2673
+ string;
2674
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2675
+ uploadType?:
2410
2676
  string;
2411
2677
  /** Request body */
2412
2678
  resource:
2413
2679
  File;
2414
2680
  }): Request<File>;
2415
2681
  copy(request: {
2416
- /** Data format for the response. */
2682
+ /** V1 error format. */
2683
+ "$.xgafv"?:
2684
+ string;
2685
+ /** OAuth access token. */
2686
+ access_token?:
2687
+ string;
2688
+ /** Data format for response. */
2417
2689
  alt?:
2418
2690
  string;
2691
+ /** JSONP */
2692
+ callback?:
2693
+ string;
2419
2694
  /** Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. */
2420
2695
  enforceSingleParent?:
2421
2696
  boolean;
@@ -2431,7 +2706,7 @@ declare namespace gapi.client {
2431
2706
  */
2432
2707
  ignoreDefaultVisibility?:
2433
2708
  boolean;
2434
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2709
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
2435
2710
  includeLabels?:
2436
2711
  string;
2437
2712
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -2455,25 +2730,45 @@ declare namespace gapi.client {
2455
2730
  /** Returns response with indentations and line breaks. */
2456
2731
  prettyPrint?:
2457
2732
  boolean;
2458
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2733
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2459
2734
  quotaUser?:
2460
2735
  string;
2461
2736
  /** Whether the requesting application supports both My Drives and shared drives. */
2462
2737
  supportsAllDrives?:
2463
2738
  boolean;
2464
- /** Deprecated use supportsAllDrives instead. */
2739
+ /** Deprecated: Use `supportsAllDrives` instead. */
2465
2740
  supportsTeamDrives?:
2466
2741
  boolean;
2467
- /** Deprecated. Please use quotaUser instead. */
2468
- userIp?:
2742
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2743
+ upload_protocol?:
2744
+ string;
2745
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2746
+ uploadType?:
2469
2747
  string;
2470
2748
  },
2471
2749
  body: File): Request<File>;
2472
- /** Creates a file. */
2750
+ /**
2751
+ * Creates a new file. This method supports an *‍/upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME
2752
+ * types:*`*‍/*` Note: Specify a valid MIME type, rather than the literal `*‍/*` value. The literal `*‍/*` is only used to indicate that any valid MIME type can be uploaded. For more
2753
+ * information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.create` must specify the MIME type
2754
+ * `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG
2755
+ * file should specify something like `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension
2756
+ * originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full
2757
+ * filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.
2758
+ */
2473
2759
  create(request: {
2474
- /** Data format for the response. */
2760
+ /** V1 error format. */
2761
+ "$.xgafv"?:
2762
+ string;
2763
+ /** OAuth access token. */
2764
+ access_token?:
2765
+ string;
2766
+ /** Data format for response. */
2475
2767
  alt?:
2476
2768
  string;
2769
+ /** JSONP */
2770
+ callback?:
2771
+ string;
2477
2772
  /** Deprecated. Creating files in multiple folders is no longer supported. */
2478
2773
  enforceSingleParent?:
2479
2774
  boolean;
@@ -2486,7 +2781,7 @@ declare namespace gapi.client {
2486
2781
  */
2487
2782
  ignoreDefaultVisibility?:
2488
2783
  boolean;
2489
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2784
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
2490
2785
  includeLabels?:
2491
2786
  string;
2492
2787
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -2510,29 +2805,41 @@ declare namespace gapi.client {
2510
2805
  /** Returns response with indentations and line breaks. */
2511
2806
  prettyPrint?:
2512
2807
  boolean;
2513
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2808
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2514
2809
  quotaUser?:
2515
2810
  string;
2516
2811
  /** Whether the requesting application supports both My Drives and shared drives. */
2517
2812
  supportsAllDrives?:
2518
2813
  boolean;
2519
- /** Deprecated use supportsAllDrives instead. */
2814
+ /** Deprecated: Use `supportsAllDrives` instead. */
2520
2815
  supportsTeamDrives?:
2521
2816
  boolean;
2817
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2818
+ upload_protocol?:
2819
+ string;
2820
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2821
+ uploadType?:
2822
+ string;
2522
2823
  /** Whether to use the uploaded content as indexable text. */
2523
2824
  useContentAsIndexableText?:
2524
2825
  boolean;
2525
- /** Deprecated. Please use quotaUser instead. */
2526
- userIp?:
2527
- string;
2528
2826
  /** Request body */
2529
2827
  resource:
2530
2828
  File;
2531
2829
  }): Request<File>;
2532
2830
  create(request: {
2533
- /** Data format for the response. */
2831
+ /** V1 error format. */
2832
+ "$.xgafv"?:
2833
+ string;
2834
+ /** OAuth access token. */
2835
+ access_token?:
2836
+ string;
2837
+ /** Data format for response. */
2534
2838
  alt?:
2535
2839
  string;
2840
+ /** JSONP */
2841
+ callback?:
2842
+ string;
2536
2843
  /** Deprecated. Creating files in multiple folders is no longer supported. */
2537
2844
  enforceSingleParent?:
2538
2845
  boolean;
@@ -2545,7 +2852,7 @@ declare namespace gapi.client {
2545
2852
  */
2546
2853
  ignoreDefaultVisibility?:
2547
2854
  boolean;
2548
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
2855
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
2549
2856
  includeLabels?:
2550
2857
  string;
2551
2858
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -2569,21 +2876,24 @@ declare namespace gapi.client {
2569
2876
  /** Returns response with indentations and line breaks. */
2570
2877
  prettyPrint?:
2571
2878
  boolean;
2572
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2879
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2573
2880
  quotaUser?:
2574
2881
  string;
2575
2882
  /** Whether the requesting application supports both My Drives and shared drives. */
2576
2883
  supportsAllDrives?:
2577
2884
  boolean;
2578
- /** Deprecated use supportsAllDrives instead. */
2885
+ /** Deprecated: Use `supportsAllDrives` instead. */
2579
2886
  supportsTeamDrives?:
2580
2887
  boolean;
2888
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2889
+ upload_protocol?:
2890
+ string;
2891
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2892
+ uploadType?:
2893
+ string;
2581
2894
  /** Whether to use the uploaded content as indexable text. */
2582
2895
  useContentAsIndexableText?:
2583
2896
  boolean;
2584
- /** Deprecated. Please use quotaUser instead. */
2585
- userIp?:
2586
- string;
2587
2897
  },
2588
2898
  body: File): Request<File>;
2589
2899
  /**
@@ -2591,10 +2901,19 @@ declare namespace gapi.client {
2591
2901
  * folder, all descendants owned by the user are also deleted.
2592
2902
  */
2593
2903
  delete(request?: {
2594
- /** Data format for the response. */
2904
+ /** V1 error format. */
2905
+ "$.xgafv"?:
2906
+ string;
2907
+ /** OAuth access token. */
2908
+ access_token?:
2909
+ string;
2910
+ /** Data format for response. */
2595
2911
  alt?:
2596
2912
  string;
2597
- /** 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. */
2913
+ /** JSONP */
2914
+ callback?:
2915
+ string;
2916
+ /** 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. */
2598
2917
  enforceSingleParent?:
2599
2918
  boolean;
2600
2919
  /** Selector specifying which fields to include in a partial response. */
@@ -2612,28 +2931,40 @@ declare namespace gapi.client {
2612
2931
  /** Returns response with indentations and line breaks. */
2613
2932
  prettyPrint?:
2614
2933
  boolean;
2615
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2934
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2616
2935
  quotaUser?:
2617
2936
  string;
2618
2937
  /** Whether the requesting application supports both My Drives and shared drives. */
2619
2938
  supportsAllDrives?:
2620
2939
  boolean;
2621
- /** Deprecated use supportsAllDrives instead. */
2940
+ /** Deprecated: Use `supportsAllDrives` instead. */
2622
2941
  supportsTeamDrives?:
2623
2942
  boolean;
2624
- /** Deprecated. Please use quotaUser instead. */
2625
- userIp?:
2943
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2944
+ upload_protocol?:
2945
+ string;
2946
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2947
+ uploadType?:
2626
2948
  string;
2627
2949
  }): Request<void>;
2628
- /** Permanently deletes all trashed files of a user or shared drive. */
2950
+ /** Permanently deletes all of the user's trashed files. */
2629
2951
  emptyTrash(request?: {
2630
- /** Data format for the response. */
2952
+ /** V1 error format. */
2953
+ "$.xgafv"?:
2954
+ string;
2955
+ /** OAuth access token. */
2956
+ access_token?:
2957
+ string;
2958
+ /** Data format for response. */
2631
2959
  alt?:
2632
2960
  string;
2961
+ /** JSONP */
2962
+ callback?:
2963
+ string;
2633
2964
  /** If set, empties the trash of the provided shared drive. */
2634
2965
  driveId?:
2635
2966
  string;
2636
- /** 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. */
2967
+ /** 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. */
2637
2968
  enforceSingleParent?:
2638
2969
  boolean;
2639
2970
  /** Selector specifying which fields to include in a partial response. */
@@ -2648,18 +2979,30 @@ declare namespace gapi.client {
2648
2979
  /** Returns response with indentations and line breaks. */
2649
2980
  prettyPrint?:
2650
2981
  boolean;
2651
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2982
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2652
2983
  quotaUser?:
2653
2984
  string;
2654
- /** Deprecated. Please use quotaUser instead. */
2655
- userIp?:
2985
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2986
+ upload_protocol?:
2987
+ string;
2988
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2989
+ uploadType?:
2656
2990
  string;
2657
2991
  }): Request<void>;
2658
2992
  /** Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. */
2659
2993
  export(request?: {
2660
- /** Data format for the response. */
2994
+ /** V1 error format. */
2995
+ "$.xgafv"?:
2996
+ string;
2997
+ /** OAuth access token. */
2998
+ access_token?:
2999
+ string;
3000
+ /** Data format for response. */
2661
3001
  alt?:
2662
3002
  string;
3003
+ /** JSONP */
3004
+ callback?:
3005
+ string;
2663
3006
  /** Selector specifying which fields to include in a partial response. */
2664
3007
  fields?:
2665
3008
  string;
@@ -2669,7 +3012,7 @@ declare namespace gapi.client {
2669
3012
  /** 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. */
2670
3013
  key?:
2671
3014
  string;
2672
- /** The MIME type of the format requested for this export. */
3015
+ /** Required. The MIME type of the format requested for this export. */
2673
3016
  mimeType:
2674
3017
  string;
2675
3018
  /** OAuth 2.0 token for the current user. */
@@ -2678,18 +3021,30 @@ declare namespace gapi.client {
2678
3021
  /** Returns response with indentations and line breaks. */
2679
3022
  prettyPrint?:
2680
3023
  boolean;
2681
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3024
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2682
3025
  quotaUser?:
2683
3026
  string;
2684
- /** Deprecated. Please use quotaUser instead. */
2685
- userIp?:
3027
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3028
+ upload_protocol?:
3029
+ string;
3030
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3031
+ uploadType?:
2686
3032
  string;
2687
3033
  }): Request<void>;
2688
3034
  /** Generates a set of file IDs which can be provided in create or copy requests. */
2689
3035
  generateIds(request?: {
2690
- /** Data format for the response. */
3036
+ /** V1 error format. */
3037
+ "$.xgafv"?:
3038
+ string;
3039
+ /** OAuth access token. */
3040
+ access_token?:
3041
+ string;
3042
+ /** Data format for response. */
2691
3043
  alt?:
2692
3044
  string;
3045
+ /** JSONP */
3046
+ callback?:
3047
+ string;
2693
3048
  /** The number of IDs to return. */
2694
3049
  count?:
2695
3050
  number;
@@ -2705,34 +3060,53 @@ declare namespace gapi.client {
2705
3060
  /** Returns response with indentations and line breaks. */
2706
3061
  prettyPrint?:
2707
3062
  boolean;
2708
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3063
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2709
3064
  quotaUser?:
2710
3065
  string;
2711
3066
  /** The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive') */
2712
3067
  space?:
2713
3068
  string;
2714
- /** 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') */
3069
+ /**
3070
+ * 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:
3071
+ * 'files')
3072
+ */
2715
3073
  type?:
2716
3074
  string;
2717
- /** Deprecated. Please use quotaUser instead. */
2718
- userIp?:
3075
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3076
+ upload_protocol?:
3077
+ string;
3078
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3079
+ uploadType?:
2719
3080
  string;
2720
3081
  }): Request<GeneratedIds>;
2721
- /** Gets a file's metadata or content by ID. */
3082
+ /**
3083
+ * Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with
3084
+ * `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/drive/api/reference/rest/v3/files/export) instead. For more
3085
+ * information, see [Download & export files](/drive/api/guides/manage-downloads).
3086
+ */
2722
3087
  get(request?: {
3088
+ /** V1 error format. */
3089
+ "$.xgafv"?:
3090
+ string;
3091
+ /** OAuth access token. */
3092
+ access_token?:
3093
+ string;
2723
3094
  /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
2724
3095
  acknowledgeAbuse?:
2725
3096
  boolean;
2726
- /** Data format for the response. */
3097
+ /** Data format for response. */
2727
3098
  alt?:
2728
3099
  string;
3100
+ /** JSONP */
3101
+ callback?:
3102
+ string;
2729
3103
  /** Selector specifying which fields to include in a partial response. */
2730
3104
  fields?:
2731
3105
  string;
2732
3106
  /** The ID of the file. */
2733
3107
  fileId:
2734
3108
  string;
2735
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
3109
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
2736
3110
  includeLabels?:
2737
3111
  string;
2738
3112
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -2747,32 +3121,47 @@ declare namespace gapi.client {
2747
3121
  /** Returns response with indentations and line breaks. */
2748
3122
  prettyPrint?:
2749
3123
  boolean;
2750
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3124
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2751
3125
  quotaUser?:
2752
3126
  string;
2753
3127
  /** Whether the requesting application supports both My Drives and shared drives. */
2754
3128
  supportsAllDrives?:
2755
3129
  boolean;
2756
- /** Deprecated use supportsAllDrives instead. */
3130
+ /** Deprecated: Use `supportsAllDrives` instead. */
2757
3131
  supportsTeamDrives?:
2758
3132
  boolean;
2759
- /** Deprecated. Please use quotaUser instead. */
2760
- userIp?:
3133
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3134
+ upload_protocol?:
3135
+ string;
3136
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3137
+ uploadType?:
2761
3138
  string;
2762
3139
  }): Request<File>;
2763
- /** Lists or searches files. */
3140
+ /**
3141
+ * Lists the user's files. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for files &
3142
+ * folders](/drive/api/guides/search-files) guide. *Note:* This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list,
3143
+ * use the `trashed=false` query parameter to remove trashed files from the results.
3144
+ */
2764
3145
  list(request?: {
2765
- /** Data format for the response. */
3146
+ /** V1 error format. */
3147
+ "$.xgafv"?:
3148
+ string;
3149
+ /** OAuth access token. */
3150
+ access_token?:
3151
+ string;
3152
+ /** Data format for response. */
2766
3153
  alt?:
2767
3154
  string;
3155
+ /** JSONP */
3156
+ callback?:
3157
+ string;
2768
3158
  /**
2769
- * 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
2770
- * 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
2771
- * a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.
3159
+ * Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive', and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for
3160
+ * efficiency. By default, corpora is set to 'user'. However, this can change depending on the filter set through the 'q' parameter.
2772
3161
  */
2773
3162
  corpora?:
2774
3163
  string;
2775
- /** The source of files to list. Deprecated: use 'corpora' instead. */
3164
+ /** Deprecated: The source of files to list. Use 'corpora' instead. */
2776
3165
  corpus?:
2777
3166
  string;
2778
3167
  /** ID of the shared drive to search. */
@@ -2784,13 +3173,13 @@ declare namespace gapi.client {
2784
3173
  /** Whether both My Drive and shared drive items should be included in results. */
2785
3174
  includeItemsFromAllDrives?:
2786
3175
  boolean;
2787
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
3176
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
2788
3177
  includeLabels?:
2789
3178
  string;
2790
3179
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
2791
3180
  includePermissionsForView?:
2792
3181
  string;
2793
- /** Deprecated use includeItemsFromAllDrives instead. */
3182
+ /** Deprecated: Use `includeItemsFromAllDrives` instead. */
2794
3183
  includeTeamDriveItems?:
2795
3184
  boolean;
2796
3185
  /** 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. */
@@ -2801,9 +3190,8 @@ declare namespace gapi.client {
2801
3190
  string;
2802
3191
  /**
2803
3192
  * A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency',
2804
- * 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage:
2805
- * ?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
2806
- * ignored.
3193
+ * 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but can be reversed with the 'desc' modifier. Example usage:
3194
+ * ?orderBy=folder,modifiedTime desc,name.
2807
3195
  */
2808
3196
  orderBy?:
2809
3197
  string;
@@ -2816,10 +3204,10 @@ declare namespace gapi.client {
2816
3204
  /** Returns response with indentations and line breaks. */
2817
3205
  prettyPrint?:
2818
3206
  boolean;
2819
- /** A query for filtering the file results. See the "Search for Files" guide for supported syntax. */
3207
+ /** A query for filtering the file results. See the "Search for files & folders" guide for supported syntax. */
2820
3208
  q?:
2821
3209
  string;
2822
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3210
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2823
3211
  quotaUser?:
2824
3212
  string;
2825
3213
  /** A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'. */
@@ -2828,31 +3216,43 @@ declare namespace gapi.client {
2828
3216
  /** Whether the requesting application supports both My Drives and shared drives. */
2829
3217
  supportsAllDrives?:
2830
3218
  boolean;
2831
- /** Deprecated use supportsAllDrives instead. */
3219
+ /** Deprecated: Use `supportsAllDrives` instead. */
2832
3220
  supportsTeamDrives?:
2833
3221
  boolean;
2834
- /** Deprecated use driveId instead. */
3222
+ /** Deprecated: Use `driveId` instead. */
2835
3223
  teamDriveId?:
2836
3224
  string;
2837
- /** Deprecated. Please use quotaUser instead. */
2838
- userIp?:
3225
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3226
+ upload_protocol?:
3227
+ string;
3228
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3229
+ uploadType?:
2839
3230
  string;
2840
3231
  }): Request<FileList>;
2841
3232
  /** Lists the labels on a file. */
2842
3233
  listLabels(request?: {
2843
- /** Data format for the response. */
3234
+ /** V1 error format. */
3235
+ "$.xgafv"?:
3236
+ string;
3237
+ /** OAuth access token. */
3238
+ access_token?:
3239
+ string;
3240
+ /** Data format for response. */
2844
3241
  alt?:
2845
3242
  string;
3243
+ /** JSONP */
3244
+ callback?:
3245
+ string;
2846
3246
  /** Selector specifying which fields to include in a partial response. */
2847
3247
  fields?:
2848
3248
  string;
2849
- /** The ID of the file. */
3249
+ /** The ID for the file or shared drive. */
2850
3250
  fileId:
2851
3251
  string;
2852
3252
  /** 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. */
2853
3253
  key?:
2854
3254
  string;
2855
- /** The maximum number of labels to return per page. When not set, this defaults to 100. */
3255
+ /** The maximum number of labels to return per page. When not set, defaults to 100. */
2856
3256
  maxResults?:
2857
3257
  number;
2858
3258
  /** OAuth 2.0 token for the current user. */
@@ -2864,22 +3264,34 @@ declare namespace gapi.client {
2864
3264
  /** Returns response with indentations and line breaks. */
2865
3265
  prettyPrint?:
2866
3266
  boolean;
2867
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3267
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2868
3268
  quotaUser?:
2869
3269
  string;
2870
- /** Deprecated. Please use quotaUser instead. */
2871
- userIp?:
3270
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3271
+ upload_protocol?:
3272
+ string;
3273
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3274
+ uploadType?:
2872
3275
  string;
2873
3276
  }): Request<LabelList>;
2874
- /** Modifies the set of labels on a file. */
3277
+ /** Modifies the set of labels applied to a file. Returns a list of the labels that were added or modified. */
2875
3278
  modifyLabels(request: {
2876
- /** Data format for the response. */
3279
+ /** V1 error format. */
3280
+ "$.xgafv"?:
3281
+ string;
3282
+ /** OAuth access token. */
3283
+ access_token?:
3284
+ string;
3285
+ /** Data format for response. */
2877
3286
  alt?:
2878
3287
  string;
3288
+ /** JSONP */
3289
+ callback?:
3290
+ string;
2879
3291
  /** Selector specifying which fields to include in a partial response. */
2880
3292
  fields?:
2881
3293
  string;
2882
- /** The ID of the file for which the labels are modified. */
3294
+ /** The ID of the file to which the labels belong. */
2883
3295
  fileId:
2884
3296
  string;
2885
3297
  /** 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. */
@@ -2891,24 +3303,36 @@ declare namespace gapi.client {
2891
3303
  /** Returns response with indentations and line breaks. */
2892
3304
  prettyPrint?:
2893
3305
  boolean;
2894
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3306
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2895
3307
  quotaUser?:
2896
3308
  string;
2897
- /** Deprecated. Please use quotaUser instead. */
2898
- userIp?:
3309
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3310
+ upload_protocol?:
3311
+ string;
3312
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3313
+ uploadType?:
2899
3314
  string;
2900
3315
  /** Request body */
2901
3316
  resource:
2902
3317
  ModifyLabelsRequest;
2903
3318
  }): Request<ModifyLabelsResponse>;
2904
3319
  modifyLabels(request: {
2905
- /** Data format for the response. */
3320
+ /** V1 error format. */
3321
+ "$.xgafv"?:
3322
+ string;
3323
+ /** OAuth access token. */
3324
+ access_token?:
3325
+ string;
3326
+ /** Data format for response. */
2906
3327
  alt?:
2907
3328
  string;
3329
+ /** JSONP */
3330
+ callback?:
3331
+ string;
2908
3332
  /** Selector specifying which fields to include in a partial response. */
2909
3333
  fields?:
2910
3334
  string;
2911
- /** The ID of the file for which the labels are modified. */
3335
+ /** The ID of the file to which the labels belong. */
2912
3336
  fileId:
2913
3337
  string;
2914
3338
  /** 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. */
@@ -2920,26 +3344,40 @@ declare namespace gapi.client {
2920
3344
  /** Returns response with indentations and line breaks. */
2921
3345
  prettyPrint?:
2922
3346
  boolean;
2923
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3347
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2924
3348
  quotaUser?:
2925
3349
  string;
2926
- /** Deprecated. Please use quotaUser instead. */
2927
- userIp?:
3350
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3351
+ upload_protocol?:
3352
+ string;
3353
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3354
+ uploadType?:
2928
3355
  string;
2929
3356
  },
2930
3357
  body: ModifyLabelsRequest): Request<ModifyLabelsResponse>;
2931
3358
  /**
2932
- * 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
2933
- * automatically, such as modifiedDate. This method supports patch semantics.
3359
+ * 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 be changed
3360
+ * automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an *‍/upload* URI and accepts uploaded media with the following characteristics: -
3361
+ * *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*‍/*` Note: Specify a valid MIME type, rather than the literal `*‍/*` value. The literal `*‍/*` is only used to indicate
3362
+ * that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads).
2934
3363
  */
2935
3364
  update(request: {
3365
+ /** V1 error format. */
3366
+ "$.xgafv"?:
3367
+ string;
3368
+ /** OAuth access token. */
3369
+ access_token?:
3370
+ string;
2936
3371
  /** A comma-separated list of parent IDs to add. */
2937
3372
  addParents?:
2938
3373
  string;
2939
- /** Data format for the response. */
3374
+ /** Data format for response. */
2940
3375
  alt?:
2941
3376
  string;
2942
- /** Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. */
3377
+ /** JSONP */
3378
+ callback?:
3379
+ string;
3380
+ /** Deprecated: Adding files to multiple folders is no longer supported. Use shortcuts instead. */
2943
3381
  enforceSingleParent?:
2944
3382
  boolean;
2945
3383
  /** Selector specifying which fields to include in a partial response. */
@@ -2948,7 +3386,7 @@ declare namespace gapi.client {
2948
3386
  /** The ID of the file. */
2949
3387
  fileId:
2950
3388
  string;
2951
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
3389
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
2952
3390
  includeLabels?:
2953
3391
  string;
2954
3392
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -2972,7 +3410,7 @@ declare namespace gapi.client {
2972
3410
  /** Returns response with indentations and line breaks. */
2973
3411
  prettyPrint?:
2974
3412
  boolean;
2975
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3413
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2976
3414
  quotaUser?:
2977
3415
  string;
2978
3416
  /** A comma-separated list of parent IDs to remove. */
@@ -2981,27 +3419,39 @@ declare namespace gapi.client {
2981
3419
  /** Whether the requesting application supports both My Drives and shared drives. */
2982
3420
  supportsAllDrives?:
2983
3421
  boolean;
2984
- /** Deprecated use supportsAllDrives instead. */
3422
+ /** Deprecated: Use `supportsAllDrives` instead. */
2985
3423
  supportsTeamDrives?:
2986
3424
  boolean;
3425
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3426
+ upload_protocol?:
3427
+ string;
3428
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3429
+ uploadType?:
3430
+ string;
2987
3431
  /** Whether to use the uploaded content as indexable text. */
2988
3432
  useContentAsIndexableText?:
2989
3433
  boolean;
2990
- /** Deprecated. Please use quotaUser instead. */
2991
- userIp?:
2992
- string;
2993
3434
  /** Request body */
2994
3435
  resource:
2995
3436
  File;
2996
3437
  }): Request<File>;
2997
3438
  update(request: {
3439
+ /** V1 error format. */
3440
+ "$.xgafv"?:
3441
+ string;
3442
+ /** OAuth access token. */
3443
+ access_token?:
3444
+ string;
2998
3445
  /** A comma-separated list of parent IDs to add. */
2999
3446
  addParents?:
3000
3447
  string;
3001
- /** Data format for the response. */
3448
+ /** Data format for response. */
3002
3449
  alt?:
3003
3450
  string;
3004
- /** Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. */
3451
+ /** JSONP */
3452
+ callback?:
3453
+ string;
3454
+ /** Deprecated: Adding files to multiple folders is no longer supported. Use shortcuts instead. */
3005
3455
  enforceSingleParent?:
3006
3456
  boolean;
3007
3457
  /** Selector specifying which fields to include in a partial response. */
@@ -3010,7 +3460,7 @@ declare namespace gapi.client {
3010
3460
  /** The ID of the file. */
3011
3461
  fileId:
3012
3462
  string;
3013
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
3463
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
3014
3464
  includeLabels?:
3015
3465
  string;
3016
3466
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -3034,7 +3484,7 @@ declare namespace gapi.client {
3034
3484
  /** Returns response with indentations and line breaks. */
3035
3485
  prettyPrint?:
3036
3486
  boolean;
3037
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3487
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3038
3488
  quotaUser?:
3039
3489
  string;
3040
3490
  /** A comma-separated list of parent IDs to remove. */
@@ -3043,32 +3493,44 @@ declare namespace gapi.client {
3043
3493
  /** Whether the requesting application supports both My Drives and shared drives. */
3044
3494
  supportsAllDrives?:
3045
3495
  boolean;
3046
- /** Deprecated use supportsAllDrives instead. */
3496
+ /** Deprecated: Use `supportsAllDrives` instead. */
3047
3497
  supportsTeamDrives?:
3048
3498
  boolean;
3499
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3500
+ upload_protocol?:
3501
+ string;
3502
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3503
+ uploadType?:
3504
+ string;
3049
3505
  /** Whether to use the uploaded content as indexable text. */
3050
3506
  useContentAsIndexableText?:
3051
3507
  boolean;
3052
- /** Deprecated. Please use quotaUser instead. */
3053
- userIp?:
3054
- string;
3055
3508
  },
3056
3509
  body: File): Request<File>;
3057
- /** Subscribe to changes on a file. */
3510
+ /** Subscribes to changes to a file. */
3058
3511
  watch(request: {
3512
+ /** V1 error format. */
3513
+ "$.xgafv"?:
3514
+ string;
3515
+ /** OAuth access token. */
3516
+ access_token?:
3517
+ string;
3059
3518
  /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
3060
3519
  acknowledgeAbuse?:
3061
3520
  boolean;
3062
- /** Data format for the response. */
3521
+ /** Data format for response. */
3063
3522
  alt?:
3064
3523
  string;
3524
+ /** JSONP */
3525
+ callback?:
3526
+ string;
3065
3527
  /** Selector specifying which fields to include in a partial response. */
3066
3528
  fields?:
3067
3529
  string;
3068
3530
  /** The ID of the file. */
3069
3531
  fileId:
3070
3532
  string;
3071
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
3533
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
3072
3534
  includeLabels?:
3073
3535
  string;
3074
3536
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -3083,36 +3545,48 @@ declare namespace gapi.client {
3083
3545
  /** Returns response with indentations and line breaks. */
3084
3546
  prettyPrint?:
3085
3547
  boolean;
3086
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3548
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3087
3549
  quotaUser?:
3088
3550
  string;
3089
3551
  /** Whether the requesting application supports both My Drives and shared drives. */
3090
3552
  supportsAllDrives?:
3091
3553
  boolean;
3092
- /** Deprecated use supportsAllDrives instead. */
3554
+ /** Deprecated: Use `supportsAllDrives` instead. */
3093
3555
  supportsTeamDrives?:
3094
3556
  boolean;
3095
- /** Deprecated. Please use quotaUser instead. */
3096
- userIp?:
3557
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3558
+ upload_protocol?:
3559
+ string;
3560
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3561
+ uploadType?:
3097
3562
  string;
3098
3563
  /** Request body */
3099
3564
  resource:
3100
3565
  Channel;
3101
3566
  }): Request<Channel>;
3102
3567
  watch(request: {
3568
+ /** V1 error format. */
3569
+ "$.xgafv"?:
3570
+ string;
3571
+ /** OAuth access token. */
3572
+ access_token?:
3573
+ string;
3103
3574
  /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
3104
3575
  acknowledgeAbuse?:
3105
3576
  boolean;
3106
- /** Data format for the response. */
3577
+ /** Data format for response. */
3107
3578
  alt?:
3108
3579
  string;
3580
+ /** JSONP */
3581
+ callback?:
3582
+ string;
3109
3583
  /** Selector specifying which fields to include in a partial response. */
3110
3584
  fields?:
3111
3585
  string;
3112
3586
  /** The ID of the file. */
3113
3587
  fileId:
3114
3588
  string;
3115
- /** A comma-separated list of IDs of labels to include in the labelInfo part of the response. */
3589
+ /** A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. */
3116
3590
  includeLabels?:
3117
3591
  string;
3118
3592
  /** Specifies which additional view's permissions to include in the response. Only 'published' is supported. */
@@ -3127,31 +3601,43 @@ declare namespace gapi.client {
3127
3601
  /** Returns response with indentations and line breaks. */
3128
3602
  prettyPrint?:
3129
3603
  boolean;
3130
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3604
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3131
3605
  quotaUser?:
3132
3606
  string;
3133
3607
  /** Whether the requesting application supports both My Drives and shared drives. */
3134
3608
  supportsAllDrives?:
3135
3609
  boolean;
3136
- /** Deprecated use supportsAllDrives instead. */
3610
+ /** Deprecated: Use `supportsAllDrives` instead. */
3137
3611
  supportsTeamDrives?:
3138
3612
  boolean;
3139
- /** Deprecated. Please use quotaUser instead. */
3140
- userIp?:
3613
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3614
+ upload_protocol?:
3615
+ string;
3616
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3617
+ uploadType?:
3141
3618
  string;
3142
3619
  },
3143
3620
  body: Channel): Request<Channel>;
3144
3621
  }
3145
3622
  interface PermissionsResource {
3146
- /** Creates a permission for a file or shared drive. For more information on creating permissions, see Share files, folders & drives. */
3623
+ /** Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied. */
3147
3624
  create(request: {
3148
- /** Data format for the response. */
3625
+ /** V1 error format. */
3626
+ "$.xgafv"?:
3627
+ string;
3628
+ /** OAuth access token. */
3629
+ access_token?:
3630
+ string;
3631
+ /** Data format for response. */
3149
3632
  alt?:
3150
3633
  string;
3634
+ /** JSONP */
3635
+ callback?:
3636
+ string;
3151
3637
  /** A plain text custom message to include in the notification email. */
3152
3638
  emailMessage?:
3153
3639
  string;
3154
- /** Deprecated. See moveToNewOwnersRoot for details. */
3640
+ /** Deprecated: See `moveToNewOwnersRoot` for details. */
3155
3641
  enforceSingleParent?:
3156
3642
  boolean;
3157
3643
  /** Selector specifying which fields to include in a partial response. */
@@ -3164,8 +3650,8 @@ declare namespace gapi.client {
3164
3650
  key?:
3165
3651
  string;
3166
3652
  /**
3167
- * 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
3168
- * moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.
3653
+ * 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
3654
+ * moved to the new owner's My Drive root folder and all prior parents removed. If set to `false`, parents are not changed.
3169
3655
  */
3170
3656
  moveToNewOwnersRoot?:
3171
3657
  boolean;
@@ -3175,7 +3661,7 @@ declare namespace gapi.client {
3175
3661
  /** Returns response with indentations and line breaks. */
3176
3662
  prettyPrint?:
3177
3663
  boolean;
3178
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3664
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3179
3665
  quotaUser?:
3180
3666
  string;
3181
3667
  /**
@@ -3187,38 +3673,45 @@ declare namespace gapi.client {
3187
3673
  /** Whether the requesting application supports both My Drives and shared drives. */
3188
3674
  supportsAllDrives?:
3189
3675
  boolean;
3190
- /** Deprecated use supportsAllDrives instead. */
3676
+ /** Deprecated: Use `supportsAllDrives` instead. */
3191
3677
  supportsTeamDrives?:
3192
3678
  boolean;
3193
- /**
3194
- * 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
3195
- * 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
3196
- * 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
3197
- * them.
3198
- */
3679
+ /** 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. */
3199
3680
  transferOwnership?:
3200
3681
  boolean;
3682
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3683
+ upload_protocol?:
3684
+ string;
3685
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3686
+ uploadType?:
3687
+ string;
3201
3688
  /**
3202
3689
  * 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
3203
3690
  * administrator of the domain to which the shared drive belongs.
3204
3691
  */
3205
3692
  useDomainAdminAccess?:
3206
3693
  boolean;
3207
- /** Deprecated. Please use quotaUser instead. */
3208
- userIp?:
3209
- string;
3210
3694
  /** Request body */
3211
3695
  resource:
3212
3696
  Permission;
3213
3697
  }): Request<Permission>;
3214
3698
  create(request: {
3215
- /** Data format for the response. */
3699
+ /** V1 error format. */
3700
+ "$.xgafv"?:
3701
+ string;
3702
+ /** OAuth access token. */
3703
+ access_token?:
3704
+ string;
3705
+ /** Data format for response. */
3216
3706
  alt?:
3217
3707
  string;
3708
+ /** JSONP */
3709
+ callback?:
3710
+ string;
3218
3711
  /** A plain text custom message to include in the notification email. */
3219
3712
  emailMessage?:
3220
3713
  string;
3221
- /** Deprecated. See moveToNewOwnersRoot for details. */
3714
+ /** Deprecated: See `moveToNewOwnersRoot` for details. */
3222
3715
  enforceSingleParent?:
3223
3716
  boolean;
3224
3717
  /** Selector specifying which fields to include in a partial response. */
@@ -3231,8 +3724,8 @@ declare namespace gapi.client {
3231
3724
  key?:
3232
3725
  string;
3233
3726
  /**
3234
- * 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
3235
- * moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.
3727
+ * 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
3728
+ * moved to the new owner's My Drive root folder and all prior parents removed. If set to `false`, parents are not changed.
3236
3729
  */
3237
3730
  moveToNewOwnersRoot?:
3238
3731
  boolean;
@@ -3242,7 +3735,7 @@ declare namespace gapi.client {
3242
3735
  /** Returns response with indentations and line breaks. */
3243
3736
  prettyPrint?:
3244
3737
  boolean;
3245
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3738
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3246
3739
  quotaUser?:
3247
3740
  string;
3248
3741
  /**
@@ -3254,33 +3747,40 @@ declare namespace gapi.client {
3254
3747
  /** Whether the requesting application supports both My Drives and shared drives. */
3255
3748
  supportsAllDrives?:
3256
3749
  boolean;
3257
- /** Deprecated use supportsAllDrives instead. */
3750
+ /** Deprecated: Use `supportsAllDrives` instead. */
3258
3751
  supportsTeamDrives?:
3259
3752
  boolean;
3260
- /**
3261
- * 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
3262
- * 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
3263
- * 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
3264
- * them.
3265
- */
3753
+ /** 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. */
3266
3754
  transferOwnership?:
3267
3755
  boolean;
3756
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3757
+ upload_protocol?:
3758
+ string;
3759
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3760
+ uploadType?:
3761
+ string;
3268
3762
  /**
3269
3763
  * 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
3270
3764
  * administrator of the domain to which the shared drive belongs.
3271
3765
  */
3272
3766
  useDomainAdminAccess?:
3273
3767
  boolean;
3274
- /** Deprecated. Please use quotaUser instead. */
3275
- userIp?:
3276
- string;
3277
3768
  },
3278
3769
  body: Permission): Request<Permission>;
3279
- /** Deletes a permission. */
3770
+ /** Deletes a permission. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied. */
3280
3771
  delete(request?: {
3281
- /** Data format for the response. */
3772
+ /** V1 error format. */
3773
+ "$.xgafv"?:
3774
+ string;
3775
+ /** OAuth access token. */
3776
+ access_token?:
3777
+ string;
3778
+ /** Data format for response. */
3282
3779
  alt?:
3283
3780
  string;
3781
+ /** JSONP */
3782
+ callback?:
3783
+ string;
3284
3784
  /** Selector specifying which fields to include in a partial response. */
3285
3785
  fields?:
3286
3786
  string;
@@ -3299,30 +3799,42 @@ declare namespace gapi.client {
3299
3799
  /** Returns response with indentations and line breaks. */
3300
3800
  prettyPrint?:
3301
3801
  boolean;
3302
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3802
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3303
3803
  quotaUser?:
3304
3804
  string;
3305
3805
  /** Whether the requesting application supports both My Drives and shared drives. */
3306
3806
  supportsAllDrives?:
3307
3807
  boolean;
3308
- /** Deprecated use supportsAllDrives instead. */
3808
+ /** Deprecated: Use `supportsAllDrives` instead. */
3309
3809
  supportsTeamDrives?:
3310
3810
  boolean;
3811
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3812
+ upload_protocol?:
3813
+ string;
3814
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3815
+ uploadType?:
3816
+ string;
3311
3817
  /**
3312
3818
  * 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
3313
3819
  * administrator of the domain to which the shared drive belongs.
3314
3820
  */
3315
3821
  useDomainAdminAccess?:
3316
3822
  boolean;
3317
- /** Deprecated. Please use quotaUser instead. */
3318
- userIp?:
3319
- string;
3320
3823
  }): Request<void>;
3321
3824
  /** Gets a permission by ID. */
3322
3825
  get(request?: {
3323
- /** Data format for the response. */
3826
+ /** V1 error format. */
3827
+ "$.xgafv"?:
3828
+ string;
3829
+ /** OAuth access token. */
3830
+ access_token?:
3831
+ string;
3832
+ /** Data format for response. */
3324
3833
  alt?:
3325
3834
  string;
3835
+ /** JSONP */
3836
+ callback?:
3837
+ string;
3326
3838
  /** Selector specifying which fields to include in a partial response. */
3327
3839
  fields?:
3328
3840
  string;
@@ -3341,30 +3853,42 @@ declare namespace gapi.client {
3341
3853
  /** Returns response with indentations and line breaks. */
3342
3854
  prettyPrint?:
3343
3855
  boolean;
3344
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3856
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3345
3857
  quotaUser?:
3346
3858
  string;
3347
3859
  /** Whether the requesting application supports both My Drives and shared drives. */
3348
3860
  supportsAllDrives?:
3349
3861
  boolean;
3350
- /** Deprecated use supportsAllDrives instead. */
3862
+ /** Deprecated: Use `supportsAllDrives` instead. */
3351
3863
  supportsTeamDrives?:
3352
3864
  boolean;
3865
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3866
+ upload_protocol?:
3867
+ string;
3868
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3869
+ uploadType?:
3870
+ string;
3353
3871
  /**
3354
3872
  * 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
3355
3873
  * administrator of the domain to which the shared drive belongs.
3356
3874
  */
3357
3875
  useDomainAdminAccess?:
3358
3876
  boolean;
3359
- /** Deprecated. Please use quotaUser instead. */
3360
- userIp?:
3361
- string;
3362
3877
  }): Request<Permission>;
3363
3878
  /** Lists a file's or shared drive's permissions. */
3364
3879
  list(request?: {
3365
- /** Data format for the response. */
3880
+ /** V1 error format. */
3881
+ "$.xgafv"?:
3882
+ string;
3883
+ /** OAuth access token. */
3884
+ access_token?:
3885
+ string;
3886
+ /** Data format for response. */
3366
3887
  alt?:
3367
3888
  string;
3889
+ /** JSONP */
3890
+ callback?:
3891
+ string;
3368
3892
  /** Selector specifying which fields to include in a partial response. */
3369
3893
  fields?:
3370
3894
  string;
@@ -3392,30 +3916,42 @@ declare namespace gapi.client {
3392
3916
  /** Returns response with indentations and line breaks. */
3393
3917
  prettyPrint?:
3394
3918
  boolean;
3395
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3919
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3396
3920
  quotaUser?:
3397
3921
  string;
3398
3922
  /** Whether the requesting application supports both My Drives and shared drives. */
3399
3923
  supportsAllDrives?:
3400
3924
  boolean;
3401
- /** Deprecated use supportsAllDrives instead. */
3925
+ /** Deprecated: Use `supportsAllDrives` instead. */
3402
3926
  supportsTeamDrives?:
3403
3927
  boolean;
3928
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3929
+ upload_protocol?:
3930
+ string;
3931
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3932
+ uploadType?:
3933
+ string;
3404
3934
  /**
3405
3935
  * 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
3406
3936
  * administrator of the domain to which the shared drive belongs.
3407
3937
  */
3408
3938
  useDomainAdminAccess?:
3409
3939
  boolean;
3410
- /** Deprecated. Please use quotaUser instead. */
3411
- userIp?:
3412
- string;
3413
3940
  }): Request<PermissionList>;
3414
- /** Updates a permission with patch semantics. */
3941
+ /** Updates a permission with patch semantics. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied. */
3415
3942
  update(request: {
3416
- /** Data format for the response. */
3943
+ /** V1 error format. */
3944
+ "$.xgafv"?:
3945
+ string;
3946
+ /** OAuth access token. */
3947
+ access_token?:
3948
+ string;
3949
+ /** Data format for response. */
3417
3950
  alt?:
3418
3951
  string;
3952
+ /** JSONP */
3953
+ callback?:
3954
+ string;
3419
3955
  /** Selector specifying which fields to include in a partial response. */
3420
3956
  fields?:
3421
3957
  string;
@@ -3434,7 +3970,7 @@ declare namespace gapi.client {
3434
3970
  /** Returns response with indentations and line breaks. */
3435
3971
  prettyPrint?:
3436
3972
  boolean;
3437
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3973
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3438
3974
  quotaUser?:
3439
3975
  string;
3440
3976
  /** Whether to remove the expiration date. */
@@ -3443,34 +3979,41 @@ declare namespace gapi.client {
3443
3979
  /** Whether the requesting application supports both My Drives and shared drives. */
3444
3980
  supportsAllDrives?:
3445
3981
  boolean;
3446
- /** Deprecated use supportsAllDrives instead. */
3982
+ /** Deprecated: Use `supportsAllDrives` instead. */
3447
3983
  supportsTeamDrives?:
3448
3984
  boolean;
3449
- /**
3450
- * 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
3451
- * 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
3452
- * 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
3453
- * them.
3454
- */
3985
+ /** 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. */
3455
3986
  transferOwnership?:
3456
3987
  boolean;
3988
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3989
+ upload_protocol?:
3990
+ string;
3991
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3992
+ uploadType?:
3993
+ string;
3457
3994
  /**
3458
3995
  * 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
3459
3996
  * administrator of the domain to which the shared drive belongs.
3460
3997
  */
3461
3998
  useDomainAdminAccess?:
3462
3999
  boolean;
3463
- /** Deprecated. Please use quotaUser instead. */
3464
- userIp?:
3465
- string;
3466
4000
  /** Request body */
3467
4001
  resource:
3468
4002
  Permission;
3469
4003
  }): Request<Permission>;
3470
4004
  update(request: {
3471
- /** Data format for the response. */
4005
+ /** V1 error format. */
4006
+ "$.xgafv"?:
4007
+ string;
4008
+ /** OAuth access token. */
4009
+ access_token?:
4010
+ string;
4011
+ /** Data format for response. */
3472
4012
  alt?:
3473
4013
  string;
4014
+ /** JSONP */
4015
+ callback?:
4016
+ string;
3474
4017
  /** Selector specifying which fields to include in a partial response. */
3475
4018
  fields?:
3476
4019
  string;
@@ -3489,7 +4032,7 @@ declare namespace gapi.client {
3489
4032
  /** Returns response with indentations and line breaks. */
3490
4033
  prettyPrint?:
3491
4034
  boolean;
3492
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4035
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3493
4036
  quotaUser?:
3494
4037
  string;
3495
4038
  /** Whether to remove the expiration date. */
@@ -3498,35 +4041,42 @@ declare namespace gapi.client {
3498
4041
  /** Whether the requesting application supports both My Drives and shared drives. */
3499
4042
  supportsAllDrives?:
3500
4043
  boolean;
3501
- /** Deprecated use supportsAllDrives instead. */
4044
+ /** Deprecated: Use `supportsAllDrives` instead. */
3502
4045
  supportsTeamDrives?:
3503
4046
  boolean;
3504
- /**
3505
- * 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
3506
- * 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
3507
- * 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
3508
- * them.
3509
- */
4047
+ /** 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. */
3510
4048
  transferOwnership?:
3511
4049
  boolean;
4050
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4051
+ upload_protocol?:
4052
+ string;
4053
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4054
+ uploadType?:
4055
+ string;
3512
4056
  /**
3513
4057
  * 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
3514
4058
  * administrator of the domain to which the shared drive belongs.
3515
4059
  */
3516
4060
  useDomainAdminAccess?:
3517
4061
  boolean;
3518
- /** Deprecated. Please use quotaUser instead. */
3519
- userIp?:
3520
- string;
3521
4062
  },
3522
4063
  body: Permission): Request<Permission>;
3523
4064
  }
3524
4065
  interface RepliesResource {
3525
4066
  /** Creates a reply to a comment. */
3526
4067
  create(request: {
3527
- /** Data format for the response. */
4068
+ /** V1 error format. */
4069
+ "$.xgafv"?:
4070
+ string;
4071
+ /** OAuth access token. */
4072
+ access_token?:
4073
+ string;
4074
+ /** Data format for response. */
3528
4075
  alt?:
3529
4076
  string;
4077
+ /** JSONP */
4078
+ callback?:
4079
+ string;
3530
4080
  /** The ID of the comment. */
3531
4081
  commentId:
3532
4082
  string;
@@ -3545,20 +4095,32 @@ declare namespace gapi.client {
3545
4095
  /** Returns response with indentations and line breaks. */
3546
4096
  prettyPrint?:
3547
4097
  boolean;
3548
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4098
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3549
4099
  quotaUser?:
3550
4100
  string;
3551
- /** Deprecated. Please use quotaUser instead. */
3552
- userIp?:
4101
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4102
+ upload_protocol?:
4103
+ string;
4104
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4105
+ uploadType?:
3553
4106
  string;
3554
4107
  /** Request body */
3555
4108
  resource:
3556
4109
  Reply;
3557
4110
  }): Request<Reply>;
3558
4111
  create(request: {
3559
- /** Data format for the response. */
4112
+ /** V1 error format. */
4113
+ "$.xgafv"?:
4114
+ string;
4115
+ /** OAuth access token. */
4116
+ access_token?:
4117
+ string;
4118
+ /** Data format for response. */
3560
4119
  alt?:
3561
4120
  string;
4121
+ /** JSONP */
4122
+ callback?:
4123
+ string;
3562
4124
  /** The ID of the comment. */
3563
4125
  commentId:
3564
4126
  string;
@@ -3577,19 +4139,31 @@ declare namespace gapi.client {
3577
4139
  /** Returns response with indentations and line breaks. */
3578
4140
  prettyPrint?:
3579
4141
  boolean;
3580
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4142
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3581
4143
  quotaUser?:
3582
4144
  string;
3583
- /** Deprecated. Please use quotaUser instead. */
3584
- userIp?:
4145
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4146
+ upload_protocol?:
4147
+ string;
4148
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4149
+ uploadType?:
3585
4150
  string;
3586
4151
  },
3587
4152
  body: Reply): Request<Reply>;
3588
4153
  /** Deletes a reply. */
3589
4154
  delete(request?: {
3590
- /** Data format for the response. */
4155
+ /** V1 error format. */
4156
+ "$.xgafv"?:
4157
+ string;
4158
+ /** OAuth access token. */
4159
+ access_token?:
4160
+ string;
4161
+ /** Data format for response. */
3591
4162
  alt?:
3592
4163
  string;
4164
+ /** JSONP */
4165
+ callback?:
4166
+ string;
3593
4167
  /** The ID of the comment. */
3594
4168
  commentId:
3595
4169
  string;
@@ -3608,21 +4182,33 @@ declare namespace gapi.client {
3608
4182
  /** Returns response with indentations and line breaks. */
3609
4183
  prettyPrint?:
3610
4184
  boolean;
3611
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4185
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3612
4186
  quotaUser?:
3613
4187
  string;
3614
4188
  /** The ID of the reply. */
3615
4189
  replyId:
3616
4190
  string;
3617
- /** Deprecated. Please use quotaUser instead. */
3618
- userIp?:
4191
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4192
+ upload_protocol?:
4193
+ string;
4194
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4195
+ uploadType?:
3619
4196
  string;
3620
4197
  }): Request<void>;
3621
4198
  /** Gets a reply by ID. */
3622
4199
  get(request?: {
3623
- /** Data format for the response. */
4200
+ /** V1 error format. */
4201
+ "$.xgafv"?:
4202
+ string;
4203
+ /** OAuth access token. */
4204
+ access_token?:
4205
+ string;
4206
+ /** Data format for response. */
3624
4207
  alt?:
3625
4208
  string;
4209
+ /** JSONP */
4210
+ callback?:
4211
+ string;
3626
4212
  /** The ID of the comment. */
3627
4213
  commentId:
3628
4214
  string;
@@ -3644,21 +4230,33 @@ declare namespace gapi.client {
3644
4230
  /** Returns response with indentations and line breaks. */
3645
4231
  prettyPrint?:
3646
4232
  boolean;
3647
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4233
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3648
4234
  quotaUser?:
3649
4235
  string;
3650
4236
  /** The ID of the reply. */
3651
4237
  replyId:
3652
4238
  string;
3653
- /** Deprecated. Please use quotaUser instead. */
3654
- userIp?:
4239
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4240
+ upload_protocol?:
4241
+ string;
4242
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4243
+ uploadType?:
3655
4244
  string;
3656
4245
  }): Request<Reply>;
3657
4246
  /** Lists a comment's replies. */
3658
4247
  list(request?: {
3659
- /** Data format for the response. */
4248
+ /** V1 error format. */
4249
+ "$.xgafv"?:
4250
+ string;
4251
+ /** OAuth access token. */
4252
+ access_token?:
4253
+ string;
4254
+ /** Data format for response. */
3660
4255
  alt?:
3661
4256
  string;
4257
+ /** JSONP */
4258
+ callback?:
4259
+ string;
3662
4260
  /** The ID of the comment. */
3663
4261
  commentId:
3664
4262
  string;
@@ -3686,18 +4284,30 @@ declare namespace gapi.client {
3686
4284
  /** Returns response with indentations and line breaks. */
3687
4285
  prettyPrint?:
3688
4286
  boolean;
3689
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4287
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3690
4288
  quotaUser?:
3691
4289
  string;
3692
- /** Deprecated. Please use quotaUser instead. */
3693
- userIp?:
4290
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4291
+ upload_protocol?:
4292
+ string;
4293
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4294
+ uploadType?:
3694
4295
  string;
3695
4296
  }): Request<ReplyList>;
3696
4297
  /** Updates a reply with patch semantics. */
3697
4298
  update(request: {
3698
- /** Data format for the response. */
4299
+ /** V1 error format. */
4300
+ "$.xgafv"?:
4301
+ string;
4302
+ /** OAuth access token. */
4303
+ access_token?:
4304
+ string;
4305
+ /** Data format for response. */
3699
4306
  alt?:
3700
4307
  string;
4308
+ /** JSONP */
4309
+ callback?:
4310
+ string;
3701
4311
  /** The ID of the comment. */
3702
4312
  commentId:
3703
4313
  string;
@@ -3716,23 +4326,35 @@ declare namespace gapi.client {
3716
4326
  /** Returns response with indentations and line breaks. */
3717
4327
  prettyPrint?:
3718
4328
  boolean;
3719
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4329
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3720
4330
  quotaUser?:
3721
4331
  string;
3722
4332
  /** The ID of the reply. */
3723
4333
  replyId:
3724
4334
  string;
3725
- /** Deprecated. Please use quotaUser instead. */
3726
- userIp?:
4335
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4336
+ upload_protocol?:
4337
+ string;
4338
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4339
+ uploadType?:
3727
4340
  string;
3728
4341
  /** Request body */
3729
4342
  resource:
3730
4343
  Reply;
3731
4344
  }): Request<Reply>;
3732
4345
  update(request: {
3733
- /** Data format for the response. */
4346
+ /** V1 error format. */
4347
+ "$.xgafv"?:
4348
+ string;
4349
+ /** OAuth access token. */
4350
+ access_token?:
4351
+ string;
4352
+ /** Data format for response. */
3734
4353
  alt?:
3735
4354
  string;
4355
+ /** JSONP */
4356
+ callback?:
4357
+ string;
3736
4358
  /** The ID of the comment. */
3737
4359
  commentId:
3738
4360
  string;
@@ -3751,14 +4373,17 @@ declare namespace gapi.client {
3751
4373
  /** Returns response with indentations and line breaks. */
3752
4374
  prettyPrint?:
3753
4375
  boolean;
3754
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4376
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3755
4377
  quotaUser?:
3756
4378
  string;
3757
4379
  /** The ID of the reply. */
3758
4380
  replyId:
3759
4381
  string;
3760
- /** Deprecated. Please use quotaUser instead. */
3761
- userIp?:
4382
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4383
+ upload_protocol?:
4384
+ string;
4385
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4386
+ uploadType?:
3762
4387
  string;
3763
4388
  },
3764
4389
  body: Reply): Request<Reply>;
@@ -3769,9 +4394,18 @@ declare namespace gapi.client {
3769
4394
  * or Sheets, and the last remaining file version can't be deleted.
3770
4395
  */
3771
4396
  delete(request?: {
3772
- /** Data format for the response. */
4397
+ /** V1 error format. */
4398
+ "$.xgafv"?:
4399
+ string;
4400
+ /** OAuth access token. */
4401
+ access_token?:
4402
+ string;
4403
+ /** Data format for response. */
3773
4404
  alt?:
3774
4405
  string;
4406
+ /** JSONP */
4407
+ callback?:
4408
+ string;
3775
4409
  /** Selector specifying which fields to include in a partial response. */
3776
4410
  fields?:
3777
4411
  string;
@@ -3787,24 +4421,36 @@ declare namespace gapi.client {
3787
4421
  /** Returns response with indentations and line breaks. */
3788
4422
  prettyPrint?:
3789
4423
  boolean;
3790
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4424
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3791
4425
  quotaUser?:
3792
4426
  string;
3793
4427
  /** The ID of the revision. */
3794
4428
  revisionId:
3795
4429
  string;
3796
- /** Deprecated. Please use quotaUser instead. */
3797
- userIp?:
4430
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4431
+ upload_protocol?:
4432
+ string;
4433
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4434
+ uploadType?:
3798
4435
  string;
3799
4436
  }): Request<void>;
3800
4437
  /** Gets a revision's metadata or content by ID. */
3801
4438
  get(request?: {
4439
+ /** V1 error format. */
4440
+ "$.xgafv"?:
4441
+ string;
4442
+ /** OAuth access token. */
4443
+ access_token?:
4444
+ string;
3802
4445
  /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. */
3803
4446
  acknowledgeAbuse?:
3804
4447
  boolean;
3805
- /** Data format for the response. */
4448
+ /** Data format for response. */
3806
4449
  alt?:
3807
4450
  string;
4451
+ /** JSONP */
4452
+ callback?:
4453
+ string;
3808
4454
  /** Selector specifying which fields to include in a partial response. */
3809
4455
  fields?:
3810
4456
  string;
@@ -3820,21 +4466,33 @@ declare namespace gapi.client {
3820
4466
  /** Returns response with indentations and line breaks. */
3821
4467
  prettyPrint?:
3822
4468
  boolean;
3823
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4469
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3824
4470
  quotaUser?:
3825
4471
  string;
3826
4472
  /** The ID of the revision. */
3827
4473
  revisionId:
3828
4474
  string;
3829
- /** Deprecated. Please use quotaUser instead. */
3830
- userIp?:
4475
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4476
+ upload_protocol?:
4477
+ string;
4478
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4479
+ uploadType?:
3831
4480
  string;
3832
4481
  }): Request<Revision>;
3833
4482
  /** Lists a file's revisions. */
3834
4483
  list(request?: {
3835
- /** Data format for the response. */
4484
+ /** V1 error format. */
4485
+ "$.xgafv"?:
4486
+ string;
4487
+ /** OAuth access token. */
4488
+ access_token?:
4489
+ string;
4490
+ /** Data format for response. */
3836
4491
  alt?:
3837
4492
  string;
4493
+ /** JSONP */
4494
+ callback?:
4495
+ string;
3838
4496
  /** Selector specifying which fields to include in a partial response. */
3839
4497
  fields?:
3840
4498
  string;
@@ -3856,18 +4514,30 @@ declare namespace gapi.client {
3856
4514
  /** Returns response with indentations and line breaks. */
3857
4515
  prettyPrint?:
3858
4516
  boolean;
3859
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4517
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3860
4518
  quotaUser?:
3861
4519
  string;
3862
- /** Deprecated. Please use quotaUser instead. */
3863
- userIp?:
4520
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4521
+ upload_protocol?:
4522
+ string;
4523
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4524
+ uploadType?:
3864
4525
  string;
3865
4526
  }): Request<RevisionList>;
3866
4527
  /** Updates a revision with patch semantics. */
3867
4528
  update(request: {
3868
- /** Data format for the response. */
4529
+ /** V1 error format. */
4530
+ "$.xgafv"?:
4531
+ string;
4532
+ /** OAuth access token. */
4533
+ access_token?:
4534
+ string;
4535
+ /** Data format for response. */
3869
4536
  alt?:
3870
4537
  string;
4538
+ /** JSONP */
4539
+ callback?:
4540
+ string;
3871
4541
  /** Selector specifying which fields to include in a partial response. */
3872
4542
  fields?:
3873
4543
  string;
@@ -3883,23 +4553,35 @@ declare namespace gapi.client {
3883
4553
  /** Returns response with indentations and line breaks. */
3884
4554
  prettyPrint?:
3885
4555
  boolean;
3886
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4556
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3887
4557
  quotaUser?:
3888
4558
  string;
3889
4559
  /** The ID of the revision. */
3890
4560
  revisionId:
3891
4561
  string;
3892
- /** Deprecated. Please use quotaUser instead. */
3893
- userIp?:
4562
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4563
+ upload_protocol?:
4564
+ string;
4565
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4566
+ uploadType?:
3894
4567
  string;
3895
4568
  /** Request body */
3896
4569
  resource:
3897
4570
  Revision;
3898
4571
  }): Request<Revision>;
3899
4572
  update(request: {
3900
- /** Data format for the response. */
4573
+ /** V1 error format. */
4574
+ "$.xgafv"?:
4575
+ string;
4576
+ /** OAuth access token. */
4577
+ access_token?:
4578
+ string;
4579
+ /** Data format for response. */
3901
4580
  alt?:
3902
4581
  string;
4582
+ /** JSONP */
4583
+ callback?:
4584
+ string;
3903
4585
  /** Selector specifying which fields to include in a partial response. */
3904
4586
  fields?:
3905
4587
  string;
@@ -3915,24 +4597,36 @@ declare namespace gapi.client {
3915
4597
  /** Returns response with indentations and line breaks. */
3916
4598
  prettyPrint?:
3917
4599
  boolean;
3918
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4600
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3919
4601
  quotaUser?:
3920
4602
  string;
3921
4603
  /** The ID of the revision. */
3922
4604
  revisionId:
3923
4605
  string;
3924
- /** Deprecated. Please use quotaUser instead. */
3925
- userIp?:
4606
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4607
+ upload_protocol?:
4608
+ string;
4609
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4610
+ uploadType?:
3926
4611
  string;
3927
4612
  },
3928
4613
  body: Revision): Request<Revision>;
3929
4614
  }
3930
4615
  interface TeamdrivesResource {
3931
- /** Deprecated use drives.create instead. */
4616
+ /** Deprecated: Use `drives.create` instead. */
3932
4617
  create(request: {
3933
- /** Data format for the response. */
4618
+ /** V1 error format. */
4619
+ "$.xgafv"?:
4620
+ string;
4621
+ /** OAuth access token. */
4622
+ access_token?:
4623
+ string;
4624
+ /** Data format for response. */
3934
4625
  alt?:
3935
4626
  string;
4627
+ /** JSONP */
4628
+ callback?:
4629
+ string;
3936
4630
  /** Selector specifying which fields to include in a partial response. */
3937
4631
  fields?:
3938
4632
  string;
@@ -3945,26 +4639,38 @@ declare namespace gapi.client {
3945
4639
  /** Returns response with indentations and line breaks. */
3946
4640
  prettyPrint?:
3947
4641
  boolean;
3948
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4642
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3949
4643
  quotaUser?:
3950
4644
  string;
3951
4645
  /**
3952
- * 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
3953
- * 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.
4646
+ * Required. 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
4647
+ * same 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.
3954
4648
  */
3955
4649
  requestId:
3956
4650
  string;
3957
- /** Deprecated. Please use quotaUser instead. */
3958
- userIp?:
4651
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4652
+ upload_protocol?:
4653
+ string;
4654
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4655
+ uploadType?:
3959
4656
  string;
3960
4657
  /** Request body */
3961
4658
  resource:
3962
4659
  TeamDrive;
3963
4660
  }): Request<TeamDrive>;
3964
4661
  create(request: {
3965
- /** Data format for the response. */
4662
+ /** V1 error format. */
4663
+ "$.xgafv"?:
4664
+ string;
4665
+ /** OAuth access token. */
4666
+ access_token?:
4667
+ string;
4668
+ /** Data format for response. */
3966
4669
  alt?:
3967
4670
  string;
4671
+ /** JSONP */
4672
+ callback?:
4673
+ string;
3968
4674
  /** Selector specifying which fields to include in a partial response. */
3969
4675
  fields?:
3970
4676
  string;
@@ -3977,25 +4683,37 @@ declare namespace gapi.client {
3977
4683
  /** Returns response with indentations and line breaks. */
3978
4684
  prettyPrint?:
3979
4685
  boolean;
3980
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4686
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3981
4687
  quotaUser?:
3982
4688
  string;
3983
4689
  /**
3984
- * 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
3985
- * 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.
4690
+ * Required. 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
4691
+ * same 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.
3986
4692
  */
3987
4693
  requestId:
3988
4694
  string;
3989
- /** Deprecated. Please use quotaUser instead. */
3990
- userIp?:
4695
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4696
+ upload_protocol?:
4697
+ string;
4698
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4699
+ uploadType?:
3991
4700
  string;
3992
4701
  },
3993
4702
  body: TeamDrive): Request<TeamDrive>;
3994
- /** Deprecated use drives.delete instead. */
4703
+ /** Deprecated: Use `drives.delete` instead. */
3995
4704
  delete(request?: {
3996
- /** Data format for the response. */
4705
+ /** V1 error format. */
4706
+ "$.xgafv"?:
4707
+ string;
4708
+ /** OAuth access token. */
4709
+ access_token?:
4710
+ string;
4711
+ /** Data format for response. */
3997
4712
  alt?:
3998
4713
  string;
4714
+ /** JSONP */
4715
+ callback?:
4716
+ string;
3999
4717
  /** Selector specifying which fields to include in a partial response. */
4000
4718
  fields?:
4001
4719
  string;
@@ -4008,21 +4726,33 @@ declare namespace gapi.client {
4008
4726
  /** Returns response with indentations and line breaks. */
4009
4727
  prettyPrint?:
4010
4728
  boolean;
4011
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4729
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4012
4730
  quotaUser?:
4013
4731
  string;
4014
4732
  /** The ID of the Team Drive */
4015
4733
  teamDriveId:
4016
4734
  string;
4017
- /** Deprecated. Please use quotaUser instead. */
4018
- userIp?:
4735
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4736
+ upload_protocol?:
4737
+ string;
4738
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4739
+ uploadType?:
4019
4740
  string;
4020
4741
  }): Request<void>;
4021
- /** Deprecated use drives.get instead. */
4742
+ /** Deprecated: Use `drives.get` instead. */
4022
4743
  get(request?: {
4023
- /** Data format for the response. */
4744
+ /** V1 error format. */
4745
+ "$.xgafv"?:
4746
+ string;
4747
+ /** OAuth access token. */
4748
+ access_token?:
4749
+ string;
4750
+ /** Data format for response. */
4024
4751
  alt?:
4025
4752
  string;
4753
+ /** JSONP */
4754
+ callback?:
4755
+ string;
4026
4756
  /** Selector specifying which fields to include in a partial response. */
4027
4757
  fields?:
4028
4758
  string;
@@ -4035,27 +4765,39 @@ declare namespace gapi.client {
4035
4765
  /** Returns response with indentations and line breaks. */
4036
4766
  prettyPrint?:
4037
4767
  boolean;
4038
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4768
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4039
4769
  quotaUser?:
4040
4770
  string;
4041
4771
  /** The ID of the Team Drive */
4042
4772
  teamDriveId:
4043
4773
  string;
4774
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4775
+ upload_protocol?:
4776
+ string;
4777
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4778
+ uploadType?:
4779
+ string;
4044
4780
  /**
4045
4781
  * 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
4046
4782
  * belongs.
4047
4783
  */
4048
4784
  useDomainAdminAccess?:
4049
4785
  boolean;
4050
- /** Deprecated. Please use quotaUser instead. */
4051
- userIp?:
4052
- string;
4053
4786
  }): Request<TeamDrive>;
4054
- /** Deprecated use drives.list instead. */
4787
+ /** Deprecated: Use `drives.list` instead. */
4055
4788
  list(request?: {
4056
- /** Data format for the response. */
4789
+ /** V1 error format. */
4790
+ "$.xgafv"?:
4791
+ string;
4792
+ /** OAuth access token. */
4793
+ access_token?:
4794
+ string;
4795
+ /** Data format for response. */
4057
4796
  alt?:
4058
4797
  string;
4798
+ /** JSONP */
4799
+ callback?:
4800
+ string;
4059
4801
  /** Selector specifying which fields to include in a partial response. */
4060
4802
  fields?:
4061
4803
  string;
@@ -4077,21 +4819,33 @@ declare namespace gapi.client {
4077
4819
  /** Query string for searching Team Drives. */
4078
4820
  q?:
4079
4821
  string;
4080
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4822
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4081
4823
  quotaUser?:
4082
4824
  string;
4825
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4826
+ upload_protocol?:
4827
+ string;
4828
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4829
+ uploadType?:
4830
+ string;
4083
4831
  /** 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. */
4084
4832
  useDomainAdminAccess?:
4085
4833
  boolean;
4086
- /** Deprecated. Please use quotaUser instead. */
4087
- userIp?:
4088
- string;
4089
4834
  }): Request<TeamDriveList>;
4090
- /** Deprecated use drives.update instead */
4835
+ /** Deprecated: Use `drives.update` instead. */
4091
4836
  update(request: {
4092
- /** Data format for the response. */
4837
+ /** V1 error format. */
4838
+ "$.xgafv"?:
4839
+ string;
4840
+ /** OAuth access token. */
4841
+ access_token?:
4842
+ string;
4843
+ /** Data format for response. */
4093
4844
  alt?:
4094
4845
  string;
4846
+ /** JSONP */
4847
+ callback?:
4848
+ string;
4095
4849
  /** Selector specifying which fields to include in a partial response. */
4096
4850
  fields?:
4097
4851
  string;
@@ -4104,29 +4858,41 @@ declare namespace gapi.client {
4104
4858
  /** Returns response with indentations and line breaks. */
4105
4859
  prettyPrint?:
4106
4860
  boolean;
4107
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4861
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4108
4862
  quotaUser?:
4109
4863
  string;
4110
4864
  /** The ID of the Team Drive */
4111
4865
  teamDriveId:
4112
4866
  string;
4867
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4868
+ upload_protocol?:
4869
+ string;
4870
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4871
+ uploadType?:
4872
+ string;
4113
4873
  /**
4114
4874
  * 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
4115
4875
  * belongs.
4116
4876
  */
4117
4877
  useDomainAdminAccess?:
4118
4878
  boolean;
4119
- /** Deprecated. Please use quotaUser instead. */
4120
- userIp?:
4121
- string;
4122
4879
  /** Request body */
4123
4880
  resource:
4124
4881
  TeamDrive;
4125
4882
  }): Request<TeamDrive>;
4126
4883
  update(request: {
4127
- /** Data format for the response. */
4884
+ /** V1 error format. */
4885
+ "$.xgafv"?:
4886
+ string;
4887
+ /** OAuth access token. */
4888
+ access_token?:
4889
+ string;
4890
+ /** Data format for response. */
4128
4891
  alt?:
4129
4892
  string;
4893
+ /** JSONP */
4894
+ callback?:
4895
+ string;
4130
4896
  /** Selector specifying which fields to include in a partial response. */
4131
4897
  fields?:
4132
4898
  string;
@@ -4139,21 +4905,24 @@ declare namespace gapi.client {
4139
4905
  /** Returns response with indentations and line breaks. */
4140
4906
  prettyPrint?:
4141
4907
  boolean;
4142
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4908
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4143
4909
  quotaUser?:
4144
4910
  string;
4145
4911
  /** The ID of the Team Drive */
4146
4912
  teamDriveId:
4147
4913
  string;
4914
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4915
+ upload_protocol?:
4916
+ string;
4917
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4918
+ uploadType?:
4919
+ string;
4148
4920
  /**
4149
4921
  * 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
4150
4922
  * belongs.
4151
4923
  */
4152
4924
  useDomainAdminAccess?:
4153
4925
  boolean;
4154
- /** Deprecated. Please use quotaUser instead. */
4155
- userIp?:
4156
- string;
4157
4926
  },
4158
4927
  body: TeamDrive): Request<TeamDrive>;
4159
4928
  }