@maxim_mazurok/gapi.client.drive-v3 0.0.20250326 → 0.0.20250401
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +20 -20
- package/package.json +1 -1
- package/readme.md +18 -18
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* Type definitions for non-npm package Google Drive API v3 0.0 */
|
2
|
-
// Project: https://developers.google.com/drive/
|
2
|
+
// Project: https://developers.google.com/workspace/drive/
|
3
3
|
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
@@ -9,7 +9,7 @@
|
|
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:
|
12
|
+
// Revision: 20250401
|
13
13
|
|
14
14
|
/// <reference types="gapi.client" />
|
15
15
|
|
@@ -222,7 +222,7 @@ declare namespace gapi.client {
|
|
222
222
|
type?: string;
|
223
223
|
}
|
224
224
|
interface Comment {
|
225
|
-
/** A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and replies](https://developers.google.com/drive/api/v3/manage-comments). */
|
225
|
+
/** A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and replies](https://developers.google.com/workspace/drive/api/v3/manage-comments). */
|
226
226
|
anchor?: string;
|
227
227
|
/** Output only. The author of the comment. The author's email address and permission ID will not be populated. */
|
228
228
|
author?: User;
|
@@ -1062,7 +1062,7 @@ declare namespace gapi.client {
|
|
1062
1062
|
photoLink?: string;
|
1063
1063
|
}
|
1064
1064
|
interface AboutResource {
|
1065
|
-
/** Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/drive/api/guides/user-info). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter). */
|
1065
|
+
/** Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). */
|
1066
1066
|
get(request?: {
|
1067
1067
|
/** V1 error format. */
|
1068
1068
|
'$.xgafv'?: string;
|
@@ -1213,7 +1213,7 @@ declare namespace gapi.client {
|
|
1213
1213
|
): Request<void>;
|
1214
1214
|
}
|
1215
1215
|
interface AppsResource {
|
1216
|
-
/** Gets a specific app. For more information, see [Return user info](https://developers.google.com/drive/api/guides/user-info). */
|
1216
|
+
/** Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). */
|
1217
1217
|
get(request?: {
|
1218
1218
|
/** V1 error format. */
|
1219
1219
|
'$.xgafv'?: string;
|
@@ -1240,7 +1240,7 @@ declare namespace gapi.client {
|
|
1240
1240
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1241
1241
|
uploadType?: string;
|
1242
1242
|
}): Request<App>;
|
1243
|
-
/** Lists a user's installed apps. For more information, see [Return user info](https://developers.google.com/drive/api/guides/user-info). */
|
1243
|
+
/** Lists a user's installed apps. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). */
|
1244
1244
|
list(request?: {
|
1245
1245
|
/** V1 error format. */
|
1246
1246
|
'$.xgafv'?: string;
|
@@ -1273,7 +1273,7 @@ declare namespace gapi.client {
|
|
1273
1273
|
}): Request<AppList>;
|
1274
1274
|
}
|
1275
1275
|
interface ChangesResource {
|
1276
|
-
/** Gets the starting pageToken for listing future changes. For more information, see [Retrieve changes](https://developers.google.com/drive/api/guides/manage-changes). */
|
1276
|
+
/** Gets the starting pageToken for listing future changes. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-changes). */
|
1277
1277
|
getStartPageToken(request?: {
|
1278
1278
|
/** V1 error format. */
|
1279
1279
|
'$.xgafv'?: string;
|
@@ -1306,7 +1306,7 @@ declare namespace gapi.client {
|
|
1306
1306
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1307
1307
|
uploadType?: string;
|
1308
1308
|
}): Request<StartPageToken>;
|
1309
|
-
/** Lists the changes for a user or shared drive. For more information, see [Retrieve changes](https://developers.google.com/drive/api/guides/manage-changes). */
|
1309
|
+
/** Lists the changes for a user or shared drive. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-changes). */
|
1310
1310
|
list(request?: {
|
1311
1311
|
/** V1 error format. */
|
1312
1312
|
'$.xgafv'?: string;
|
@@ -1359,7 +1359,7 @@ declare namespace gapi.client {
|
|
1359
1359
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1360
1360
|
uploadType?: string;
|
1361
1361
|
}): Request<ChangeList>;
|
1362
|
-
/** Subscribes to changes for a user. For more information, see [Notifications for resource changes](https://developers.google.com/drive/api/guides/push). */
|
1362
|
+
/** Subscribes to changes for a user. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push). */
|
1363
1363
|
watch(request: {
|
1364
1364
|
/** V1 error format. */
|
1365
1365
|
'$.xgafv'?: string;
|
@@ -1471,7 +1471,7 @@ declare namespace gapi.client {
|
|
1471
1471
|
): Request<Channel>;
|
1472
1472
|
}
|
1473
1473
|
interface ChannelsResource {
|
1474
|
-
/** Stops watching resources through this channel. For more information, see [Notifications for resource changes](https://developers.google.com/drive/api/guides/push). */
|
1474
|
+
/** Stops watching resources through this channel. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push). */
|
1475
1475
|
stop(request: {
|
1476
1476
|
/** V1 error format. */
|
1477
1477
|
'$.xgafv'?: string;
|
@@ -1527,7 +1527,7 @@ declare namespace gapi.client {
|
|
1527
1527
|
): Request<void>;
|
1528
1528
|
}
|
1529
1529
|
interface CommentsResource {
|
1530
|
-
/** Creates a comment on a file. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter). */
|
1530
|
+
/** Creates a comment on a file. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). */
|
1531
1531
|
create(request: {
|
1532
1532
|
/** V1 error format. */
|
1533
1533
|
'$.xgafv'?: string;
|
@@ -1585,7 +1585,7 @@ declare namespace gapi.client {
|
|
1585
1585
|
},
|
1586
1586
|
body: Comment,
|
1587
1587
|
): Request<Comment>;
|
1588
|
-
/** Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter). */
|
1588
|
+
/** Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). */
|
1589
1589
|
delete(request?: {
|
1590
1590
|
/** V1 error format. */
|
1591
1591
|
'$.xgafv'?: string;
|
@@ -1614,7 +1614,7 @@ declare namespace gapi.client {
|
|
1614
1614
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1615
1615
|
uploadType?: string;
|
1616
1616
|
}): Request<void>;
|
1617
|
-
/** Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter). */
|
1617
|
+
/** Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). */
|
1618
1618
|
get(request?: {
|
1619
1619
|
/** V1 error format. */
|
1620
1620
|
'$.xgafv'?: string;
|
@@ -1645,7 +1645,7 @@ declare namespace gapi.client {
|
|
1645
1645
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1646
1646
|
uploadType?: string;
|
1647
1647
|
}): Request<Comment>;
|
1648
|
-
/** Lists a file's comments. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter). */
|
1648
|
+
/** Lists a file's comments. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). */
|
1649
1649
|
list(request?: {
|
1650
1650
|
/** V1 error format. */
|
1651
1651
|
'$.xgafv'?: string;
|
@@ -1680,7 +1680,7 @@ declare namespace gapi.client {
|
|
1680
1680
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1681
1681
|
uploadType?: string;
|
1682
1682
|
}): Request<CommentList>;
|
1683
|
-
/** Updates a comment with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter). */
|
1683
|
+
/** Updates a comment with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). */
|
1684
1684
|
update(request: {
|
1685
1685
|
/** V1 error format. */
|
1686
1686
|
'$.xgafv'?: string;
|
@@ -1889,7 +1889,7 @@ declare namespace gapi.client {
|
|
1889
1889
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1890
1890
|
uploadType?: string;
|
1891
1891
|
}): Request<Drive>;
|
1892
|
-
/** 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 drives](/drive/api/guides/search-shareddrives) guide. */
|
1892
|
+
/** 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 drives](/workspace/drive/api/guides/search-shareddrives) guide. */
|
1893
1893
|
list(request?: {
|
1894
1894
|
/** V1 error format. */
|
1895
1895
|
'$.xgafv'?: string;
|
@@ -2103,7 +2103,7 @@ declare namespace gapi.client {
|
|
2103
2103
|
},
|
2104
2104
|
body: File,
|
2105
2105
|
): Request<File>;
|
2106
|
-
/** 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 types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.create` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type. */
|
2106
|
+
/** 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 types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.create` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type. */
|
2107
2107
|
create(request: {
|
2108
2108
|
/** V1 error format. */
|
2109
2109
|
'$.xgafv'?: string;
|
@@ -2346,7 +2346,7 @@ declare namespace gapi.client {
|
|
2346
2346
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
2347
2347
|
uploadType?: string;
|
2348
2348
|
}): Request<GeneratedIds>;
|
2349
|
-
/** Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download & export files](/drive/api/guides/manage-downloads). */
|
2349
|
+
/** Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/workspace/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download & export files](/workspace/drive/api/guides/manage-downloads). */
|
2350
2350
|
get(request?: {
|
2351
2351
|
/** V1 error format. */
|
2352
2352
|
'$.xgafv'?: string;
|
@@ -2383,7 +2383,7 @@ declare namespace gapi.client {
|
|
2383
2383
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
2384
2384
|
uploadType?: string;
|
2385
2385
|
}): Request<File>;
|
2386
|
-
/** 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 & 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, use the `trashed=false` query parameter to remove trashed files from the results. */
|
2386
|
+
/** 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 & folders](/workspace/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, use the `trashed=false` query parameter to remove trashed files from the results. */
|
2387
2387
|
list(request?: {
|
2388
2388
|
/** V1 error format. */
|
2389
2389
|
'$.xgafv'?: string;
|
@@ -2527,7 +2527,7 @@ declare namespace gapi.client {
|
|
2527
2527
|
},
|
2528
2528
|
body: ModifyLabelsRequest,
|
2529
2529
|
): Request<ModifyLabelsResponse>;
|
2530
|
-
/** 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 automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads). */
|
2530
|
+
/** 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 automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads). */
|
2531
2531
|
update(request: {
|
2532
2532
|
/** V1 error format. */
|
2533
2533
|
'$.xgafv'?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# TypeScript typings for Google Drive API v3
|
2
2
|
|
3
3
|
The Google Drive API allows clients to access resources from Google Drive.
|
4
|
-
For detailed description please check [documentation](https://developers.google.com/drive/).
|
4
|
+
For detailed description please check [documentation](https://developers.google.com/workspace/drive/).
|
5
5
|
|
6
6
|
## Installing
|
7
7
|
|
@@ -98,7 +98,7 @@ After that you can use Google Drive API resources: <!-- TODO: make this work for
|
|
98
98
|
```typescript
|
99
99
|
|
100
100
|
/*
|
101
|
-
Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/drive/api/guides/user-info). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter).
|
101
|
+
Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).
|
102
102
|
*/
|
103
103
|
await gapi.client.drive.about.get({ });
|
104
104
|
|
@@ -118,57 +118,57 @@ Used to approve or deny an Access Proposal.
|
|
118
118
|
await gapi.client.drive.accessproposals.resolve({ fileId: "fileId", proposalId: "proposalId", });
|
119
119
|
|
120
120
|
/*
|
121
|
-
Gets a specific app. For more information, see [Return user info](https://developers.google.com/drive/api/guides/user-info).
|
121
|
+
Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).
|
122
122
|
*/
|
123
123
|
await gapi.client.drive.apps.get({ appId: "appId", });
|
124
124
|
|
125
125
|
/*
|
126
|
-
Lists a user's installed apps. For more information, see [Return user info](https://developers.google.com/drive/api/guides/user-info).
|
126
|
+
Lists a user's installed apps. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).
|
127
127
|
*/
|
128
128
|
await gapi.client.drive.apps.list({ });
|
129
129
|
|
130
130
|
/*
|
131
|
-
Gets the starting pageToken for listing future changes. For more information, see [Retrieve changes](https://developers.google.com/drive/api/guides/manage-changes).
|
131
|
+
Gets the starting pageToken for listing future changes. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-changes).
|
132
132
|
*/
|
133
133
|
await gapi.client.drive.changes.getStartPageToken({ });
|
134
134
|
|
135
135
|
/*
|
136
|
-
Lists the changes for a user or shared drive. For more information, see [Retrieve changes](https://developers.google.com/drive/api/guides/manage-changes).
|
136
|
+
Lists the changes for a user or shared drive. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-changes).
|
137
137
|
*/
|
138
138
|
await gapi.client.drive.changes.list({ pageToken: "pageToken", });
|
139
139
|
|
140
140
|
/*
|
141
|
-
Subscribes to changes for a user. For more information, see [Notifications for resource changes](https://developers.google.com/drive/api/guides/push).
|
141
|
+
Subscribes to changes for a user. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).
|
142
142
|
*/
|
143
143
|
await gapi.client.drive.changes.watch({ pageToken: "pageToken", });
|
144
144
|
|
145
145
|
/*
|
146
|
-
Stops watching resources through this channel. For more information, see [Notifications for resource changes](https://developers.google.com/drive/api/guides/push).
|
146
|
+
Stops watching resources through this channel. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).
|
147
147
|
*/
|
148
148
|
await gapi.client.drive.channels.stop({ });
|
149
149
|
|
150
150
|
/*
|
151
|
-
Creates a comment on a file. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter).
|
151
|
+
Creates a comment on a file. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).
|
152
152
|
*/
|
153
153
|
await gapi.client.drive.comments.create({ fileId: "fileId", });
|
154
154
|
|
155
155
|
/*
|
156
|
-
Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter).
|
156
|
+
Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).
|
157
157
|
*/
|
158
158
|
await gapi.client.drive.comments.delete({ commentId: "commentId", fileId: "fileId", });
|
159
159
|
|
160
160
|
/*
|
161
|
-
Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter).
|
161
|
+
Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).
|
162
162
|
*/
|
163
163
|
await gapi.client.drive.comments.get({ commentId: "commentId", fileId: "fileId", });
|
164
164
|
|
165
165
|
/*
|
166
|
-
Lists a file's comments. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter).
|
166
|
+
Lists a file's comments. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).
|
167
167
|
*/
|
168
168
|
await gapi.client.drive.comments.list({ fileId: "fileId", });
|
169
169
|
|
170
170
|
/*
|
171
|
-
Updates a comment with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/drive/api/guides/fields-parameter).
|
171
|
+
Updates a comment with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).
|
172
172
|
*/
|
173
173
|
await gapi.client.drive.comments.update({ commentId: "commentId", fileId: "fileId", });
|
174
174
|
|
@@ -193,7 +193,7 @@ Hides a shared drive from the default view.
|
|
193
193
|
await gapi.client.drive.drives.hide({ driveId: "driveId", });
|
194
194
|
|
195
195
|
/*
|
196
|
-
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 drives](/drive/api/guides/search-shareddrives) guide.
|
196
|
+
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 drives](/workspace/drive/api/guides/search-shareddrives) guide.
|
197
197
|
*/
|
198
198
|
await gapi.client.drive.drives.list({ });
|
199
199
|
|
@@ -213,7 +213,7 @@ Creates a copy of a file and applies any requested updates with patch semantics.
|
|
213
213
|
await gapi.client.drive.files.copy({ fileId: "fileId", });
|
214
214
|
|
215
215
|
/*
|
216
|
-
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 types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.create` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.
|
216
|
+
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 types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.create` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.
|
217
217
|
*/
|
218
218
|
await gapi.client.drive.files.create({ });
|
219
219
|
|
@@ -243,12 +243,12 @@ Generates a set of file IDs which can be provided in create or copy requests.
|
|
243
243
|
await gapi.client.drive.files.generateIds({ });
|
244
244
|
|
245
245
|
/*
|
246
|
-
Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download & export files](/drive/api/guides/manage-downloads).
|
246
|
+
Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/workspace/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download & export files](/workspace/drive/api/guides/manage-downloads).
|
247
247
|
*/
|
248
248
|
await gapi.client.drive.files.get({ fileId: "fileId", });
|
249
249
|
|
250
250
|
/*
|
251
|
-
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 & 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, use the `trashed=false` query parameter to remove trashed files from the results.
|
251
|
+
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 & folders](/workspace/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, use the `trashed=false` query parameter to remove trashed files from the results.
|
252
252
|
*/
|
253
253
|
await gapi.client.drive.files.list({ });
|
254
254
|
|
@@ -263,7 +263,7 @@ Modifies the set of labels applied to a file. Returns a list of the labels that
|
|
263
263
|
await gapi.client.drive.files.modifyLabels({ fileId: "fileId", });
|
264
264
|
|
265
265
|
/*
|
266
|
-
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 automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads).
|
266
|
+
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 automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads).
|
267
267
|
*/
|
268
268
|
await gapi.client.drive.files.update({ fileId: "fileId", });
|
269
269
|
|