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