blob: 8fd765e341614e5534fca32bf481ff453ec5751f [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="accessapproval_v1.html">Access Approval API</a> . <a href="accessapproval_v1.projects.html">projects</a> . <a href="accessapproval_v1.projects.approvalRequests.html">approvalRequests</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#approve">approve(name, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Approves a request and returns the updated ApprovalRequest.</p>
80<p class="toc_element">
81 <code><a href="#dismiss">dismiss(name, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Dismisses a request. Returns the updated ApprovalRequest.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets an approval request. Returns NOT_FOUND if the request does not exist.</p>
86<p class="toc_element">
87 <code><a href="#list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Lists approval requests associated with a project, folder, or organization.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
94 <code class="details" id="approve">approve(name, body=None, x__xgafv=None)</code>
95 <pre>Approves a request and returns the updated ApprovalRequest.
96
97Returns NOT_FOUND if the request does not exist. Returns
98FAILED_PRECONDITION if the request exists but is not in a pending state.
99
100Args:
101 name: string, Name of the approval request to approve. (required)
102 body: object, The request body.
103 The object takes the form of:
104
105{ # Request to approve an ApprovalRequest.
106 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration time of this approval.
107 }
108
109 x__xgafv: string, V1 error format.
110 Allowed values
111 1 - v1 error format
112 2 - v2 error format
113
114Returns:
115 An object of the form:
116
117 { # A request for the customer to approve access to a resource.
118 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
119 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A
120 # two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or
121 # a region code. In some limited situations Google systems may refer refer to
122 # a region code instead of a country code.
123 # Possible Region Codes:
124 # &lt;ol&gt;
125 # &lt;li&gt;ASI: Asia&lt;/li&gt;
126 # &lt;li&gt;EUR: Europe&lt;/li&gt;
127 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
128 # &lt;li&gt;AFR: Africa&lt;/li&gt;
129 # &lt;li&gt;NAM: North America&lt;/li&gt;
130 # &lt;li&gt;SAM: South America&lt;/li&gt;
131 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
132 # &lt;li&gt;ANY: Any location&lt;/li&gt;
133 # &lt;/ol&gt;
134 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code
135 # (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some
136 # limited situations Google systems may refer refer to a region code instead
137 # of a country code.
138 # Possible Region Codes:
139 # &lt;ol&gt;
140 # &lt;li&gt;ASI: Asia&lt;/li&gt;
141 # &lt;li&gt;EUR: Europe&lt;/li&gt;
142 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
143 # &lt;li&gt;AFR: Africa&lt;/li&gt;
144 # &lt;li&gt;NAM: North America&lt;/li&gt;
145 # &lt;li&gt;SAM: South America&lt;/li&gt;
146 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
147 # &lt;li&gt;ANY: Any location&lt;/li&gt;
148 # &lt;/ol&gt;
149 },
150 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
151 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
152 },
153 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is
154 # &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}&quot;.
155 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the
156 # resource name is defined at
157 # https://cloud.google.com/apis/design/resource_names. The resource name here
158 # may either be a &quot;full&quot; resource name (e.g.
159 # &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot;
160 # resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the
161 # resource name specification.
162 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved,
163 # access will be granted from the time of approval until the expiration time.
164 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
165 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
166 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
167 },
168 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
169 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being
170 # requested.
171 },
172 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
173 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
174 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
175 },
176 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
177 }</pre>
178</div>
179
180<div class="method">
181 <code class="details" id="dismiss">dismiss(name, body=None, x__xgafv=None)</code>
182 <pre>Dismisses a request. Returns the updated ApprovalRequest.
183
184NOTE: This does not deny access to the resource if another request has been
185made and approved. It is equivalent in effect to ignoring the request
186altogether.
187
188Returns NOT_FOUND if the request does not exist.
189
190Returns FAILED_PRECONDITION if the request exists but is not in a pending
191state.
192
193Args:
194 name: string, Name of the ApprovalRequest to dismiss. (required)
195 body: object, The request body.
196 The object takes the form of:
197
198{ # Request to dismiss an approval request.
199 }
200
201 x__xgafv: string, V1 error format.
202 Allowed values
203 1 - v1 error format
204 2 - v2 error format
205
206Returns:
207 An object of the form:
208
209 { # A request for the customer to approve access to a resource.
210 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
211 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A
212 # two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or
213 # a region code. In some limited situations Google systems may refer refer to
214 # a region code instead of a country code.
215 # Possible Region Codes:
216 # &lt;ol&gt;
217 # &lt;li&gt;ASI: Asia&lt;/li&gt;
218 # &lt;li&gt;EUR: Europe&lt;/li&gt;
219 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
220 # &lt;li&gt;AFR: Africa&lt;/li&gt;
221 # &lt;li&gt;NAM: North America&lt;/li&gt;
222 # &lt;li&gt;SAM: South America&lt;/li&gt;
223 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
224 # &lt;li&gt;ANY: Any location&lt;/li&gt;
225 # &lt;/ol&gt;
226 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code
227 # (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some
228 # limited situations Google systems may refer refer to a region code instead
229 # of a country code.
230 # Possible Region Codes:
231 # &lt;ol&gt;
232 # &lt;li&gt;ASI: Asia&lt;/li&gt;
233 # &lt;li&gt;EUR: Europe&lt;/li&gt;
234 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
235 # &lt;li&gt;AFR: Africa&lt;/li&gt;
236 # &lt;li&gt;NAM: North America&lt;/li&gt;
237 # &lt;li&gt;SAM: South America&lt;/li&gt;
238 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
239 # &lt;li&gt;ANY: Any location&lt;/li&gt;
240 # &lt;/ol&gt;
241 },
242 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
243 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
244 },
245 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is
246 # &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}&quot;.
247 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the
248 # resource name is defined at
249 # https://cloud.google.com/apis/design/resource_names. The resource name here
250 # may either be a &quot;full&quot; resource name (e.g.
251 # &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot;
252 # resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the
253 # resource name specification.
254 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved,
255 # access will be granted from the time of approval until the expiration time.
256 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
257 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
258 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
259 },
260 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
261 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being
262 # requested.
263 },
264 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
265 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
266 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
267 },
268 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
269 }</pre>
270</div>
271
272<div class="method">
273 <code class="details" id="get">get(name, x__xgafv=None)</code>
274 <pre>Gets an approval request. Returns NOT_FOUND if the request does not exist.
275
276Args:
277 name: string, Name of the approval request to retrieve. (required)
278 x__xgafv: string, V1 error format.
279 Allowed values
280 1 - v1 error format
281 2 - v2 error format
282
283Returns:
284 An object of the form:
285
286 { # A request for the customer to approve access to a resource.
287 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
288 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A
289 # two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or
290 # a region code. In some limited situations Google systems may refer refer to
291 # a region code instead of a country code.
292 # Possible Region Codes:
293 # &lt;ol&gt;
294 # &lt;li&gt;ASI: Asia&lt;/li&gt;
295 # &lt;li&gt;EUR: Europe&lt;/li&gt;
296 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
297 # &lt;li&gt;AFR: Africa&lt;/li&gt;
298 # &lt;li&gt;NAM: North America&lt;/li&gt;
299 # &lt;li&gt;SAM: South America&lt;/li&gt;
300 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
301 # &lt;li&gt;ANY: Any location&lt;/li&gt;
302 # &lt;/ol&gt;
303 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code
304 # (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some
305 # limited situations Google systems may refer refer to a region code instead
306 # of a country code.
307 # Possible Region Codes:
308 # &lt;ol&gt;
309 # &lt;li&gt;ASI: Asia&lt;/li&gt;
310 # &lt;li&gt;EUR: Europe&lt;/li&gt;
311 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
312 # &lt;li&gt;AFR: Africa&lt;/li&gt;
313 # &lt;li&gt;NAM: North America&lt;/li&gt;
314 # &lt;li&gt;SAM: South America&lt;/li&gt;
315 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
316 # &lt;li&gt;ANY: Any location&lt;/li&gt;
317 # &lt;/ol&gt;
318 },
319 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
320 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
321 },
322 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is
323 # &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}&quot;.
324 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the
325 # resource name is defined at
326 # https://cloud.google.com/apis/design/resource_names. The resource name here
327 # may either be a &quot;full&quot; resource name (e.g.
328 # &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot;
329 # resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the
330 # resource name specification.
331 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved,
332 # access will be granted from the time of approval until the expiration time.
333 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
334 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
335 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
336 },
337 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
338 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being
339 # requested.
340 },
341 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
342 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
343 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
344 },
345 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
346 }</pre>
347</div>
348
349<div class="method">
350 <code class="details" id="list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
351 <pre>Lists approval requests associated with a project, folder, or organization.
352Approval requests can be filtered by state (pending, active, dismissed).
353The order is reverse chronological.
354
355Args:
356 parent: string, The parent resource. This may be &quot;projects/{project_id}&quot;,
357&quot;folders/{folder_id}&quot;, or &quot;organizations/{organization_id}&quot;. (required)
358 filter: string, A filter on the type of approval requests to retrieve. Must be one of the
359following values:
360&lt;ol&gt;
361 &lt;li&gt;[not set]: Requests that are pending or have active approvals.&lt;/li&gt;
362 &lt;li&gt;ALL: All requests.&lt;/li&gt;
363 &lt;li&gt;PENDING: Only pending requests.&lt;/li&gt;
364 &lt;li&gt;ACTIVE: Only active (i.e. currently approved) requests.&lt;/li&gt;
365 &lt;li&gt;DISMISSED: Only dismissed (including expired) requests.&lt;/li&gt;
366&lt;/ol&gt;
367 pageToken: string, A token identifying the page of results to return.
368 pageSize: integer, Requested page size.
369 x__xgafv: string, V1 error format.
370 Allowed values
371 1 - v1 error format
372 2 - v2 error format
373
374Returns:
375 An object of the form:
376
377 { # Response to listing of ApprovalRequest objects.
378 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more.
379 &quot;approvalRequests&quot;: [ # Approval request details.
380 { # A request for the customer to approve access to a resource.
381 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
382 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A
383 # two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or
384 # a region code. In some limited situations Google systems may refer refer to
385 # a region code instead of a country code.
386 # Possible Region Codes:
387 # &lt;ol&gt;
388 # &lt;li&gt;ASI: Asia&lt;/li&gt;
389 # &lt;li&gt;EUR: Europe&lt;/li&gt;
390 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
391 # &lt;li&gt;AFR: Africa&lt;/li&gt;
392 # &lt;li&gt;NAM: North America&lt;/li&gt;
393 # &lt;li&gt;SAM: South America&lt;/li&gt;
394 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
395 # &lt;li&gt;ANY: Any location&lt;/li&gt;
396 # &lt;/ol&gt;
397 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code
398 # (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some
399 # limited situations Google systems may refer refer to a region code instead
400 # of a country code.
401 # Possible Region Codes:
402 # &lt;ol&gt;
403 # &lt;li&gt;ASI: Asia&lt;/li&gt;
404 # &lt;li&gt;EUR: Europe&lt;/li&gt;
405 # &lt;li&gt;OCE: Oceania&lt;/li&gt;
406 # &lt;li&gt;AFR: Africa&lt;/li&gt;
407 # &lt;li&gt;NAM: North America&lt;/li&gt;
408 # &lt;li&gt;SAM: South America&lt;/li&gt;
409 # &lt;li&gt;ANT: Antarctica&lt;/li&gt;
410 # &lt;li&gt;ANY: Any location&lt;/li&gt;
411 # &lt;/ol&gt;
412 },
413 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
414 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
415 },
416 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is
417 # &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}&quot;.
418 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the
419 # resource name is defined at
420 # https://cloud.google.com/apis/design/resource_names. The resource name here
421 # may either be a &quot;full&quot; resource name (e.g.
422 # &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot;
423 # resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the
424 # resource name specification.
425 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved,
426 # access will be granted from the time of approval until the expiration time.
427 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
428 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
429 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
430 },
431 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
432 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being
433 # requested.
434 },
435 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
436 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
437 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
438 },
439 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
440 },
441 ],
442 }</pre>
443</div>
444
445<div class="method">
446 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
447 <pre>Retrieves the next page of results.
448
449Args:
450 previous_request: The request for the previous page. (required)
451 previous_response: The response from the request for the previous page. (required)
452
453Returns:
454 A request object that you can call &#x27;execute()&#x27; on to request the next
455 page. Returns None if there are no more items in the collection.
456 </pre>
457</div>
458
459</body></html>