- Resource: Stream
- SourceConfig
- OracleSourceConfig
- OracleRdbms
- OracleSchema
- OracleTable
- OracleColumn
- DropLargeObjects
- StreamLargeObjects
- MysqlSourceConfig
- MysqlRdbms
- MysqlDatabase
- MysqlTable
- MysqlColumn
- PostgresqlSourceConfig
- PostgresqlRdbms
- PostgresqlSchema
- PostgresqlTable
- PostgresqlColumn
- SqlServerSourceConfig
- SqlServerRdbms
- SqlServerSchema
- SqlServerTable
- SqlServerColumn
- SqlServerTransactionLogs
- SqlServerChangeTables
- DestinationConfig
- GcsDestinationConfig
- AvroFileFormat
- JsonFileFormat
- SchemaFileFormat
- JsonCompression
- BigQueryDestinationConfig
- SingleTargetDataset
- SourceHierarchyDatasets
- DatasetTemplate
- Merge
- AppendOnly
- State
- BackfillAllStrategy
- BackfillNoneStrategy
- Methods
Resource: Stream
A resource representing streaming data from a source to a destination.
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "displayName": string, "sourceConfig": { object ( |
Fields | |
---|---|
name |
Output only. The stream's name. |
createTime |
Output only. The creation time of the stream. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The last update time of the stream. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
Labels. An object containing a list of |
displayName |
Required. Display name. |
sourceConfig |
Required. Source connection profile configuration. |
destinationConfig |
Required. Destination connection profile configuration. |
state |
The state of the stream. |
errors[] |
Output only. Errors on the Stream. |
lastRecoveryTime |
Output only. If the stream was recovered, the time of the last recovery. Note: This field is currently experimental. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field backfill_strategy . Stream backfill strategy. backfill_strategy can be only one of the following: |
|
backfillAll |
Automatically backfill objects included in the stream source configuration. Specific objects can be excluded. |
backfillNone |
Do not automatically backfill any objects. |
customerManagedEncryptionKey |
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. |
SourceConfig
The configuration of the stream source.
JSON representation |
---|
{ "sourceConnectionProfile": string, // Union field |
Fields | |
---|---|
sourceConnectionProfile |
Required. Source connection profile resoource. Format: |
Union field source_stream_config . Stream configuration that is specific to the data source type. source_stream_config can be only one of the following: |
|
oracleSourceConfig |
Oracle data source configuration. |
mysqlSourceConfig |
MySQL data source configuration. |
postgresqlSourceConfig |
PostgreSQL data source configuration. |
sqlServerSourceConfig |
SQLServer data source configuration. |
OracleSourceConfig
Oracle data source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
includeObjects |
Oracle objects to include in the stream. |
excludeObjects |
Oracle objects to exclude from the stream. |
maxConcurrentCdcTasks |
Maximum number of concurrent CDC tasks. The number should be non-negative. If not set (or set to 0), the system's default value is used. |
maxConcurrentBackfillTasks |
Maximum number of concurrent backfill tasks. The number should be non-negative. If not set (or set to 0), the system's default value is used. |
Union field large_objects_handling . The configuration for handle Oracle large objects. large_objects_handling can be only one of the following: |
|
dropLargeObjects |
Drop large object values. |
streamLargeObjects |
Stream large object values. |
OracleRdbms
Oracle database structure.
JSON representation |
---|
{
"oracleSchemas": [
{
object ( |
Fields | |
---|---|
oracleSchemas[] |
Oracle schemas/databases in the database server. |
OracleSchema
Oracle schema.
JSON representation |
---|
{
"schema": string,
"oracleTables": [
{
object ( |
Fields | |
---|---|
schema |
Schema name. |
oracleTables[] |
Tables in the schema. |
OracleTable
Oracle table.
JSON representation |
---|
{
"table": string,
"oracleColumns": [
{
object ( |
Fields | |
---|---|
table |
Table name. |
oracleColumns[] |
Oracle columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything. |
OracleColumn
Oracle Column.
JSON representation |
---|
{ "column": string, "dataType": string, "length": integer, "precision": integer, "scale": integer, "encoding": string, "primaryKey": boolean, "nullable": boolean, "ordinalPosition": integer } |
Fields | |
---|---|
column |
Column name. |
dataType |
The Oracle data type. |
length |
Column length. |
precision |
Column precision. |
scale |
Column scale. |
encoding |
Column encoding. |
primaryKey |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinalPosition |
The ordinal position of the column in the table. |
DropLargeObjects
This type has no fields.
Configuration to drop large object values.
StreamLargeObjects
This type has no fields.
Configuration to stream large object values.
MysqlSourceConfig
MySQL source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
includeObjects |
MySQL objects to retrieve from the source. |
excludeObjects |
MySQL objects to exclude from the stream. |
maxConcurrentCdcTasks |
Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used. |
maxConcurrentBackfillTasks |
Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used. |
MysqlRdbms
MySQL database structure
JSON representation |
---|
{
"mysqlDatabases": [
{
object ( |
Fields | |
---|---|
mysqlDatabases[] |
Mysql databases on the server |
MysqlDatabase
MySQL database.
JSON representation |
---|
{
"database": string,
"mysqlTables": [
{
object ( |
Fields | |
---|---|
database |
Database name. |
mysqlTables[] |
Tables in the database. |
MysqlTable
MySQL table.
JSON representation |
---|
{
"table": string,
"mysqlColumns": [
{
object ( |
Fields | |
---|---|
table |
Table name. |
mysqlColumns[] |
MySQL columns in the database. When unspecified as part of include/exclude objects, includes/excludes everything. |
MysqlColumn
MySQL Column.
JSON representation |
---|
{ "column": string, "dataType": string, "length": integer, "collation": string, "primaryKey": boolean, "nullable": boolean, "ordinalPosition": integer, "precision": integer, "scale": integer } |
Fields | |
---|---|
column |
Column name. |
dataType |
The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html |
length |
Column length. |
collation |
Column collation. |
primaryKey |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinalPosition |
The ordinal position of the column in the table. |
precision |
Column precision. |
scale |
Column scale. |
PostgresqlSourceConfig
PostgreSQL data source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
includeObjects |
PostgreSQL objects to include in the stream. |
excludeObjects |
PostgreSQL objects to exclude from the stream. |
replicationSlot |
Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin. |
publication |
Required. The name of the publication that includes the set of all tables that are defined in the stream's includeObjects. |
maxConcurrentBackfillTasks |
Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used. |
PostgresqlRdbms
PostgreSQL database structure.
JSON representation |
---|
{
"postgresqlSchemas": [
{
object ( |
Fields | |
---|---|
postgresqlSchemas[] |
PostgreSQL schemas in the database server. |
PostgresqlSchema
PostgreSQL schema.
JSON representation |
---|
{
"schema": string,
"postgresqlTables": [
{
object ( |
Fields | |
---|---|
schema |
Schema name. |
postgresqlTables[] |
Tables in the schema. |
PostgresqlTable
PostgreSQL table.
JSON representation |
---|
{
"table": string,
"postgresqlColumns": [
{
object ( |
Fields | |
---|---|
table |
Table name. |
postgresqlColumns[] |
PostgreSQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything. |
PostgresqlColumn
PostgreSQL Column.
JSON representation |
---|
{ "column": string, "dataType": string, "length": integer, "precision": integer, "scale": integer, "primaryKey": boolean, "nullable": boolean, "ordinalPosition": integer } |
Fields | |
---|---|
column |
Column name. |
dataType |
The PostgreSQL data type. |
length |
Column length. |
precision |
Column precision. |
scale |
Column scale. |
primaryKey |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinalPosition |
The ordinal position of the column in the table. |
SqlServerSourceConfig
SQLServer data source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
includeObjects |
SQLServer objects to include in the stream. |
excludeObjects |
SQLServer objects to exclude from the stream. |
maxConcurrentCdcTasks |
Max concurrent CDC tasks. |
maxConcurrentBackfillTasks |
Max concurrent backfill tasks. |
Union field cdc_method . Configuration to select the CDC read method for the stream. cdc_method can be only one of the following: |
|
transactionLogs |
CDC reader reads from transaction logs. |
changeTables |
CDC reader reads from change tables. |
SqlServerRdbms
SQLServer database structure.
JSON representation |
---|
{
"schemas": [
{
object ( |
Fields | |
---|---|
schemas[] |
SQLServer schemas in the database server. |
SqlServerSchema
SQLServer schema.
JSON representation |
---|
{
"schema": string,
"tables": [
{
object ( |
Fields | |
---|---|
schema |
Schema name. |
tables[] |
Tables in the schema. |
SqlServerTable
SQLServer table.
JSON representation |
---|
{
"table": string,
"columns": [
{
object ( |
Fields | |
---|---|
table |
Table name. |
columns[] |
SQLServer columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything. |
SqlServerColumn
SQLServer Column.
JSON representation |
---|
{ "column": string, "dataType": string, "length": integer, "precision": integer, "scale": integer, "primaryKey": boolean, "nullable": boolean, "ordinalPosition": integer } |
Fields | |
---|---|
column |
Column name. |
dataType |
The SQLServer data type. |
length |
Column length. |
precision |
Column precision. |
scale |
Column scale. |
primaryKey |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinalPosition |
The ordinal position of the column in the table. |
SqlServerTransactionLogs
This type has no fields.
Configuration to use Transaction Logs CDC read method.
SqlServerChangeTables
This type has no fields.
Configuration to use Change Tables CDC read method.
DestinationConfig
The configuration of the stream destination.
JSON representation |
---|
{ "destinationConnectionProfile": string, // Union field |
Fields | |
---|---|
destinationConnectionProfile |
Required. Destination connection profile resource. Format: |
Union field destination_stream_config . Stream configuration that is specific to the data destination type. destination_stream_config can be only one of the following: |
|
gcsDestinationConfig |
A configuration for how data should be loaded to Cloud Storage. |
bigqueryDestinationConfig |
BigQuery destination configuration. |
GcsDestinationConfig
Google Cloud Storage destination configuration
JSON representation |
---|
{ "path": string, "fileRotationMb": integer, "fileRotationInterval": string, // Union field |
Fields | |
---|---|
path |
Path inside the Cloud Storage bucket to write data to. |
fileRotationMb |
The maximum file size to be saved in the bucket. |
fileRotationInterval |
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed. A duration in seconds with up to nine fractional digits, ending with ' |
Union field file_format . File Format that the data should be written in. file_format can be only one of the following: |
|
avroFileFormat |
AVRO file format configuration. |
jsonFileFormat |
JSON file format configuration. |
AvroFileFormat
This type has no fields.
AVRO file format configuration.
JsonFileFormat
JSON file format configuration.
JSON representation |
---|
{ "schemaFileFormat": enum ( |
Fields | |
---|---|
schemaFileFormat |
The schema file format along JSON data files. |
compression |
Compression of the loaded JSON file. |
SchemaFileFormat
Schema file format.
Enums | |
---|---|
SCHEMA_FILE_FORMAT_UNSPECIFIED |
Unspecified schema file format. |
NO_SCHEMA_FILE |
Do not attach schema file. |
AVRO_SCHEMA_FILE |
Avro schema format. |
JsonCompression
Json file compression.
Enums | |
---|---|
JSON_COMPRESSION_UNSPECIFIED |
Unspecified json file compression. |
NO_COMPRESSION |
Do not compress JSON file. |
GZIP |
Gzip compression. |
BigQueryDestinationConfig
BigQuery destination configuration
JSON representation |
---|
{ "dataFreshness": string, // Union field |
Fields | |
---|---|
dataFreshness |
The guaranteed data freshness (in seconds) when querying tables created by the stream. Editing this field will only affect new tables created in the future, but existing tables will not be impacted. Lower values mean that queries will return fresher data, but may result in higher cost. A duration in seconds with up to nine fractional digits, ending with ' |
Union field dataset_config . Target dataset(s) configuration. dataset_config can be only one of the following: |
|
singleTargetDataset |
Single destination dataset. |
sourceHierarchyDatasets |
Source hierarchy datasets. |
Union field
|
|
merge |
The standard mode |
appendOnly |
Append only mode |
SingleTargetDataset
A single target dataset to which all data will be streamed.
JSON representation |
---|
{ "datasetId": string } |
Fields | |
---|---|
datasetId |
The dataset ID of the target dataset. DatasetIds allowed characters: https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference. |
SourceHierarchyDatasets
Destination datasets are created so that hierarchy of the destination data objects matches the source hierarchy.
JSON representation |
---|
{
"datasetTemplate": {
object ( |
Fields | |
---|---|
datasetTemplate |
The dataset template to use for dynamic dataset creation. |
DatasetTemplate
Dataset template used for dynamic dataset creation.
JSON representation |
---|
{ "location": string, "datasetIdPrefix": string, "kmsKeyName": string } |
Fields | |
---|---|
location |
Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations. |
datasetIdPrefix |
If supplied, every created dataset will have its name prefixed by the provided value. The prefix and name will be separated by an underscore. i.e. |
kmsKeyName |
Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key. i.e. projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}. See https://cloud.google.com/bigquery/docs/customer-managed-encryption for more information. |
Merge
This type has no fields.
Merge mode defines that all changes to a table will be merged at the destination table.
AppendOnly
This type has no fields.
AppendOnly mode defines that all changes to a table will be written to the destination table.
State
Stream state.
Enums | |
---|---|
STATE_UNSPECIFIED |
Unspecified stream state. |
NOT_STARTED |
The stream has been created but has not yet started streaming data. |
RUNNING |
The stream is running. |
PAUSED |
The stream is paused. |
MAINTENANCE |
The stream is in maintenance mode. Updates are rejected on the resource in this state. |
FAILED |
The stream is experiencing an error that is preventing data from being streamed. |
FAILED_PERMANENTLY |
The stream has experienced a terminal failure. |
STARTING |
The stream is starting, but not yet running. |
DRAINING |
The Stream is no longer reading new events, but still writing events in the buffer. |
BackfillAllStrategy
Backfill strategy to automatically backfill the Stream's objects. Specific objects can be excluded.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field excluded_objects . List of objects to exclude. excluded_objects can be only one of the following: |
|
oracleExcludedObjects |
Oracle data source objects to avoid backfilling. |
mysqlExcludedObjects |
MySQL data source objects to avoid backfilling. |
postgresqlExcludedObjects |
PostgreSQL data source objects to avoid backfilling. |
sqlServerExcludedObjects |
SQLServer data source objects to avoid backfilling |
BackfillNoneStrategy
This type has no fields.
Backfill strategy to disable automatic backfill for the Stream's objects.
Methods |
|
---|---|
|
Use this method to create a stream. |
|
Use this method to delete a stream. |
|
Use this method to get details about a stream. |
|
Use this method to list streams in a project and location. |
|
Use this method to update the configuration of a stream. |
|
Use this method to start, resume or recover a stream with a non default CDC strategy. |