blob: 36d0943bd3f81812e091fcaee363d3843ceecfc5 [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.folders.html">folders</a> . <a href="accessapproval_v1.folders.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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.</p>
80<p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070083<p class="toc_element">
84 <code><a href="#dismiss">dismiss(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070086<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets an approval request. Returns NOT_FOUND if the request does not exist.</p>
89<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080090 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="approve">approve(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070098 <pre>Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
Bu Sun Kim65020912020-05-20 12:08:20 -070099
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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800106 &quot;expireTime&quot;: &quot;A String&quot;, # The expiration time of this approval.
107}
Bu Sun Kim65020912020-05-20 12:08:20 -0700108
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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800118 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
119 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
120 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
121 },
122 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
123 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
124 &quot;implicit&quot;: True or False, # This field will be true if the ApprovalRequest was implcitly dismissed due to inaction by the access approval approvers (the request is not acted on by the approvers before the exiration time).
125 },
126 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request}&quot;.
127 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
128 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
129 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
130 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
131 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
132 },
133 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
134 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
135 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
136 },
137 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a &quot;full&quot; resource name (e.g. &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot; resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the resource name specification.
138 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
139 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being requested.
140 },
141}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700142</div>
143
144<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 <code class="details" id="close">close()</code>
146 <pre>Close httplib2 connections.</pre>
147</div>
148
149<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 <code class="details" id="dismiss">dismiss(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 <pre>Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152
153Args:
154 name: string, Name of the ApprovalRequest to dismiss. (required)
155 body: object, The request body.
156 The object takes the form of:
157
158{ # Request to dismiss an approval request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800159}
Bu Sun Kim65020912020-05-20 12:08:20 -0700160
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166Returns:
167 An object of the form:
168
169 { # A request for the customer to approve access to a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800170 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
171 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
172 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
173 },
174 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
175 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
176 &quot;implicit&quot;: True or False, # This field will be true if the ApprovalRequest was implcitly dismissed due to inaction by the access approval approvers (the request is not acted on by the approvers before the exiration time).
177 },
178 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request}&quot;.
179 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
180 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
181 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
182 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
183 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
184 },
185 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
186 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
187 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
188 },
189 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a &quot;full&quot; resource name (e.g. &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot; resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the resource name specification.
190 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
191 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being requested.
192 },
193}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700194</div>
195
196<div class="method">
197 <code class="details" id="get">get(name, x__xgafv=None)</code>
198 <pre>Gets an approval request. Returns NOT_FOUND if the request does not exist.
199
200Args:
201 name: string, Name of the approval request to retrieve. (required)
202 x__xgafv: string, V1 error format.
203 Allowed values
204 1 - v1 error format
205 2 - v2 error format
206
207Returns:
208 An object of the form:
209
210 { # A request for the customer to approve access to a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800211 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
212 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
213 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
214 },
215 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
216 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
217 &quot;implicit&quot;: True or False, # This field will be true if the ApprovalRequest was implcitly dismissed due to inaction by the access approval approvers (the request is not acted on by the approvers before the exiration time).
218 },
219 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request}&quot;.
220 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
221 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
222 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
223 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
224 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
225 },
226 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
227 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
228 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
229 },
230 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a &quot;full&quot; resource name (e.g. &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot; resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the resource name specification.
231 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
232 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being requested.
233 },
234}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700235</div>
236
237<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800238 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700239 <pre>Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
Bu Sun Kim65020912020-05-20 12:08:20 -0700240
241Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700242 parent: string, The parent resource. This may be &quot;projects/{project}&quot;, &quot;folders/{folder}&quot;, or &quot;organizations/{organization}&quot;. (required)
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700243 filter: string, A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 pageSize: integer, Requested page size.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800245 pageToken: string, A token identifying the page of results to return.
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 x__xgafv: string, V1 error format.
247 Allowed values
248 1 - v1 error format
249 2 - v2 error format
250
251Returns:
252 An object of the form:
253
254 { # Response to listing of ApprovalRequest objects.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800255 &quot;approvalRequests&quot;: [ # Approval request details.
256 { # A request for the customer to approve access to a resource.
257 &quot;approve&quot;: { # A decision that has been made to approve access to a resource. # Access was approved.
258 &quot;approveTime&quot;: &quot;A String&quot;, # The time at which approval was granted.
259 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the approval expires.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800261 &quot;dismiss&quot;: { # A decision that has been made to dismiss an approval request. # The request was dismissed.
262 &quot;dismissTime&quot;: &quot;A String&quot;, # The time at which the approval request was dismissed.
263 &quot;implicit&quot;: True or False, # This field will be true if the ApprovalRequest was implcitly dismissed due to inaction by the access approval approvers (the request is not acted on by the approvers before the exiration time).
264 },
265 &quot;name&quot;: &quot;A String&quot;, # The resource name of the request. Format is &quot;{projects|folders|organizations}/{id}/approvalRequests/{approval_request}&quot;.
266 &quot;requestTime&quot;: &quot;A String&quot;, # The time at which approval was requested.
267 &quot;requestedExpiration&quot;: &quot;A String&quot;, # The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
268 &quot;requestedLocations&quot;: { # Home office and physical location of the principal. # The locations for which approval is being requested.
269 &quot;principalOfficeCountry&quot;: &quot;A String&quot;, # The &quot;home office&quot; location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
270 &quot;principalPhysicalLocationCountry&quot;: &quot;A String&quot;, # Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as &quot;US&quot;, &quot;DE&quot; or &quot;GB&quot; or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
271 },
272 &quot;requestedReason&quot;: { # The justification for which approval is being requested.
273 &quot;detail&quot;: &quot;A String&quot;, # More detail about certain reason types. See comments for each type above.
274 &quot;type&quot;: &quot;A String&quot;, # Type of access justification.
275 },
276 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a &quot;full&quot; resource name (e.g. &quot;//library.googleapis.com/shelves/shelf1/books/book2&quot;) or a &quot;relative&quot; resource name (e.g. &quot;shelves/shelf1/books/book2&quot;) as described in the resource name specification.
277 &quot;requestedResourceProperties&quot;: { # The properties associated with the resource of the request. # Properties related to the resource represented by requested_resource_name.
278 &quot;excludesDescendants&quot;: True or False, # Whether an approval will exclude the descendants of the resource being requested.
279 },
280 },
281 ],
282 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more.
283}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700284</div>
285
286<div class="method">
287 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
288 <pre>Retrieves the next page of results.
289
290Args:
291 previous_request: The request for the previous page. (required)
292 previous_response: The response from the request for the previous page. (required)
293
294Returns:
295 A request object that you can call &#x27;execute()&#x27; on to request the next
296 page. Returns None if there are no more items in the collection.
297 </pre>
298</div>
299
300</body></html>