Skip to content

Commit

Permalink
add state upgrader to set send_age_if_zero virtual field default to f…
Browse files Browse the repository at this point in the history
…alse (#11471) (#7993)

[upstream:dde0ea57bc547947ab7debe282fd06344cf86c72]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 16, 2024
1 parent f14e2c8 commit 651e313
Show file tree
Hide file tree
Showing 3 changed files with 1,072 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/11471.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
12 changes: 11 additions & 1 deletion google-beta/services/storage/resource_storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,23 @@ func ResourceStorageBucket() *schema.Resource {
Read: schema.DefaultTimeout(4 * time.Minute),
},

SchemaVersion: 1,
SchemaVersion: 3,
StateUpgraders: []schema.StateUpgrader{
{
Type: resourceStorageBucketV0().CoreConfigSchema().ImpliedType(),
Upgrade: ResourceStorageBucketStateUpgradeV0,
Version: 0,
},
{
Type: resourceStorageBucketV1().CoreConfigSchema().ImpliedType(),
Upgrade: ResourceStorageBucketStateUpgradeV1,
Version: 1,
},
{
Type: resourceStorageBucketV2().CoreConfigSchema().ImpliedType(),
Upgrade: ResourceStorageBucketStateUpgradeV2,
Version: 2,
},
},

Schema: map[string]*schema.Schema{
Expand Down
Loading

0 comments on commit 651e313

Please sign in to comment.