blob: 1c2df557f6727cd06dfeafcb7e2a456ca418303b [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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.tables.html">tables</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#checkConsistency">checkConsistency(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.</p>
80<p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Permanently deletes a specified table and all of its data.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#dropRowRange">dropRowRange(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#generateConsistencyToken">generateConsistencyToken(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Gets metadata information about the specified table.</p>
98<p class="toc_element">
99 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">Gets the access control policy for a Table resource. Returns an empty policy if the resource exists but does not have a policy set.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700102 <code><a href="#list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Lists all tables served from a specified instance.</p>
104<p class="toc_element">
105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#modifyColumnFamilies">modifyColumnFamilies(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700111 <code><a href="#restore">restore(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Create a new table by restoring from a completed backup. The new table must be in the same instance as the instance containing the backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful.</p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700113<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115<p class="firstline">Sets the access control policy on a Table resource. Replaces any existing policy.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118<p class="firstline">Returns permissions that the caller has on the specified table resource.</p>
119<h3>Method Details</h3>
120<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 <code class="details" id="checkConsistency">checkConsistency(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700122 <pre>Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123
124Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 name: string, Required. The unique name of the Table for which to check replication consistency. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 The object takes the form of:
128
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129{ # Request message for google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;consistencyToken&quot;: &quot;A String&quot;, # Required. The token created using GenerateConsistencyToken for the Table.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 }
132
133 x__xgafv: string, V1 error format.
134 Allowed values
135 1 - v1 error format
136 2 - v2 error format
137
138Returns:
139 An object of the form:
140
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700141 { # Response message for google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency
142 &quot;consistent&quot;: True or False, # True only if the token is consistent. A token is consistent if replication has caught up with the restrictions specified in the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700143 }</pre>
144</div>
145
146<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700147 <code class="details" id="close">close()</code>
148 <pre>Close httplib2 connections.</pre>
149</div>
150
151<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700152 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700153 <pre>Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700154
155Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700156 parent: string, Required. The unique name of the instance in which to create the table. Values are of the form `projects/{project}/instances/{instance}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700157 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700158 The object takes the form of:
159
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700160{ # Request message for google.bigtable.admin.v2.BigtableTableAdmin.CreateTable
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700161 &quot;table&quot;: { # A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster. # Required. The Table to create.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 &quot;granularity&quot;: &quot;A String&quot;, # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
163 &quot;columnFamilies&quot;: { # The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `FULL`
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;a_key&quot;: { # A set of columns within a table which share a common configuration.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700165 &quot;gcRule&quot;: { # Rule for determining which cells to delete during garbage collection. # Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it&#x27;s possible for reads to return a cell even if it matches the active GC expression for its family.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700166 &quot;maxAge&quot;: &quot;A String&quot;, # Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
167 &quot;maxNumVersions&quot;: 42, # Delete all cells in a column except the most recent N.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;intersection&quot;: { # A GcRule which deletes cells matching all of the given rules. # Delete cells that would be deleted by every nested rule.
169 &quot;rules&quot;: [ # Only delete cells which would be deleted by every element of `rules`.
170 # Object with schema name: GcRule
171 ],
172 },
173 &quot;union&quot;: { # A GcRule which deletes cells matching any of the given rules. # Delete cells that would be deleted by any nested rule.
174 &quot;rules&quot;: [ # Delete cells which would be deleted by any element of `rules`.
175 # Object with schema name: GcRule
176 ],
177 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 },
179 },
180 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700181 &quot;restoreInfo&quot;: { # Information about a table restore. # Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
182 &quot;backupInfo&quot;: { # Information about a backup. # Information about the backup used to restore the table. The backup may no longer exist.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700183 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700184 &quot;endTime&quot;: &quot;A String&quot;, # Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.
185 &quot;backup&quot;: &quot;A String&quot;, # Output only. Name of the backup.
186 &quot;sourceTable&quot;: &quot;A String&quot;, # Output only. Name of the table the backup was created from.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700187 },
188 &quot;sourceType&quot;: &quot;A String&quot;, # The type of the restore source.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700189 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 &quot;name&quot;: &quot;A String&quot;, # The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700191 &quot;clusterStates&quot;: { # Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `FULL`
192 &quot;a_key&quot;: { # The state of a table&#x27;s data in a particular cluster.
193 &quot;replicationState&quot;: &quot;A String&quot;, # Output only. The state of replication for the table in this cluster.
194 },
195 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700197 &quot;tableId&quot;: &quot;A String&quot;, # Required. The name by which the new table should be referred to within the parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. Maximum 50 characters.
198 &quot;initialSplits&quot;: [ # The optional list of row keys that will be used to initially split the table into several tablets (tablets are similar to HBase regions). Given two split keys, `s1` and `s2`, three tablets will be created, spanning the key ranges: `[, s1), [s1, s2), [s2, )`. Example: * Row keys := `[&quot;a&quot;, &quot;apple&quot;, &quot;custom&quot;, &quot;customer_1&quot;, &quot;customer_2&quot;,` `&quot;other&quot;, &quot;zz&quot;]` * initial_split_keys := `[&quot;apple&quot;, &quot;customer_1&quot;, &quot;customer_2&quot;, &quot;other&quot;]` * Key assignment: - Tablet 1 `[, apple) =&gt; {&quot;a&quot;}.` - Tablet 2 `[apple, customer_1) =&gt; {&quot;apple&quot;, &quot;custom&quot;}.` - Tablet 3 `[customer_1, customer_2) =&gt; {&quot;customer_1&quot;}.` - Tablet 4 `[customer_2, other) =&gt; {&quot;customer_2&quot;}.` - Tablet 5 `[other, ) =&gt; {&quot;other&quot;, &quot;zz&quot;}.`
199 { # An initial split point for a newly created table.
200 &quot;key&quot;: &quot;A String&quot;, # Row key to use as an initial tablet boundary.
201 },
202 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203 }
204
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210Returns:
211 An object of the form:
212
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 { # A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700214 &quot;granularity&quot;: &quot;A String&quot;, # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
215 &quot;columnFamilies&quot;: { # The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `FULL`
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 &quot;a_key&quot;: { # A set of columns within a table which share a common configuration.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 &quot;gcRule&quot;: { # Rule for determining which cells to delete during garbage collection. # Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it&#x27;s possible for reads to return a cell even if it matches the active GC expression for its family.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700218 &quot;maxAge&quot;: &quot;A String&quot;, # Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
219 &quot;maxNumVersions&quot;: 42, # Delete all cells in a column except the most recent N.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 &quot;intersection&quot;: { # A GcRule which deletes cells matching all of the given rules. # Delete cells that would be deleted by every nested rule.
221 &quot;rules&quot;: [ # Only delete cells which would be deleted by every element of `rules`.
222 # Object with schema name: GcRule
223 ],
224 },
225 &quot;union&quot;: { # A GcRule which deletes cells matching any of the given rules. # Delete cells that would be deleted by any nested rule.
226 &quot;rules&quot;: [ # Delete cells which would be deleted by any element of `rules`.
227 # Object with schema name: GcRule
228 ],
229 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 },
231 },
232 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700233 &quot;restoreInfo&quot;: { # Information about a table restore. # Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
234 &quot;backupInfo&quot;: { # Information about a backup. # Information about the backup used to restore the table. The backup may no longer exist.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700236 &quot;endTime&quot;: &quot;A String&quot;, # Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.
237 &quot;backup&quot;: &quot;A String&quot;, # Output only. Name of the backup.
238 &quot;sourceTable&quot;: &quot;A String&quot;, # Output only. Name of the table the backup was created from.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700239 },
240 &quot;sourceType&quot;: &quot;A String&quot;, # The type of the restore source.
241 },
242 &quot;name&quot;: &quot;A String&quot;, # The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700243 &quot;clusterStates&quot;: { # Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `FULL`
244 &quot;a_key&quot;: { # The state of a table&#x27;s data in a particular cluster.
245 &quot;replicationState&quot;: &quot;A String&quot;, # Output only. The state of replication for the table in this cluster.
246 },
247 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248 }</pre>
249</div>
250
251<div class="method">
252 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
253 <pre>Permanently deletes a specified table and all of its data.
254
255Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700256 name: string, Required. The unique name of the table to be deleted. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 x__xgafv: string, V1 error format.
258 Allowed values
259 1 - v1 error format
260 2 - v2 error format
261
262Returns:
263 An object of the form:
264
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700266 }</pre>
267</div>
268
269<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700270 <code class="details" id="dropRowRange">dropRowRange(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700271 <pre>Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272
273Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700274 name: string, Required. The unique name of the table on which to drop a range of rows. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700275 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 The object takes the form of:
277
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700278{ # Request message for google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange
279 &quot;rowKeyPrefix&quot;: &quot;A String&quot;, # Delete all rows that start with this row key prefix. Prefix cannot be zero length.
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;deleteAllDataFromTable&quot;: True or False, # Delete all rows in the table. Setting this to false is a no-op.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700281 }
282
283 x__xgafv: string, V1 error format.
284 Allowed values
285 1 - v1 error format
286 2 - v2 error format
287
288Returns:
289 An object of the form:
290
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700291 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 }</pre>
293</div>
294
295<div class="method">
296 <code class="details" id="generateConsistencyToken">generateConsistencyToken(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700297 <pre>Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298
299Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700300 name: string, Required. The unique name of the Table for which to create a consistency token. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700301 body: object, The request body.
302 The object takes the form of:
303
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304{ # Request message for google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305 }
306
307 x__xgafv: string, V1 error format.
308 Allowed values
309 1 - v1 error format
310 2 - v2 error format
311
312Returns:
313 An object of the form:
314
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700315 { # Response message for google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;consistencyToken&quot;: &quot;A String&quot;, # The generated consistency token.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700317 }</pre>
318</div>
319
320<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700322 <pre>Gets metadata information about the specified table.
323
324Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700325 name: string, Required. The unique name of the requested table. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. (required)
326 view: string, The view to be applied to the returned table&#x27;s fields. Defaults to `SCHEMA_VIEW` if unspecified.
327 Allowed values
328 VIEW_UNSPECIFIED - Uses the default view for each method as documented in its request.
329 NAME_ONLY - Only populates `name`.
330 SCHEMA_VIEW - Only populates `name` and fields related to the table&#x27;s schema.
331 REPLICATION_VIEW - Only populates `name` and fields related to the table&#x27;s replication state.
332 FULL - Populates all fields.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700333 x__xgafv: string, V1 error format.
334 Allowed values
335 1 - v1 error format
336 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700337
338Returns:
339 An object of the form:
340
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700341 { # A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700342 &quot;granularity&quot;: &quot;A String&quot;, # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
343 &quot;columnFamilies&quot;: { # The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `FULL`
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;a_key&quot;: { # A set of columns within a table which share a common configuration.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700345 &quot;gcRule&quot;: { # Rule for determining which cells to delete during garbage collection. # Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it&#x27;s possible for reads to return a cell even if it matches the active GC expression for its family.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700346 &quot;maxAge&quot;: &quot;A String&quot;, # Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
347 &quot;maxNumVersions&quot;: 42, # Delete all cells in a column except the most recent N.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;intersection&quot;: { # A GcRule which deletes cells matching all of the given rules. # Delete cells that would be deleted by every nested rule.
349 &quot;rules&quot;: [ # Only delete cells which would be deleted by every element of `rules`.
350 # Object with schema name: GcRule
351 ],
352 },
353 &quot;union&quot;: { # A GcRule which deletes cells matching any of the given rules. # Delete cells that would be deleted by any nested rule.
354 &quot;rules&quot;: [ # Delete cells which would be deleted by any element of `rules`.
355 # Object with schema name: GcRule
356 ],
357 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 },
359 },
360 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700361 &quot;restoreInfo&quot;: { # Information about a table restore. # Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
362 &quot;backupInfo&quot;: { # Information about a backup. # Information about the backup used to restore the table. The backup may no longer exist.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700363 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700364 &quot;endTime&quot;: &quot;A String&quot;, # Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.
365 &quot;backup&quot;: &quot;A String&quot;, # Output only. Name of the backup.
366 &quot;sourceTable&quot;: &quot;A String&quot;, # Output only. Name of the table the backup was created from.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700367 },
368 &quot;sourceType&quot;: &quot;A String&quot;, # The type of the restore source.
369 },
370 &quot;name&quot;: &quot;A String&quot;, # The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700371 &quot;clusterStates&quot;: { # Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `FULL`
372 &quot;a_key&quot;: { # The state of a table&#x27;s data in a particular cluster.
373 &quot;replicationState&quot;: &quot;A String&quot;, # Output only. The state of replication for the table in this cluster.
374 },
375 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376 }</pre>
377</div>
378
379<div class="method">
380 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700381 <pre>Gets the access control policy for a Table resource. Returns an empty policy if the resource exists but does not have a policy set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700382
383Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700384 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 body: object, The request body.
386 The object takes the form of:
387
388{ # Request message for `GetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700389 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
390 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700391 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700392 }
393
394 x__xgafv: string, V1 error format.
395 Allowed values
396 1 - v1 error format
397 2 - v2 error format
398
399Returns:
400 An object of the form:
401
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700402 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700403 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
404 { # Associates `members` with a `role`.
405 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
406 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
407 &quot;A String&quot;,
408 ],
409 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
410 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
411 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
412 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
413 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
414 },
415 },
416 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700417 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700418 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700419 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700420 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700421 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700422 &quot;A String&quot;,
423 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700424 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700425 },
426 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700427 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700428 },
429 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700430 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
431 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700432 }</pre>
433</div>
434
435<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700436 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700437 <pre>Lists all tables served from a specified instance.
438
439Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700440 parent: string, Required. The unique name of the instance for which tables should be listed. Values are of the form `projects/{project}/instances/{instance}`. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700441 pageSize: integer, Maximum number of results per page. A page_size of zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls are not required to pass a page_size. If a page_size is set in subsequent calls, it must match the page_size given in the first request.
442 pageToken: string, The value of `next_page_token` returned by a previous call.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700443 view: string, The view to be applied to the returned tables&#x27; fields. Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
444 Allowed values
445 VIEW_UNSPECIFIED - Uses the default view for each method as documented in its request.
446 NAME_ONLY - Only populates `name`.
447 SCHEMA_VIEW - Only populates `name` and fields related to the table&#x27;s schema.
448 REPLICATION_VIEW - Only populates `name` and fields related to the table&#x27;s replication state.
449 FULL - Populates all fields.
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 x__xgafv: string, V1 error format.
451 Allowed values
452 1 - v1 error format
453 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454
455Returns:
456 An object of the form:
457
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700458 { # Response message for google.bigtable.admin.v2.BigtableTableAdmin.ListTables
Bu Sun Kim65020912020-05-20 12:08:20 -0700459 &quot;tables&quot;: [ # The tables present in the requested instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700460 { # A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700461 &quot;granularity&quot;: &quot;A String&quot;, # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
462 &quot;columnFamilies&quot;: { # The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `FULL`
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;a_key&quot;: { # A set of columns within a table which share a common configuration.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700464 &quot;gcRule&quot;: { # Rule for determining which cells to delete during garbage collection. # Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it&#x27;s possible for reads to return a cell even if it matches the active GC expression for its family.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700465 &quot;maxAge&quot;: &quot;A String&quot;, # Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
466 &quot;maxNumVersions&quot;: 42, # Delete all cells in a column except the most recent N.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;intersection&quot;: { # A GcRule which deletes cells matching all of the given rules. # Delete cells that would be deleted by every nested rule.
468 &quot;rules&quot;: [ # Only delete cells which would be deleted by every element of `rules`.
469 # Object with schema name: GcRule
470 ],
471 },
472 &quot;union&quot;: { # A GcRule which deletes cells matching any of the given rules. # Delete cells that would be deleted by any nested rule.
473 &quot;rules&quot;: [ # Delete cells which would be deleted by any element of `rules`.
474 # Object with schema name: GcRule
475 ],
476 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 },
478 },
479 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700480 &quot;restoreInfo&quot;: { # Information about a table restore. # Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
481 &quot;backupInfo&quot;: { # Information about a backup. # Information about the backup used to restore the table. The backup may no longer exist.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700482 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700483 &quot;endTime&quot;: &quot;A String&quot;, # Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.
484 &quot;backup&quot;: &quot;A String&quot;, # Output only. Name of the backup.
485 &quot;sourceTable&quot;: &quot;A String&quot;, # Output only. Name of the table the backup was created from.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700486 },
487 &quot;sourceType&quot;: &quot;A String&quot;, # The type of the restore source.
488 },
489 &quot;name&quot;: &quot;A String&quot;, # The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700490 &quot;clusterStates&quot;: { # Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `FULL`
491 &quot;a_key&quot;: { # The state of a table&#x27;s data in a particular cluster.
492 &quot;replicationState&quot;: &quot;A String&quot;, # Output only. The state of replication for the table in this cluster.
493 },
494 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495 },
496 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700497 &quot;nextPageToken&quot;: &quot;A String&quot;, # Set if not all tables could be returned in a single response. Pass this value to `page_token` in another request to get the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498 }</pre>
499</div>
500
501<div class="method">
502 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
503 <pre>Retrieves the next page of results.
504
505Args:
506 previous_request: The request for the previous page. (required)
507 previous_response: The response from the request for the previous page. (required)
508
509Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700510 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 page. Returns None if there are no more items in the collection.
512 </pre>
513</div>
514
515<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 <code class="details" id="modifyColumnFamilies">modifyColumnFamilies(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700517 <pre>Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700518
519Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700520 name: string, Required. The unique name of the table whose families should be modified. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700521 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700522 The object takes the form of:
523
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700524{ # Request message for google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies
525 &quot;modifications&quot;: [ # Required. Modifications to be atomically applied to the specified table&#x27;s families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 { # A create, update, or delete of a particular column family.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700527 &quot;id&quot;: &quot;A String&quot;, # The ID of the column family to be modified.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700528 &quot;create&quot;: { # A set of columns within a table which share a common configuration. # Create a new column family with the specified schema, or fail if one already exists with the given ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700529 &quot;gcRule&quot;: { # Rule for determining which cells to delete during garbage collection. # Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it&#x27;s possible for reads to return a cell even if it matches the active GC expression for its family.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700530 &quot;maxAge&quot;: &quot;A String&quot;, # Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
531 &quot;maxNumVersions&quot;: 42, # Delete all cells in a column except the most recent N.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700532 &quot;intersection&quot;: { # A GcRule which deletes cells matching all of the given rules. # Delete cells that would be deleted by every nested rule.
533 &quot;rules&quot;: [ # Only delete cells which would be deleted by every element of `rules`.
534 # Object with schema name: GcRule
535 ],
536 },
537 &quot;union&quot;: { # A GcRule which deletes cells matching any of the given rules. # Delete cells that would be deleted by any nested rule.
538 &quot;rules&quot;: [ # Delete cells which would be deleted by any element of `rules`.
539 # Object with schema name: GcRule
540 ],
541 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700542 },
543 },
544 &quot;drop&quot;: True or False, # Drop (delete) the column family with the given ID, or fail if no such family exists.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700545 &quot;update&quot;: { # A set of columns within a table which share a common configuration. # Update an existing column family to the specified schema, or fail if no column family exists with the given ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700546 &quot;gcRule&quot;: { # Rule for determining which cells to delete during garbage collection. # Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it&#x27;s possible for reads to return a cell even if it matches the active GC expression for its family.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700547 &quot;maxAge&quot;: &quot;A String&quot;, # Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
548 &quot;maxNumVersions&quot;: 42, # Delete all cells in a column except the most recent N.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700549 &quot;intersection&quot;: { # A GcRule which deletes cells matching all of the given rules. # Delete cells that would be deleted by every nested rule.
550 &quot;rules&quot;: [ # Only delete cells which would be deleted by every element of `rules`.
551 # Object with schema name: GcRule
552 ],
553 },
554 &quot;union&quot;: { # A GcRule which deletes cells matching any of the given rules. # Delete cells that would be deleted by any nested rule.
555 &quot;rules&quot;: [ # Delete cells which would be deleted by any element of `rules`.
556 # Object with schema name: GcRule
557 ],
558 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700559 },
560 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700561 },
562 ],
563 }
564
565 x__xgafv: string, V1 error format.
566 Allowed values
567 1 - v1 error format
568 2 - v2 error format
569
570Returns:
571 An object of the form:
572
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700573 { # A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700574 &quot;granularity&quot;: &quot;A String&quot;, # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
575 &quot;columnFamilies&quot;: { # The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `FULL`
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 &quot;a_key&quot;: { # A set of columns within a table which share a common configuration.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700577 &quot;gcRule&quot;: { # Rule for determining which cells to delete during garbage collection. # Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it&#x27;s possible for reads to return a cell even if it matches the active GC expression for its family.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700578 &quot;maxAge&quot;: &quot;A String&quot;, # Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
579 &quot;maxNumVersions&quot;: 42, # Delete all cells in a column except the most recent N.
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 &quot;intersection&quot;: { # A GcRule which deletes cells matching all of the given rules. # Delete cells that would be deleted by every nested rule.
581 &quot;rules&quot;: [ # Only delete cells which would be deleted by every element of `rules`.
582 # Object with schema name: GcRule
583 ],
584 },
585 &quot;union&quot;: { # A GcRule which deletes cells matching any of the given rules. # Delete cells that would be deleted by any nested rule.
586 &quot;rules&quot;: [ # Delete cells which would be deleted by any element of `rules`.
587 # Object with schema name: GcRule
588 ],
589 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700590 },
591 },
592 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700593 &quot;restoreInfo&quot;: { # Information about a table restore. # Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
594 &quot;backupInfo&quot;: { # Information about a backup. # Information about the backup used to restore the table. The backup may no longer exist.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700595 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700596 &quot;endTime&quot;: &quot;A String&quot;, # Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.
597 &quot;backup&quot;: &quot;A String&quot;, # Output only. Name of the backup.
598 &quot;sourceTable&quot;: &quot;A String&quot;, # Output only. Name of the table the backup was created from.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 },
600 &quot;sourceType&quot;: &quot;A String&quot;, # The type of the restore source.
601 },
602 &quot;name&quot;: &quot;A String&quot;, # The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700603 &quot;clusterStates&quot;: { # Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `FULL`
604 &quot;a_key&quot;: { # The state of a table&#x27;s data in a particular cluster.
605 &quot;replicationState&quot;: &quot;A String&quot;, # Output only. The state of replication for the table in this cluster.
606 },
607 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700608 }</pre>
609</div>
610
611<div class="method">
612 <code class="details" id="restore">restore(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700613 <pre>Create a new table by restoring from a completed backup. The new table must be in the same instance as the instance containing the backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700614
615Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700616 parent: string, Required. The name of the instance in which to create the restored table. This instance must be the parent of the source backup. Values are of the form `projects//instances/`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700617 body: object, The request body.
618 The object takes the form of:
619
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700620{ # The request for RestoreTable.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700621 &quot;tableId&quot;: &quot;A String&quot;, # Required. The id of the table to create and restore to. This table must not already exist. The `table_id` appended to `parent` forms the full table name of the form `projects//instances//tables/`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700622 &quot;backup&quot;: &quot;A String&quot;, # Name of the backup from which to restore. Values are of the form `projects//instances//clusters//backups/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700623 }
624
625 x__xgafv: string, V1 error format.
626 Allowed values
627 1 - v1 error format
628 2 - v2 error format
629
630Returns:
631 An object of the form:
632
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700633 { # This resource represents a long-running operation that is the result of a network API call.
634 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
635 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700636 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
637 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
638 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700639 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700640 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
641 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700642 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700643 {
644 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
645 },
646 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700647 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700648 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700649 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
650 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 }</pre>
652</div>
653
654<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700655 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700656 <pre>Sets the access control policy on a Table resource. Replaces any existing policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700657
658Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700659 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700660 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700661 The object takes the form of:
662
663{ # Request message for `SetIamPolicy` method.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700664 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: &quot;bindings, etag&quot;`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700665 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700666 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
667 { # Associates `members` with a `role`.
668 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
669 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
670 &quot;A String&quot;,
671 ],
672 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
673 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
674 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
675 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
676 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
677 },
678 },
679 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700680 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700681 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700682 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700683 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700684 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700685 &quot;A String&quot;,
686 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700687 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700688 },
689 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700690 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700691 },
692 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700693 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
694 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700695 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700696 }
697
698 x__xgafv: string, V1 error format.
699 Allowed values
700 1 - v1 error format
701 2 - v2 error format
702
703Returns:
704 An object of the form:
705
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700706 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700707 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
708 { # Associates `members` with a `role`.
709 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
710 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
711 &quot;A String&quot;,
712 ],
713 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
714 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
715 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
716 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
717 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
718 },
719 },
720 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700721 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700722 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700723 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700724 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700725 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700726 &quot;A String&quot;,
727 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700728 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700729 },
730 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700731 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700732 },
733 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700734 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
735 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 }</pre>
737</div>
738
739<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700740 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700741 <pre>Returns permissions that the caller has on the specified table resource.
742
743Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700744 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700745 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700746 The object takes the form of:
747
748{ # Request message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700749 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -0700750 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700751 ],
752 }
753
754 x__xgafv: string, V1 error format.
755 Allowed values
756 1 - v1 error format
757 2 - v2 error format
758
759Returns:
760 An object of the form:
761
762 { # Response message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700763 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700765 ],
766 }</pre>
767</div>
768
769</body></html>