|
74 | 74 |
|
75 | 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> . <a href="spanner_v1.projects.instances.databases.sessions.html">sessions</a></h1>
|
76 | 76 | <h2>Instance Methods</h2>
|
| 77 | +<p class="toc_element"> |
| 78 | + <code><a href="#adaptMessage">adaptMessage(name, body=None, x__xgafv=None)</a></code></p> |
| 79 | +<p class="firstline">Handles a single message from the client and returns the result as a stream. The server will interpret the message frame and respond with message frames to the client.</p> |
| 80 | +<p class="toc_element"> |
| 81 | + <code><a href="#adapter">adapter(parent, body=None, x__xgafv=None)</a></code></p> |
| 82 | +<p class="firstline">Creates a new session to be used for requests made by the adapter. A session identifies a specific incarnation of a database resource and is meant to be reused across many `AdaptMessage` calls.</p> |
77 | 83 | <p class="toc_element">
|
78 | 84 | <code><a href="#batchCreate">batchCreate(database, body=None, x__xgafv=None)</a></code></p>
|
79 | 85 | <p class="firstline">Creates multiple new sessions. This API can be used to initialize a session cache on the clients. See https://goo.gl/TgSFN2 for best practices on session cache management.</p>
|
@@ -129,6 +135,65 @@ <h2>Instance Methods</h2>
|
129 | 135 | <code><a href="#streamingRead">streamingRead(session, body=None, x__xgafv=None)</a></code></p>
|
130 | 136 | <p class="firstline">Like Read, except returns the result set as a stream. Unlike Read, there is no limit on the size of the returned result set. However, no individual row in the result set can exceed 100 MiB, and no column value can exceed 10 MiB.</p>
|
131 | 137 | <h3>Method Details</h3>
|
| 138 | +<div class="method"> |
| 139 | + <code class="details" id="adaptMessage">adaptMessage(name, body=None, x__xgafv=None)</code> |
| 140 | + <pre>Handles a single message from the client and returns the result as a stream. The server will interpret the message frame and respond with message frames to the client. |
| 141 | + |
| 142 | +Args: |
| 143 | + name: string, Required. The database session in which the adapter request is processed. (required) |
| 144 | + body: object, The request body. |
| 145 | + The object takes the form of: |
| 146 | + |
| 147 | +{ # Message sent by the client to the adapter. |
| 148 | + "attachments": { # Optional. Opaque request state passed by the client to the server. |
| 149 | + "a_key": "A String", |
| 150 | + }, |
| 151 | + "payload": "A String", # Optional. Uninterpreted bytes from the underlying wire protocol. |
| 152 | + "protocol": "A String", # Required. Identifier for the underlying wire protocol. |
| 153 | +} |
| 154 | + |
| 155 | + x__xgafv: string, V1 error format. |
| 156 | + Allowed values |
| 157 | + 1 - v1 error format |
| 158 | + 2 - v2 error format |
| 159 | + |
| 160 | +Returns: |
| 161 | + An object of the form: |
| 162 | + |
| 163 | + { # Message sent by the adapter to the client. |
| 164 | + "payload": "A String", # Optional. Uninterpreted bytes from the underlying wire protocol. |
| 165 | + "stateUpdates": { # Optional. Opaque state updates to be applied by the client. |
| 166 | + "a_key": "A String", |
| 167 | + }, |
| 168 | +}</pre> |
| 169 | +</div> |
| 170 | + |
| 171 | +<div class="method"> |
| 172 | + <code class="details" id="adapter">adapter(parent, body=None, x__xgafv=None)</code> |
| 173 | + <pre>Creates a new session to be used for requests made by the adapter. A session identifies a specific incarnation of a database resource and is meant to be reused across many `AdaptMessage` calls. |
| 174 | + |
| 175 | +Args: |
| 176 | + parent: string, Required. The database in which the new session is created. (required) |
| 177 | + body: object, The request body. |
| 178 | + The object takes the form of: |
| 179 | + |
| 180 | +{ # A session in the Cloud Spanner Adapter API. |
| 181 | + "name": "A String", # Identifier. The name of the session. This is always system-assigned. |
| 182 | +} |
| 183 | + |
| 184 | + x__xgafv: string, V1 error format. |
| 185 | + Allowed values |
| 186 | + 1 - v1 error format |
| 187 | + 2 - v2 error format |
| 188 | + |
| 189 | +Returns: |
| 190 | + An object of the form: |
| 191 | + |
| 192 | + { # A session in the Cloud Spanner Adapter API. |
| 193 | + "name": "A String", # Identifier. The name of the session. This is always system-assigned. |
| 194 | +}</pre> |
| 195 | +</div> |
| 196 | + |
132 | 197 | <div class="method">
|
133 | 198 | <code class="details" id="batchCreate">batchCreate(database, body=None, x__xgafv=None)</code>
|
134 | 199 | <pre>Creates multiple new sessions. This API can be used to initialize a session cache on the clients. See https://goo.gl/TgSFN2 for best practices on session cache management.
|
|
0 commit comments