From 5bceaef26f0fd5a1d1722793b13dc981da95a883 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Mon, 26 Jun 2017 14:03:35 -0700 Subject: [PATCH] Moved required fields and updated docs. --- google/resource_bigtable_instance.go | 24 +++++++++---------- .../docs/r/bigtable_instance.html.markdown | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/google/resource_bigtable_instance.go b/google/resource_bigtable_instance.go index 309dc5a8..2ba226e4 100644 --- a/google/resource_bigtable_instance.go +++ b/google/resource_bigtable_instance.go @@ -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, diff --git a/website/docs/r/bigtable_instance.html.markdown b/website/docs/r/bigtable_instance.html.markdown index 00ee12d1..e86160ab 100644 --- a/website/docs/r/bigtable_instance.html.markdown +++ b/website/docs/r/bigtable_instance.html.markdown @@ -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.