blob: 008e085ead93877d9c392b4f13d6b7b1c6e9ab20 [file] [log] [blame]
Takashi Matsuo06694102015-09-11 13:55:40 -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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="cloudbilling_v1.html">Cloud Billing API</a> . <a href="cloudbilling_v1.billingAccounts.html">billingAccounts</a></h1>
Takashi Matsuo06694102015-09-11 13:55:40 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="cloudbilling_v1.billingAccounts.projects.html">projects()</a></code>
79</p>
80<p class="firstline">Returns the projects Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Creates a billing account.</p>
85<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070086 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040087<p class="firstline">Gets information about a billing account. The current authenticated user</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070088<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<p class="firstline">Gets the access control policy for a billing account.</p>
91<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070092 <code><a href="#list">list(pageSize=None, filter=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093<p class="firstline">Lists the billing accounts that the current authenticated user has</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070094<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Updates a billing account's fields.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Sets the access control policy for a billing account. Replaces any existing</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Tests the access control policy for a billing account. This method takes</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700106<h3>Method Details</h3>
107<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 <pre>Creates a billing account.
110This method can only be used to create
111[billing subaccounts](https://cloud.google.com/billing/docs/concepts)
112by GCP resellers.
113When creating a subaccount, the current authenticated user must have the
114`billing.accounts.update` IAM permission on the master account, which is
115typically given to billing account
116[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
117This method will return an error if the master account has not been
118provisioned as a reseller account.
119
120Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # A billing account in [GCP Console](https://console.cloud.google.com/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 # You can assign a billing account to one or more projects.
126 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
127 # Account`. This name is displayed in the GCP Console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700128 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
129 # usage on associated projects. False if the billing account is closed, and
130 # therefore projects associated with it will be unable to use paid services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700131 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
132 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
133 # will be the resource name of the master billing account that it is being
134 # resold through.
135 # Otherwise this will be empty.
136 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
137 # `billingAccounts/{billing_account_id}`. For example,
138 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
139 # billing account `012345-567890-ABCDEF`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700140 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141
142 x__xgafv: string, V1 error format.
143 Allowed values
144 1 - v1 error format
145 2 - v2 error format
146
147Returns:
148 An object of the form:
149
150 { # A billing account in [GCP Console](https://console.cloud.google.com/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700151 # You can assign a billing account to one or more projects.
152 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
153 # Account`. This name is displayed in the GCP Console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700154 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
155 # usage on associated projects. False if the billing account is closed, and
156 # therefore projects associated with it will be unable to use paid services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700157 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
158 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
159 # will be the resource name of the master billing account that it is being
160 # resold through.
161 # Otherwise this will be empty.
162 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
163 # `billingAccounts/{billing_account_id}`. For example,
164 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
165 # billing account `012345-567890-ABCDEF`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700166 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167</div>
168
169<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700170 <code class="details" id="get">get(name, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400171 <pre>Gets information about a billing account. The current authenticated user
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172must be a [viewer of the billing
173account](https://cloud.google.com/billing/docs/how-to/billing-access).
Takashi Matsuo06694102015-09-11 13:55:40 -0700174
175Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700176 name: string, Required. The resource name of the billing account to retrieve. For example,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400177`billingAccounts/012345-567890-ABCDEF`. (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700178 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400179 Allowed values
180 1 - v1 error format
181 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700182
183Returns:
184 An object of the form:
185
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 { # A billing account in [GCP Console](https://console.cloud.google.com/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700187 # You can assign a billing account to one or more projects.
188 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
189 # Account`. This name is displayed in the GCP Console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700190 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
191 # usage on associated projects. False if the billing account is closed, and
192 # therefore projects associated with it will be unable to use paid services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700193 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
194 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
195 # will be the resource name of the master billing account that it is being
196 # resold through.
197 # Otherwise this will be empty.
198 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
199 # `billingAccounts/{billing_account_id}`. For example,
200 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
201 # billing account `012345-567890-ABCDEF`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700202 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -0700203</div>
204
205<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700206 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 <pre>Gets the access control policy for a billing account.
208The caller must have the `billing.accounts.getIamPolicy` permission on the
209account, which is often given to billing account
210[viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
211
212Args:
213 resource: string, REQUIRED: The resource for which the policy is being requested.
214See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700215 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.
216
217Valid values are 0, 1, and 3. Requests specifying an invalid value will be
218rejected.
219
220Requests for policies with any conditional bindings must specify version 3.
221Policies without any conditional bindings may specify any valid value or
222leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700223
224To learn which resources support conditions in their IAM policies, see the
225[IAM
226documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227 x__xgafv: string, V1 error format.
228 Allowed values
229 1 - v1 error format
230 2 - v2 error format
231
232Returns:
233 An object of the form:
234
Dan O'Mearadd494642020-05-01 07:42:23 -0700235 { # An Identity and Access Management (IAM) policy, which specifies access
236 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 #
238 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700239 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
240 # `members` to a single `role`. Members can be user accounts, service accounts,
241 # Google groups, and domains (such as G Suite). A `role` is a named list of
242 # permissions; each `role` can be an IAM predefined role or a user-created
243 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 # For some types of Google Cloud resources, a `binding` can also specify a
246 # `condition`, which is a logical expression that allows access to a resource
247 # only if the expression evaluates to `true`. A condition can add constraints
248 # based on attributes of the request, the resource, or both. To learn which
249 # resources support conditions in their IAM policies, see the
250 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700251 #
252 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 #
254 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
258 # &quot;members&quot;: [
259 # &quot;user:mike@example.com&quot;,
260 # &quot;group:admins@example.com&quot;,
261 # &quot;domain:google.com&quot;,
262 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 # ]
264 # },
265 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
267 # &quot;members&quot;: [
268 # &quot;user:eve@example.com&quot;
269 # ],
270 # &quot;condition&quot;: {
271 # &quot;title&quot;: &quot;expirable access&quot;,
272 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
273 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700274 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700276 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
278 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700279 # }
280 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700281 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 #
283 # bindings:
284 # - members:
285 # - user:mike@example.com
286 # - group:admins@example.com
287 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700288 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
289 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700291 # - user:eve@example.com
292 # role: roles/resourcemanager.organizationViewer
293 # condition:
294 # title: expirable access
295 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 # - etag: BwWWja0YfJA=
298 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 #
300 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700301 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
303 # prevent simultaneous updates of a policy from overwriting each other.
304 # It is strongly suggested that systems make use of the `etag` in the
305 # read-modify-write cycle to perform policy updates in order to avoid race
306 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
307 # systems are expected to put that etag in the request to `setIamPolicy` to
308 # ensure that their change will be applied to the same version of the policy.
309 #
310 # **Important:** If you use IAM Conditions, you must include the `etag` field
311 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
312 # you to overwrite a version `3` policy with a version `1` policy, and all of
313 # the conditions in the version `3` policy are lost.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700314 &quot;version&quot;: 42, # Specifies the format of the policy.
315 #
316 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
317 # are rejected.
318 #
319 # Any operation that affects conditional role bindings must specify version
320 # `3`. This requirement applies to the following operations:
321 #
322 # * Getting a policy that includes a conditional role binding
323 # * Adding a conditional role binding to a policy
324 # * Changing a conditional role binding in a policy
325 # * Removing any role binding, with or without a condition, from a policy
326 # that includes conditions
327 #
328 # **Important:** If you use IAM Conditions, you must include the `etag` field
329 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
330 # you to overwrite a version `3` policy with a version `1` policy, and all of
331 # the conditions in the version `3` policy are lost.
332 #
333 # If a policy does not include any conditions, operations on that policy may
334 # specify any valid version or leave the field unset.
335 #
336 # To learn which resources support conditions in their IAM policies, see the
337 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700339 # `condition` that determines how and when the `bindings` are applied. Each
340 # of the `bindings` must contain at least one member.
341 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700343 # `members` can have the following values:
344 #
345 # * `allUsers`: A special identifier that represents anyone who is
346 # on the internet; with or without a Google account.
347 #
348 # * `allAuthenticatedUsers`: A special identifier that represents anyone
349 # who is authenticated with a Google account or a service account.
350 #
351 # * `user:{emailid}`: An email address that represents a specific Google
352 # account. For example, `alice@example.com` .
353 #
354 #
355 # * `serviceAccount:{emailid}`: An email address that represents a service
356 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
357 #
358 # * `group:{emailid}`: An email address that represents a Google group.
359 # For example, `admins@example.com`.
360 #
361 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
362 # identifier) representing a user that has been recently deleted. For
363 # example, `alice@example.com?uid=123456789012345678901`. If the user is
364 # recovered, this value reverts to `user:{emailid}` and the recovered user
365 # retains the role in the binding.
366 #
367 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
368 # unique identifier) representing a service account that has been recently
369 # deleted. For example,
370 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
371 # If the service account is undeleted, this value reverts to
372 # `serviceAccount:{emailid}` and the undeleted service account retains the
373 # role in the binding.
374 #
375 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
376 # identifier) representing a Google group that has been recently
377 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
378 # the group is recovered, this value reverts to `group:{emailid}` and the
379 # recovered group retains the role in the binding.
380 #
381 #
382 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
383 # users of that domain. For example, `google.com` or `example.com`.
384 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700386 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700387 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
388 #
389 # If the condition evaluates to `true`, then this binding applies to the
390 # current request.
391 #
392 # If the condition evaluates to `false`, then this binding does not apply to
393 # the current request. However, a different role binding might grant the same
394 # role to one or more of the members in this binding.
395 #
396 # To learn which resources support conditions in their IAM policies, see the
397 # [IAM
398 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
399 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
400 # are documented at https://github.com/google/cel-spec.
401 #
402 # Example (Comparison):
403 #
404 # title: &quot;Summary size limit&quot;
405 # description: &quot;Determines if a summary is less than 100 chars&quot;
406 # expression: &quot;document.summary.size() &lt; 100&quot;
407 #
408 # Example (Equality):
409 #
410 # title: &quot;Requestor is owner&quot;
411 # description: &quot;Determines if requestor is the document owner&quot;
412 # expression: &quot;document.owner == request.auth.claims.email&quot;
413 #
414 # Example (Logic):
415 #
416 # title: &quot;Public documents&quot;
417 # description: &quot;Determine whether the document should be publicly visible&quot;
418 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
419 #
420 # Example (Data Manipulation):
421 #
422 # title: &quot;Notification string&quot;
423 # description: &quot;Create a notification string with a timestamp.&quot;
424 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
425 #
426 # The exact variables and functions that may be referenced within an expression
427 # are determined by the service that evaluates it. See the service
428 # documentation for additional information.
429 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
430 # describes the expression, e.g. when hovered over it in a UI.
431 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
432 # its purpose. This can be used e.g. in UIs which allow to enter the
433 # expression.
434 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
435 # reporting, e.g. a file name and a position in the file.
436 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
437 # syntax.
438 },
439 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
440 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700441 },
442 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700443 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
444 { # Specifies the audit configuration for a service.
445 # The configuration determines which permission types are logged, and what
446 # identities, if any, are exempted from logging.
447 # An AuditConfig must have one or more AuditLogConfigs.
448 #
449 # If there are AuditConfigs for both `allServices` and a specific service,
450 # the union of the two AuditConfigs is used for that service: the log_types
451 # specified in each AuditConfig are enabled, and the exempted_members in each
452 # AuditLogConfig are exempted.
453 #
454 # Example Policy with multiple AuditConfigs:
455 #
456 # {
457 # &quot;audit_configs&quot;: [
458 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700459 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 # &quot;audit_log_configs&quot;: [
461 # {
462 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
463 # &quot;exempted_members&quot;: [
464 # &quot;user:jose@example.com&quot;
465 # ]
466 # },
467 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700468 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 # },
470 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700471 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 # }
473 # ]
474 # },
475 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700476 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 # &quot;audit_log_configs&quot;: [
478 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700479 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 # },
481 # {
482 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
483 # &quot;exempted_members&quot;: [
484 # &quot;user:aliya@example.com&quot;
485 # ]
486 # }
487 # ]
488 # }
489 # ]
490 # }
491 #
492 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
493 # logging. It also exempts jose@example.com from DATA_READ logging, and
494 # aliya@example.com from DATA_WRITE logging.
495 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
496 { # Provides the configuration for logging a type of permissions.
497 # Example:
498 #
499 # {
500 # &quot;audit_log_configs&quot;: [
501 # {
502 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
503 # &quot;exempted_members&quot;: [
504 # &quot;user:jose@example.com&quot;
505 # ]
506 # },
507 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700508 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 # }
510 # ]
511 # }
512 #
513 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
514 # jose@example.com from DATA_READ logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700515 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
517 # permission.
518 # Follows the same format of Binding.members.
519 &quot;A String&quot;,
520 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 },
522 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700523 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
524 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
525 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 },
527 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700528 }</pre>
529</div>
530
531<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700532 <code class="details" id="list">list(pageSize=None, filter=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 <pre>Lists the billing accounts that the current authenticated user has
534permission to
535[view](https://cloud.google.com/billing/docs/how-to/billing-access).
Takashi Matsuo06694102015-09-11 13:55:40 -0700536
537Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700538 pageSize: integer, Requested page size. The maximum page size is 100; this is also the
539default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 filter: string, Options for how to filter the returned billing accounts.
541Currently this only supports filtering for
542[subaccounts](https://cloud.google.com/billing/docs/concepts) under a
543single provided reseller billing account.
544(e.g. &quot;master_billing_account=billingAccounts/012345-678901-ABCDEF&quot;).
545Boolean algebra and other fields are not currently supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400546 pageToken: string, A token identifying a page of results to return. This should be a
547`next_page_token` value returned from a previous `ListBillingAccounts`
548call. If unspecified, the first page of results is returned.
Takashi Matsuo06694102015-09-11 13:55:40 -0700549 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400550 Allowed values
551 1 - v1 error format
552 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700553
554Returns:
555 An object of the form:
556
557 { # Response message for `ListBillingAccounts`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700558 &quot;billingAccounts&quot;: [ # A list of billing accounts.
559 { # A billing account in [GCP Console](https://console.cloud.google.com/).
560 # You can assign a billing account to one or more projects.
561 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
562 # Account`. This name is displayed in the GCP Console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700563 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
564 # usage on associated projects. False if the billing account is closed, and
565 # therefore projects associated with it will be unable to use paid services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700566 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
567 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
568 # will be the resource name of the master billing account that it is being
569 # resold through.
570 # Otherwise this will be empty.
571 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
572 # `billingAccounts/{billing_account_id}`. For example,
573 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
574 # billing account `012345-567890-ABCDEF`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700575 },
576 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700577 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. To retrieve the next page,
578 # call `ListBillingAccounts` again with the `page_token` field set to this
579 # value. This field is empty if there are no more results to retrieve.
Takashi Matsuo06694102015-09-11 13:55:40 -0700580 }</pre>
581</div>
582
583<div class="method">
584 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
585 <pre>Retrieves the next page of results.
586
587Args:
588 previous_request: The request for the previous page. (required)
589 previous_response: The response from the request for the previous page. (required)
590
591Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 A request object that you can call &#x27;execute()&#x27; on to request the next
Takashi Matsuo06694102015-09-11 13:55:40 -0700593 page. Returns None if there are no more items in the collection.
594 </pre>
595</div>
596
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700597<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700598 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700599 <pre>Updates a billing account&#x27;s fields.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700600Currently the only field that can be edited is `display_name`.
601The current authenticated user must have the `billing.accounts.update`
602IAM permission, which is typically given to the
603[administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
604of the billing account.
605
606Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700607 name: string, Required. The name of the billing account resource to be updated. (required)
608 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700609 The object takes the form of:
610
611{ # A billing account in [GCP Console](https://console.cloud.google.com/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700612 # You can assign a billing account to one or more projects.
613 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
614 # Account`. This name is displayed in the GCP Console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700615 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
616 # usage on associated projects. False if the billing account is closed, and
617 # therefore projects associated with it will be unable to use paid services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700618 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
619 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
620 # will be the resource name of the master billing account that it is being
621 # resold through.
622 # Otherwise this will be empty.
623 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
624 # `billingAccounts/{billing_account_id}`. For example,
625 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
626 # billing account `012345-567890-ABCDEF`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700627 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700628
629 updateMask: string, The update mask applied to the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630Only &quot;display_name&quot; is currently supported.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700631 x__xgafv: string, V1 error format.
632 Allowed values
633 1 - v1 error format
634 2 - v2 error format
635
636Returns:
637 An object of the form:
638
639 { # A billing account in [GCP Console](https://console.cloud.google.com/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700640 # You can assign a billing account to one or more projects.
641 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
642 # Account`. This name is displayed in the GCP Console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700643 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
644 # usage on associated projects. False if the billing account is closed, and
645 # therefore projects associated with it will be unable to use paid services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700646 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
647 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
648 # will be the resource name of the master billing account that it is being
649 # resold through.
650 # Otherwise this will be empty.
651 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
652 # `billingAccounts/{billing_account_id}`. For example,
653 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
654 # billing account `012345-567890-ABCDEF`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700655 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656</div>
657
658<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700659 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 <pre>Sets the access control policy for a billing account. Replaces any existing
661policy.
662The caller must have the `billing.accounts.setIamPolicy` permission on the
663account, which is often given to billing account
664[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
665
666Args:
667 resource: string, REQUIRED: The resource for which the policy is being specified.
668See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700669 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700670 The object takes the form of:
671
672{ # Request message for `SetIamPolicy` method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700673 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
674 # the fields in the mask will be modified. If no mask is provided, the
675 # following default mask is used:
676 #
677 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679 # the policy is limited to a few 10s of KB. An empty policy is a
680 # valid policy but certain Cloud Platform services (such as Projects)
681 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700682 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700683 #
684 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700685 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
686 # `members` to a single `role`. Members can be user accounts, service accounts,
687 # Google groups, and domains (such as G Suite). A `role` is a named list of
688 # permissions; each `role` can be an IAM predefined role or a user-created
689 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700690 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 # For some types of Google Cloud resources, a `binding` can also specify a
692 # `condition`, which is a logical expression that allows access to a resource
693 # only if the expression evaluates to `true`. A condition can add constraints
694 # based on attributes of the request, the resource, or both. To learn which
695 # resources support conditions in their IAM policies, see the
696 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700697 #
698 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700699 #
700 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700702 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
704 # &quot;members&quot;: [
705 # &quot;user:mike@example.com&quot;,
706 # &quot;group:admins@example.com&quot;,
707 # &quot;domain:google.com&quot;,
708 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700709 # ]
710 # },
711 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
713 # &quot;members&quot;: [
714 # &quot;user:eve@example.com&quot;
715 # ],
716 # &quot;condition&quot;: {
717 # &quot;title&quot;: &quot;expirable access&quot;,
718 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
719 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700720 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700721 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700722 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
724 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700725 # }
726 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700727 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700728 #
729 # bindings:
730 # - members:
731 # - user:mike@example.com
732 # - group:admins@example.com
733 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700734 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
735 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700737 # - user:eve@example.com
738 # role: roles/resourcemanager.organizationViewer
739 # condition:
740 # title: expirable access
741 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700743 # - etag: BwWWja0YfJA=
744 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700745 #
746 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700747 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700748 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
749 # prevent simultaneous updates of a policy from overwriting each other.
750 # It is strongly suggested that systems make use of the `etag` in the
751 # read-modify-write cycle to perform policy updates in order to avoid race
752 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
753 # systems are expected to put that etag in the request to `setIamPolicy` to
754 # ensure that their change will be applied to the same version of the policy.
755 #
756 # **Important:** If you use IAM Conditions, you must include the `etag` field
757 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
758 # you to overwrite a version `3` policy with a version `1` policy, and all of
759 # the conditions in the version `3` policy are lost.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700760 &quot;version&quot;: 42, # Specifies the format of the policy.
761 #
762 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
763 # are rejected.
764 #
765 # Any operation that affects conditional role bindings must specify version
766 # `3`. This requirement applies to the following operations:
767 #
768 # * Getting a policy that includes a conditional role binding
769 # * Adding a conditional role binding to a policy
770 # * Changing a conditional role binding in a policy
771 # * Removing any role binding, with or without a condition, from a policy
772 # that includes conditions
773 #
774 # **Important:** If you use IAM Conditions, you must include the `etag` field
775 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
776 # you to overwrite a version `3` policy with a version `1` policy, and all of
777 # the conditions in the version `3` policy are lost.
778 #
779 # If a policy does not include any conditions, operations on that policy may
780 # specify any valid version or leave the field unset.
781 #
782 # To learn which resources support conditions in their IAM policies, see the
783 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700785 # `condition` that determines how and when the `bindings` are applied. Each
786 # of the `bindings` must contain at least one member.
787 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 # `members` can have the following values:
790 #
791 # * `allUsers`: A special identifier that represents anyone who is
792 # on the internet; with or without a Google account.
793 #
794 # * `allAuthenticatedUsers`: A special identifier that represents anyone
795 # who is authenticated with a Google account or a service account.
796 #
797 # * `user:{emailid}`: An email address that represents a specific Google
798 # account. For example, `alice@example.com` .
799 #
800 #
801 # * `serviceAccount:{emailid}`: An email address that represents a service
802 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
803 #
804 # * `group:{emailid}`: An email address that represents a Google group.
805 # For example, `admins@example.com`.
806 #
807 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
808 # identifier) representing a user that has been recently deleted. For
809 # example, `alice@example.com?uid=123456789012345678901`. If the user is
810 # recovered, this value reverts to `user:{emailid}` and the recovered user
811 # retains the role in the binding.
812 #
813 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
814 # unique identifier) representing a service account that has been recently
815 # deleted. For example,
816 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
817 # If the service account is undeleted, this value reverts to
818 # `serviceAccount:{emailid}` and the undeleted service account retains the
819 # role in the binding.
820 #
821 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
822 # identifier) representing a Google group that has been recently
823 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
824 # the group is recovered, this value reverts to `group:{emailid}` and the
825 # recovered group retains the role in the binding.
826 #
827 #
828 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
829 # users of that domain. For example, `google.com` or `example.com`.
830 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700831 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700832 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700833 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
834 #
835 # If the condition evaluates to `true`, then this binding applies to the
836 # current request.
837 #
838 # If the condition evaluates to `false`, then this binding does not apply to
839 # the current request. However, a different role binding might grant the same
840 # role to one or more of the members in this binding.
841 #
842 # To learn which resources support conditions in their IAM policies, see the
843 # [IAM
844 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
845 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
846 # are documented at https://github.com/google/cel-spec.
847 #
848 # Example (Comparison):
849 #
850 # title: &quot;Summary size limit&quot;
851 # description: &quot;Determines if a summary is less than 100 chars&quot;
852 # expression: &quot;document.summary.size() &lt; 100&quot;
853 #
854 # Example (Equality):
855 #
856 # title: &quot;Requestor is owner&quot;
857 # description: &quot;Determines if requestor is the document owner&quot;
858 # expression: &quot;document.owner == request.auth.claims.email&quot;
859 #
860 # Example (Logic):
861 #
862 # title: &quot;Public documents&quot;
863 # description: &quot;Determine whether the document should be publicly visible&quot;
864 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
865 #
866 # Example (Data Manipulation):
867 #
868 # title: &quot;Notification string&quot;
869 # description: &quot;Create a notification string with a timestamp.&quot;
870 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
871 #
872 # The exact variables and functions that may be referenced within an expression
873 # are determined by the service that evaluates it. See the service
874 # documentation for additional information.
875 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
876 # describes the expression, e.g. when hovered over it in a UI.
877 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
878 # its purpose. This can be used e.g. in UIs which allow to enter the
879 # expression.
880 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
881 # reporting, e.g. a file name and a position in the file.
882 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
883 # syntax.
884 },
885 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
886 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700887 },
888 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
890 { # Specifies the audit configuration for a service.
891 # The configuration determines which permission types are logged, and what
892 # identities, if any, are exempted from logging.
893 # An AuditConfig must have one or more AuditLogConfigs.
894 #
895 # If there are AuditConfigs for both `allServices` and a specific service,
896 # the union of the two AuditConfigs is used for that service: the log_types
897 # specified in each AuditConfig are enabled, and the exempted_members in each
898 # AuditLogConfig are exempted.
899 #
900 # Example Policy with multiple AuditConfigs:
901 #
902 # {
903 # &quot;audit_configs&quot;: [
904 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700905 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 # &quot;audit_log_configs&quot;: [
907 # {
908 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
909 # &quot;exempted_members&quot;: [
910 # &quot;user:jose@example.com&quot;
911 # ]
912 # },
913 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700914 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 # },
916 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700917 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 # }
919 # ]
920 # },
921 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700922 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 # &quot;audit_log_configs&quot;: [
924 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700925 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 # },
927 # {
928 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
929 # &quot;exempted_members&quot;: [
930 # &quot;user:aliya@example.com&quot;
931 # ]
932 # }
933 # ]
934 # }
935 # ]
936 # }
937 #
938 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
939 # logging. It also exempts jose@example.com from DATA_READ logging, and
940 # aliya@example.com from DATA_WRITE logging.
941 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
942 { # Provides the configuration for logging a type of permissions.
943 # Example:
944 #
945 # {
946 # &quot;audit_log_configs&quot;: [
947 # {
948 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
949 # &quot;exempted_members&quot;: [
950 # &quot;user:jose@example.com&quot;
951 # ]
952 # },
953 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700954 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700955 # }
956 # ]
957 # }
958 #
959 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
960 # jose@example.com from DATA_READ logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700961 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700962 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
963 # permission.
964 # Follows the same format of Binding.members.
965 &quot;A String&quot;,
966 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 },
968 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700969 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
970 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
971 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -0700972 },
973 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700974 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700975 }
976
977 x__xgafv: string, V1 error format.
978 Allowed values
979 1 - v1 error format
980 2 - v2 error format
981
982Returns:
983 An object of the form:
984
Dan O'Mearadd494642020-05-01 07:42:23 -0700985 { # An Identity and Access Management (IAM) policy, which specifies access
986 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700987 #
988 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700989 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
990 # `members` to a single `role`. Members can be user accounts, service accounts,
991 # Google groups, and domains (such as G Suite). A `role` is a named list of
992 # permissions; each `role` can be an IAM predefined role or a user-created
993 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700994 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700995 # For some types of Google Cloud resources, a `binding` can also specify a
996 # `condition`, which is a logical expression that allows access to a resource
997 # only if the expression evaluates to `true`. A condition can add constraints
998 # based on attributes of the request, the resource, or both. To learn which
999 # resources support conditions in their IAM policies, see the
1000 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001001 #
1002 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001003 #
1004 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001006 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1008 # &quot;members&quot;: [
1009 # &quot;user:mike@example.com&quot;,
1010 # &quot;group:admins@example.com&quot;,
1011 # &quot;domain:google.com&quot;,
1012 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001013 # ]
1014 # },
1015 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001016 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1017 # &quot;members&quot;: [
1018 # &quot;user:eve@example.com&quot;
1019 # ],
1020 # &quot;condition&quot;: {
1021 # &quot;title&quot;: &quot;expirable access&quot;,
1022 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1023 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001024 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001025 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001026 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001027 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1028 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001029 # }
1030 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001031 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001032 #
1033 # bindings:
1034 # - members:
1035 # - user:mike@example.com
1036 # - group:admins@example.com
1037 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001038 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1039 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001041 # - user:eve@example.com
1042 # role: roles/resourcemanager.organizationViewer
1043 # condition:
1044 # title: expirable access
1045 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001047 # - etag: BwWWja0YfJA=
1048 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001049 #
1050 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001051 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001052 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1053 # prevent simultaneous updates of a policy from overwriting each other.
1054 # It is strongly suggested that systems make use of the `etag` in the
1055 # read-modify-write cycle to perform policy updates in order to avoid race
1056 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1057 # systems are expected to put that etag in the request to `setIamPolicy` to
1058 # ensure that their change will be applied to the same version of the policy.
1059 #
1060 # **Important:** If you use IAM Conditions, you must include the `etag` field
1061 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1062 # you to overwrite a version `3` policy with a version `1` policy, and all of
1063 # the conditions in the version `3` policy are lost.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001064 &quot;version&quot;: 42, # Specifies the format of the policy.
1065 #
1066 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1067 # are rejected.
1068 #
1069 # Any operation that affects conditional role bindings must specify version
1070 # `3`. This requirement applies to the following operations:
1071 #
1072 # * Getting a policy that includes a conditional role binding
1073 # * Adding a conditional role binding to a policy
1074 # * Changing a conditional role binding in a policy
1075 # * Removing any role binding, with or without a condition, from a policy
1076 # that includes conditions
1077 #
1078 # **Important:** If you use IAM Conditions, you must include the `etag` field
1079 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1080 # you to overwrite a version `3` policy with a version `1` policy, and all of
1081 # the conditions in the version `3` policy are lost.
1082 #
1083 # If a policy does not include any conditions, operations on that policy may
1084 # specify any valid version or leave the field unset.
1085 #
1086 # To learn which resources support conditions in their IAM policies, see the
1087 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001088 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001089 # `condition` that determines how and when the `bindings` are applied. Each
1090 # of the `bindings` must contain at least one member.
1091 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001092 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001093 # `members` can have the following values:
1094 #
1095 # * `allUsers`: A special identifier that represents anyone who is
1096 # on the internet; with or without a Google account.
1097 #
1098 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1099 # who is authenticated with a Google account or a service account.
1100 #
1101 # * `user:{emailid}`: An email address that represents a specific Google
1102 # account. For example, `alice@example.com` .
1103 #
1104 #
1105 # * `serviceAccount:{emailid}`: An email address that represents a service
1106 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1107 #
1108 # * `group:{emailid}`: An email address that represents a Google group.
1109 # For example, `admins@example.com`.
1110 #
1111 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1112 # identifier) representing a user that has been recently deleted. For
1113 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1114 # recovered, this value reverts to `user:{emailid}` and the recovered user
1115 # retains the role in the binding.
1116 #
1117 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1118 # unique identifier) representing a service account that has been recently
1119 # deleted. For example,
1120 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1121 # If the service account is undeleted, this value reverts to
1122 # `serviceAccount:{emailid}` and the undeleted service account retains the
1123 # role in the binding.
1124 #
1125 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1126 # identifier) representing a Google group that has been recently
1127 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1128 # the group is recovered, this value reverts to `group:{emailid}` and the
1129 # recovered group retains the role in the binding.
1130 #
1131 #
1132 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1133 # users of that domain. For example, `google.com` or `example.com`.
1134 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001136 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001137 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1138 #
1139 # If the condition evaluates to `true`, then this binding applies to the
1140 # current request.
1141 #
1142 # If the condition evaluates to `false`, then this binding does not apply to
1143 # the current request. However, a different role binding might grant the same
1144 # role to one or more of the members in this binding.
1145 #
1146 # To learn which resources support conditions in their IAM policies, see the
1147 # [IAM
1148 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1149 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1150 # are documented at https://github.com/google/cel-spec.
1151 #
1152 # Example (Comparison):
1153 #
1154 # title: &quot;Summary size limit&quot;
1155 # description: &quot;Determines if a summary is less than 100 chars&quot;
1156 # expression: &quot;document.summary.size() &lt; 100&quot;
1157 #
1158 # Example (Equality):
1159 #
1160 # title: &quot;Requestor is owner&quot;
1161 # description: &quot;Determines if requestor is the document owner&quot;
1162 # expression: &quot;document.owner == request.auth.claims.email&quot;
1163 #
1164 # Example (Logic):
1165 #
1166 # title: &quot;Public documents&quot;
1167 # description: &quot;Determine whether the document should be publicly visible&quot;
1168 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1169 #
1170 # Example (Data Manipulation):
1171 #
1172 # title: &quot;Notification string&quot;
1173 # description: &quot;Create a notification string with a timestamp.&quot;
1174 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1175 #
1176 # The exact variables and functions that may be referenced within an expression
1177 # are determined by the service that evaluates it. See the service
1178 # documentation for additional information.
1179 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1180 # describes the expression, e.g. when hovered over it in a UI.
1181 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1182 # its purpose. This can be used e.g. in UIs which allow to enter the
1183 # expression.
1184 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1185 # reporting, e.g. a file name and a position in the file.
1186 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1187 # syntax.
1188 },
1189 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1190 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001191 },
1192 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1194 { # Specifies the audit configuration for a service.
1195 # The configuration determines which permission types are logged, and what
1196 # identities, if any, are exempted from logging.
1197 # An AuditConfig must have one or more AuditLogConfigs.
1198 #
1199 # If there are AuditConfigs for both `allServices` and a specific service,
1200 # the union of the two AuditConfigs is used for that service: the log_types
1201 # specified in each AuditConfig are enabled, and the exempted_members in each
1202 # AuditLogConfig are exempted.
1203 #
1204 # Example Policy with multiple AuditConfigs:
1205 #
1206 # {
1207 # &quot;audit_configs&quot;: [
1208 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001209 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 # &quot;audit_log_configs&quot;: [
1211 # {
1212 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1213 # &quot;exempted_members&quot;: [
1214 # &quot;user:jose@example.com&quot;
1215 # ]
1216 # },
1217 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001218 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 # },
1220 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001221 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001222 # }
1223 # ]
1224 # },
1225 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001226 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 # &quot;audit_log_configs&quot;: [
1228 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001229 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 # },
1231 # {
1232 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1233 # &quot;exempted_members&quot;: [
1234 # &quot;user:aliya@example.com&quot;
1235 # ]
1236 # }
1237 # ]
1238 # }
1239 # ]
1240 # }
1241 #
1242 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1243 # logging. It also exempts jose@example.com from DATA_READ logging, and
1244 # aliya@example.com from DATA_WRITE logging.
1245 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1246 { # Provides the configuration for logging a type of permissions.
1247 # Example:
1248 #
1249 # {
1250 # &quot;audit_log_configs&quot;: [
1251 # {
1252 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1253 # &quot;exempted_members&quot;: [
1254 # &quot;user:jose@example.com&quot;
1255 # ]
1256 # },
1257 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001258 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001259 # }
1260 # ]
1261 # }
1262 #
1263 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1264 # jose@example.com from DATA_READ logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001265 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001266 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1267 # permission.
1268 # Follows the same format of Binding.members.
1269 &quot;A String&quot;,
1270 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001271 },
1272 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001273 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1274 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1275 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -07001276 },
1277 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001278 }</pre>
1279</div>
1280
1281<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001282 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001283 <pre>Tests the access control policy for a billing account. This method takes
1284the resource and a set of permissions as input and returns the subset of
1285the input permissions that the caller is allowed for that resource.
1286
1287Args:
1288 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1289See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001290 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291 The object takes the form of:
1292
1293{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001294 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1295 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001296 # information see
1297 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001298 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001299 ],
1300 }
1301
1302 x__xgafv: string, V1 error format.
1303 Allowed values
1304 1 - v1 error format
1305 2 - v2 error format
1306
1307Returns:
1308 An object of the form:
1309
1310 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001311 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001312 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001314 ],
1315 }</pre>
1316</div>
1317
Takashi Matsuo06694102015-09-11 13:55:40 -07001318</body></html>