diff --git a/mmv1/products/bigquery/Table.yaml b/mmv1/products/bigquery/Table.yaml index 3d63b5374cef..9830238c0a5e 100644 --- a/mmv1/products/bigquery/Table.yaml +++ b/mmv1/products/bigquery/Table.yaml @@ -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 diff --git a/mmv1/third_party/terraform/website/docs/r/bigquery_table.html.markdown b/mmv1/third_party/terraform/website/docs/r/bigquery_table.html.markdown index 26dc842c7e21..a1aeff62a04d 100644 --- a/mmv1/third_party/terraform/website/docs/r/bigquery_table.html.markdown +++ b/mmv1/third_party/terraform/website/docs/r/bigquery_table.html.markdown @@ -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 @@ -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 +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