Skip to content

Commit

Permalink
Add definition of table_replication_info to public documentation and …
Browse files Browse the repository at this point in the history
…bigquery/Table.yaml (GoogleCloudPlatform#10711)
  • Loading branch information
wj-chen authored and pcostell committed Jul 16, 2024
1 parent 18f36e6 commit 9a832c1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
24 changes: 24 additions & 0 deletions mmv1/products/bigquery/Table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,30 @@ properties:
- :INTEGER
- :FLOAT
- :BOOLEAN
- !ruby/object:Api::Type::NestedObject
name: 'tableReplicationInfo'
description: |
Replication info of a table created using "AS REPLICA" DDL like:
`CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv`.
properties:
- !ruby/object:Api::Type::String
name: 'sourceProjectId'
description: The ID of the source project.
required: true
- !ruby/object:Api::Type::String
name: 'sourceDatasetId'
description: The ID of the source dataset.
required: true
- !ruby/object:Api::Type::String
name: 'sourceTableId'
description: The ID of the source materialized view.
required: true
- !ruby/object:Api::Type::Integer
name: 'replicationIntervalMs'
description: |
The interval at which the source materialized view is polled for updates. The default is
300000.
default_value: 300000
- !ruby/object:Api::Type::KeyValuePairs
name: 'resourceTags'
min_version: beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ in Terraform state, a `terraform destroy` or `terraform apply` that would delete
* `table_constraints` - (Optional) Defines the primary key and foreign keys.
Structure is [documented below](#nested_table_constraints).

* `table_replication_info` - (Optional) Replication info of a table created
using "AS REPLICA" DDL like:
`CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv`.
Structure is [documented below](#nested_table_replication_info).

* `resource_tags` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
This field is in beta. The tags attached to this table. Tag keys are
globally unique. Tag key is expected to be in the namespaced format, for
Expand Down Expand Up @@ -471,6 +476,17 @@ in Terraform state, a `terraform destroy` or `terraform apply` that would delete
* `referenced_column`: (Required) The column in the primary key that are
referenced by the referencingColumn

<a name="nested_table_replication_info"></a>The `table_replication_info` block supports:

* `source_project_id` (Required) - The ID of the source project.

* `source_dataset_id` (Required) - The ID of the source dataset.

* `source_table_id` (Required) - The ID of the source materialized view.

* `replication_interval_ms` (Optional) - The interval at which the source
materialized view is polled for updates. The default is 300000.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are
Expand Down

0 comments on commit 9a832c1

Please sign in to comment.