Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make max_age.0.days and max_age.0.duration ForceNew for bigtable_gc_policy #4533

Merged
merged 1 commit into from
Feb 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ func resourceBigtableGCPolicy() *schema.Resource {
"days": {
Type: schema.TypeInt,
Optional: true,
ForceNew: true,
Deprecated: "Deprecated in favor of duration",
Description: `Number of days before applying GC policy.`,
ExactlyOneOf: []string{"max_age.0.days", "max_age.0.duration"},
},
"duration": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `Duration before applying GC policy`,
ValidateFunc: validateDuration(),
ExactlyOneOf: []string{"max_age.0.days", "max_age.0.duration"},
Expand All @@ -89,6 +91,7 @@ func resourceBigtableGCPolicy() *schema.Resource {
"number": {
Type: schema.TypeInt,
Required: true,
ForceNew: true,
Description: `Number of version before applying the GC policy.`,
},
},
Expand Down