Skip to content

Commit cfb96ec

Browse files
feat(drive): update the api
#### drive:v2 The following keys were added: - resources.files.methods.emptyTrash.parameters.driveId (Total Keys: 2) #### drive:v3 The following keys were added: - resources.files.methods.emptyTrash.parameters.driveId (Total Keys: 2)
1 parent 748a134 commit cfb96ec

File tree

5 files changed

+404
-392
lines changed

5 files changed

+404
-392
lines changed

docs/dyn/drive_v2.files.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ <h2>Instance Methods</h2>
8484
<code><a href="#delete">delete(fileId, enforceSingleParent=None, supportsAllDrives=None, supportsTeamDrives=None)</a></code></p>
8585
<p class="firstline">Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files.</p>
8686
<p class="toc_element">
87-
<code><a href="#emptyTrash">emptyTrash(enforceSingleParent=None)</a></code></p>
88-
<p class="firstline">Permanently deletes all of the user's trashed files.</p>
87+
<code><a href="#emptyTrash">emptyTrash(driveId=None, enforceSingleParent=None)</a></code></p>
88+
<p class="firstline">Permanently deletes all trashed files of a user or shared drive.</p>
8989
<p class="toc_element">
9090
<code><a href="#export">export(fileId, mimeType)</a></code></p>
9191
<p class="firstline">Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.</p>
@@ -136,10 +136,10 @@ <h2>Instance Methods</h2>
136136
<p class="firstline">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.</p>
137137
<p class="toc_element">
138138
<code><a href="#watch">watch(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None)</a></code></p>
139-
<p class="firstline">Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification.</p>
139+
<p class="firstline">Subscribe to changes on a file.</p>
140140
<p class="toc_element">
141141
<code><a href="#watch_media">watch_media(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None)</a></code></p>
142-
<p class="firstline">Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification.</p>
142+
<p class="firstline">Subscribe to changes on a file.</p>
143143
<h3>Method Details</h3>
144144
<div class="method">
145145
<code class="details" id="close">close()</code>
@@ -1036,10 +1036,11 @@ <h3>Method Details</h3>
10361036
</div>
10371037

10381038
<div class="method">
1039-
<code class="details" id="emptyTrash">emptyTrash(enforceSingleParent=None)</code>
1040-
<pre>Permanently deletes all of the user&#x27;s trashed files.
1039+
<code class="details" id="emptyTrash">emptyTrash(driveId=None, enforceSingleParent=None)</code>
1040+
<pre>Permanently deletes all trashed files of a user or shared drive.
10411041

10421042
Args:
1043+
driveId: string, If set, empties the trash of the provided shared drive.
10431044
enforceSingleParent: boolean, 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&#x27;s root.
10441045
</pre>
10451046
</div>
@@ -6178,7 +6179,7 @@ <h3>Method Details</h3>
61786179

61796180
<div class="method">
61806181
<code class="details" id="watch">watch(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None)</code>
6181-
<pre>Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won&#x27;t create a notification.
6182+
<pre>Subscribe to changes on a file.
61826183

61836184
Args:
61846185
fileId: string, The ID for the file in question. (required)
@@ -6233,7 +6234,7 @@ <h3>Method Details</h3>
62336234

62346235
<div class="method">
62356236
<code class="details" id="watch_media">watch_media(fileId, acknowledgeAbuse=None, body=None, includeLabels=None, includePermissionsForView=None, projection=None, revisionId=None, supportsAllDrives=None, supportsTeamDrives=None, updateViewedDate=None)</code>
6236-
<pre>Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won&#x27;t create a notification.
6237+
<pre>Subscribe to changes on a file.
62376238

62386239
Args:
62396240
fileId: string, The ID for the file in question. (required)

0 commit comments

Comments
 (0)