blob: 2f988d2ea15eafa4405e8c6670fe470f7f1fbcea [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="bigtableadmin_v2.html">Cloud Bigtable Admin API</a> . <a href="bigtableadmin_v2.projects.html">projects</a> . <a href="bigtableadmin_v2.projects.instances.html">instances</a> . <a href="bigtableadmin_v2.projects.instances.clusters.html">clusters</a> . <a href="bigtableadmin_v2.projects.instances.clusters.backups.html">backups</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#create">create(parent, body=None, backupId=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Starts creating a new Cloud Bigtable Backup. The returned backup</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a pending or completed Cloud Bigtable backup.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets metadata on a pending or completed Cloud Bigtable Backup.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the access control policy for a Table resource.</p>
89<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(parent, pageSize=None, pageToken=None, filter=None, orderBy=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Lists Cloud Bigtable backups. Returns both completed and pending</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Updates a pending or completed Cloud Bigtable Backup.</p>
98<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Sets the access control policy on a Table resource.</p>
101<p class="toc_element">
102 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Returns permissions that the caller has on the specified table resource.</p>
104<h3>Method Details</h3>
105<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700106 <code class="details" id="create">create(parent, body=None, backupId=None, x__xgafv=None)</code>
107 <pre>Starts creating a new Cloud Bigtable Backup. The returned backup
108long-running operation can be used to
109track creation of the backup. The
110metadata field type is
111CreateBackupMetadata. The
112response field type is
113Backup, if successful. Cancelling the returned operation will stop the
114creation and delete the backup.
115
116Args:
117 parent: string, Required. This must be one of the clusters in the instance in which this
118table is located. The backup will be stored in this cluster. Values are
119of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. (required)
120 body: object, The request body.
121 The object takes the form of:
122
123{ # A backup of a Cloud Bigtable table.
124 &quot;startTime&quot;: &quot;A String&quot;, # Output only. `start_time` is the time that the backup was started
125 # (i.e. approximately the time the
126 # CreateBackup request is received). The
127 # row data in this backup will be no older than this timestamp.
128 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
129 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. Size of the backup in bytes.
130 &quot;name&quot;: &quot;A String&quot;, # A globally unique identifier for the backup which cannot be
131 # changed. Values are of the form
132 # `projects/{project}/instances/{instance}/clusters/{cluster}/
133 # backups/_a-zA-Z0-9*`
134 # The final segment of the name must be between 1 and 50 characters
135 # in length.
136 #
137 # The backup is stored in the cluster identified by the prefix of the backup
138 # name of the form
139 # `projects/{project}/instances/{instance}/clusters/{cluster}`.
140 &quot;endTime&quot;: &quot;A String&quot;, # Output only. `end_time` is the time that the backup was finished. The row
141 # data in the backup will be no newer than this timestamp.
142 &quot;sourceTable&quot;: &quot;A String&quot;, # Required. Immutable. Name of the table from which this backup was created. This needs
143 # to be in the same instance as the backup. Values are of the form
144 # `projects/{project}/instances/{instance}/tables/{source_table}`.
145 &quot;expireTime&quot;: &quot;A String&quot;, # Required. The expiration time of the backup, with microseconds
146 # granularity that must be at least 6 hours and at most 30 days
147 # from the time the request is received. Once the `expire_time`
148 # has passed, Cloud Bigtable will delete the backup and free the
149 # resources used by the backup.
150}
151
152 backupId: string, Required. The id of the backup to be created. The `backup_id` along with
153the parent `parent` are combined as {parent}/backups/{backup_id} to create
154the full backup name, of the form:
155`projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
156This string must be between 1 and 50 characters in length and match the
157regex _a-zA-Z0-9*.
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163Returns:
164 An object of the form:
165
166 { # This resource represents a long-running operation that is the result of a
167 # network API call.
168 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
169 # contains progress information and common metadata such as create time.
170 # Some services might not provide such metadata. Any method that returns a
171 # long-running operation should document the metadata type, if any.
172 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
173 },
174 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
175 # different programming environments, including REST APIs and RPC APIs. It is
176 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
177 # three pieces of data: error code, error message, and error details.
178 #
179 # You can find out more about this error model and how to work with it in the
180 # [API Design Guide](https://cloud.google.com/apis/design/errors).
181 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
182 # message types for APIs to use.
183 {
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 ],
187 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
188 # user-facing error message should be localized and sent in the
189 # google.rpc.Status.details field, or localized by the client.
190 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
191 },
192 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
193 # method returns no data on success, such as `Delete`, the response is
194 # `google.protobuf.Empty`. If the original method is standard
195 # `Get`/`Create`/`Update`, the response should be the resource. For other
196 # methods, the response should have the type `XxxResponse`, where `Xxx`
197 # is the original method name. For example, if the original method name
198 # is `TakeSnapshot()`, the inferred response type is
199 # `TakeSnapshotResponse`.
200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
201 },
202 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
203 # originally returns it. If you use the default HTTP mapping, the
204 # `name` should be a resource name ending with `operations/{unique_id}`.
205 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
206 # If `true`, the operation is completed, and either `error` or `response` is
207 # available.
208 }</pre>
209</div>
210
211<div class="method">
212 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
213 <pre>Deletes a pending or completed Cloud Bigtable backup.
214
215Args:
216 name: string, Required. Name of the backup to delete.
217Values are of the form
218`projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. (required)
219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
223
224Returns:
225 An object of the form:
226
227 { # A generic empty message that you can re-use to avoid defining duplicated
228 # empty messages in your APIs. A typical example is to use it as the request
229 # or the response type of an API method. For instance:
230 #
231 # service Foo {
232 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
233 # }
234 #
235 # The JSON representation for `Empty` is empty JSON object `{}`.
236 }</pre>
237</div>
238
239<div class="method">
240 <code class="details" id="get">get(name, x__xgafv=None)</code>
241 <pre>Gets metadata on a pending or completed Cloud Bigtable Backup.
242
243Args:
244 name: string, Required. Name of the backup.
245Values are of the form
246`projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. (required)
247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
251
252Returns:
253 An object of the form:
254
255 { # A backup of a Cloud Bigtable table.
256 &quot;startTime&quot;: &quot;A String&quot;, # Output only. `start_time` is the time that the backup was started
257 # (i.e. approximately the time the
258 # CreateBackup request is received). The
259 # row data in this backup will be no older than this timestamp.
260 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
261 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. Size of the backup in bytes.
262 &quot;name&quot;: &quot;A String&quot;, # A globally unique identifier for the backup which cannot be
263 # changed. Values are of the form
264 # `projects/{project}/instances/{instance}/clusters/{cluster}/
265 # backups/_a-zA-Z0-9*`
266 # The final segment of the name must be between 1 and 50 characters
267 # in length.
268 #
269 # The backup is stored in the cluster identified by the prefix of the backup
270 # name of the form
271 # `projects/{project}/instances/{instance}/clusters/{cluster}`.
272 &quot;endTime&quot;: &quot;A String&quot;, # Output only. `end_time` is the time that the backup was finished. The row
273 # data in the backup will be no newer than this timestamp.
274 &quot;sourceTable&quot;: &quot;A String&quot;, # Required. Immutable. Name of the table from which this backup was created. This needs
275 # to be in the same instance as the backup. Values are of the form
276 # `projects/{project}/instances/{instance}/tables/{source_table}`.
277 &quot;expireTime&quot;: &quot;A String&quot;, # Required. The expiration time of the backup, with microseconds
278 # granularity that must be at least 6 hours and at most 30 days
279 # from the time the request is received. Once the `expire_time`
280 # has passed, Cloud Bigtable will delete the backup and free the
281 # resources used by the backup.
282 }</pre>
283</div>
284
285<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
287 <pre>Gets the access control policy for a Table resource.
288Returns an empty policy if the resource exists but does not have a policy
289set.
290
291Args:
292 resource: string, REQUIRED: The resource for which the policy is being requested.
293See the operation documentation for the appropriate value for this field. (required)
294 body: object, The request body.
295 The object takes the form of:
296
297{ # Request message for `GetIamPolicy` method.
298 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700299 # `GetIamPolicy`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
301 #
302 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
303 # rejected.
304 #
305 # Requests for policies with any conditional bindings must specify version 3.
306 # Policies without any conditional bindings may specify any valid value or
307 # leave the field unset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700308 #
309 # To learn which resources support conditions in their IAM policies, see the
310 # [IAM
311 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 },
313 }
314
315 x__xgafv: string, V1 error format.
316 Allowed values
317 1 - v1 error format
318 2 - v2 error format
319
320Returns:
321 An object of the form:
322
323 { # An Identity and Access Management (IAM) policy, which specifies access
324 # controls for Google Cloud resources.
325 #
326 #
327 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
328 # `members` to a single `role`. Members can be user accounts, service accounts,
329 # Google groups, and domains (such as G Suite). A `role` is a named list of
330 # permissions; each `role` can be an IAM predefined role or a user-created
331 # custom role.
332 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700333 # For some types of Google Cloud resources, a `binding` can also specify a
334 # `condition`, which is a logical expression that allows access to a resource
335 # only if the expression evaluates to `true`. A condition can add constraints
336 # based on attributes of the request, the resource, or both. To learn which
337 # resources support conditions in their IAM policies, see the
338 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 #
340 # **JSON example:**
341 #
342 # {
343 # &quot;bindings&quot;: [
344 # {
345 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
346 # &quot;members&quot;: [
347 # &quot;user:mike@example.com&quot;,
348 # &quot;group:admins@example.com&quot;,
349 # &quot;domain:google.com&quot;,
350 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
351 # ]
352 # },
353 # {
354 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700355 # &quot;members&quot;: [
356 # &quot;user:eve@example.com&quot;
357 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 # &quot;condition&quot;: {
359 # &quot;title&quot;: &quot;expirable access&quot;,
360 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
361 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
362 # }
363 # }
364 # ],
365 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
366 # &quot;version&quot;: 3
367 # }
368 #
369 # **YAML example:**
370 #
371 # bindings:
372 # - members:
373 # - user:mike@example.com
374 # - group:admins@example.com
375 # - domain:google.com
376 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
377 # role: roles/resourcemanager.organizationAdmin
378 # - members:
379 # - user:eve@example.com
380 # role: roles/resourcemanager.organizationViewer
381 # condition:
382 # title: expirable access
383 # description: Does not grant access after Sep 2020
384 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
385 # - etag: BwWWja0YfJA=
386 # - version: 3
387 #
388 # For a description of IAM and its features, see the
389 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
391 # `condition` that determines how and when the `bindings` are applied. Each
392 # of the `bindings` must contain at least one member.
393 { # Associates `members` with a `role`.
394 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700395 #
396 # If the condition evaluates to `true`, then this binding applies to the
397 # current request.
398 #
399 # If the condition evaluates to `false`, then this binding does not apply to
400 # the current request. However, a different role binding might grant the same
401 # role to one or more of the members in this binding.
402 #
403 # To learn which resources support conditions in their IAM policies, see the
404 # [IAM
405 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
407 # are documented at https://github.com/google/cel-spec.
408 #
409 # Example (Comparison):
410 #
411 # title: &quot;Summary size limit&quot;
412 # description: &quot;Determines if a summary is less than 100 chars&quot;
413 # expression: &quot;document.summary.size() &lt; 100&quot;
414 #
415 # Example (Equality):
416 #
417 # title: &quot;Requestor is owner&quot;
418 # description: &quot;Determines if requestor is the document owner&quot;
419 # expression: &quot;document.owner == request.auth.claims.email&quot;
420 #
421 # Example (Logic):
422 #
423 # title: &quot;Public documents&quot;
424 # description: &quot;Determine whether the document should be publicly visible&quot;
425 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
426 #
427 # Example (Data Manipulation):
428 #
429 # title: &quot;Notification string&quot;
430 # description: &quot;Create a notification string with a timestamp.&quot;
431 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
432 #
433 # The exact variables and functions that may be referenced within an expression
434 # are determined by the service that evaluates it. See the service
435 # documentation for additional information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700436 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
437 # syntax.
438 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
439 # describes the expression, e.g. when hovered over it in a UI.
440 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
441 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
443 # its purpose. This can be used e.g. in UIs which allow to enter the
444 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 },
446 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
447 # `members` can have the following values:
448 #
449 # * `allUsers`: A special identifier that represents anyone who is
450 # on the internet; with or without a Google account.
451 #
452 # * `allAuthenticatedUsers`: A special identifier that represents anyone
453 # who is authenticated with a Google account or a service account.
454 #
455 # * `user:{emailid}`: An email address that represents a specific Google
456 # account. For example, `alice@example.com` .
457 #
458 #
459 # * `serviceAccount:{emailid}`: An email address that represents a service
460 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
461 #
462 # * `group:{emailid}`: An email address that represents a Google group.
463 # For example, `admins@example.com`.
464 #
465 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
466 # identifier) representing a user that has been recently deleted. For
467 # example, `alice@example.com?uid=123456789012345678901`. If the user is
468 # recovered, this value reverts to `user:{emailid}` and the recovered user
469 # retains the role in the binding.
470 #
471 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
472 # unique identifier) representing a service account that has been recently
473 # deleted. For example,
474 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
475 # If the service account is undeleted, this value reverts to
476 # `serviceAccount:{emailid}` and the undeleted service account retains the
477 # role in the binding.
478 #
479 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
480 # identifier) representing a Google group that has been recently
481 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
482 # the group is recovered, this value reverts to `group:{emailid}` and the
483 # recovered group retains the role in the binding.
484 #
485 #
486 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
487 # users of that domain. For example, `google.com` or `example.com`.
488 #
489 &quot;A String&quot;,
490 ],
491 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
492 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
493 },
494 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700495 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
496 { # Specifies the audit configuration for a service.
497 # The configuration determines which permission types are logged, and what
498 # identities, if any, are exempted from logging.
499 # An AuditConfig must have one or more AuditLogConfigs.
500 #
501 # If there are AuditConfigs for both `allServices` and a specific service,
502 # the union of the two AuditConfigs is used for that service: the log_types
503 # specified in each AuditConfig are enabled, and the exempted_members in each
504 # AuditLogConfig are exempted.
505 #
506 # Example Policy with multiple AuditConfigs:
507 #
508 # {
509 # &quot;audit_configs&quot;: [
510 # {
511 # &quot;service&quot;: &quot;allServices&quot;,
512 # &quot;audit_log_configs&quot;: [
513 # {
514 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
515 # &quot;exempted_members&quot;: [
516 # &quot;user:jose@example.com&quot;
517 # ]
518 # },
519 # {
520 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
521 # },
522 # {
523 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
524 # }
525 # ]
526 # },
527 # {
528 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
529 # &quot;audit_log_configs&quot;: [
530 # {
531 # &quot;log_type&quot;: &quot;DATA_READ&quot;
532 # },
533 # {
534 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
535 # &quot;exempted_members&quot;: [
536 # &quot;user:aliya@example.com&quot;
537 # ]
538 # }
539 # ]
540 # }
541 # ]
542 # }
543 #
544 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
545 # logging. It also exempts jose@example.com from DATA_READ logging, and
546 # aliya@example.com from DATA_WRITE logging.
547 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
548 { # Provides the configuration for logging a type of permissions.
549 # Example:
550 #
551 # {
552 # &quot;audit_log_configs&quot;: [
553 # {
554 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
555 # &quot;exempted_members&quot;: [
556 # &quot;user:jose@example.com&quot;
557 # ]
558 # },
559 # {
560 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
561 # }
562 # ]
563 # }
564 #
565 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
566 # jose@example.com from DATA_READ logging.
567 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
568 # permission.
569 # Follows the same format of Binding.members.
570 &quot;A String&quot;,
571 ],
572 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
573 },
574 ],
575 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
576 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
577 # `allServices` is a special value that covers all services.
578 },
579 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700580 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
581 # prevent simultaneous updates of a policy from overwriting each other.
582 # It is strongly suggested that systems make use of the `etag` in the
583 # read-modify-write cycle to perform policy updates in order to avoid race
584 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
585 # systems are expected to put that etag in the request to `setIamPolicy` to
586 # ensure that their change will be applied to the same version of the policy.
587 #
588 # **Important:** If you use IAM Conditions, you must include the `etag` field
589 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
590 # you to overwrite a version `3` policy with a version `1` policy, and all of
591 # the conditions in the version `3` policy are lost.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700592 &quot;version&quot;: 42, # Specifies the format of the policy.
593 #
594 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
595 # are rejected.
596 #
597 # Any operation that affects conditional role bindings must specify version
598 # `3`. This requirement applies to the following operations:
599 #
600 # * Getting a policy that includes a conditional role binding
601 # * Adding a conditional role binding to a policy
602 # * Changing a conditional role binding in a policy
603 # * Removing any role binding, with or without a condition, from a policy
604 # that includes conditions
605 #
606 # **Important:** If you use IAM Conditions, you must include the `etag` field
607 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
608 # you to overwrite a version `3` policy with a version `1` policy, and all of
609 # the conditions in the version `3` policy are lost.
610 #
611 # If a policy does not include any conditions, operations on that policy may
612 # specify any valid version or leave the field unset.
613 #
614 # To learn which resources support conditions in their IAM policies, see the
615 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
616 }</pre>
617</div>
618
619<div class="method">
620 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, filter=None, orderBy=None, x__xgafv=None)</code>
621 <pre>Lists Cloud Bigtable backups. Returns both completed and pending
622backups.
623
624Args:
625 parent: string, Required. The cluster to list backups from. Values are of the
626form `projects/{project}/instances/{instance}/clusters/{cluster}`.
627Use `{cluster} = &#x27;-&#x27;` to list backups for all clusters in an instance,
628e.g., `projects/{project}/instances/{instance}/clusters/-`. (required)
629 pageSize: integer, Number of backups to be returned in the response. If 0 or
630less, defaults to the server&#x27;s maximum allowed page size.
631 pageToken: string, If non-empty, `page_token` should contain a
632next_page_token from a
633previous ListBackupsResponse to the same `parent` and with the same
634`filter`.
635 filter: string, A filter expression that filters backups listed in the response.
636The expression must specify the field name, a comparison operator,
637and the value that you want to use for filtering. The value must be a
638string, a number, or a boolean. The comparison operator must be
639&lt;, &gt;, &lt;=, &gt;=, !=, =, or :. Colon ‘:’ represents a HAS operator which is
640roughly synonymous with equality. Filter rules are case insensitive.
641
642The fields eligible for filtering are:
643 * `name`
644 * `source_table`
645 * `state`
646 * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
647 * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
648 * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
649 * `size_bytes`
650
651To filter on multiple expressions, provide each separate expression within
652parentheses. By default, each expression is an AND expression. However,
653you can include AND, OR, and NOT expressions explicitly.
654
655Some examples of using filters are:
656
657 * `name:&quot;exact&quot;` --&gt; The backup&#x27;s name is the string &quot;exact&quot;.
658 * `name:howl` --&gt; The backup&#x27;s name contains the string &quot;howl&quot;.
659 * `source_table:prod`
660 --&gt; The source_table&#x27;s name contains the string &quot;prod&quot;.
661 * `state:CREATING` --&gt; The backup is pending creation.
662 * `state:READY` --&gt; The backup is fully created and ready for use.
663 * `(name:howl) AND (start_time &lt; \&quot;2018-03-28T14:50:00Z\&quot;)`
664 --&gt; The backup name contains the string &quot;howl&quot; and start_time
665 of the backup is before 2018-03-28T14:50:00Z.
666 * `size_bytes &gt; 10000000000` --&gt; The backup&#x27;s size is greater than 10GB
667 orderBy: string, An expression for specifying the sort order of the results of the request.
668The string value should specify one or more fields in Backup. The full
669syntax is described at https://aip.dev/132#ordering.
670
671Fields supported are:
672 * name
673 * source_table
674 * expire_time
675 * start_time
676 * end_time
677 * size_bytes
678 * state
679
680For example, &quot;start_time&quot;. The default sorting order is ascending.
681To specify descending order for the field, a suffix &quot; desc&quot; should
682be appended to the field name. For example, &quot;start_time desc&quot;.
683Redundant space characters in the syntax are insigificant.
684
685If order_by is empty, results will be sorted by `start_time` in descending
686order starting from the most recently created backup.
687 x__xgafv: string, V1 error format.
688 Allowed values
689 1 - v1 error format
690 2 - v2 error format
691
692Returns:
693 An object of the form:
694
695 { # The response for ListBackups.
696 &quot;backups&quot;: [ # The list of matching backups.
697 { # A backup of a Cloud Bigtable table.
698 &quot;startTime&quot;: &quot;A String&quot;, # Output only. `start_time` is the time that the backup was started
699 # (i.e. approximately the time the
700 # CreateBackup request is received). The
701 # row data in this backup will be no older than this timestamp.
702 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
703 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. Size of the backup in bytes.
704 &quot;name&quot;: &quot;A String&quot;, # A globally unique identifier for the backup which cannot be
705 # changed. Values are of the form
706 # `projects/{project}/instances/{instance}/clusters/{cluster}/
707 # backups/_a-zA-Z0-9*`
708 # The final segment of the name must be between 1 and 50 characters
709 # in length.
710 #
711 # The backup is stored in the cluster identified by the prefix of the backup
712 # name of the form
713 # `projects/{project}/instances/{instance}/clusters/{cluster}`.
714 &quot;endTime&quot;: &quot;A String&quot;, # Output only. `end_time` is the time that the backup was finished. The row
715 # data in the backup will be no newer than this timestamp.
716 &quot;sourceTable&quot;: &quot;A String&quot;, # Required. Immutable. Name of the table from which this backup was created. This needs
717 # to be in the same instance as the backup. Values are of the form
718 # `projects/{project}/instances/{instance}/tables/{source_table}`.
719 &quot;expireTime&quot;: &quot;A String&quot;, # Required. The expiration time of the backup, with microseconds
720 # granularity that must be at least 6 hours and at most 30 days
721 # from the time the request is received. Once the `expire_time`
722 # has passed, Cloud Bigtable will delete the backup and free the
723 # resources used by the backup.
724 },
725 ],
726 &quot;nextPageToken&quot;: &quot;A String&quot;, # `next_page_token` can be sent in a subsequent
727 # ListBackups call to fetch more
728 # of the matching backups.
729 }</pre>
730</div>
731
732<div class="method">
733 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
734 <pre>Retrieves the next page of results.
735
736Args:
737 previous_request: The request for the previous page. (required)
738 previous_response: The response from the request for the previous page. (required)
739
740Returns:
741 A request object that you can call &#x27;execute()&#x27; on to request the next
742 page. Returns None if there are no more items in the collection.
743 </pre>
744</div>
745
746<div class="method">
747 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
748 <pre>Updates a pending or completed Cloud Bigtable Backup.
749
750Args:
751 name: string, A globally unique identifier for the backup which cannot be
752changed. Values are of the form
753`projects/{project}/instances/{instance}/clusters/{cluster}/
754 backups/_a-zA-Z0-9*`
755The final segment of the name must be between 1 and 50 characters
756in length.
757
758The backup is stored in the cluster identified by the prefix of the backup
759name of the form
760`projects/{project}/instances/{instance}/clusters/{cluster}`. (required)
761 body: object, The request body.
762 The object takes the form of:
763
764{ # A backup of a Cloud Bigtable table.
765 &quot;startTime&quot;: &quot;A String&quot;, # Output only. `start_time` is the time that the backup was started
766 # (i.e. approximately the time the
767 # CreateBackup request is received). The
768 # row data in this backup will be no older than this timestamp.
769 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
770 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. Size of the backup in bytes.
771 &quot;name&quot;: &quot;A String&quot;, # A globally unique identifier for the backup which cannot be
772 # changed. Values are of the form
773 # `projects/{project}/instances/{instance}/clusters/{cluster}/
774 # backups/_a-zA-Z0-9*`
775 # The final segment of the name must be between 1 and 50 characters
776 # in length.
777 #
778 # The backup is stored in the cluster identified by the prefix of the backup
779 # name of the form
780 # `projects/{project}/instances/{instance}/clusters/{cluster}`.
781 &quot;endTime&quot;: &quot;A String&quot;, # Output only. `end_time` is the time that the backup was finished. The row
782 # data in the backup will be no newer than this timestamp.
783 &quot;sourceTable&quot;: &quot;A String&quot;, # Required. Immutable. Name of the table from which this backup was created. This needs
784 # to be in the same instance as the backup. Values are of the form
785 # `projects/{project}/instances/{instance}/tables/{source_table}`.
786 &quot;expireTime&quot;: &quot;A String&quot;, # Required. The expiration time of the backup, with microseconds
787 # granularity that must be at least 6 hours and at most 30 days
788 # from the time the request is received. Once the `expire_time`
789 # has passed, Cloud Bigtable will delete the backup and free the
790 # resources used by the backup.
791}
792
793 updateMask: string, Required. A mask specifying which fields (e.g. `expire_time`) in the
794Backup resource should be updated. This mask is relative to the Backup
795resource, not to the request message. The field mask must always be
796specified; this prevents any future fields from being erased accidentally
797by clients that do not know about them.
798 x__xgafv: string, V1 error format.
799 Allowed values
800 1 - v1 error format
801 2 - v2 error format
802
803Returns:
804 An object of the form:
805
806 { # A backup of a Cloud Bigtable table.
807 &quot;startTime&quot;: &quot;A String&quot;, # Output only. `start_time` is the time that the backup was started
808 # (i.e. approximately the time the
809 # CreateBackup request is received). The
810 # row data in this backup will be no older than this timestamp.
811 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
812 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. Size of the backup in bytes.
813 &quot;name&quot;: &quot;A String&quot;, # A globally unique identifier for the backup which cannot be
814 # changed. Values are of the form
815 # `projects/{project}/instances/{instance}/clusters/{cluster}/
816 # backups/_a-zA-Z0-9*`
817 # The final segment of the name must be between 1 and 50 characters
818 # in length.
819 #
820 # The backup is stored in the cluster identified by the prefix of the backup
821 # name of the form
822 # `projects/{project}/instances/{instance}/clusters/{cluster}`.
823 &quot;endTime&quot;: &quot;A String&quot;, # Output only. `end_time` is the time that the backup was finished. The row
824 # data in the backup will be no newer than this timestamp.
825 &quot;sourceTable&quot;: &quot;A String&quot;, # Required. Immutable. Name of the table from which this backup was created. This needs
826 # to be in the same instance as the backup. Values are of the form
827 # `projects/{project}/instances/{instance}/tables/{source_table}`.
828 &quot;expireTime&quot;: &quot;A String&quot;, # Required. The expiration time of the backup, with microseconds
829 # granularity that must be at least 6 hours and at most 30 days
830 # from the time the request is received. Once the `expire_time`
831 # has passed, Cloud Bigtable will delete the backup and free the
832 # resources used by the backup.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 }</pre>
834</div>
835
836<div class="method">
837 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
838 <pre>Sets the access control policy on a Table resource.
839Replaces any existing policy.
840
841Args:
842 resource: string, REQUIRED: The resource for which the policy is being specified.
843See the operation documentation for the appropriate value for this field. (required)
844 body: object, The request body.
845 The object takes the form of:
846
847{ # Request message for `SetIamPolicy` method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700848 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
849 # the fields in the mask will be modified. If no mask is provided, the
850 # following default mask is used:
851 #
852 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 &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
854 # the policy is limited to a few 10s of KB. An empty policy is a
855 # valid policy but certain Cloud Platform services (such as Projects)
856 # might reject them.
857 # controls for Google Cloud resources.
858 #
859 #
860 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
861 # `members` to a single `role`. Members can be user accounts, service accounts,
862 # Google groups, and domains (such as G Suite). A `role` is a named list of
863 # permissions; each `role` can be an IAM predefined role or a user-created
864 # custom role.
865 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700866 # For some types of Google Cloud resources, a `binding` can also specify a
867 # `condition`, which is a logical expression that allows access to a resource
868 # only if the expression evaluates to `true`. A condition can add constraints
869 # based on attributes of the request, the resource, or both. To learn which
870 # resources support conditions in their IAM policies, see the
871 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 #
873 # **JSON example:**
874 #
875 # {
876 # &quot;bindings&quot;: [
877 # {
878 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
879 # &quot;members&quot;: [
880 # &quot;user:mike@example.com&quot;,
881 # &quot;group:admins@example.com&quot;,
882 # &quot;domain:google.com&quot;,
883 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
884 # ]
885 # },
886 # {
887 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700888 # &quot;members&quot;: [
889 # &quot;user:eve@example.com&quot;
890 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700891 # &quot;condition&quot;: {
892 # &quot;title&quot;: &quot;expirable access&quot;,
893 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
894 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
895 # }
896 # }
897 # ],
898 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
899 # &quot;version&quot;: 3
900 # }
901 #
902 # **YAML example:**
903 #
904 # bindings:
905 # - members:
906 # - user:mike@example.com
907 # - group:admins@example.com
908 # - domain:google.com
909 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
910 # role: roles/resourcemanager.organizationAdmin
911 # - members:
912 # - user:eve@example.com
913 # role: roles/resourcemanager.organizationViewer
914 # condition:
915 # title: expirable access
916 # description: Does not grant access after Sep 2020
917 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
918 # - etag: BwWWja0YfJA=
919 # - version: 3
920 #
921 # For a description of IAM and its features, see the
922 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
924 # `condition` that determines how and when the `bindings` are applied. Each
925 # of the `bindings` must contain at least one member.
926 { # Associates `members` with a `role`.
927 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700928 #
929 # If the condition evaluates to `true`, then this binding applies to the
930 # current request.
931 #
932 # If the condition evaluates to `false`, then this binding does not apply to
933 # the current request. However, a different role binding might grant the same
934 # role to one or more of the members in this binding.
935 #
936 # To learn which resources support conditions in their IAM policies, see the
937 # [IAM
938 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
940 # are documented at https://github.com/google/cel-spec.
941 #
942 # Example (Comparison):
943 #
944 # title: &quot;Summary size limit&quot;
945 # description: &quot;Determines if a summary is less than 100 chars&quot;
946 # expression: &quot;document.summary.size() &lt; 100&quot;
947 #
948 # Example (Equality):
949 #
950 # title: &quot;Requestor is owner&quot;
951 # description: &quot;Determines if requestor is the document owner&quot;
952 # expression: &quot;document.owner == request.auth.claims.email&quot;
953 #
954 # Example (Logic):
955 #
956 # title: &quot;Public documents&quot;
957 # description: &quot;Determine whether the document should be publicly visible&quot;
958 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
959 #
960 # Example (Data Manipulation):
961 #
962 # title: &quot;Notification string&quot;
963 # description: &quot;Create a notification string with a timestamp.&quot;
964 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
965 #
966 # The exact variables and functions that may be referenced within an expression
967 # are determined by the service that evaluates it. See the service
968 # documentation for additional information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700969 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
970 # syntax.
971 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
972 # describes the expression, e.g. when hovered over it in a UI.
973 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
974 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700975 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
976 # its purpose. This can be used e.g. in UIs which allow to enter the
977 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700978 },
979 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
980 # `members` can have the following values:
981 #
982 # * `allUsers`: A special identifier that represents anyone who is
983 # on the internet; with or without a Google account.
984 #
985 # * `allAuthenticatedUsers`: A special identifier that represents anyone
986 # who is authenticated with a Google account or a service account.
987 #
988 # * `user:{emailid}`: An email address that represents a specific Google
989 # account. For example, `alice@example.com` .
990 #
991 #
992 # * `serviceAccount:{emailid}`: An email address that represents a service
993 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
994 #
995 # * `group:{emailid}`: An email address that represents a Google group.
996 # For example, `admins@example.com`.
997 #
998 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
999 # identifier) representing a user that has been recently deleted. For
1000 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1001 # recovered, this value reverts to `user:{emailid}` and the recovered user
1002 # retains the role in the binding.
1003 #
1004 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1005 # unique identifier) representing a service account that has been recently
1006 # deleted. For example,
1007 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1008 # If the service account is undeleted, this value reverts to
1009 # `serviceAccount:{emailid}` and the undeleted service account retains the
1010 # role in the binding.
1011 #
1012 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1013 # identifier) representing a Google group that has been recently
1014 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1015 # the group is recovered, this value reverts to `group:{emailid}` and the
1016 # recovered group retains the role in the binding.
1017 #
1018 #
1019 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1020 # users of that domain. For example, `google.com` or `example.com`.
1021 #
1022 &quot;A String&quot;,
1023 ],
1024 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1025 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1026 },
1027 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001028 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1029 { # Specifies the audit configuration for a service.
1030 # The configuration determines which permission types are logged, and what
1031 # identities, if any, are exempted from logging.
1032 # An AuditConfig must have one or more AuditLogConfigs.
1033 #
1034 # If there are AuditConfigs for both `allServices` and a specific service,
1035 # the union of the two AuditConfigs is used for that service: the log_types
1036 # specified in each AuditConfig are enabled, and the exempted_members in each
1037 # AuditLogConfig are exempted.
1038 #
1039 # Example Policy with multiple AuditConfigs:
1040 #
1041 # {
1042 # &quot;audit_configs&quot;: [
1043 # {
1044 # &quot;service&quot;: &quot;allServices&quot;,
1045 # &quot;audit_log_configs&quot;: [
1046 # {
1047 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1048 # &quot;exempted_members&quot;: [
1049 # &quot;user:jose@example.com&quot;
1050 # ]
1051 # },
1052 # {
1053 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1054 # },
1055 # {
1056 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1057 # }
1058 # ]
1059 # },
1060 # {
1061 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1062 # &quot;audit_log_configs&quot;: [
1063 # {
1064 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1065 # },
1066 # {
1067 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1068 # &quot;exempted_members&quot;: [
1069 # &quot;user:aliya@example.com&quot;
1070 # ]
1071 # }
1072 # ]
1073 # }
1074 # ]
1075 # }
1076 #
1077 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1078 # logging. It also exempts jose@example.com from DATA_READ logging, and
1079 # aliya@example.com from DATA_WRITE logging.
1080 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1081 { # Provides the configuration for logging a type of permissions.
1082 # Example:
1083 #
1084 # {
1085 # &quot;audit_log_configs&quot;: [
1086 # {
1087 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1088 # &quot;exempted_members&quot;: [
1089 # &quot;user:jose@example.com&quot;
1090 # ]
1091 # },
1092 # {
1093 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1094 # }
1095 # ]
1096 # }
1097 #
1098 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1099 # jose@example.com from DATA_READ logging.
1100 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1101 # permission.
1102 # Follows the same format of Binding.members.
1103 &quot;A String&quot;,
1104 ],
1105 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1106 },
1107 ],
1108 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1109 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1110 # `allServices` is a special value that covers all services.
1111 },
1112 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001113 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1114 # prevent simultaneous updates of a policy from overwriting each other.
1115 # It is strongly suggested that systems make use of the `etag` in the
1116 # read-modify-write cycle to perform policy updates in order to avoid race
1117 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1118 # systems are expected to put that etag in the request to `setIamPolicy` to
1119 # ensure that their change will be applied to the same version of the policy.
1120 #
1121 # **Important:** If you use IAM Conditions, you must include the `etag` field
1122 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1123 # you to overwrite a version `3` policy with a version `1` policy, and all of
1124 # the conditions in the version `3` policy are lost.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001125 &quot;version&quot;: 42, # Specifies the format of the policy.
1126 #
1127 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1128 # are rejected.
1129 #
1130 # Any operation that affects conditional role bindings must specify version
1131 # `3`. This requirement applies to the following operations:
1132 #
1133 # * Getting a policy that includes a conditional role binding
1134 # * Adding a conditional role binding to a policy
1135 # * Changing a conditional role binding in a policy
1136 # * Removing any role binding, with or without a condition, from a policy
1137 # that includes conditions
1138 #
1139 # **Important:** If you use IAM Conditions, you must include the `etag` field
1140 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1141 # you to overwrite a version `3` policy with a version `1` policy, and all of
1142 # the conditions in the version `3` policy are lost.
1143 #
1144 # If a policy does not include any conditions, operations on that policy may
1145 # specify any valid version or leave the field unset.
1146 #
1147 # To learn which resources support conditions in their IAM policies, see the
1148 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 }
1151
1152 x__xgafv: string, V1 error format.
1153 Allowed values
1154 1 - v1 error format
1155 2 - v2 error format
1156
1157Returns:
1158 An object of the form:
1159
1160 { # An Identity and Access Management (IAM) policy, which specifies access
1161 # controls for Google Cloud resources.
1162 #
1163 #
1164 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1165 # `members` to a single `role`. Members can be user accounts, service accounts,
1166 # Google groups, and domains (such as G Suite). A `role` is a named list of
1167 # permissions; each `role` can be an IAM predefined role or a user-created
1168 # custom role.
1169 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001170 # For some types of Google Cloud resources, a `binding` can also specify a
1171 # `condition`, which is a logical expression that allows access to a resource
1172 # only if the expression evaluates to `true`. A condition can add constraints
1173 # based on attributes of the request, the resource, or both. To learn which
1174 # resources support conditions in their IAM policies, see the
1175 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001176 #
1177 # **JSON example:**
1178 #
1179 # {
1180 # &quot;bindings&quot;: [
1181 # {
1182 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1183 # &quot;members&quot;: [
1184 # &quot;user:mike@example.com&quot;,
1185 # &quot;group:admins@example.com&quot;,
1186 # &quot;domain:google.com&quot;,
1187 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1188 # ]
1189 # },
1190 # {
1191 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001192 # &quot;members&quot;: [
1193 # &quot;user:eve@example.com&quot;
1194 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001195 # &quot;condition&quot;: {
1196 # &quot;title&quot;: &quot;expirable access&quot;,
1197 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1198 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1199 # }
1200 # }
1201 # ],
1202 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1203 # &quot;version&quot;: 3
1204 # }
1205 #
1206 # **YAML example:**
1207 #
1208 # bindings:
1209 # - members:
1210 # - user:mike@example.com
1211 # - group:admins@example.com
1212 # - domain:google.com
1213 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1214 # role: roles/resourcemanager.organizationAdmin
1215 # - members:
1216 # - user:eve@example.com
1217 # role: roles/resourcemanager.organizationViewer
1218 # condition:
1219 # title: expirable access
1220 # description: Does not grant access after Sep 2020
1221 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1222 # - etag: BwWWja0YfJA=
1223 # - version: 3
1224 #
1225 # For a description of IAM and its features, see the
1226 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1228 # `condition` that determines how and when the `bindings` are applied. Each
1229 # of the `bindings` must contain at least one member.
1230 { # Associates `members` with a `role`.
1231 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001232 #
1233 # If the condition evaluates to `true`, then this binding applies to the
1234 # current request.
1235 #
1236 # If the condition evaluates to `false`, then this binding does not apply to
1237 # the current request. However, a different role binding might grant the same
1238 # role to one or more of the members in this binding.
1239 #
1240 # To learn which resources support conditions in their IAM policies, see the
1241 # [IAM
1242 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001243 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1244 # are documented at https://github.com/google/cel-spec.
1245 #
1246 # Example (Comparison):
1247 #
1248 # title: &quot;Summary size limit&quot;
1249 # description: &quot;Determines if a summary is less than 100 chars&quot;
1250 # expression: &quot;document.summary.size() &lt; 100&quot;
1251 #
1252 # Example (Equality):
1253 #
1254 # title: &quot;Requestor is owner&quot;
1255 # description: &quot;Determines if requestor is the document owner&quot;
1256 # expression: &quot;document.owner == request.auth.claims.email&quot;
1257 #
1258 # Example (Logic):
1259 #
1260 # title: &quot;Public documents&quot;
1261 # description: &quot;Determine whether the document should be publicly visible&quot;
1262 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1263 #
1264 # Example (Data Manipulation):
1265 #
1266 # title: &quot;Notification string&quot;
1267 # description: &quot;Create a notification string with a timestamp.&quot;
1268 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1269 #
1270 # The exact variables and functions that may be referenced within an expression
1271 # are determined by the service that evaluates it. See the service
1272 # documentation for additional information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001273 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1274 # syntax.
1275 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1276 # describes the expression, e.g. when hovered over it in a UI.
1277 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1278 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001279 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1280 # its purpose. This can be used e.g. in UIs which allow to enter the
1281 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 },
1283 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1284 # `members` can have the following values:
1285 #
1286 # * `allUsers`: A special identifier that represents anyone who is
1287 # on the internet; with or without a Google account.
1288 #
1289 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1290 # who is authenticated with a Google account or a service account.
1291 #
1292 # * `user:{emailid}`: An email address that represents a specific Google
1293 # account. For example, `alice@example.com` .
1294 #
1295 #
1296 # * `serviceAccount:{emailid}`: An email address that represents a service
1297 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1298 #
1299 # * `group:{emailid}`: An email address that represents a Google group.
1300 # For example, `admins@example.com`.
1301 #
1302 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1303 # identifier) representing a user that has been recently deleted. For
1304 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1305 # recovered, this value reverts to `user:{emailid}` and the recovered user
1306 # retains the role in the binding.
1307 #
1308 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1309 # unique identifier) representing a service account that has been recently
1310 # deleted. For example,
1311 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1312 # If the service account is undeleted, this value reverts to
1313 # `serviceAccount:{emailid}` and the undeleted service account retains the
1314 # role in the binding.
1315 #
1316 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1317 # identifier) representing a Google group that has been recently
1318 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1319 # the group is recovered, this value reverts to `group:{emailid}` and the
1320 # recovered group retains the role in the binding.
1321 #
1322 #
1323 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1324 # users of that domain. For example, `google.com` or `example.com`.
1325 #
1326 &quot;A String&quot;,
1327 ],
1328 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1329 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1330 },
1331 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001332 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1333 { # Specifies the audit configuration for a service.
1334 # The configuration determines which permission types are logged, and what
1335 # identities, if any, are exempted from logging.
1336 # An AuditConfig must have one or more AuditLogConfigs.
1337 #
1338 # If there are AuditConfigs for both `allServices` and a specific service,
1339 # the union of the two AuditConfigs is used for that service: the log_types
1340 # specified in each AuditConfig are enabled, and the exempted_members in each
1341 # AuditLogConfig are exempted.
1342 #
1343 # Example Policy with multiple AuditConfigs:
1344 #
1345 # {
1346 # &quot;audit_configs&quot;: [
1347 # {
1348 # &quot;service&quot;: &quot;allServices&quot;,
1349 # &quot;audit_log_configs&quot;: [
1350 # {
1351 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1352 # &quot;exempted_members&quot;: [
1353 # &quot;user:jose@example.com&quot;
1354 # ]
1355 # },
1356 # {
1357 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1358 # },
1359 # {
1360 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1361 # }
1362 # ]
1363 # },
1364 # {
1365 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1366 # &quot;audit_log_configs&quot;: [
1367 # {
1368 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1369 # },
1370 # {
1371 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1372 # &quot;exempted_members&quot;: [
1373 # &quot;user:aliya@example.com&quot;
1374 # ]
1375 # }
1376 # ]
1377 # }
1378 # ]
1379 # }
1380 #
1381 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1382 # logging. It also exempts jose@example.com from DATA_READ logging, and
1383 # aliya@example.com from DATA_WRITE logging.
1384 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1385 { # Provides the configuration for logging a type of permissions.
1386 # Example:
1387 #
1388 # {
1389 # &quot;audit_log_configs&quot;: [
1390 # {
1391 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1392 # &quot;exempted_members&quot;: [
1393 # &quot;user:jose@example.com&quot;
1394 # ]
1395 # },
1396 # {
1397 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1398 # }
1399 # ]
1400 # }
1401 #
1402 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1403 # jose@example.com from DATA_READ logging.
1404 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1405 # permission.
1406 # Follows the same format of Binding.members.
1407 &quot;A String&quot;,
1408 ],
1409 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1410 },
1411 ],
1412 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1413 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1414 # `allServices` is a special value that covers all services.
1415 },
1416 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001417 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1418 # prevent simultaneous updates of a policy from overwriting each other.
1419 # It is strongly suggested that systems make use of the `etag` in the
1420 # read-modify-write cycle to perform policy updates in order to avoid race
1421 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1422 # systems are expected to put that etag in the request to `setIamPolicy` to
1423 # ensure that their change will be applied to the same version of the policy.
1424 #
1425 # **Important:** If you use IAM Conditions, you must include the `etag` field
1426 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1427 # you to overwrite a version `3` policy with a version `1` policy, and all of
1428 # the conditions in the version `3` policy are lost.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001429 &quot;version&quot;: 42, # Specifies the format of the policy.
1430 #
1431 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1432 # are rejected.
1433 #
1434 # Any operation that affects conditional role bindings must specify version
1435 # `3`. This requirement applies to the following operations:
1436 #
1437 # * Getting a policy that includes a conditional role binding
1438 # * Adding a conditional role binding to a policy
1439 # * Changing a conditional role binding in a policy
1440 # * Removing any role binding, with or without a condition, from a policy
1441 # that includes conditions
1442 #
1443 # **Important:** If you use IAM Conditions, you must include the `etag` field
1444 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1445 # you to overwrite a version `3` policy with a version `1` policy, and all of
1446 # the conditions in the version `3` policy are lost.
1447 #
1448 # If a policy does not include any conditions, operations on that policy may
1449 # specify any valid version or leave the field unset.
1450 #
1451 # To learn which resources support conditions in their IAM policies, see the
1452 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001453 }</pre>
1454</div>
1455
1456<div class="method">
1457 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1458 <pre>Returns permissions that the caller has on the specified table resource.
1459
1460Args:
1461 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1462See the operation documentation for the appropriate value for this field. (required)
1463 body: object, The request body.
1464 The object takes the form of:
1465
1466{ # Request message for `TestIamPermissions` method.
1467 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1468 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
1469 # information see
1470 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1471 &quot;A String&quot;,
1472 ],
1473 }
1474
1475 x__xgafv: string, V1 error format.
1476 Allowed values
1477 1 - v1 error format
1478 2 - v2 error format
1479
1480Returns:
1481 An object of the form:
1482
1483 { # Response message for `TestIamPermissions` method.
1484 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
1485 # allowed.
1486 &quot;A String&quot;,
1487 ],
1488 }</pre>
1489</div>
1490
1491</body></html>