blob: 32e7751ca2348b8e8ee7950448ce55751d1469ba [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 Kim65020912020-05-20 12:08:20 -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/).
125 # You can assign a billing account to one or more projects.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
127 # `billingAccounts/{billing_account_id}`. For example,
128 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
129 # billing account `012345-567890-ABCDEF`.
130 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
131 # usage on associated projects. False if the billing account is closed, and
132 # therefore projects associated with it will be unable to use paid services.
133 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134 # Account`. This name is displayed in the GCP Console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
137 # will be the resource name of the master billing account that it is being
138 # resold through.
139 # Otherwise this will be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140}
141
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/).
151 # You can assign a billing account to one or more projects.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
153 # `billingAccounts/{billing_account_id}`. For example,
154 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
155 # billing account `012345-567890-ABCDEF`.
156 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
157 # usage on associated projects. False if the billing account is closed, and
158 # therefore projects associated with it will be unable to use paid services.
159 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 # Account`. This name is displayed in the GCP Console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700162 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
163 # will be the resource name of the master billing account that it is being
164 # resold through.
165 # Otherwise this will be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 }</pre>
167</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/).
187 # You can assign a billing account to one or more projects.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
189 # `billingAccounts/{billing_account_id}`. For example,
190 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
191 # billing account `012345-567890-ABCDEF`.
192 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
193 # usage on associated projects. False if the billing account is closed, and
194 # therefore projects associated with it will be unable to use paid services.
195 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 # Account`. This name is displayed in the GCP Console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
199 # will be the resource name of the master billing account that it is being
200 # resold through.
201 # Otherwise this will be empty.
Takashi Matsuo06694102015-09-11 13:55:40 -0700202 }</pre>
203</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 Kim65020912020-05-20 12:08:20 -0700302 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700303 # `condition` that determines how and when the `bindings` are applied. Each
304 # of the `bindings` must contain at least one member.
305 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
307 #
308 # If the condition evaluates to `true`, then this binding applies to the
309 # current request.
310 #
311 # If the condition evaluates to `false`, then this binding does not apply to
312 # the current request. However, a different role binding might grant the same
313 # role to one or more of the members in this binding.
314 #
315 # To learn which resources support conditions in their IAM policies, see the
316 # [IAM
317 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700318 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
319 # are documented at https://github.com/google/cel-spec.
320 #
321 # Example (Comparison):
322 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 # title: &quot;Summary size limit&quot;
324 # description: &quot;Determines if a summary is less than 100 chars&quot;
325 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700326 #
327 # Example (Equality):
328 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 # title: &quot;Requestor is owner&quot;
330 # description: &quot;Determines if requestor is the document owner&quot;
331 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700332 #
333 # Example (Logic):
334 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 # title: &quot;Public documents&quot;
336 # description: &quot;Determine whether the document should be publicly visible&quot;
337 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700338 #
339 # Example (Data Manipulation):
340 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 # title: &quot;Notification string&quot;
342 # description: &quot;Create a notification string with a timestamp.&quot;
343 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700344 #
345 # The exact variables and functions that may be referenced within an expression
346 # are determined by the service that evaluates it. See the service
347 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
Dan O'Mearadd494642020-05-01 07:42:23 -0700349 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
Dan O'Mearadd494642020-05-01 07:42:23 -0700351 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -0700353 # its purpose. This can be used e.g. in UIs which allow to enter the
354 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700355 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
356 # reporting, e.g. a file name and a position in the file.
Dan O'Mearadd494642020-05-01 07:42:23 -0700357 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700359 # `members` can have the following values:
360 #
361 # * `allUsers`: A special identifier that represents anyone who is
362 # on the internet; with or without a Google account.
363 #
364 # * `allAuthenticatedUsers`: A special identifier that represents anyone
365 # who is authenticated with a Google account or a service account.
366 #
367 # * `user:{emailid}`: An email address that represents a specific Google
368 # account. For example, `alice@example.com` .
369 #
370 #
371 # * `serviceAccount:{emailid}`: An email address that represents a service
372 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
373 #
374 # * `group:{emailid}`: An email address that represents a Google group.
375 # For example, `admins@example.com`.
376 #
377 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
378 # identifier) representing a user that has been recently deleted. For
379 # example, `alice@example.com?uid=123456789012345678901`. If the user is
380 # recovered, this value reverts to `user:{emailid}` and the recovered user
381 # retains the role in the binding.
382 #
383 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
384 # unique identifier) representing a service account that has been recently
385 # deleted. For example,
386 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
387 # If the service account is undeleted, this value reverts to
388 # `serviceAccount:{emailid}` and the undeleted service account retains the
389 # role in the binding.
390 #
391 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
392 # identifier) representing a Google group that has been recently
393 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
394 # the group is recovered, this value reverts to `group:{emailid}` and the
395 # recovered group retains the role in the binding.
396 #
397 #
398 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
399 # users of that domain. For example, `google.com` or `example.com`.
400 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700402 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
404 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700405 },
406 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
Dan O'Mearadd494642020-05-01 07:42:23 -0700408 # prevent simultaneous updates of a policy from overwriting each other.
409 # It is strongly suggested that systems make use of the `etag` in the
410 # read-modify-write cycle to perform policy updates in order to avoid race
411 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
412 # systems are expected to put that etag in the request to `setIamPolicy` to
413 # ensure that their change will be applied to the same version of the policy.
414 #
415 # **Important:** If you use IAM Conditions, you must include the `etag` field
416 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
417 # you to overwrite a version `3` policy with a version `1` policy, and all of
418 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700419 &quot;version&quot;: 42, # Specifies the format of the policy.
420 #
421 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
422 # are rejected.
423 #
424 # Any operation that affects conditional role bindings must specify version
425 # `3`. This requirement applies to the following operations:
426 #
427 # * Getting a policy that includes a conditional role binding
428 # * Adding a conditional role binding to a policy
429 # * Changing a conditional role binding in a policy
430 # * Removing any role binding, with or without a condition, from a policy
431 # that includes conditions
432 #
433 # **Important:** If you use IAM Conditions, you must include the `etag` field
434 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
435 # you to overwrite a version `3` policy with a version `1` policy, and all of
436 # the conditions in the version `3` policy are lost.
437 #
438 # If a policy does not include any conditions, operations on that policy may
439 # specify any valid version or leave the field unset.
440 #
441 # To learn which resources support conditions in their IAM policies, see the
442 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
443 &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 # {
459 # &quot;service&quot;: &quot;allServices&quot;
460 # &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 # {
468 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
469 # },
470 # {
471 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
472 # }
473 # ]
474 # },
475 # {
476 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
477 # &quot;audit_log_configs&quot;: [
478 # {
479 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
480 # },
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 # {
508 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
509 # }
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.
515 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
516 # permission.
517 # Follows the same format of Binding.members.
518 &quot;A String&quot;,
519 ],
520 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
521 },
522 ],
523 &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.
526 },
527 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700528 }</pre>
529</div>
530
531<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -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:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400538 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 Kim65020912020-05-20 12:08:20 -0700558 &quot;billingAccounts&quot;: [ # A list of billing accounts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700559 { # A billing account in [GCP Console](https://console.cloud.google.com/).
560 # You can assign a billing account to one or more projects.
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
562 # `billingAccounts/{billing_account_id}`. For example,
563 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
564 # billing account `012345-567890-ABCDEF`.
565 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
566 # usage on associated projects. False if the billing account is closed, and
567 # therefore projects associated with it will be unable to use paid services.
568 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569 # Account`. This name is displayed in the GCP Console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700570 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700571 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
572 # will be the resource name of the master billing account that it is being
573 # resold through.
574 # Otherwise this will be empty.
Takashi Matsuo06694102015-09-11 13:55:40 -0700575 },
576 ],
Bu Sun Kim65020912020-05-20 12:08:20 -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/).
612 # You can assign a billing account to one or more projects.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
614 # `billingAccounts/{billing_account_id}`. For example,
615 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
616 # billing account `012345-567890-ABCDEF`.
617 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
618 # usage on associated projects. False if the billing account is closed, and
619 # therefore projects associated with it will be unable to use paid services.
620 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700621 # Account`. This name is displayed in the GCP Console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
624 # will be the resource name of the master billing account that it is being
625 # resold through.
626 # Otherwise this will be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627}
628
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/).
640 # You can assign a billing account to one or more projects.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &quot;name&quot;: &quot;A String&quot;, # The resource name of the billing account. The resource name has the form
642 # `billingAccounts/{billing_account_id}`. For example,
643 # `billingAccounts/012345-567890-ABCDEF` would be the resource name for
644 # billing account `012345-567890-ABCDEF`.
645 &quot;open&quot;: True or False, # Output only. True if the billing account is open, and will therefore be charged for any
646 # usage on associated projects. False if the billing account is closed, and
647 # therefore projects associated with it will be unable to use paid services.
648 &quot;displayName&quot;: &quot;A String&quot;, # The display name given to the billing account, such as `My Billing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700649 # Account`. This name is displayed in the GCP Console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;masterBillingAccount&quot;: &quot;A String&quot;, # If this account is a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 # [subaccount](https://cloud.google.com/billing/docs/concepts), then this
652 # will be the resource name of the master billing account that it is being
653 # resold through.
654 # Otherwise this will be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 }</pre>
656</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 Kim65020912020-05-20 12:08:20 -0700673 &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 -0700674 # the policy is limited to a few 10s of KB. An empty policy is a
675 # valid policy but certain Cloud Platform services (such as Projects)
676 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700677 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700678 #
679 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700680 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
681 # `members` to a single `role`. Members can be user accounts, service accounts,
682 # Google groups, and domains (such as G Suite). A `role` is a named list of
683 # permissions; each `role` can be an IAM predefined role or a user-created
684 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700685 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 # For some types of Google Cloud resources, a `binding` can also specify a
687 # `condition`, which is a logical expression that allows access to a resource
688 # only if the expression evaluates to `true`. A condition can add constraints
689 # based on attributes of the request, the resource, or both. To learn which
690 # resources support conditions in their IAM policies, see the
691 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700692 #
693 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700694 #
695 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700696 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700697 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700698 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
699 # &quot;members&quot;: [
700 # &quot;user:mike@example.com&quot;,
701 # &quot;group:admins@example.com&quot;,
702 # &quot;domain:google.com&quot;,
703 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700704 # ]
705 # },
706 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
708 # &quot;members&quot;: [
709 # &quot;user:eve@example.com&quot;
710 # ],
711 # &quot;condition&quot;: {
712 # &quot;title&quot;: &quot;expirable access&quot;,
713 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
714 # &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 -0700715 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700716 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700717 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700718 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
719 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700720 # }
721 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700722 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700723 #
724 # bindings:
725 # - members:
726 # - user:mike@example.com
727 # - group:admins@example.com
728 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700729 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
730 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700731 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700732 # - user:eve@example.com
733 # role: roles/resourcemanager.organizationViewer
734 # condition:
735 # title: expirable access
736 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 # - etag: BwWWja0YfJA=
739 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740 #
741 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700742 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700744 # `condition` that determines how and when the `bindings` are applied. Each
745 # of the `bindings` must contain at least one member.
746 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
748 #
749 # If the condition evaluates to `true`, then this binding applies to the
750 # current request.
751 #
752 # If the condition evaluates to `false`, then this binding does not apply to
753 # the current request. However, a different role binding might grant the same
754 # role to one or more of the members in this binding.
755 #
756 # To learn which resources support conditions in their IAM policies, see the
757 # [IAM
758 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700759 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
760 # are documented at https://github.com/google/cel-spec.
761 #
762 # Example (Comparison):
763 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 # title: &quot;Summary size limit&quot;
765 # description: &quot;Determines if a summary is less than 100 chars&quot;
766 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700767 #
768 # Example (Equality):
769 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 # title: &quot;Requestor is owner&quot;
771 # description: &quot;Determines if requestor is the document owner&quot;
772 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700773 #
774 # Example (Logic):
775 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 # title: &quot;Public documents&quot;
777 # description: &quot;Determine whether the document should be publicly visible&quot;
778 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700779 #
780 # Example (Data Manipulation):
781 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 # title: &quot;Notification string&quot;
783 # description: &quot;Create a notification string with a timestamp.&quot;
784 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700785 #
786 # The exact variables and functions that may be referenced within an expression
787 # are determined by the service that evaluates it. See the service
788 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700789 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
Dan O'Mearadd494642020-05-01 07:42:23 -0700790 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
Dan O'Mearadd494642020-05-01 07:42:23 -0700792 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -0700794 # its purpose. This can be used e.g. in UIs which allow to enter the
795 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700796 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
797 # reporting, e.g. a file name and a position in the file.
Dan O'Mearadd494642020-05-01 07:42:23 -0700798 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700799 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700800 # `members` can have the following values:
801 #
802 # * `allUsers`: A special identifier that represents anyone who is
803 # on the internet; with or without a Google account.
804 #
805 # * `allAuthenticatedUsers`: A special identifier that represents anyone
806 # who is authenticated with a Google account or a service account.
807 #
808 # * `user:{emailid}`: An email address that represents a specific Google
809 # account. For example, `alice@example.com` .
810 #
811 #
812 # * `serviceAccount:{emailid}`: An email address that represents a service
813 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
814 #
815 # * `group:{emailid}`: An email address that represents a Google group.
816 # For example, `admins@example.com`.
817 #
818 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
819 # identifier) representing a user that has been recently deleted. For
820 # example, `alice@example.com?uid=123456789012345678901`. If the user is
821 # recovered, this value reverts to `user:{emailid}` and the recovered user
822 # retains the role in the binding.
823 #
824 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
825 # unique identifier) representing a service account that has been recently
826 # deleted. For example,
827 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
828 # If the service account is undeleted, this value reverts to
829 # `serviceAccount:{emailid}` and the undeleted service account retains the
830 # role in the binding.
831 #
832 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
833 # identifier) representing a Google group that has been recently
834 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
835 # the group is recovered, this value reverts to `group:{emailid}` and the
836 # recovered group retains the role in the binding.
837 #
838 #
839 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
840 # users of that domain. For example, `google.com` or `example.com`.
841 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700843 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
845 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 },
847 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700848 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
Dan O'Mearadd494642020-05-01 07:42:23 -0700849 # prevent simultaneous updates of a policy from overwriting each other.
850 # It is strongly suggested that systems make use of the `etag` in the
851 # read-modify-write cycle to perform policy updates in order to avoid race
852 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
853 # systems are expected to put that etag in the request to `setIamPolicy` to
854 # ensure that their change will be applied to the same version of the policy.
855 #
856 # **Important:** If you use IAM Conditions, you must include the `etag` field
857 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
858 # you to overwrite a version `3` policy with a version `1` policy, and all of
859 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &quot;version&quot;: 42, # Specifies the format of the policy.
861 #
862 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
863 # are rejected.
864 #
865 # Any operation that affects conditional role bindings must specify version
866 # `3`. This requirement applies to the following operations:
867 #
868 # * Getting a policy that includes a conditional role binding
869 # * Adding a conditional role binding to a policy
870 # * Changing a conditional role binding in a policy
871 # * Removing any role binding, with or without a condition, from a policy
872 # that includes conditions
873 #
874 # **Important:** If you use IAM Conditions, you must include the `etag` field
875 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
876 # you to overwrite a version `3` policy with a version `1` policy, and all of
877 # the conditions in the version `3` policy are lost.
878 #
879 # If a policy does not include any conditions, operations on that policy may
880 # specify any valid version or leave the field unset.
881 #
882 # To learn which resources support conditions in their IAM policies, see the
883 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
884 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
885 { # Specifies the audit configuration for a service.
886 # The configuration determines which permission types are logged, and what
887 # identities, if any, are exempted from logging.
888 # An AuditConfig must have one or more AuditLogConfigs.
889 #
890 # If there are AuditConfigs for both `allServices` and a specific service,
891 # the union of the two AuditConfigs is used for that service: the log_types
892 # specified in each AuditConfig are enabled, and the exempted_members in each
893 # AuditLogConfig are exempted.
894 #
895 # Example Policy with multiple AuditConfigs:
896 #
897 # {
898 # &quot;audit_configs&quot;: [
899 # {
900 # &quot;service&quot;: &quot;allServices&quot;
901 # &quot;audit_log_configs&quot;: [
902 # {
903 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
904 # &quot;exempted_members&quot;: [
905 # &quot;user:jose@example.com&quot;
906 # ]
907 # },
908 # {
909 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
910 # },
911 # {
912 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
913 # }
914 # ]
915 # },
916 # {
917 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
918 # &quot;audit_log_configs&quot;: [
919 # {
920 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
921 # },
922 # {
923 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
924 # &quot;exempted_members&quot;: [
925 # &quot;user:aliya@example.com&quot;
926 # ]
927 # }
928 # ]
929 # }
930 # ]
931 # }
932 #
933 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
934 # logging. It also exempts jose@example.com from DATA_READ logging, and
935 # aliya@example.com from DATA_WRITE logging.
936 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
937 { # Provides the configuration for logging a type of permissions.
938 # Example:
939 #
940 # {
941 # &quot;audit_log_configs&quot;: [
942 # {
943 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
944 # &quot;exempted_members&quot;: [
945 # &quot;user:jose@example.com&quot;
946 # ]
947 # },
948 # {
949 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
950 # }
951 # ]
952 # }
953 #
954 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
955 # jose@example.com from DATA_READ logging.
956 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
957 # permission.
958 # Follows the same format of Binding.members.
959 &quot;A String&quot;,
960 ],
961 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
962 },
963 ],
964 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
965 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
966 # `allServices` is a special value that covers all services.
967 },
968 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700969 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700970 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700971 # the fields in the mask will be modified. If no mask is provided, the
972 # following default mask is used:
Dan O'Mearadd494642020-05-01 07:42:23 -0700973 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700974 # `paths: &quot;bindings, etag&quot;`
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 Kim65020912020-05-20 12:08:20 -07001052 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001053 # `condition` that determines how and when the `bindings` are applied. Each
1054 # of the `bindings` must contain at least one member.
1055 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001056 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1057 #
1058 # If the condition evaluates to `true`, then this binding applies to the
1059 # current request.
1060 #
1061 # If the condition evaluates to `false`, then this binding does not apply to
1062 # the current request. However, a different role binding might grant the same
1063 # role to one or more of the members in this binding.
1064 #
1065 # To learn which resources support conditions in their IAM policies, see the
1066 # [IAM
1067 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001068 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1069 # are documented at https://github.com/google/cel-spec.
1070 #
1071 # Example (Comparison):
1072 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001073 # title: &quot;Summary size limit&quot;
1074 # description: &quot;Determines if a summary is less than 100 chars&quot;
1075 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001076 #
1077 # Example (Equality):
1078 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001079 # title: &quot;Requestor is owner&quot;
1080 # description: &quot;Determines if requestor is the document owner&quot;
1081 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001082 #
1083 # Example (Logic):
1084 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001085 # title: &quot;Public documents&quot;
1086 # description: &quot;Determine whether the document should be publicly visible&quot;
1087 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001088 #
1089 # Example (Data Manipulation):
1090 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001091 # title: &quot;Notification string&quot;
1092 # description: &quot;Create a notification string with a timestamp.&quot;
1093 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001094 #
1095 # The exact variables and functions that may be referenced within an expression
1096 # are determined by the service that evaluates it. See the service
1097 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
Dan O'Mearadd494642020-05-01 07:42:23 -07001099 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
Dan O'Mearadd494642020-05-01 07:42:23 -07001101 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -07001103 # its purpose. This can be used e.g. in UIs which allow to enter the
1104 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001105 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1106 # reporting, e.g. a file name and a position in the file.
Dan O'Mearadd494642020-05-01 07:42:23 -07001107 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001109 # `members` can have the following values:
1110 #
1111 # * `allUsers`: A special identifier that represents anyone who is
1112 # on the internet; with or without a Google account.
1113 #
1114 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1115 # who is authenticated with a Google account or a service account.
1116 #
1117 # * `user:{emailid}`: An email address that represents a specific Google
1118 # account. For example, `alice@example.com` .
1119 #
1120 #
1121 # * `serviceAccount:{emailid}`: An email address that represents a service
1122 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1123 #
1124 # * `group:{emailid}`: An email address that represents a Google group.
1125 # For example, `admins@example.com`.
1126 #
1127 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1128 # identifier) representing a user that has been recently deleted. For
1129 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1130 # recovered, this value reverts to `user:{emailid}` and the recovered user
1131 # retains the role in the binding.
1132 #
1133 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1134 # unique identifier) representing a service account that has been recently
1135 # deleted. For example,
1136 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1137 # If the service account is undeleted, this value reverts to
1138 # `serviceAccount:{emailid}` and the undeleted service account retains the
1139 # role in the binding.
1140 #
1141 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1142 # identifier) representing a Google group that has been recently
1143 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1144 # the group is recovered, this value reverts to `group:{emailid}` and the
1145 # recovered group retains the role in the binding.
1146 #
1147 #
1148 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1149 # users of that domain. For example, `google.com` or `example.com`.
1150 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001151 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001152 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001153 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1154 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001155 },
1156 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001157 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
Dan O'Mearadd494642020-05-01 07:42:23 -07001158 # prevent simultaneous updates of a policy from overwriting each other.
1159 # It is strongly suggested that systems make use of the `etag` in the
1160 # read-modify-write cycle to perform policy updates in order to avoid race
1161 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1162 # systems are expected to put that etag in the request to `setIamPolicy` to
1163 # ensure that their change will be applied to the same version of the policy.
1164 #
1165 # **Important:** If you use IAM Conditions, you must include the `etag` field
1166 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1167 # you to overwrite a version `3` policy with a version `1` policy, and all of
1168 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 &quot;version&quot;: 42, # Specifies the format of the policy.
1170 #
1171 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1172 # are rejected.
1173 #
1174 # Any operation that affects conditional role bindings must specify version
1175 # `3`. This requirement applies to the following operations:
1176 #
1177 # * Getting a policy that includes a conditional role binding
1178 # * Adding a conditional role binding to a policy
1179 # * Changing a conditional role binding in a policy
1180 # * Removing any role binding, with or without a condition, from a policy
1181 # that includes conditions
1182 #
1183 # **Important:** If you use IAM Conditions, you must include the `etag` field
1184 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1185 # you to overwrite a version `3` policy with a version `1` policy, and all of
1186 # the conditions in the version `3` policy are lost.
1187 #
1188 # If a policy does not include any conditions, operations on that policy may
1189 # specify any valid version or leave the field unset.
1190 #
1191 # To learn which resources support conditions in their IAM policies, see the
1192 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1193 &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 # {
1209 # &quot;service&quot;: &quot;allServices&quot;
1210 # &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 # {
1218 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1219 # },
1220 # {
1221 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1222 # }
1223 # ]
1224 # },
1225 # {
1226 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1227 # &quot;audit_log_configs&quot;: [
1228 # {
1229 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1230 # },
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 # {
1258 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1259 # }
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.
1265 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1266 # permission.
1267 # Follows the same format of Binding.members.
1268 &quot;A String&quot;,
1269 ],
1270 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1271 },
1272 ],
1273 &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.
1276 },
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>