Skip to content

Commit 126a800

Browse files
feat(drive): update the api
#### drive:v3 The following keys were added: - resources.approvals.methods.get (Total Keys: 13) - resources.approvals.methods.list (Total Keys: 15) - schemas.Approval (Total Keys: 27) - schemas.ReviewerResponse (Total Keys: 5)
1 parent 9e3ac31 commit 126a800

File tree

8 files changed

+462
-48
lines changed

8 files changed

+462
-48
lines changed

docs/dyn/drive_v2.revisions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h2>Instance Methods</h2>
8585
<p class="firstline">Gets a specific revision.</p>
8686
<p class="toc_element">
8787
<code><a href="#list">list(fileId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
88-
<p class="firstline">Lists a file's revisions.</p>
88+
<p class="firstline">Lists a file's revisions. **Important:** The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.</p>
8989
<p class="toc_element">
9090
<code><a href="#list_next">list_next()</a></code></p>
9191
<p class="firstline">Retrieves the next page of results.</p>
@@ -165,7 +165,7 @@ <h3>Method Details</h3>
165165

166166
<div class="method">
167167
<code class="details" id="list">list(fileId, maxResults=None, pageToken=None, x__xgafv=None)</code>
168-
<pre>Lists a file&#x27;s revisions.
168+
<pre>Lists a file&#x27;s revisions. **Important:** The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.
169169

170170
Args:
171171
fileId: string, The ID of the file. (required)

docs/dyn/drive_v3.approvals.html

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="drive_v3.html">Google Drive API</a> . <a href="drive_v3.approvals.html">approvals</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#get">get(fileId, approvalId, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Gets an Approval by ID.</p>
83+
<p class="toc_element">
84+
<code><a href="#list">list(fileId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Lists the Approvals on a file.</p>
86+
<p class="toc_element">
87+
<code><a href="#list_next">list_next()</a></code></p>
88+
<p class="firstline">Retrieves the next page of results.</p>
89+
<h3>Method Details</h3>
90+
<div class="method">
91+
<code class="details" id="close">close()</code>
92+
<pre>Close httplib2 connections.</pre>
93+
</div>
94+
95+
<div class="method">
96+
<code class="details" id="get">get(fileId, approvalId, x__xgafv=None)</code>
97+
<pre>Gets an Approval by ID.
98+
99+
Args:
100+
fileId: string, Required. The ID of the file the Approval is on. (required)
101+
approvalId: string, Required. The ID of the Approval. (required)
102+
x__xgafv: string, V1 error format.
103+
Allowed values
104+
1 - v1 error format
105+
2 - v2 error format
106+
107+
Returns:
108+
An object of the form:
109+
110+
{ # Metadata for an approval. An approval is a review/approve process for a Drive item.
111+
&quot;approvalId&quot;: &quot;A String&quot;, # The Approval ID.
112+
&quot;completeTime&quot;: &quot;A String&quot;, # Output only. The time time the approval was completed.
113+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the approval was created.
114+
&quot;dueTime&quot;: &quot;A String&quot;, # The time that the approval is due.
115+
&quot;initiator&quot;: { # Information about a Drive user. # The user that requested the Approval.
116+
&quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
117+
&quot;emailAddress&quot;: &quot;A String&quot;, # 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.
118+
&quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
119+
&quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
120+
&quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
121+
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
122+
},
123+
&quot;kind&quot;: &quot;A String&quot;, # This is always drive#approval.
124+
&quot;modifyTime&quot;: &quot;A String&quot;, # Output only. The most recent time the approval was modified.
125+
&quot;reviewerResponses&quot;: [ # The responses made on the Approval by reviewers.
126+
{ # A response on an Approval made by a specific Reviewer.
127+
&quot;kind&quot;: &quot;A String&quot;, # This is always drive#reviewerResponse.
128+
&quot;response&quot;: &quot;A String&quot;, # A Reviewer’s Response for the Approval.
129+
&quot;reviewer&quot;: { # Information about a Drive user. # The user that is responsible for this response.
130+
&quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
131+
&quot;emailAddress&quot;: &quot;A String&quot;, # 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.
132+
&quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
133+
&quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
134+
&quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
135+
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
136+
},
137+
},
138+
],
139+
&quot;status&quot;: &quot;A String&quot;, # Output only. The status of the approval at the time this resource was requested.
140+
&quot;targetFileId&quot;: &quot;A String&quot;, # Target file id of the approval.
141+
}</pre>
142+
</div>
143+
144+
<div class="method">
145+
<code class="details" id="list">list(fileId, pageSize=None, pageToken=None, x__xgafv=None)</code>
146+
<pre>Lists the Approvals on a file.
147+
148+
Args:
149+
fileId: string, Required. The ID of the file the Approval is on. (required)
150+
pageSize: integer, The maximum number of Approvals to return. When not set, at most 100 Approvals will be returned.
151+
pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of nextPageToken from a previous response.
152+
x__xgafv: string, V1 error format.
153+
Allowed values
154+
1 - v1 error format
155+
2 - v2 error format
156+
157+
Returns:
158+
An object of the form:
159+
160+
{ # The response of an Approvals list request.
161+
&quot;items&quot;: [ # The list of Approvals. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
162+
{ # Metadata for an approval. An approval is a review/approve process for a Drive item.
163+
&quot;approvalId&quot;: &quot;A String&quot;, # The Approval ID.
164+
&quot;completeTime&quot;: &quot;A String&quot;, # Output only. The time time the approval was completed.
165+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the approval was created.
166+
&quot;dueTime&quot;: &quot;A String&quot;, # The time that the approval is due.
167+
&quot;initiator&quot;: { # Information about a Drive user. # The user that requested the Approval.
168+
&quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
169+
&quot;emailAddress&quot;: &quot;A String&quot;, # 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.
170+
&quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
171+
&quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
172+
&quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
173+
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
174+
},
175+
&quot;kind&quot;: &quot;A String&quot;, # This is always drive#approval.
176+
&quot;modifyTime&quot;: &quot;A String&quot;, # Output only. The most recent time the approval was modified.
177+
&quot;reviewerResponses&quot;: [ # The responses made on the Approval by reviewers.
178+
{ # A response on an Approval made by a specific Reviewer.
179+
&quot;kind&quot;: &quot;A String&quot;, # This is always drive#reviewerResponse.
180+
&quot;response&quot;: &quot;A String&quot;, # A Reviewer’s Response for the Approval.
181+
&quot;reviewer&quot;: { # Information about a Drive user. # The user that is responsible for this response.
182+
&quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
183+
&quot;emailAddress&quot;: &quot;A String&quot;, # 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.
184+
&quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
185+
&quot;me&quot;: True or False, # Output only. Whether this user is the requesting user.
186+
&quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
187+
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
188+
},
189+
},
190+
],
191+
&quot;status&quot;: &quot;A String&quot;, # Output only. The status of the approval at the time this resource was requested.
192+
&quot;targetFileId&quot;: &quot;A String&quot;, # Target file id of the approval.
193+
},
194+
],
195+
&quot;kind&quot;: &quot;A String&quot;, # This is always drive#approvalList
196+
&quot;nextPageToken&quot;: &quot;A String&quot;, # The page token for the next page of Approvals. This will be absent if the end of the Approvals list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
197+
}</pre>
198+
</div>
199+
200+
<div class="method">
201+
<code class="details" id="list_next">list_next()</code>
202+
<pre>Retrieves the next page of results.
203+
204+
Args:
205+
previous_request: The request for the previous page. (required)
206+
previous_response: The response from the request for the previous page. (required)
207+
208+
Returns:
209+
A request object that you can call &#x27;execute()&#x27; on to request the next
210+
page. Returns None if there are no more items in the collection.
211+
</pre>
212+
</div>
213+
214+
</body></html>

0 commit comments

Comments
 (0)