- Resource: Stream
- SourceConfig
- OracleSourceConfig
- OracleRdbms
- OracleSchema
- OracleTable
- OracleColumn
- DropLargeObjects
- StreamLargeObjects
- LogMiner
- BinaryLogParser
- OracleAsmLogFileAccess
- LogFileDirectories
- MysqlSourceConfig
- MysqlRdbms
- MysqlDatabase
- MysqlTable
- MysqlColumn
- BinaryLogPosition
- Gtid
- 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. Identifier. The stream's name. |
create |
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: |
update |
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 |
display |
Required. Display name. |
source |
Required. Source connection profile configuration. |
destination |
Required. Destination connection profile configuration. |
state |
The state of the stream. |
errors[] |
Output only. Errors on the Stream. |
last |
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: |
|
backfill |
Automatically backfill objects included in the stream source configuration. Specific objects can be excluded. |
backfill |
Do not automatically backfill any objects. |
customer |
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 | |
---|---|
source |
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: |
|
oracle |
Oracle data source configuration. |
mysql |
MySQL data source configuration. |
postgresql |
PostgreSQL data source configuration. |
sql |
SQLServer data source configuration. |
OracleSourceConfig
Oracle data source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
include |
Oracle objects to include in the stream. |
exclude |
Oracle objects to exclude from the stream. |
max |
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. |
max |
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: |
|
drop |
Drop large object values. |
stream |
Stream large object values. |
Union field cdc_method . Configuration to select the CDC method. cdc_method can be only one of the following: |
|
log |
Use LogMiner. |
binary |
Use Binary Log Parser. |
OracleRdbms
Oracle database structure.
JSON representation |
---|
{
"oracleSchemas": [
{
object ( |
Fields | |
---|---|
oracle |
Oracle schemas/databases in the database server. |
OracleSchema
Oracle schema.
JSON representation |
---|
{
"schema": string,
"oracleTables": [
{
object ( |
Fields | |
---|---|
schema |
Schema name. |
oracle |
Tables in the schema. |
OracleTable
Oracle table.
JSON representation |
---|
{
"table": string,
"oracleColumns": [
{
object ( |
Fields | |
---|---|
table |
Table name. |
oracle |
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. |
data |
The Oracle data type. |
length |
Column length. |
precision |
Column precision. |
scale |
Column scale. |
encoding |
Column encoding. |
primary |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinal |
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.
LogMiner
This type has no fields.
Configuration to use LogMiner CDC method.
BinaryLogParser
Configuration to use Binary Log Parser CDC technique.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field log_file_access . Configuration to specify how the log file should be accessed. log_file_access can be only one of the following: |
|
oracle |
Use Oracle ASM. |
log |
Use Oracle directories. |
OracleAsmLogFileAccess
This type has no fields.
Configuration to use Oracle ASM to access the log files.
LogFileDirectories
Configuration to specify the Oracle directories to access the log files.
JSON representation |
---|
{ "onlineLogDirectory": string, "archivedLogDirectory": string } |
Fields | |
---|---|
online |
Required. Oracle directory for online logs. |
archived |
Required. Oracle directory for archived logs. |
MysqlSourceConfig
MySQL source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
include |
MySQL objects to retrieve from the source. |
exclude |
MySQL objects to exclude from the stream. |
max |
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. |
max |
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. |
Union field cdc_method . The CDC method to use for the stream. cdc_method can be only one of the following: |
|
binary |
Use Binary log position based replication. |
gtid |
Use GTID based replication. |
MysqlRdbms
MySQL database structure
JSON representation |
---|
{
"mysqlDatabases": [
{
object ( |
Fields | |
---|---|
mysql |
Mysql databases on the server |
MysqlDatabase
MySQL database.
JSON representation |
---|
{
"database": string,
"mysqlTables": [
{
object ( |
Fields | |
---|---|
database |
Database name. |
mysql |
Tables in the database. |
MysqlTable
MySQL table.
JSON representation |
---|
{
"table": string,
"mysqlColumns": [
{
object ( |
Fields | |
---|---|
table |
Table name. |
mysql |
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. |
data |
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. |
primary |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinal |
The ordinal position of the column in the table. |
precision |
Column precision. |
scale |
Column scale. |
BinaryLogPosition
This type has no fields.
Use Binary log position based replication.
Gtid
This type has no fields.
Use GTID based replication.
PostgresqlSourceConfig
PostgreSQL data source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
include |
PostgreSQL objects to include in the stream. |
exclude |
PostgreSQL objects to exclude from the stream. |
replication |
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. |
max |
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 | |
---|---|
postgresql |
PostgreSQL schemas in the database server. |
PostgresqlSchema
PostgreSQL schema.
JSON representation |
---|
{
"schema": string,
"postgresqlTables": [
{
object ( |
Fields | |
---|---|
schema |
Schema name. |
postgresql |
Tables in the schema. |
PostgresqlTable
PostgreSQL table.
JSON representation |
---|
{
"table": string,
"postgresqlColumns": [
{
object ( |
Fields | |
---|---|
table |
Table name. |
postgresql |
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. |
data |
The PostgreSQL data type. |
length |
Column length. |
precision |
Column precision. |
scale |
Column scale. |
primary |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinal |
The ordinal position of the column in the table. |
SqlServerSourceConfig
SQLServer data source configuration
JSON representation |
---|
{ "includeObjects": { object ( |
Fields | |
---|---|
include |
SQLServer objects to include in the stream. |
exclude |
SQLServer objects to exclude from the stream. |
max |
Max concurrent CDC tasks. |
max |
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: |
|
transaction |
CDC reader reads from transaction logs. |
change |
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. |
data |
The SQLServer data type. |
length |
Column length. |
precision |
Column precision. |
scale |
Column scale. |
primary |
Whether or not the column represents a primary key. |
nullable |
Whether or not the column can accept a null value. |
ordinal |
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 | |
---|---|
destination |
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: |
|
gcs |
A configuration for how data should be loaded to Cloud Storage. |
bigquery |
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. |
file |
The maximum file size to be saved in the bucket. |
file |
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: |
|
avro |
AVRO file format configuration. |
json |
JSON file format configuration. |
AvroFileFormat
This type has no fields.
AVRO file format configuration.
JsonFileFormat
JSON file format configuration.
JSON representation |
---|
{ "schemaFileFormat": enum ( |
Fields | |
---|---|
schema |
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 | |
---|---|
data |
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: |
|
single |
Single destination dataset. |
source |
Source hierarchy datasets. |
Union field
|
|
merge |
The standard mode |
append |
Append only mode |
SingleTargetDataset
A single target dataset to which all data will be streamed.
JSON representation |
---|
{ "datasetId": string } |
Fields | |
---|---|
dataset |
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 | |
---|---|
dataset |
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. |
dataset |
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. |
kms |
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: |
|
oracle |
Oracle data source objects to avoid backfilling. |
mysql |
MySQL data source objects to avoid backfilling. |
postgresql |
PostgreSQL data source objects to avoid backfilling. |
sql |
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. |