Moved required fields and updated docs.

This commit is contained in:
Riley Karson 2017-06-26 14:03:35 -07:00 committed by Riley Karson
parent 048bfe5857
commit 5bceaef26f
2 changed files with 14 additions and 14 deletions

View File

@ -23,6 +23,18 @@ func resourceBigtableInstance() *schema.Resource {
ForceNew: true,
},
"cluster_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"zone": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"display_name": {
Type: schema.TypeString,
Optional: true,
@ -30,12 +42,6 @@ func resourceBigtableInstance() *schema.Resource {
Computed: true,
},
"cluster_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"num_nodes": {
Type: schema.TypeInt,
Optional: true,
@ -52,12 +58,6 @@ func resourceBigtableInstance() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{"SSD", "HDD"}, false),
},
"zone": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"project": {
Type: schema.TypeString,
Optional: true,

View File

@ -35,9 +35,9 @@ The following arguments are supported:
* `zone` - (Required) The zone to create the Bigtable instance in. Zones that support Bigtable instances are noted on the [Cloud Locations page](https://cloud.google.com/about/locations/).
* `num_nodes` - (Required) The number of nodes in your Bigtable instance. Minimum of `3`. Defaults to `3`.
* `num_nodes` - (Optional) The number of nodes in your Bigtable instance. Minimum of `3`. Defaults to `3`.
* `storage_type` - (Required) The storage type to use. One of `"SSD"` or `"HDD"`. Defaults to `SSD`.
* `storage_type` - (Optional) The storage type to use. One of `"SSD"` or `"HDD"`. Defaults to `SSD`.
* `project` - (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.