blob: c81e3452b50a03586f242d8a4c1c05c601f29baf [file] [log] [blame]
yoshi-code-bot12d387c2021-10-26 00:24:32 -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="datastream_v1alpha1.html">Datastream API</a> . <a href="datastream_v1alpha1.projects.html">projects</a> . <a href="datastream_v1alpha1.projects.locations.html">locations</a> . <a href="datastream_v1alpha1.projects.locations.streams.html">streams</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, force=None, requestId=None, streamId=None, validateOnly=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Use this method to create a stream.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Use this method to delete a stream.</p>
86<p class="toc_element">
87 <code><a href="#fetchErrors">fetchErrors(stream, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Use this method to fetch any errors associated with a stream.</p>
89<p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Use this method to get details about a stream.</p>
92<p class="toc_element">
93 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Use this method to list streams in a project and location.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, force=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Use this method to update the configuration of a stream.</p>
101<h3>Method Details</h3>
102<div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
108 <code class="details" id="create">create(parent, body=None, force=None, requestId=None, streamId=None, validateOnly=None, x__xgafv=None)</code>
109 <pre>Use this method to create a stream.
110
111Args:
112 parent: string, Required. The parent that owns the collection of streams. (required)
113 body: object, The request body.
114 The object takes the form of:
115
116{
117 &quot;backfillAll&quot;: { # Backfill strategy to automatically backfill the Stream&#x27;s objects. Specific objects can be excluded. # Automatically backfill objects included in the stream source configuration. Specific objects can be excluded.
118 &quot;mysqlExcludedObjects&quot;: { # MySQL database structure # MySQL data source objects to avoid backfilling.
119 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
120 { # MySQL database.
121 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
122 &quot;mysqlTables&quot;: [ # Tables in the database.
123 { # MySQL table.
124 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
125 { # MySQL Column.
126 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
127 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
128 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
129 &quot;length&quot;: 42, # Column length.
130 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
131 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
132 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
133 },
134 ],
135 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
136 },
137 ],
138 },
139 ],
140 },
141 &quot;oracleExcludedObjects&quot;: { # Oracle database structure. # Oracle data source objects to avoid backfilling.
142 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
143 { # Oracle schema.
144 &quot;oracleTables&quot;: [ # Tables in the schema.
145 { # Oracle table.
146 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
147 { # Oracle Column.
148 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
149 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
150 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
151 &quot;length&quot;: 42, # Column length.
152 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
153 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
154 &quot;precision&quot;: 42, # Column precision.
155 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
156 &quot;scale&quot;: 42, # Column scale.
157 },
158 ],
159 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
160 },
161 ],
162 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
163 },
164 ],
165 },
166 },
167 &quot;backfillNone&quot;: { # Backfill strategy to disable automatic backfill for the Stream&#x27;s objects. # Do not automatically backfill any objects.
168 },
169 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the stream.
170 &quot;destinationConfig&quot;: { # The configuration of the stream destination. # Required. Destination connection profile configuration.
171 &quot;destinationConnectionProfileName&quot;: &quot;A String&quot;, # Required. Destination connection profile identifier.
172 &quot;gcsDestinationConfig&quot;: { # Google Cloud Storage destination configuration
173 &quot;avroFileFormat&quot;: { # AVRO file format configuration. # AVRO file format configuration.
174 },
175 &quot;fileRotationInterval&quot;: &quot;A String&quot;, # The maximum duration for which new events are added before a file is closed and a new file is created.
176 &quot;fileRotationMb&quot;: 42, # The maximum file size to be saved in the bucket.
177 &quot;gcsFileFormat&quot;: &quot;A String&quot;, # File format that data should be written in. Deprecated field (b/169501737) - use file_format instead.
178 &quot;jsonFileFormat&quot;: { # JSON file format configuration. # JSON file format configuration.
179 &quot;compression&quot;: &quot;A String&quot;, # Compression of the loaded JSON file.
180 &quot;schemaFileFormat&quot;: &quot;A String&quot;, # The schema file format along JSON data files.
181 },
182 &quot;path&quot;: &quot;A String&quot;, # Path inside the Cloud Storage bucket to write data to.
183 },
184 },
185 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name.
186 &quot;errors&quot;: [ # Output only. Errors on the Stream.
187 { # Represent a user-facing Error.
188 &quot;details&quot;: { # Additional information about the error.
189 &quot;a_key&quot;: &quot;A String&quot;,
190 },
191 &quot;errorTime&quot;: &quot;A String&quot;, # The time when the error occurred.
192 &quot;errorUuid&quot;: &quot;A String&quot;, # A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
193 &quot;message&quot;: &quot;A String&quot;, # A message containing more information about the error that occurred.
194 &quot;reason&quot;: &quot;A String&quot;, # A title that explains the reason for the error.
195 },
196 ],
197 &quot;labels&quot;: { # Labels.
198 &quot;a_key&quot;: &quot;A String&quot;,
199 },
200 &quot;name&quot;: &quot;A String&quot;, # Output only. The stream&#x27;s name.
201 &quot;sourceConfig&quot;: { # The configuration of the stream source. # Required. Source connection profile configuration.
202 &quot;mysqlSourceConfig&quot;: { # MySQL source configuration # MySQL data source configuration
203 &quot;allowlist&quot;: { # MySQL database structure # MySQL objects to retrieve from the source.
204 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
205 { # MySQL database.
206 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
207 &quot;mysqlTables&quot;: [ # Tables in the database.
208 { # MySQL table.
209 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
210 { # MySQL Column.
211 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
212 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
213 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
214 &quot;length&quot;: 42, # Column length.
215 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
216 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
217 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
218 },
219 ],
220 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
221 },
222 ],
223 },
224 ],
225 },
226 &quot;rejectlist&quot;: { # MySQL database structure # MySQL objects to exclude from the stream.
227 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
228 { # MySQL database.
229 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
230 &quot;mysqlTables&quot;: [ # Tables in the database.
231 { # MySQL table.
232 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
233 { # MySQL Column.
234 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
235 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
236 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
237 &quot;length&quot;: 42, # Column length.
238 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
239 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
240 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
241 },
242 ],
243 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
244 },
245 ],
246 },
247 ],
248 },
249 },
250 &quot;oracleSourceConfig&quot;: { # Oracle data source configuration # Oracle data source configuration
251 &quot;allowlist&quot;: { # Oracle database structure. # Oracle objects to include in the stream.
252 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
253 { # Oracle schema.
254 &quot;oracleTables&quot;: [ # Tables in the schema.
255 { # Oracle table.
256 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
257 { # Oracle Column.
258 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
259 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
260 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
261 &quot;length&quot;: 42, # Column length.
262 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
263 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
264 &quot;precision&quot;: 42, # Column precision.
265 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
266 &quot;scale&quot;: 42, # Column scale.
267 },
268 ],
269 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
270 },
271 ],
272 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
273 },
274 ],
275 },
276 &quot;rejectlist&quot;: { # Oracle database structure. # Oracle objects to exclude from the stream.
277 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
278 { # Oracle schema.
279 &quot;oracleTables&quot;: [ # Tables in the schema.
280 { # Oracle table.
281 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
282 { # Oracle Column.
283 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
284 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
285 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
286 &quot;length&quot;: 42, # Column length.
287 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
288 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
289 &quot;precision&quot;: 42, # Column precision.
290 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
291 &quot;scale&quot;: 42, # Column scale.
292 },
293 ],
294 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
295 },
296 ],
297 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
298 },
299 ],
300 },
301 },
302 &quot;sourceConnectionProfileName&quot;: &quot;A String&quot;, # Required. Source connection profile identifier.
303 },
304 &quot;state&quot;: &quot;A String&quot;, # The state of the stream.
305 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update time of the stream.
306}
307
308 force: boolean, Optional. Create the stream without validating it.
309 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
310 streamId: string, Required. The stream identifier.
311 validateOnly: boolean, Optional. Only validate the stream, but do not create any resources. The default is false.
312 x__xgafv: string, V1 error format.
313 Allowed values
314 1 - v1 error format
315 2 - v2 error format
316
317Returns:
318 An object of the form:
319
320 { # This resource represents a long-running operation that is the result of a network API call.
321 &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.
322 &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.
323 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
324 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
325 {
326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
327 },
328 ],
329 &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.
330 },
331 &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.
332 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
333 },
334 &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}`.
335 &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`.
336 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
337 },
338}</pre>
339</div>
340
341<div class="method">
342 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
343 <pre>Use this method to delete a stream.
344
345Args:
346 name: string, Required. The name of the stream resource to delete. (required)
347 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
348 x__xgafv: string, V1 error format.
349 Allowed values
350 1 - v1 error format
351 2 - v2 error format
352
353Returns:
354 An object of the form:
355
356 { # This resource represents a long-running operation that is the result of a network API call.
357 &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.
358 &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.
359 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
360 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
361 {
362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
363 },
364 ],
365 &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.
366 },
367 &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.
368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
369 },
370 &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}`.
371 &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`.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374}</pre>
375</div>
376
377<div class="method">
378 <code class="details" id="fetchErrors">fetchErrors(stream, body=None, x__xgafv=None)</code>
379 <pre>Use this method to fetch any errors associated with a stream.
380
381Args:
382 stream: string, Name of the Stream resource for which to fetch any errors. (required)
383 body: object, The request body.
384 The object takes the form of:
385
386{ # Request message for &#x27;FetchErrors&#x27; request.
387}
388
389 x__xgafv: string, V1 error format.
390 Allowed values
391 1 - v1 error format
392 2 - v2 error format
393
394Returns:
395 An object of the form:
396
397 { # This resource represents a long-running operation that is the result of a network API call.
398 &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.
399 &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.
400 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
401 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
402 {
403 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
404 },
405 ],
406 &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.
407 },
408 &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.
409 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
410 },
411 &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}`.
412 &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`.
413 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
414 },
415}</pre>
416</div>
417
418<div class="method">
419 <code class="details" id="get">get(name, x__xgafv=None)</code>
420 <pre>Use this method to get details about a stream.
421
422Args:
423 name: string, Required. The name of the stream resource to get. (required)
424 x__xgafv: string, V1 error format.
425 Allowed values
426 1 - v1 error format
427 2 - v2 error format
428
429Returns:
430 An object of the form:
431
432 {
433 &quot;backfillAll&quot;: { # Backfill strategy to automatically backfill the Stream&#x27;s objects. Specific objects can be excluded. # Automatically backfill objects included in the stream source configuration. Specific objects can be excluded.
434 &quot;mysqlExcludedObjects&quot;: { # MySQL database structure # MySQL data source objects to avoid backfilling.
435 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
436 { # MySQL database.
437 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
438 &quot;mysqlTables&quot;: [ # Tables in the database.
439 { # MySQL table.
440 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
441 { # MySQL Column.
442 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
443 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
444 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
445 &quot;length&quot;: 42, # Column length.
446 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
447 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
448 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
449 },
450 ],
451 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
452 },
453 ],
454 },
455 ],
456 },
457 &quot;oracleExcludedObjects&quot;: { # Oracle database structure. # Oracle data source objects to avoid backfilling.
458 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
459 { # Oracle schema.
460 &quot;oracleTables&quot;: [ # Tables in the schema.
461 { # Oracle table.
462 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
463 { # Oracle Column.
464 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
465 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
466 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
467 &quot;length&quot;: 42, # Column length.
468 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
469 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
470 &quot;precision&quot;: 42, # Column precision.
471 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
472 &quot;scale&quot;: 42, # Column scale.
473 },
474 ],
475 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
476 },
477 ],
478 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
479 },
480 ],
481 },
482 },
483 &quot;backfillNone&quot;: { # Backfill strategy to disable automatic backfill for the Stream&#x27;s objects. # Do not automatically backfill any objects.
484 },
485 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the stream.
486 &quot;destinationConfig&quot;: { # The configuration of the stream destination. # Required. Destination connection profile configuration.
487 &quot;destinationConnectionProfileName&quot;: &quot;A String&quot;, # Required. Destination connection profile identifier.
488 &quot;gcsDestinationConfig&quot;: { # Google Cloud Storage destination configuration
489 &quot;avroFileFormat&quot;: { # AVRO file format configuration. # AVRO file format configuration.
490 },
491 &quot;fileRotationInterval&quot;: &quot;A String&quot;, # The maximum duration for which new events are added before a file is closed and a new file is created.
492 &quot;fileRotationMb&quot;: 42, # The maximum file size to be saved in the bucket.
493 &quot;gcsFileFormat&quot;: &quot;A String&quot;, # File format that data should be written in. Deprecated field (b/169501737) - use file_format instead.
494 &quot;jsonFileFormat&quot;: { # JSON file format configuration. # JSON file format configuration.
495 &quot;compression&quot;: &quot;A String&quot;, # Compression of the loaded JSON file.
496 &quot;schemaFileFormat&quot;: &quot;A String&quot;, # The schema file format along JSON data files.
497 },
498 &quot;path&quot;: &quot;A String&quot;, # Path inside the Cloud Storage bucket to write data to.
499 },
500 },
501 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name.
502 &quot;errors&quot;: [ # Output only. Errors on the Stream.
503 { # Represent a user-facing Error.
504 &quot;details&quot;: { # Additional information about the error.
505 &quot;a_key&quot;: &quot;A String&quot;,
506 },
507 &quot;errorTime&quot;: &quot;A String&quot;, # The time when the error occurred.
508 &quot;errorUuid&quot;: &quot;A String&quot;, # A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
509 &quot;message&quot;: &quot;A String&quot;, # A message containing more information about the error that occurred.
510 &quot;reason&quot;: &quot;A String&quot;, # A title that explains the reason for the error.
511 },
512 ],
513 &quot;labels&quot;: { # Labels.
514 &quot;a_key&quot;: &quot;A String&quot;,
515 },
516 &quot;name&quot;: &quot;A String&quot;, # Output only. The stream&#x27;s name.
517 &quot;sourceConfig&quot;: { # The configuration of the stream source. # Required. Source connection profile configuration.
518 &quot;mysqlSourceConfig&quot;: { # MySQL source configuration # MySQL data source configuration
519 &quot;allowlist&quot;: { # MySQL database structure # MySQL objects to retrieve from the source.
520 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
521 { # MySQL database.
522 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
523 &quot;mysqlTables&quot;: [ # Tables in the database.
524 { # MySQL table.
525 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
526 { # MySQL Column.
527 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
528 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
529 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
530 &quot;length&quot;: 42, # Column length.
531 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
532 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
533 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
534 },
535 ],
536 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
537 },
538 ],
539 },
540 ],
541 },
542 &quot;rejectlist&quot;: { # MySQL database structure # MySQL objects to exclude from the stream.
543 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
544 { # MySQL database.
545 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
546 &quot;mysqlTables&quot;: [ # Tables in the database.
547 { # MySQL table.
548 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
549 { # MySQL Column.
550 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
551 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
552 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
553 &quot;length&quot;: 42, # Column length.
554 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
555 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
556 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
557 },
558 ],
559 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
560 },
561 ],
562 },
563 ],
564 },
565 },
566 &quot;oracleSourceConfig&quot;: { # Oracle data source configuration # Oracle data source configuration
567 &quot;allowlist&quot;: { # Oracle database structure. # Oracle objects to include in the stream.
568 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
569 { # Oracle schema.
570 &quot;oracleTables&quot;: [ # Tables in the schema.
571 { # Oracle table.
572 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
573 { # Oracle Column.
574 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
575 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
576 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
577 &quot;length&quot;: 42, # Column length.
578 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
579 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
580 &quot;precision&quot;: 42, # Column precision.
581 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
582 &quot;scale&quot;: 42, # Column scale.
583 },
584 ],
585 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
586 },
587 ],
588 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
589 },
590 ],
591 },
592 &quot;rejectlist&quot;: { # Oracle database structure. # Oracle objects to exclude from the stream.
593 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
594 { # Oracle schema.
595 &quot;oracleTables&quot;: [ # Tables in the schema.
596 { # Oracle table.
597 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
598 { # Oracle Column.
599 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
600 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
601 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
602 &quot;length&quot;: 42, # Column length.
603 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
604 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
605 &quot;precision&quot;: 42, # Column precision.
606 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
607 &quot;scale&quot;: 42, # Column scale.
608 },
609 ],
610 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
611 },
612 ],
613 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
614 },
615 ],
616 },
617 },
618 &quot;sourceConnectionProfileName&quot;: &quot;A String&quot;, # Required. Source connection profile identifier.
619 },
620 &quot;state&quot;: &quot;A String&quot;, # The state of the stream.
621 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update time of the stream.
622}</pre>
623</div>
624
625<div class="method">
626 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
627 <pre>Use this method to list streams in a project and location.
628
629Args:
630 parent: string, Required. The parent that owns the collection of streams. (required)
631 filter: string, Filter request.
632 orderBy: string, Order by fields for the result.
633 pageSize: integer, Maximum number of streams to return. If unspecified, at most 50 streams will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
634 pageToken: string, Page token received from a previous `ListStreams` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListStreams` must match the call that provided the page token.
635 x__xgafv: string, V1 error format.
636 Allowed values
637 1 - v1 error format
638 2 - v2 error format
639
640Returns:
641 An object of the form:
642
643 {
644 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
645 &quot;streams&quot;: [ # List of streams
646 {
647 &quot;backfillAll&quot;: { # Backfill strategy to automatically backfill the Stream&#x27;s objects. Specific objects can be excluded. # Automatically backfill objects included in the stream source configuration. Specific objects can be excluded.
648 &quot;mysqlExcludedObjects&quot;: { # MySQL database structure # MySQL data source objects to avoid backfilling.
649 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
650 { # MySQL database.
651 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
652 &quot;mysqlTables&quot;: [ # Tables in the database.
653 { # MySQL table.
654 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
655 { # MySQL Column.
656 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
657 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
658 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
659 &quot;length&quot;: 42, # Column length.
660 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
661 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
662 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
663 },
664 ],
665 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
666 },
667 ],
668 },
669 ],
670 },
671 &quot;oracleExcludedObjects&quot;: { # Oracle database structure. # Oracle data source objects to avoid backfilling.
672 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
673 { # Oracle schema.
674 &quot;oracleTables&quot;: [ # Tables in the schema.
675 { # Oracle table.
676 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
677 { # Oracle Column.
678 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
679 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
680 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
681 &quot;length&quot;: 42, # Column length.
682 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
683 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
684 &quot;precision&quot;: 42, # Column precision.
685 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
686 &quot;scale&quot;: 42, # Column scale.
687 },
688 ],
689 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
690 },
691 ],
692 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
693 },
694 ],
695 },
696 },
697 &quot;backfillNone&quot;: { # Backfill strategy to disable automatic backfill for the Stream&#x27;s objects. # Do not automatically backfill any objects.
698 },
699 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the stream.
700 &quot;destinationConfig&quot;: { # The configuration of the stream destination. # Required. Destination connection profile configuration.
701 &quot;destinationConnectionProfileName&quot;: &quot;A String&quot;, # Required. Destination connection profile identifier.
702 &quot;gcsDestinationConfig&quot;: { # Google Cloud Storage destination configuration
703 &quot;avroFileFormat&quot;: { # AVRO file format configuration. # AVRO file format configuration.
704 },
705 &quot;fileRotationInterval&quot;: &quot;A String&quot;, # The maximum duration for which new events are added before a file is closed and a new file is created.
706 &quot;fileRotationMb&quot;: 42, # The maximum file size to be saved in the bucket.
707 &quot;gcsFileFormat&quot;: &quot;A String&quot;, # File format that data should be written in. Deprecated field (b/169501737) - use file_format instead.
708 &quot;jsonFileFormat&quot;: { # JSON file format configuration. # JSON file format configuration.
709 &quot;compression&quot;: &quot;A String&quot;, # Compression of the loaded JSON file.
710 &quot;schemaFileFormat&quot;: &quot;A String&quot;, # The schema file format along JSON data files.
711 },
712 &quot;path&quot;: &quot;A String&quot;, # Path inside the Cloud Storage bucket to write data to.
713 },
714 },
715 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name.
716 &quot;errors&quot;: [ # Output only. Errors on the Stream.
717 { # Represent a user-facing Error.
718 &quot;details&quot;: { # Additional information about the error.
719 &quot;a_key&quot;: &quot;A String&quot;,
720 },
721 &quot;errorTime&quot;: &quot;A String&quot;, # The time when the error occurred.
722 &quot;errorUuid&quot;: &quot;A String&quot;, # A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
723 &quot;message&quot;: &quot;A String&quot;, # A message containing more information about the error that occurred.
724 &quot;reason&quot;: &quot;A String&quot;, # A title that explains the reason for the error.
725 },
726 ],
727 &quot;labels&quot;: { # Labels.
728 &quot;a_key&quot;: &quot;A String&quot;,
729 },
730 &quot;name&quot;: &quot;A String&quot;, # Output only. The stream&#x27;s name.
731 &quot;sourceConfig&quot;: { # The configuration of the stream source. # Required. Source connection profile configuration.
732 &quot;mysqlSourceConfig&quot;: { # MySQL source configuration # MySQL data source configuration
733 &quot;allowlist&quot;: { # MySQL database structure # MySQL objects to retrieve from the source.
734 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
735 { # MySQL database.
736 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
737 &quot;mysqlTables&quot;: [ # Tables in the database.
738 { # MySQL table.
739 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
740 { # MySQL Column.
741 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
742 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
743 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
744 &quot;length&quot;: 42, # Column length.
745 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
746 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
747 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
748 },
749 ],
750 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
751 },
752 ],
753 },
754 ],
755 },
756 &quot;rejectlist&quot;: { # MySQL database structure # MySQL objects to exclude from the stream.
757 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
758 { # MySQL database.
759 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
760 &quot;mysqlTables&quot;: [ # Tables in the database.
761 { # MySQL table.
762 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
763 { # MySQL Column.
764 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
765 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
766 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
767 &quot;length&quot;: 42, # Column length.
768 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
769 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
770 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
771 },
772 ],
773 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
774 },
775 ],
776 },
777 ],
778 },
779 },
780 &quot;oracleSourceConfig&quot;: { # Oracle data source configuration # Oracle data source configuration
781 &quot;allowlist&quot;: { # Oracle database structure. # Oracle objects to include in the stream.
782 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
783 { # Oracle schema.
784 &quot;oracleTables&quot;: [ # Tables in the schema.
785 { # Oracle table.
786 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
787 { # Oracle Column.
788 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
789 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
790 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
791 &quot;length&quot;: 42, # Column length.
792 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
793 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
794 &quot;precision&quot;: 42, # Column precision.
795 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
796 &quot;scale&quot;: 42, # Column scale.
797 },
798 ],
799 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
800 },
801 ],
802 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
803 },
804 ],
805 },
806 &quot;rejectlist&quot;: { # Oracle database structure. # Oracle objects to exclude from the stream.
807 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
808 { # Oracle schema.
809 &quot;oracleTables&quot;: [ # Tables in the schema.
810 { # Oracle table.
811 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
812 { # Oracle Column.
813 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
814 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
815 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
816 &quot;length&quot;: 42, # Column length.
817 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
818 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
819 &quot;precision&quot;: 42, # Column precision.
820 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
821 &quot;scale&quot;: 42, # Column scale.
822 },
823 ],
824 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
825 },
826 ],
827 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
828 },
829 ],
830 },
831 },
832 &quot;sourceConnectionProfileName&quot;: &quot;A String&quot;, # Required. Source connection profile identifier.
833 },
834 &quot;state&quot;: &quot;A String&quot;, # The state of the stream.
835 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update time of the stream.
836 },
837 ],
838 &quot;unreachable&quot;: [ # Locations that could not be reached.
839 &quot;A String&quot;,
840 ],
841}</pre>
842</div>
843
844<div class="method">
845 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
846 <pre>Retrieves the next page of results.
847
848Args:
849 previous_request: The request for the previous page. (required)
850 previous_response: The response from the request for the previous page. (required)
851
852Returns:
853 A request object that you can call &#x27;execute()&#x27; on to request the next
854 page. Returns None if there are no more items in the collection.
855 </pre>
856</div>
857
858<div class="method">
859 <code class="details" id="patch">patch(name, body=None, force=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
860 <pre>Use this method to update the configuration of a stream.
861
862Args:
863 name: string, Output only. The stream&#x27;s name. (required)
864 body: object, The request body.
865 The object takes the form of:
866
867{
868 &quot;backfillAll&quot;: { # Backfill strategy to automatically backfill the Stream&#x27;s objects. Specific objects can be excluded. # Automatically backfill objects included in the stream source configuration. Specific objects can be excluded.
869 &quot;mysqlExcludedObjects&quot;: { # MySQL database structure # MySQL data source objects to avoid backfilling.
870 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
871 { # MySQL database.
872 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
873 &quot;mysqlTables&quot;: [ # Tables in the database.
874 { # MySQL table.
875 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
876 { # MySQL Column.
877 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
878 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
879 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
880 &quot;length&quot;: 42, # Column length.
881 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
882 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
883 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
884 },
885 ],
886 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
887 },
888 ],
889 },
890 ],
891 },
892 &quot;oracleExcludedObjects&quot;: { # Oracle database structure. # Oracle data source objects to avoid backfilling.
893 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
894 { # Oracle schema.
895 &quot;oracleTables&quot;: [ # Tables in the schema.
896 { # Oracle table.
897 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
898 { # Oracle Column.
899 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
900 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
901 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
902 &quot;length&quot;: 42, # Column length.
903 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
904 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
905 &quot;precision&quot;: 42, # Column precision.
906 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
907 &quot;scale&quot;: 42, # Column scale.
908 },
909 ],
910 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
911 },
912 ],
913 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
914 },
915 ],
916 },
917 },
918 &quot;backfillNone&quot;: { # Backfill strategy to disable automatic backfill for the Stream&#x27;s objects. # Do not automatically backfill any objects.
919 },
920 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the stream.
921 &quot;destinationConfig&quot;: { # The configuration of the stream destination. # Required. Destination connection profile configuration.
922 &quot;destinationConnectionProfileName&quot;: &quot;A String&quot;, # Required. Destination connection profile identifier.
923 &quot;gcsDestinationConfig&quot;: { # Google Cloud Storage destination configuration
924 &quot;avroFileFormat&quot;: { # AVRO file format configuration. # AVRO file format configuration.
925 },
926 &quot;fileRotationInterval&quot;: &quot;A String&quot;, # The maximum duration for which new events are added before a file is closed and a new file is created.
927 &quot;fileRotationMb&quot;: 42, # The maximum file size to be saved in the bucket.
928 &quot;gcsFileFormat&quot;: &quot;A String&quot;, # File format that data should be written in. Deprecated field (b/169501737) - use file_format instead.
929 &quot;jsonFileFormat&quot;: { # JSON file format configuration. # JSON file format configuration.
930 &quot;compression&quot;: &quot;A String&quot;, # Compression of the loaded JSON file.
931 &quot;schemaFileFormat&quot;: &quot;A String&quot;, # The schema file format along JSON data files.
932 },
933 &quot;path&quot;: &quot;A String&quot;, # Path inside the Cloud Storage bucket to write data to.
934 },
935 },
936 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name.
937 &quot;errors&quot;: [ # Output only. Errors on the Stream.
938 { # Represent a user-facing Error.
939 &quot;details&quot;: { # Additional information about the error.
940 &quot;a_key&quot;: &quot;A String&quot;,
941 },
942 &quot;errorTime&quot;: &quot;A String&quot;, # The time when the error occurred.
943 &quot;errorUuid&quot;: &quot;A String&quot;, # A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
944 &quot;message&quot;: &quot;A String&quot;, # A message containing more information about the error that occurred.
945 &quot;reason&quot;: &quot;A String&quot;, # A title that explains the reason for the error.
946 },
947 ],
948 &quot;labels&quot;: { # Labels.
949 &quot;a_key&quot;: &quot;A String&quot;,
950 },
951 &quot;name&quot;: &quot;A String&quot;, # Output only. The stream&#x27;s name.
952 &quot;sourceConfig&quot;: { # The configuration of the stream source. # Required. Source connection profile configuration.
953 &quot;mysqlSourceConfig&quot;: { # MySQL source configuration # MySQL data source configuration
954 &quot;allowlist&quot;: { # MySQL database structure # MySQL objects to retrieve from the source.
955 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
956 { # MySQL database.
957 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
958 &quot;mysqlTables&quot;: [ # Tables in the database.
959 { # MySQL table.
960 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
961 { # MySQL Column.
962 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
963 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
964 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
965 &quot;length&quot;: 42, # Column length.
966 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
967 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
968 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
969 },
970 ],
971 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
972 },
973 ],
974 },
975 ],
976 },
977 &quot;rejectlist&quot;: { # MySQL database structure # MySQL objects to exclude from the stream.
978 &quot;mysqlDatabases&quot;: [ # Mysql databases on the server
979 { # MySQL database.
980 &quot;databaseName&quot;: &quot;A String&quot;, # Database name.
981 &quot;mysqlTables&quot;: [ # Tables in the database.
982 { # MySQL table.
983 &quot;mysqlColumns&quot;: [ # MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything.
984 { # MySQL Column.
985 &quot;collation&quot;: &quot;A String&quot;, # Column collation.
986 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
987 &quot;dataType&quot;: &quot;A String&quot;, # The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
988 &quot;length&quot;: 42, # Column length.
989 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
990 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
991 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
992 },
993 ],
994 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
995 },
996 ],
997 },
998 ],
999 },
1000 },
1001 &quot;oracleSourceConfig&quot;: { # Oracle data source configuration # Oracle data source configuration
1002 &quot;allowlist&quot;: { # Oracle database structure. # Oracle objects to include in the stream.
1003 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
1004 { # Oracle schema.
1005 &quot;oracleTables&quot;: [ # Tables in the schema.
1006 { # Oracle table.
1007 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
1008 { # Oracle Column.
1009 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
1010 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
1011 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
1012 &quot;length&quot;: 42, # Column length.
1013 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
1014 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
1015 &quot;precision&quot;: 42, # Column precision.
1016 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
1017 &quot;scale&quot;: 42, # Column scale.
1018 },
1019 ],
1020 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
1021 },
1022 ],
1023 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
1024 },
1025 ],
1026 },
1027 &quot;rejectlist&quot;: { # Oracle database structure. # Oracle objects to exclude from the stream.
1028 &quot;oracleSchemas&quot;: [ # Oracle schemas/databases in the database server.
1029 { # Oracle schema.
1030 &quot;oracleTables&quot;: [ # Tables in the schema.
1031 { # Oracle table.
1032 &quot;oracleColumns&quot;: [ # Oracle columns in the schema. When unspecified as part of inclue/exclude lists, includes/excludes everything.
1033 { # Oracle Column.
1034 &quot;columnName&quot;: &quot;A String&quot;, # Column name.
1035 &quot;dataType&quot;: &quot;A String&quot;, # The Oracle data type.
1036 &quot;encoding&quot;: &quot;A String&quot;, # Column encoding.
1037 &quot;length&quot;: 42, # Column length.
1038 &quot;nullable&quot;: True or False, # Whether or not the column can accept a null value.
1039 &quot;ordinalPosition&quot;: 42, # The ordinal position of the column in the table.
1040 &quot;precision&quot;: 42, # Column precision.
1041 &quot;primaryKey&quot;: True or False, # Whether or not the column represents a primary key.
1042 &quot;scale&quot;: 42, # Column scale.
1043 },
1044 ],
1045 &quot;tableName&quot;: &quot;A String&quot;, # Table name.
1046 },
1047 ],
1048 &quot;schemaName&quot;: &quot;A String&quot;, # Schema name.
1049 },
1050 ],
1051 },
1052 },
1053 &quot;sourceConnectionProfileName&quot;: &quot;A String&quot;, # Required. Source connection profile identifier.
1054 },
1055 &quot;state&quot;: &quot;A String&quot;, # The state of the stream.
1056 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update time of the stream.
1057}
1058
1059 force: boolean, Optional. Execute the update without validating it.
1060 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1061 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the stream resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
1062 validateOnly: boolean, Optional. Only validate the stream with the changes, without actually updating it. The default is false.
1063 x__xgafv: string, V1 error format.
1064 Allowed values
1065 1 - v1 error format
1066 2 - v2 error format
1067
1068Returns:
1069 An object of the form:
1070
1071 { # This resource represents a long-running operation that is the result of a network API call.
1072 &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.
1073 &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.
1074 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1075 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1076 {
1077 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1078 },
1079 ],
1080 &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.
1081 },
1082 &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.
1083 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1084 },
1085 &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}`.
1086 &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`.
1087 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1088 },
1089}</pre>
1090</div>
1091
1092</body></html>