Allow bigquery regional location (#1496)

* Allow bigquery regional location

* remove stale comment about location
This commit is contained in:
emily 2018-05-15 14:36:12 -07:00 committed by GitHub
parent 3cc868b4a9
commit d360236a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -65,14 +65,13 @@ func resourceBigQueryDataset() *schema.Resource {
},
// Location: [Experimental] The geographic location where the dataset
// should reside. Possible values include EU and US. The default value
// is US.
// should reside.
"location": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: "US",
ValidateFunc: validation.StringInSlice([]string{"US", "EU"}, false),
ValidateFunc: validation.StringInSlice([]string{"US", "EU", "asia-northeast1"}, false),
},
// DefaultTableExpirationMs: [Optional] The default lifetime of all

View File

@ -44,9 +44,17 @@ The following arguments are supported:
* `description` - (Optional) A user-friendly description of the dataset.
* `location` - (Optional) The geographic location where the dataset should reside.
See [official docs](https://cloud.google.com/bigquery/docs/dataset-locations).
Possible values include `EU` and `US`. The default value is `US`.
There are two types of locations, regional or multi-regional.
A regional location is a specific geographic place, such as Tokyo, and a
multi-regional location is a large geographic area, such as the United States,
that contains at least two geographic places
Possible regional values include: `asia-northeast1`
Possible multi-regional values:`EU` and `US`.
The default value is multi-regional location `US`.
Changing this forces a new resource to be created.
* `default_table_expiration_ms` - (Optional) The default lifetime of all