From 5ab8ebf0bc99a166b9bf4079a928c399f5f92d43 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 29 Sep 2023 15:54:50 +0000 Subject: [PATCH] Add: Link for `max_staleness` syntax. (#9108) * Add: Link for `max_staleness` syntax. * update: max_staleness markdown site * Update: Point to correct link. * fix: undo autoformat Signed-off-by: Modular Magician --- .changelog/9108.txt | 3 +++ google-beta/services/bigquery/resource_bigquery_table.go | 2 +- website/docs/r/bigquery_table.html.markdown | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changelog/9108.txt diff --git a/.changelog/9108.txt b/.changelog/9108.txt new file mode 100644 index 0000000000..6f6be2db3d --- /dev/null +++ b/.changelog/9108.txt @@ -0,0 +1,3 @@ +```release-note:none +bigquery: link to `max_staleness` syntax +``` diff --git a/google-beta/services/bigquery/resource_bigquery_table.go b/google-beta/services/bigquery/resource_bigquery_table.go index 9dbf7e5a8a..8cf0d32524 100644 --- a/google-beta/services/bigquery/resource_bigquery_table.go +++ b/google-beta/services/bigquery/resource_bigquery_table.go @@ -791,7 +791,7 @@ func ResourceBigQueryTable() *schema.Resource { "max_staleness": { Type: schema.TypeString, Optional: true, - Description: `The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type.`, + Description: `The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of [SQL IntervalValue type](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#interval_type).`, }, // Labels: [Experimental] The labels associated with this table. You can diff --git a/website/docs/r/bigquery_table.html.markdown b/website/docs/r/bigquery_table.html.markdown index 929a8e8f2c..f5906f5280 100644 --- a/website/docs/r/bigquery_table.html.markdown +++ b/website/docs/r/bigquery_table.html.markdown @@ -106,7 +106,10 @@ The following arguments are supported: * `friendly_name` - (Optional) A descriptive name for the table. -* `max_staleness`: (Optional) The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type. +* `max_staleness`: (Optional) The maximum staleness of data that could be + returned when the table (or stale MV) is queried. Staleness encoded as a + string encoding of [SQL IntervalValue + type](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#interval_type). * `encryption_configuration` - (Optional) Specifies how the table should be encrypted. If left blank, the table will be encrypted with a Google-managed key; that process