blob: 9a9364ba956db6815b4e57f3d0560cbc1004af41 [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<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="spanner_v1.html">Cloud Spanner API</a> . <a href="spanner_v1.projects.html">projects</a> . <a href="spanner_v1.projects.instances.html">instances</a> . <a href="spanner_v1.projects.instances.databases.html">databases</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="spanner_v1.projects.instances.databases.operations.html">operations()</a></code>
79</p>
80<p class="firstline">Returns the operations Resource.</p>
81
82<p class="toc_element">
83 <code><a href="spanner_v1.projects.instances.databases.sessions.html">sessions()</a></code>
84</p>
85<p class="firstline">Returns the sessions Resource.</p>
86
87<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040089<p class="firstline">Creates a new Cloud Spanner database and starts to prepare it for serving.</p>
90<p class="toc_element">
91 <code><a href="#dropDatabase">dropDatabase(database, x__xgafv=None)</a></code></p>
92<p class="firstline">Drops (aka deletes) a Cloud Spanner database.</p>
93<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070094 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040095<p class="firstline">Gets the state of a Cloud Spanner database.</p>
96<p class="toc_element">
97 <code><a href="#getDdl">getDdl(database, x__xgafv=None)</a></code></p>
98<p class="firstline">Returns the schema of a Cloud Spanner database as a list of formatted</p>
99<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700101<p class="firstline">Gets the access control policy for a database or backup resource.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400102<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400104<p class="firstline">Lists Cloud Spanner databases.</p>
105<p class="toc_element">
106 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
107<p class="firstline">Retrieves the next page of results.</p>
108<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code><a href="#restore">restore(parent, body=None, x__xgafv=None)</a></code></p>
110<p class="firstline">Create a new database by restoring from a completed backup. The new</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400111<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
113<p class="firstline">Sets the access control policy on a database or backup resource.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400114<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
116<p class="firstline">Returns permissions that the caller has on the specified database or backup</p>
117<p class="toc_element">
118 <code><a href="#updateDdl">updateDdl(database, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400119<p class="firstline">Updates the schema of a Cloud Spanner database by</p>
120<h3>Method Details</h3>
121<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700122 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400123 <pre>Creates a new Cloud Spanner database and starts to prepare it for serving.
124The returned long-running operation will
Dan O'Mearadd494642020-05-01 07:42:23 -0700125have a name of the format `&lt;database_name&gt;/operations/&lt;operation_id&gt;` and
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400126can be used to track preparation of the database. The
127metadata field type is
128CreateDatabaseMetadata. The
129response field type is
130Database, if successful.
131
132Args:
133 parent: string, Required. The name of the instance that will serve the new database.
Dan O'Mearadd494642020-05-01 07:42:23 -0700134Values are of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`. (required)
135 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400136 The object takes the form of:
137
138{ # The request for CreateDatabase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 &quot;extraStatements&quot;: [ # Optional. A list of DDL statements to run inside the newly created
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400140 # database. Statements can create tables, indexes, etc. These
141 # statements execute atomically with the creation of the database:
142 # if there is an error in any statement, the database is not created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400144 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;createStatement&quot;: &quot;A String&quot;, # Required. A `CREATE DATABASE` statement, which specifies the ID of the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400146 # new database. The database ID must conform to the regular expression
147 # `a-z*[a-z0-9]` and be between 2 and 30 characters in length.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400148 # If the database ID is a reserved word or if it contains a hyphen, the
149 # database ID must be enclosed in backticks (`` ` ``).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400150 }
151
152 x__xgafv: string, V1 error format.
153 Allowed values
154 1 - v1 error format
155 2 - v2 error format
156
157Returns:
158 An object of the form:
159
160 { # This resource represents a long-running operation that is the result of a
161 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700162 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
163 # different programming environments, including REST APIs and RPC APIs. It is
164 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
165 # three pieces of data: error code, error message, and error details.
166 #
167 # You can find out more about this error model and how to work with it in the
168 # [API Design Guide](https://cloud.google.com/apis/design/errors).
169 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
170 # message types for APIs to use.
171 {
172 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
173 },
174 ],
175 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
176 # user-facing error message should be localized and sent in the
177 # google.rpc.Status.details field, or localized by the client.
178 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
179 },
180 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
181 # contains progress information and common metadata such as create time.
182 # Some services might not provide such metadata. Any method that returns a
183 # long-running operation should document the metadata type, if any.
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
187 # originally returns it. If you use the default HTTP mapping, the
188 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 # If `true`, the operation is completed, and either `error` or `response` is
191 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193 # method returns no data on success, such as `Delete`, the response is
194 # `google.protobuf.Empty`. If the original method is standard
195 # `Get`/`Create`/`Update`, the response should be the resource. For other
196 # methods, the response should have the type `XxxResponse`, where `Xxx`
197 # is the original method name. For example, if the original method name
198 # is `TakeSnapshot()`, the inferred response type is
199 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700201 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400202 }</pre>
203</div>
204
205<div class="method">
206 <code class="details" id="dropDatabase">dropDatabase(database, x__xgafv=None)</code>
207 <pre>Drops (aka deletes) a Cloud Spanner database.
Dan O'Mearadd494642020-05-01 07:42:23 -0700208Completed backups for the database will be retained according to their
209`expire_time`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400210
211Args:
212 database: string, Required. The database to be dropped. (required)
213 x__xgafv: string, V1 error format.
214 Allowed values
215 1 - v1 error format
216 2 - v2 error format
217
218Returns:
219 An object of the form:
220
221 { # A generic empty message that you can re-use to avoid defining duplicated
222 # empty messages in your APIs. A typical example is to use it as the request
223 # or the response type of an API method. For instance:
224 #
225 # service Foo {
226 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
227 # }
228 #
229 # The JSON representation for `Empty` is empty JSON object `{}`.
230 }</pre>
231</div>
232
233<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700234 <code class="details" id="get">get(name, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400235 <pre>Gets the state of a Cloud Spanner database.
236
237Args:
238 name: string, Required. The name of the requested database. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700239`projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400240 x__xgafv: string, V1 error format.
241 Allowed values
242 1 - v1 error format
243 2 - v2 error format
244
245Returns:
246 An object of the form:
247
248 { # A Cloud Spanner database.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &quot;restoreInfo&quot;: { # Information about the database restore. # Output only. Applicable only for restored databases. Contains information
Dan O'Mearadd494642020-05-01 07:42:23 -0700250 # about the restore source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;backupInfo&quot;: { # Information about a backup. # Information about the backup used to restore the database. The backup
Dan O'Mearadd494642020-05-01 07:42:23 -0700252 # may no longer exist.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;sourceDatabase&quot;: &quot;A String&quot;, # Name of the database the backup was created from.
254 &quot;backup&quot;: &quot;A String&quot;, # Name of the backup.
255 &quot;createTime&quot;: &quot;A String&quot;, # The backup contains an externally consistent copy of `source_database` at
Dan O'Mearadd494642020-05-01 07:42:23 -0700256 # the timestamp specified by `create_time`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700257 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700258 &quot;sourceType&quot;: &quot;A String&quot;, # The type of the restore source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700259 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;createTime&quot;: &quot;A String&quot;, # Output only. If exists, the time at which the database creation started.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700261 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the database. Values are of the form
262 # `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`,
263 # where `&lt;database&gt;` is as specified in the `CREATE DATABASE`
264 # statement. This name can be passed to other API methods to
265 # identify the database.
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 &quot;state&quot;: &quot;A String&quot;, # Output only. The current database state.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400267 }</pre>
268</div>
269
270<div class="method">
271 <code class="details" id="getDdl">getDdl(database, x__xgafv=None)</code>
272 <pre>Returns the schema of a Cloud Spanner database as a list of formatted
273DDL statements. This method does not show pending schema updates, those may
274be queried using the Operations API.
275
276Args:
277 database: string, Required. The database whose schema we wish to get. (required)
278 x__xgafv: string, V1 error format.
279 Allowed values
280 1 - v1 error format
281 2 - v2 error format
282
283Returns:
284 An object of the form:
285
286 { # The response for GetDatabaseDdl.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;statements&quot;: [ # A list of formatted DDL statements defining the schema of the database
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400288 # specified in the request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400290 ],
291 }</pre>
292</div>
293
294<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700295 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 <pre>Gets the access control policy for a database or backup resource.
297Returns an empty policy if a database or backup exists but does not have a
298policy set.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400299
300Authorization requires `spanner.databases.getIamPolicy` permission on
301resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700302For backups, authorization requires `spanner.backups.getIamPolicy`
303permission on resource.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400304
305Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700306 resource: string, REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is `projects/&lt;project ID&gt;/instances/&lt;instance ID&gt;` for instance resources and `projects/&lt;project ID&gt;/instances/&lt;instance ID&gt;/databases/&lt;database ID&gt;` for database resources. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400308 The object takes the form of:
309
310{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
312 # `GetIamPolicy`.
313 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700314 #
315 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
316 # rejected.
317 #
318 # Requests for policies with any conditional bindings must specify version 3.
319 # Policies without any conditional bindings may specify any valid value or
320 # leave the field unset.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700321 #
322 # To learn which resources support conditions in their IAM policies, see the
323 # [IAM
324 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700325 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400326 }
327
328 x__xgafv: string, V1 error format.
329 Allowed values
330 1 - v1 error format
331 2 - v2 error format
332
333Returns:
334 An object of the form:
335
Dan O'Mearadd494642020-05-01 07:42:23 -0700336 { # An Identity and Access Management (IAM) policy, which specifies access
337 # controls for Google Cloud resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400338 #
339 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700340 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
341 # `members` to a single `role`. Members can be user accounts, service accounts,
342 # Google groups, and domains (such as G Suite). A `role` is a named list of
343 # permissions; each `role` can be an IAM predefined role or a user-created
344 # custom role.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400345 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700346 # For some types of Google Cloud resources, a `binding` can also specify a
347 # `condition`, which is a logical expression that allows access to a resource
348 # only if the expression evaluates to `true`. A condition can add constraints
349 # based on attributes of the request, the resource, or both. To learn which
350 # resources support conditions in their IAM policies, see the
351 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700352 #
353 # **JSON example:**
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400354 #
355 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700356 # &quot;bindings&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400357 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
359 # &quot;members&quot;: [
360 # &quot;user:mike@example.com&quot;,
361 # &quot;group:admins@example.com&quot;,
362 # &quot;domain:google.com&quot;,
363 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400364 # ]
365 # },
366 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700368 # &quot;members&quot;: [
369 # &quot;user:eve@example.com&quot;
370 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 # &quot;condition&quot;: {
372 # &quot;title&quot;: &quot;expirable access&quot;,
373 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
374 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700375 # }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400376 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700377 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
379 # &quot;version&quot;: 3
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400380 # }
381 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700382 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700383 #
384 # bindings:
385 # - members:
386 # - user:mike@example.com
387 # - group:admins@example.com
388 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700389 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
390 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700392 # - user:eve@example.com
393 # role: roles/resourcemanager.organizationViewer
394 # condition:
395 # title: expirable access
396 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700398 # - etag: BwWWja0YfJA=
399 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400401 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700402 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700404 # `condition` that determines how and when the `bindings` are applied. Each
405 # of the `bindings` must contain at least one member.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400406 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700407 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
408 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 #
411 # If the condition evaluates to `true`, then this binding applies to the
412 # current request.
413 #
414 # If the condition evaluates to `false`, then this binding does not apply to
415 # the current request. However, a different role binding might grant the same
416 # role to one or more of the members in this binding.
417 #
418 # To learn which resources support conditions in their IAM policies, see the
419 # [IAM
420 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
422 # are documented at https://github.com/google/cel-spec.
423 #
424 # Example (Comparison):
425 #
426 # title: &quot;Summary size limit&quot;
427 # description: &quot;Determines if a summary is less than 100 chars&quot;
428 # expression: &quot;document.summary.size() &lt; 100&quot;
429 #
430 # Example (Equality):
431 #
432 # title: &quot;Requestor is owner&quot;
433 # description: &quot;Determines if requestor is the document owner&quot;
434 # expression: &quot;document.owner == request.auth.claims.email&quot;
435 #
436 # Example (Logic):
437 #
438 # title: &quot;Public documents&quot;
439 # description: &quot;Determine whether the document should be publicly visible&quot;
440 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
441 #
442 # Example (Data Manipulation):
443 #
444 # title: &quot;Notification string&quot;
445 # description: &quot;Create a notification string with a timestamp.&quot;
446 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
447 #
448 # The exact variables and functions that may be referenced within an expression
449 # are determined by the service that evaluates it. See the service
450 # documentation for additional information.
451 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
452 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700453 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
454 # syntax.
455 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
456 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
458 # its purpose. This can be used e.g. in UIs which allow to enter the
459 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 },
461 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400462 # `members` can have the following values:
463 #
464 # * `allUsers`: A special identifier that represents anyone who is
465 # on the internet; with or without a Google account.
466 #
467 # * `allAuthenticatedUsers`: A special identifier that represents anyone
468 # who is authenticated with a Google account or a service account.
469 #
470 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -0700471 # account. For example, `alice@example.com` .
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400472 #
473 #
474 # * `serviceAccount:{emailid}`: An email address that represents a service
475 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
476 #
477 # * `group:{emailid}`: An email address that represents a Google group.
478 # For example, `admins@example.com`.
479 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700480 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
481 # identifier) representing a user that has been recently deleted. For
482 # example, `alice@example.com?uid=123456789012345678901`. If the user is
483 # recovered, this value reverts to `user:{emailid}` and the recovered user
484 # retains the role in the binding.
485 #
486 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
487 # unique identifier) representing a service account that has been recently
488 # deleted. For example,
489 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
490 # If the service account is undeleted, this value reverts to
491 # `serviceAccount:{emailid}` and the undeleted service account retains the
492 # role in the binding.
493 #
494 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
495 # identifier) representing a Google group that has been recently
496 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
497 # the group is recovered, this value reverts to `group:{emailid}` and the
498 # recovered group retains the role in the binding.
499 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 #
501 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400502 # users of that domain. For example, `google.com` or `example.com`.
503 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400505 ],
506 },
507 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700508 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
509 # prevent simultaneous updates of a policy from overwriting each other.
510 # It is strongly suggested that systems make use of the `etag` in the
511 # read-modify-write cycle to perform policy updates in order to avoid race
512 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
513 # systems are expected to put that etag in the request to `setIamPolicy` to
514 # ensure that their change will be applied to the same version of the policy.
515 #
516 # **Important:** If you use IAM Conditions, you must include the `etag` field
517 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
518 # you to overwrite a version `3` policy with a version `1` policy, and all of
519 # the conditions in the version `3` policy are lost.
520 &quot;version&quot;: 42, # Specifies the format of the policy.
521 #
522 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
523 # are rejected.
524 #
525 # Any operation that affects conditional role bindings must specify version
526 # `3`. This requirement applies to the following operations:
527 #
528 # * Getting a policy that includes a conditional role binding
529 # * Adding a conditional role binding to a policy
530 # * Changing a conditional role binding in a policy
531 # * Removing any role binding, with or without a condition, from a policy
532 # that includes conditions
533 #
534 # **Important:** If you use IAM Conditions, you must include the `etag` field
535 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
536 # you to overwrite a version `3` policy with a version `1` policy, and all of
537 # the conditions in the version `3` policy are lost.
538 #
539 # If a policy does not include any conditions, operations on that policy may
540 # specify any valid version or leave the field unset.
541 #
542 # To learn which resources support conditions in their IAM policies, see the
543 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400544 }</pre>
545</div>
546
547<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700548 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400549 <pre>Lists Cloud Spanner databases.
550
551Args:
552 parent: string, Required. The instance whose databases should be listed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700553Values are of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400554 pageToken: string, If non-empty, `page_token` should contain a
555next_page_token from a
556previous ListDatabasesResponse.
Bu Sun Kim65020912020-05-20 12:08:20 -0700557 pageSize: integer, Number of databases to be returned in the response. If 0 or less,
558defaults to the server&#x27;s maximum allowed page size.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400559 x__xgafv: string, V1 error format.
560 Allowed values
561 1 - v1 error format
562 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400563
564Returns:
565 An object of the form:
566
567 { # The response for ListDatabases.
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &quot;databases&quot;: [ # Databases that matched the request.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400569 { # A Cloud Spanner database.
Bu Sun Kim65020912020-05-20 12:08:20 -0700570 &quot;restoreInfo&quot;: { # Information about the database restore. # Output only. Applicable only for restored databases. Contains information
Dan O'Mearadd494642020-05-01 07:42:23 -0700571 # about the restore source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;backupInfo&quot;: { # Information about a backup. # Information about the backup used to restore the database. The backup
Dan O'Mearadd494642020-05-01 07:42:23 -0700573 # may no longer exist.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;sourceDatabase&quot;: &quot;A String&quot;, # Name of the database the backup was created from.
575 &quot;backup&quot;: &quot;A String&quot;, # Name of the backup.
576 &quot;createTime&quot;: &quot;A String&quot;, # The backup contains an externally consistent copy of `source_database` at
Dan O'Mearadd494642020-05-01 07:42:23 -0700577 # the timestamp specified by `create_time`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700578 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700579 &quot;sourceType&quot;: &quot;A String&quot;, # The type of the restore source.
Dan O'Mearadd494642020-05-01 07:42:23 -0700580 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 &quot;createTime&quot;: &quot;A String&quot;, # Output only. If exists, the time at which the database creation started.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700582 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the database. Values are of the form
583 # `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`,
584 # where `&lt;database&gt;` is as specified in the `CREATE DATABASE`
585 # statement. This name can be passed to other API methods to
586 # identify the database.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;state&quot;: &quot;A String&quot;, # Output only. The current database state.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400588 },
589 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700590 &quot;nextPageToken&quot;: &quot;A String&quot;, # `next_page_token` can be sent in a subsequent
591 # ListDatabases call to fetch more
592 # of the matching databases.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400593 }</pre>
594</div>
595
596<div class="method">
597 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
598 <pre>Retrieves the next page of results.
599
600Args:
601 previous_request: The request for the previous page. (required)
602 previous_response: The response from the request for the previous page. (required)
603
604Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700605 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400606 page. Returns None if there are no more items in the collection.
607 </pre>
608</div>
609
610<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700611 <code class="details" id="restore">restore(parent, body=None, x__xgafv=None)</code>
612 <pre>Create a new database by restoring from a completed backup. The new
613database must be in the same project and in an instance with the same
614instance configuration as the instance containing
615the backup. The returned database long-running
616operation has a name of the format
617`projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;/operations/&lt;operation_id&gt;`,
618and can be used to track the progress of the operation, and to cancel it.
619The metadata field type is
620RestoreDatabaseMetadata.
621The response type
622is Database, if
623successful. Cancelling the returned operation will stop the restore and
624delete the database.
625There can be only one database being restored into an instance at a time.
626Once the restore operation completes, a new restore operation can be
627initiated, without waiting for the optimize operation associated with the
628first restore to complete.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400629
630Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700631 parent: string, Required. The name of the instance in which to create the
632restored database. This instance must be in the same project and
633have the same instance configuration as the instance containing
634the source backup. Values are of the form
635`projects/&lt;project&gt;/instances/&lt;instance&gt;`. (required)
636 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400637 The object takes the form of:
638
Dan O'Mearadd494642020-05-01 07:42:23 -0700639{ # The request for
640 # RestoreDatabase.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &quot;databaseId&quot;: &quot;A String&quot;, # Required. The id of the database to create and restore to. This
Dan O'Mearadd494642020-05-01 07:42:23 -0700642 # database must not already exist. The `database_id` appended to
643 # `parent` forms the full database name of the form
644 # `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 &quot;backup&quot;: &quot;A String&quot;, # Name of the backup from which to restore. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700646 # `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400647 }
648
649 x__xgafv: string, V1 error format.
650 Allowed values
651 1 - v1 error format
652 2 - v2 error format
653
654Returns:
655 An object of the form:
656
657 { # This resource represents a long-running operation that is the result of a
658 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700659 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
660 # different programming environments, including REST APIs and RPC APIs. It is
661 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
662 # three pieces of data: error code, error message, and error details.
663 #
664 # You can find out more about this error model and how to work with it in the
665 # [API Design Guide](https://cloud.google.com/apis/design/errors).
666 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
667 # message types for APIs to use.
668 {
669 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
670 },
671 ],
672 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
673 # user-facing error message should be localized and sent in the
674 # google.rpc.Status.details field, or localized by the client.
675 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
676 },
677 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
678 # contains progress information and common metadata such as create time.
679 # Some services might not provide such metadata. Any method that returns a
680 # long-running operation should document the metadata type, if any.
681 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
682 },
683 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
684 # originally returns it. If you use the default HTTP mapping, the
685 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700687 # If `true`, the operation is completed, and either `error` or `response` is
688 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700690 # method returns no data on success, such as `Delete`, the response is
691 # `google.protobuf.Empty`. If the original method is standard
692 # `Get`/`Create`/`Update`, the response should be the resource. For other
693 # methods, the response should have the type `XxxResponse`, where `Xxx`
694 # is the original method name. For example, if the original method name
695 # is `TakeSnapshot()`, the inferred response type is
696 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700698 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700699 }</pre>
700</div>
701
702<div class="method">
703 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
704 <pre>Sets the access control policy on a database or backup resource.
705Replaces any existing policy.
706
707Authorization requires `spanner.databases.setIamPolicy`
708permission on resource.
709For backups, authorization requires `spanner.backups.setIamPolicy`
710permission on resource.
711
712Args:
713 resource: string, REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is `projects/&lt;project ID&gt;/instances/&lt;instance ID&gt;` for instance resources and `projects/&lt;project ID&gt;/instances/&lt;instance ID&gt;/databases/&lt;database ID&gt;` for databases resources. (required)
714 body: object, The request body.
715 The object takes the form of:
716
717{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700718 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Dan O'Mearadd494642020-05-01 07:42:23 -0700719 # the policy is limited to a few 10s of KB. An empty policy is a
720 # valid policy but certain Cloud Platform services (such as Projects)
721 # might reject them.
722 # controls for Google Cloud resources.
723 #
724 #
725 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
726 # `members` to a single `role`. Members can be user accounts, service accounts,
727 # Google groups, and domains (such as G Suite). A `role` is a named list of
728 # permissions; each `role` can be an IAM predefined role or a user-created
729 # custom role.
730 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700731 # For some types of Google Cloud resources, a `binding` can also specify a
732 # `condition`, which is a logical expression that allows access to a resource
733 # only if the expression evaluates to `true`. A condition can add constraints
734 # based on attributes of the request, the resource, or both. To learn which
735 # resources support conditions in their IAM policies, see the
736 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700737 #
738 # **JSON example:**
739 #
740 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 # &quot;bindings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700742 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
744 # &quot;members&quot;: [
745 # &quot;user:mike@example.com&quot;,
746 # &quot;group:admins@example.com&quot;,
747 # &quot;domain:google.com&quot;,
748 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700749 # ]
750 # },
751 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700753 # &quot;members&quot;: [
754 # &quot;user:eve@example.com&quot;
755 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 # &quot;condition&quot;: {
757 # &quot;title&quot;: &quot;expirable access&quot;,
758 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
759 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700760 # }
761 # }
762 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
764 # &quot;version&quot;: 3
Dan O'Mearadd494642020-05-01 07:42:23 -0700765 # }
766 #
767 # **YAML example:**
768 #
769 # bindings:
770 # - members:
771 # - user:mike@example.com
772 # - group:admins@example.com
773 # - domain:google.com
774 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
775 # role: roles/resourcemanager.organizationAdmin
776 # - members:
777 # - user:eve@example.com
778 # role: roles/resourcemanager.organizationViewer
779 # condition:
780 # title: expirable access
781 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700783 # - etag: BwWWja0YfJA=
784 # - version: 3
785 #
786 # For a description of IAM and its features, see the
787 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 # `condition` that determines how and when the `bindings` are applied. Each
790 # of the `bindings` must contain at least one member.
791 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700792 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
793 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700795 #
796 # If the condition evaluates to `true`, then this binding applies to the
797 # current request.
798 #
799 # If the condition evaluates to `false`, then this binding does not apply to
800 # the current request. However, a different role binding might grant the same
801 # role to one or more of the members in this binding.
802 #
803 # To learn which resources support conditions in their IAM policies, see the
804 # [IAM
805 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
807 # are documented at https://github.com/google/cel-spec.
808 #
809 # Example (Comparison):
810 #
811 # title: &quot;Summary size limit&quot;
812 # description: &quot;Determines if a summary is less than 100 chars&quot;
813 # expression: &quot;document.summary.size() &lt; 100&quot;
814 #
815 # Example (Equality):
816 #
817 # title: &quot;Requestor is owner&quot;
818 # description: &quot;Determines if requestor is the document owner&quot;
819 # expression: &quot;document.owner == request.auth.claims.email&quot;
820 #
821 # Example (Logic):
822 #
823 # title: &quot;Public documents&quot;
824 # description: &quot;Determine whether the document should be publicly visible&quot;
825 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
826 #
827 # Example (Data Manipulation):
828 #
829 # title: &quot;Notification string&quot;
830 # description: &quot;Create a notification string with a timestamp.&quot;
831 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
832 #
833 # The exact variables and functions that may be referenced within an expression
834 # are determined by the service that evaluates it. See the service
835 # documentation for additional information.
836 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
837 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700838 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
839 # syntax.
840 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
841 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
843 # its purpose. This can be used e.g. in UIs which allow to enter the
844 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 },
846 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700847 # `members` can have the following values:
848 #
849 # * `allUsers`: A special identifier that represents anyone who is
850 # on the internet; with or without a Google account.
851 #
852 # * `allAuthenticatedUsers`: A special identifier that represents anyone
853 # who is authenticated with a Google account or a service account.
854 #
855 # * `user:{emailid}`: An email address that represents a specific Google
856 # account. For example, `alice@example.com` .
857 #
858 #
859 # * `serviceAccount:{emailid}`: An email address that represents a service
860 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
861 #
862 # * `group:{emailid}`: An email address that represents a Google group.
863 # For example, `admins@example.com`.
864 #
865 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
866 # identifier) representing a user that has been recently deleted. For
867 # example, `alice@example.com?uid=123456789012345678901`. If the user is
868 # recovered, this value reverts to `user:{emailid}` and the recovered user
869 # retains the role in the binding.
870 #
871 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
872 # unique identifier) representing a service account that has been recently
873 # deleted. For example,
874 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
875 # If the service account is undeleted, this value reverts to
876 # `serviceAccount:{emailid}` and the undeleted service account retains the
877 # role in the binding.
878 #
879 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
880 # identifier) representing a Google group that has been recently
881 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
882 # the group is recovered, this value reverts to `group:{emailid}` and the
883 # recovered group retains the role in the binding.
884 #
885 #
886 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
887 # users of that domain. For example, `google.com` or `example.com`.
888 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700890 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700891 },
892 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700893 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
894 # prevent simultaneous updates of a policy from overwriting each other.
895 # It is strongly suggested that systems make use of the `etag` in the
896 # read-modify-write cycle to perform policy updates in order to avoid race
897 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
898 # systems are expected to put that etag in the request to `setIamPolicy` to
899 # ensure that their change will be applied to the same version of the policy.
900 #
901 # **Important:** If you use IAM Conditions, you must include the `etag` field
902 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
903 # you to overwrite a version `3` policy with a version `1` policy, and all of
904 # the conditions in the version `3` policy are lost.
905 &quot;version&quot;: 42, # Specifies the format of the policy.
906 #
907 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
908 # are rejected.
909 #
910 # Any operation that affects conditional role bindings must specify version
911 # `3`. This requirement applies to the following operations:
912 #
913 # * Getting a policy that includes a conditional role binding
914 # * Adding a conditional role binding to a policy
915 # * Changing a conditional role binding in a policy
916 # * Removing any role binding, with or without a condition, from a policy
917 # that includes conditions
918 #
919 # **Important:** If you use IAM Conditions, you must include the `etag` field
920 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
921 # you to overwrite a version `3` policy with a version `1` policy, and all of
922 # the conditions in the version `3` policy are lost.
923 #
924 # If a policy does not include any conditions, operations on that policy may
925 # specify any valid version or leave the field unset.
926 #
927 # To learn which resources support conditions in their IAM policies, see the
928 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700929 },
930 }
931
932 x__xgafv: string, V1 error format.
933 Allowed values
934 1 - v1 error format
935 2 - v2 error format
936
937Returns:
938 An object of the form:
939
940 { # An Identity and Access Management (IAM) policy, which specifies access
941 # controls for Google Cloud resources.
942 #
943 #
944 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
945 # `members` to a single `role`. Members can be user accounts, service accounts,
946 # Google groups, and domains (such as G Suite). A `role` is a named list of
947 # permissions; each `role` can be an IAM predefined role or a user-created
948 # custom role.
949 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700950 # For some types of Google Cloud resources, a `binding` can also specify a
951 # `condition`, which is a logical expression that allows access to a resource
952 # only if the expression evaluates to `true`. A condition can add constraints
953 # based on attributes of the request, the resource, or both. To learn which
954 # resources support conditions in their IAM policies, see the
955 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700956 #
957 # **JSON example:**
958 #
959 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700960 # &quot;bindings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700961 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700962 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
963 # &quot;members&quot;: [
964 # &quot;user:mike@example.com&quot;,
965 # &quot;group:admins@example.com&quot;,
966 # &quot;domain:google.com&quot;,
967 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700968 # ]
969 # },
970 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700971 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700972 # &quot;members&quot;: [
973 # &quot;user:eve@example.com&quot;
974 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700975 # &quot;condition&quot;: {
976 # &quot;title&quot;: &quot;expirable access&quot;,
977 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
978 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700979 # }
980 # }
981 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700982 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
983 # &quot;version&quot;: 3
Dan O'Mearadd494642020-05-01 07:42:23 -0700984 # }
985 #
986 # **YAML example:**
987 #
988 # bindings:
989 # - members:
990 # - user:mike@example.com
991 # - group:admins@example.com
992 # - domain:google.com
993 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
994 # role: roles/resourcemanager.organizationAdmin
995 # - members:
996 # - user:eve@example.com
997 # role: roles/resourcemanager.organizationViewer
998 # condition:
999 # title: expirable access
1000 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001002 # - etag: BwWWja0YfJA=
1003 # - version: 3
1004 #
1005 # For a description of IAM and its features, see the
1006 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001008 # `condition` that determines how and when the `bindings` are applied. Each
1009 # of the `bindings` must contain at least one member.
1010 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001011 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1012 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001013 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001014 #
1015 # If the condition evaluates to `true`, then this binding applies to the
1016 # current request.
1017 #
1018 # If the condition evaluates to `false`, then this binding does not apply to
1019 # the current request. However, a different role binding might grant the same
1020 # role to one or more of the members in this binding.
1021 #
1022 # To learn which resources support conditions in their IAM policies, see the
1023 # [IAM
1024 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001025 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1026 # are documented at https://github.com/google/cel-spec.
1027 #
1028 # Example (Comparison):
1029 #
1030 # title: &quot;Summary size limit&quot;
1031 # description: &quot;Determines if a summary is less than 100 chars&quot;
1032 # expression: &quot;document.summary.size() &lt; 100&quot;
1033 #
1034 # Example (Equality):
1035 #
1036 # title: &quot;Requestor is owner&quot;
1037 # description: &quot;Determines if requestor is the document owner&quot;
1038 # expression: &quot;document.owner == request.auth.claims.email&quot;
1039 #
1040 # Example (Logic):
1041 #
1042 # title: &quot;Public documents&quot;
1043 # description: &quot;Determine whether the document should be publicly visible&quot;
1044 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1045 #
1046 # Example (Data Manipulation):
1047 #
1048 # title: &quot;Notification string&quot;
1049 # description: &quot;Create a notification string with a timestamp.&quot;
1050 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1051 #
1052 # The exact variables and functions that may be referenced within an expression
1053 # are determined by the service that evaluates it. See the service
1054 # documentation for additional information.
1055 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1056 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001057 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1058 # syntax.
1059 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1060 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001061 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1062 # its purpose. This can be used e.g. in UIs which allow to enter the
1063 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001064 },
1065 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001066 # `members` can have the following values:
1067 #
1068 # * `allUsers`: A special identifier that represents anyone who is
1069 # on the internet; with or without a Google account.
1070 #
1071 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1072 # who is authenticated with a Google account or a service account.
1073 #
1074 # * `user:{emailid}`: An email address that represents a specific Google
1075 # account. For example, `alice@example.com` .
1076 #
1077 #
1078 # * `serviceAccount:{emailid}`: An email address that represents a service
1079 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1080 #
1081 # * `group:{emailid}`: An email address that represents a Google group.
1082 # For example, `admins@example.com`.
1083 #
1084 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1085 # identifier) representing a user that has been recently deleted. For
1086 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1087 # recovered, this value reverts to `user:{emailid}` and the recovered user
1088 # retains the role in the binding.
1089 #
1090 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1091 # unique identifier) representing a service account that has been recently
1092 # deleted. For example,
1093 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1094 # If the service account is undeleted, this value reverts to
1095 # `serviceAccount:{emailid}` and the undeleted service account retains the
1096 # role in the binding.
1097 #
1098 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1099 # identifier) representing a Google group that has been recently
1100 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1101 # the group is recovered, this value reverts to `group:{emailid}` and the
1102 # recovered group retains the role in the binding.
1103 #
1104 #
1105 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1106 # users of that domain. For example, `google.com` or `example.com`.
1107 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001109 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001110 },
1111 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001112 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1113 # prevent simultaneous updates of a policy from overwriting each other.
1114 # It is strongly suggested that systems make use of the `etag` in the
1115 # read-modify-write cycle to perform policy updates in order to avoid race
1116 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1117 # systems are expected to put that etag in the request to `setIamPolicy` to
1118 # ensure that their change will be applied to the same version of the policy.
1119 #
1120 # **Important:** If you use IAM Conditions, you must include the `etag` field
1121 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1122 # you to overwrite a version `3` policy with a version `1` policy, and all of
1123 # the conditions in the version `3` policy are lost.
1124 &quot;version&quot;: 42, # Specifies the format of the policy.
1125 #
1126 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1127 # are rejected.
1128 #
1129 # Any operation that affects conditional role bindings must specify version
1130 # `3`. This requirement applies to the following operations:
1131 #
1132 # * Getting a policy that includes a conditional role binding
1133 # * Adding a conditional role binding to a policy
1134 # * Changing a conditional role binding in a policy
1135 # * Removing any role binding, with or without a condition, from a policy
1136 # that includes conditions
1137 #
1138 # **Important:** If you use IAM Conditions, you must include the `etag` field
1139 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1140 # you to overwrite a version `3` policy with a version `1` policy, and all of
1141 # the conditions in the version `3` policy are lost.
1142 #
1143 # If a policy does not include any conditions, operations on that policy may
1144 # specify any valid version or leave the field unset.
1145 #
1146 # To learn which resources support conditions in their IAM policies, see the
1147 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001148 }</pre>
1149</div>
1150
1151<div class="method">
1152 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1153 <pre>Returns permissions that the caller has on the specified database or backup
1154resource.
1155
1156Attempting this RPC on a non-existent Cloud Spanner database will
1157result in a NOT_FOUND error if the user has
1158`spanner.databases.list` permission on the containing Cloud
1159Spanner instance. Otherwise returns an empty set of permissions.
1160Calling this method on a backup that does not exist will
1161result in a NOT_FOUND error if the user has
1162`spanner.backups.list` permission on the containing instance.
1163
1164Args:
1165 resource: string, REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is `projects/&lt;project ID&gt;/instances/&lt;instance ID&gt;` for instance resources and `projects/&lt;project ID&gt;/instances/&lt;instance ID&gt;/databases/&lt;database ID&gt;` for database resources. (required)
1166 body: object, The request body.
1167 The object takes the form of:
1168
1169{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001170 &quot;permissions&quot;: [ # REQUIRED: The set of permissions to check for &#x27;resource&#x27;.
1171 # Permissions with wildcards (such as &#x27;*&#x27;, &#x27;spanner.*&#x27;, &#x27;spanner.instances.*&#x27;) are not allowed.
1172 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001173 ],
1174 }
1175
1176 x__xgafv: string, V1 error format.
1177 Allowed values
1178 1 - v1 error format
1179 2 - v2 error format
1180
1181Returns:
1182 An object of the form:
1183
1184 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001185 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Dan O'Mearadd494642020-05-01 07:42:23 -07001186 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001187 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001188 ],
1189 }</pre>
1190</div>
1191
1192<div class="method">
1193 <code class="details" id="updateDdl">updateDdl(database, body=None, x__xgafv=None)</code>
1194 <pre>Updates the schema of a Cloud Spanner database by
1195creating/altering/dropping tables, columns, indexes, etc. The returned
1196long-running operation will have a name of
1197the format `&lt;database_name&gt;/operations/&lt;operation_id&gt;` and can be used to
1198track execution of the schema change(s). The
1199metadata field type is
1200UpdateDatabaseDdlMetadata. The operation has no response.
1201
1202Args:
1203 database: string, Required. The database to update. (required)
1204 body: object, The request body.
1205 The object takes the form of:
1206
1207{ # Enqueues the given DDL statements to be applied, in order but not
1208 # necessarily all at once, to the database schema at some point (or
1209 # points) in the future. The server checks that the statements
1210 # are executable (syntactically valid, name tables that exist, etc.)
1211 # before enqueueing them, but they may still fail upon
1212 # later execution (e.g., if a statement from another batch of
1213 # statements is applied first and it conflicts in some way, or if
1214 # there is some data-related problem like a `NULL` value in a column to
1215 # which `NOT NULL` would be added). If a statement fails, all
1216 # subsequent statements in the batch are automatically cancelled.
1217 #
1218 # Each batch of statements is assigned a name which can be used with
1219 # the Operations API to monitor
1220 # progress. See the
1221 # operation_id field for more
1222 # details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001223 &quot;operationId&quot;: &quot;A String&quot;, # If empty, the new update request is assigned an
Dan O'Mearadd494642020-05-01 07:42:23 -07001224 # automatically-generated operation ID. Otherwise, `operation_id`
1225 # is used to construct the name of the resulting
1226 # Operation.
1227 #
1228 # Specifying an explicit operation ID simplifies determining
1229 # whether the statements were executed in the event that the
1230 # UpdateDatabaseDdl call is replayed,
1231 # or the return value is otherwise lost: the database and
1232 # `operation_id` fields can be combined to form the
1233 # name of the resulting
1234 # longrunning.Operation: `&lt;database&gt;/operations/&lt;operation_id&gt;`.
1235 #
1236 # `operation_id` should be unique within the database, and must be
1237 # a valid identifier: `a-z*`. Note that
1238 # automatically-generated operation IDs always begin with an
1239 # underscore. If the named operation already exists,
1240 # UpdateDatabaseDdl returns
1241 # `ALREADY_EXISTS`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001242 &quot;statements&quot;: [ # Required. DDL statements to be applied to the database.
1243 &quot;A String&quot;,
1244 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001245 }
1246
1247 x__xgafv: string, V1 error format.
1248 Allowed values
1249 1 - v1 error format
1250 2 - v2 error format
1251
1252Returns:
1253 An object of the form:
1254
1255 { # This resource represents a long-running operation that is the result of a
1256 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001257 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1258 # different programming environments, including REST APIs and RPC APIs. It is
1259 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1260 # three pieces of data: error code, error message, and error details.
1261 #
1262 # You can find out more about this error model and how to work with it in the
1263 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1264 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1265 # message types for APIs to use.
1266 {
1267 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1268 },
1269 ],
1270 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1271 # user-facing error message should be localized and sent in the
1272 # google.rpc.Status.details field, or localized by the client.
1273 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1274 },
1275 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1276 # contains progress information and common metadata such as create time.
1277 # Some services might not provide such metadata. Any method that returns a
1278 # long-running operation should document the metadata type, if any.
1279 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1280 },
1281 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1282 # originally returns it. If you use the default HTTP mapping, the
1283 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001284 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -07001285 # If `true`, the operation is completed, and either `error` or `response` is
1286 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07001288 # method returns no data on success, such as `Delete`, the response is
1289 # `google.protobuf.Empty`. If the original method is standard
1290 # `Get`/`Create`/`Update`, the response should be the resource. For other
1291 # methods, the response should have the type `XxxResponse`, where `Xxx`
1292 # is the original method name. For example, if the original method name
1293 # is `TakeSnapshot()`, the inferred response type is
1294 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001295 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001296 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001297 }</pre>
1298</div>
1299
1300</body></html>