Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5b829e4

Browse files
committedFeb 18, 2025
feat(drive): update the api
#### drive:v3 The following keys were deleted: - resources.operation.methods.cancel (Total Keys: 9) - resources.operation.methods.delete (Total Keys: 9) The following keys were added: - resources.operations.methods.cancel (Total Keys: 9) - resources.operations.methods.delete (Total Keys: 9)
1 parent 51e6870 commit 5b829e4

File tree

3 files changed

+40
-17
lines changed

3 files changed

+40
-17
lines changed
 

‎docs/dyn/drive_v3.html

-5
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ <h2>Instance Methods</h2>
114114
</p>
115115
<p class="firstline">Returns the files Resource.</p>
116116

117-
<p class="toc_element">
118-
<code><a href="drive_v3.operation.html">operation()</a></code>
119-
</p>
120-
<p class="firstline">Returns the operation Resource.</p>
121-
122117
<p class="toc_element">
123118
<code><a href="drive_v3.operations.html">operations()</a></code>
124119
</p>

‎docs/dyn/drive_v3.operations.html

+32
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,15 @@
7474

7575
<h1><a href="drive_v3.html">Google Drive API</a> . <a href="drive_v3.operations.html">operations</a></h1>
7676
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#cancel">cancel(name, x__xgafv=None)</a></code></p>
79+
<p class="firstline">Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.</p>
7780
<p class="toc_element">
7881
<code><a href="#close">close()</a></code></p>
7982
<p class="firstline">Close httplib2 connections.</p>
83+
<p class="toc_element">
84+
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.</p>
8086
<p class="toc_element">
8187
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
8288
<p class="firstline">Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.</p>
@@ -87,11 +93,37 @@ <h2>Instance Methods</h2>
8793
<code><a href="#list_next">list_next()</a></code></p>
8894
<p class="firstline">Retrieves the next page of results.</p>
8995
<h3>Method Details</h3>
96+
<div class="method">
97+
<code class="details" id="cancel">cancel(name, x__xgafv=None)</code>
98+
<pre>Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn&#x27;t support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
99+
100+
Args:
101+
name: string, The name of the operation resource to be cancelled. (required)
102+
x__xgafv: string, V1 error format.
103+
Allowed values
104+
1 - v1 error format
105+
2 - v2 error format
106+
</pre>
107+
</div>
108+
90109
<div class="method">
91110
<code class="details" id="close">close()</code>
92111
<pre>Close httplib2 connections.</pre>
93112
</div>
94113

114+
<div class="method">
115+
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
116+
<pre>Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn&#x27;t support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
117+
118+
Args:
119+
name: string, The name of the operation resource to be deleted. (required)
120+
x__xgafv: string, V1 error format.
121+
Allowed values
122+
1 - v1 error format
123+
2 - v2 error format
124+
</pre>
125+
</div>
126+
95127
<div class="method">
96128
<code class="details" id="get">get(name, x__xgafv=None)</code>
97129
<pre>Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

‎googleapiclient/discovery_cache/documents/drive.v3.json

+8-12
Original file line numberDiff line numberDiff line change
@@ -1814,13 +1814,13 @@
18141814
}
18151815
}
18161816
},
1817-
"operation": {
1817+
"operations": {
18181818
"methods": {
18191819
"cancel": {
18201820
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
1821-
"flatPath": "operation/{name}:cancel",
1821+
"flatPath": "operations/{name}:cancel",
18221822
"httpMethod": "POST",
1823-
"id": "drive.operation.cancel",
1823+
"id": "drive.operations.cancel",
18241824
"parameterOrder": [
18251825
"name"
18261826
],
@@ -1832,7 +1832,7 @@
18321832
"type": "string"
18331833
}
18341834
},
1835-
"path": "operation/{name}:cancel",
1835+
"path": "operations/{name}:cancel",
18361836
"scopes": [
18371837
"https://www.googleapis.com/auth/drive",
18381838
"https://www.googleapis.com/auth/drive.file",
@@ -1842,9 +1842,9 @@
18421842
},
18431843
"delete": {
18441844
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
1845-
"flatPath": "operation/{name}",
1845+
"flatPath": "operations/{name}",
18461846
"httpMethod": "DELETE",
1847-
"id": "drive.operation.delete",
1847+
"id": "drive.operations.delete",
18481848
"parameterOrder": [
18491849
"name"
18501850
],
@@ -1856,18 +1856,14 @@
18561856
"type": "string"
18571857
}
18581858
},
1859-
"path": "operation/{name}",
1859+
"path": "operations/{name}",
18601860
"scopes": [
18611861
"https://www.googleapis.com/auth/drive",
18621862
"https://www.googleapis.com/auth/drive.file",
18631863
"https://www.googleapis.com/auth/drive.meet.readonly",
18641864
"https://www.googleapis.com/auth/drive.readonly"
18651865
]
1866-
}
1867-
}
18681866
},
1869-
"operations": {
1870-
"methods": {
18711867
"get": {
18721868
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
18731869
"flatPath": "operations/{name}",
@@ -2792,7 +2788,7 @@
27922788
}
27932789
}
27942790
},
2795-
"revision": "20250122",
2791+
"revision": "20250210",
27962792
"rootUrl": "https://www.googleapis.com/",
27972793
"schemas": {
27982794
"About": {

0 commit comments

Comments
 (0)
Please sign in to comment.