Skip to content

Commit

Permalink
Fixes for compile, docs
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Dec 23, 2020
1 parent a98e7fe commit ff75486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func resourceBigtableGCPolicy() *schema.Resource {
Optional: true,
ForceNew: true,
Description: `GC policy that applies to all cells older than the given age.`,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"days": {
Expand Down Expand Up @@ -89,7 +90,6 @@ func resourceBigtableGCPolicy() *schema.Resource {
Type: schema.TypeInt,
Required: true,
Description: `Number of version before applying the GC policy.`,
ValidateFunc: validation.IntAtLeast(1),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "google_bigtable_gc_policy" "policy" {
column_family = "name"
max_age {
duration = "168h" # 7 days
duration = "168h"
}
}
```
Expand Down Expand Up @@ -89,9 +89,9 @@ The following arguments are supported:

`max_age` supports the following arguments:

* `days` - (Deprecated) Number of days before applying GC policy.
* `days` - (Optional, Deprecated in favor of duration) Number of days before applying GC policy.

* `duration` - (Required) Duration before applying GC policy (ex. "8h"). This is required when `days` isn't set
* `duration` - (Optional) Duration before applying GC policy (ex. "8h"). This is required when `days` isn't set

-----

Expand Down

0 comments on commit ff75486

Please sign in to comment.