Skip to content

Commit

Permalink
add desc to schema for google_bigtable_table (#3560) (#2126)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: Edward Sun <[email protected]>
  • Loading branch information
modular-magician and Edward Sun authored May 30, 2020
1 parent c9e8f13 commit fca0c3d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .changelog/3560.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
36 changes: 21 additions & 15 deletions google-beta/resource_bigtable_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,22 @@ func resourceBigtableTable() *schema.Resource {
// ----------------------------------------------------------------------
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: `The name of the table.`,
},

"column_family": {
Type: schema.TypeSet,
Optional: true,
Type: schema.TypeSet,
Optional: true,
Description: `A group of columns within a table which share a common configuration. This can be specified multiple times.`,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"family": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
Description: `The name of the column family.`,
},
},
},
Expand All @@ -48,20 +51,23 @@ func resourceBigtableTable() *schema.Resource {
Required: true,
ForceNew: true,
DiffSuppressFunc: compareResourceNames,
Description: `The name of the Bigtable instance.`,
},

"split_keys": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: `A list of predefined keys to split the table on. !> Warning: Modifying the split_keys of an existing table will cause Terraform to delete/recreate the entire google_bigtable_table resource.`,
},

"project": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: `The ID of the project in which the resource belongs. If it is not provided, the provider project is used.`,
},
},
}
Expand Down

0 comments on commit fca0c3d

Please sign in to comment.