File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -1641,6 +1641,14 @@ func resourceGCSBucketLifecycleRuleConditionHash(v interface{}) int {
1641
1641
buf .WriteString (fmt .Sprintf ("%s-" , v .(string )))
1642
1642
}
1643
1643
1644
+ if v , ok := m ["custom_time_before" ]; ok {
1645
+ buf .WriteString (fmt .Sprintf ("%s-" , v .(string )))
1646
+ }
1647
+
1648
+ if v , ok := m ["noncurrent_time_before" ]; ok {
1649
+ buf .WriteString (fmt .Sprintf ("%s-" , v .(string )))
1650
+ }
1651
+
1644
1652
withStateV , withStateOk := m ["with_state" ]
1645
1653
if withStateOk {
1646
1654
switch withStateV .(string ) {
Original file line number Diff line number Diff line change @@ -1956,6 +1956,14 @@ resource "google_storage_bucket" "bucket" {
1956
1956
custom_time_before = "2019-01-01"
1957
1957
}
1958
1958
}
1959
+ lifecycle_rule {
1960
+ action {
1961
+ type = "Delete"
1962
+ }
1963
+ condition {
1964
+ noncurrent_time_before = "2019-01-01"
1965
+ }
1966
+ }
1959
1967
lifecycle_rule {
1960
1968
action {
1961
1969
type = "SetStorageClass"
@@ -2044,7 +2052,15 @@ resource "google_storage_bucket" "bucket" {
2044
2052
type = "Delete"
2045
2053
}
2046
2054
condition {
2047
- custom_time_before = "2019-01-01"
2055
+ custom_time_before = "2019-01-12"
2056
+ }
2057
+ }
2058
+ lifecycle_rule {
2059
+ action {
2060
+ type = "Delete"
2061
+ }
2062
+ condition {
2063
+ noncurrent_time_before = "2019-01-12"
2048
2064
}
2049
2065
}
2050
2066
lifecycle_rule {
You can’t perform that action at this time.
0 commit comments