@@ -778,13 +778,14 @@ func expandSecurityPolicyRuleRateLimitOptions(configured []interface{}) *compute
778778
779779 data := configured [0 ].(map [string ]interface {})
780780 return & compute.SecurityPolicyRuleRateLimitOptions {
781- BanThreshold : expandThreshold (data ["ban_threshold" ].([]interface {})),
782- RateLimitThreshold : expandThreshold (data ["rate_limit_threshold" ].([]interface {})),
783- ExceedAction : data ["exceed_action" ].(string ),
784- ConformAction : data ["conform_action" ].(string ),
785- EnforceOnKey : data ["enforce_on_key" ].(string ),
786- EnforceOnKeyName : data ["enforce_on_key_name" ].(string ),
787- BanDurationSec : int64 (data ["ban_duration_sec" ].(int )),
781+ BanThreshold : expandThreshold (data ["ban_threshold" ].([]interface {})),
782+ RateLimitThreshold : expandThreshold (data ["rate_limit_threshold" ].([]interface {})),
783+ ExceedAction : data ["exceed_action" ].(string ),
784+ ConformAction : data ["conform_action" ].(string ),
785+ EnforceOnKey : data ["enforce_on_key" ].(string ),
786+ EnforceOnKeyName : data ["enforce_on_key_name" ].(string ),
787+ BanDurationSec : int64 (data ["ban_duration_sec" ].(int )),
788+ ExceedRedirectOptions : expandSecurityPolicyRuleRedirectOptions (data ["exceed_redirect_options" ].([]interface {})),
788789 }
789790}
790791
@@ -806,13 +807,14 @@ func flattenSecurityPolicyRuleRateLimitOptions(conf *compute.SecurityPolicyRuleR
806807 }
807808
808809 data := map [string ]interface {}{
809- "ban_threshold" : flattenThreshold (conf .BanThreshold ),
810- "rate_limit_threshold" : flattenThreshold (conf .RateLimitThreshold ),
811- "exceed_action" : conf .ExceedAction ,
812- "conform_action" : conf .ConformAction ,
813- "enforce_on_key" : conf .EnforceOnKey ,
814- "enforce_on_key_name" : conf .EnforceOnKeyName ,
815- "ban_duration_sec" : conf .BanDurationSec ,
810+ "ban_threshold" : flattenThreshold (conf .BanThreshold ),
811+ "rate_limit_threshold" : flattenThreshold (conf .RateLimitThreshold ),
812+ "exceed_action" : conf .ExceedAction ,
813+ "conform_action" : conf .ConformAction ,
814+ "enforce_on_key" : conf .EnforceOnKey ,
815+ "enforce_on_key_name" : conf .EnforceOnKeyName ,
816+ "ban_duration_sec" : conf .BanDurationSec ,
817+ "exceed_redirect_options" : flattenSecurityPolicyRedirectOptions (conf .ExceedRedirectOptions ),
816818 }
817819
818820 return []map [string ]interface {}{data }
0 commit comments