diff --git a/README.md b/README.md index 92a4a787..a88ce061 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ This module provisions a dataset and a list of tables with associated JSON schem | routines | A list of objects which include routine\_id, routine\_type, routine\_language, definition\_body, return\_type, routine\_description and arguments. |
list(object({
routine_id = string,
routine_type = string,
language = string,
definition_body = string,
return_type = string,
description = string,
arguments = optional(list(object({
name = string,
data_type = string,
argument_kind = string,
mode = string,
})), []),
}))
| `[]` | no | | storage\_billing\_model | Specifies the storage billing model for the dataset. Set this flag value to LOGICAL to use logical bytes for storage billing, or to PHYSICAL to use physical bytes instead. LOGICAL is the default if this flag isn't specified. | `string` | `null` | no | | tables | A list of objects which include table\_id, table\_name, schema, clustering, time\_partitioning, range\_partitioning, expiration\_time and labels. |
list(object({
table_id = string,
description = optional(string),
table_name = optional(string),
schema = string,
clustering = optional(list(string), []),
require_partition_filter = optional(bool),
time_partitioning = optional(object({
expiration_ms = string,
field = string,
type = string,
}), null),
range_partitioning = optional(object({
field = string,
range = object({
start = string,
end = string,
interval = string,
}),
}), null),
expiration_time = optional(string, null),
deletion_protection = optional(bool),
labels = optional(map(string), {}),
}))
| `[]` | no | -| views | A list of objects which include view\_id and view query |
list(object({
view_id = string,
description = optional(string),
query = string,
use_legacy_sql = bool,
labels = optional(map(string), {}),
}))
| `[]` | no | +| views | A list of objects which include view\_id and view query |
list(object({
view_id = string,
description = optional(string),
query = string,
use_legacy_sql = optional(bool, true),
labels = optional(map(string), {}),
}))
| `[]` | no | ## Outputs diff --git a/metadata.yaml b/metadata.yaml index 4b1a246e..5fd3202a 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -141,7 +141,7 @@ spec: view_id = string, description = optional(string), query = string, - use_legacy_sql = bool, + use_legacy_sql = optional(bool, true), labels = optional(map(string), {}), })) defaultValue: [] @@ -397,4 +397,4 @@ spec: - iam.googleapis.com providerVersions: - source: hashicorp/google - version: ">= 5.39, < 7" + version: ">= 5.39, < 8" diff --git a/variables.tf b/variables.tf index 28ca7a8b..19dbd2f2 100644 --- a/variables.tf +++ b/variables.tf @@ -153,7 +153,7 @@ variable "views" { view_id = string, description = optional(string), query = string, - use_legacy_sql = bool, + use_legacy_sql = optional(bool, true), labels = optional(map(string), {}), })) }