@@ -961,6 +961,7 @@ func expandSecurityPolicyRuleRateLimitOptions(configured []interface{}) *compute
961
961
EnforceOnKeyName : data ["enforce_on_key_name" ].(string ),
962
962
BanDurationSec : int64 (data ["ban_duration_sec" ].(int )),
963
963
ExceedRedirectOptions : expandSecurityPolicyRuleRedirectOptions (data ["exceed_redirect_options" ].([]interface {})),
964
+ ForceSendFields : []string {"EnforceOnKey" , "EnforceOnKeyName" },
964
965
}
965
966
}
966
967
@@ -982,13 +983,12 @@ func flattenSecurityPolicyRuleRateLimitOptions(conf *compute.SecurityPolicyRuleR
982
983
}
983
984
984
985
data := map [string ]interface {}{
985
- "ban_threshold" : flattenThreshold (conf .BanThreshold ),
986
- "rate_limit_threshold" : flattenThreshold (conf .RateLimitThreshold ),
987
- "exceed_action" : conf .ExceedAction ,
988
- "conform_action" : conf .ConformAction ,
989
- "enforce_on_key" : conf .EnforceOnKey ,
990
- "enforce_on_key_name" : conf .EnforceOnKeyName ,
991
-
986
+ "ban_threshold" : flattenThreshold (conf .BanThreshold ),
987
+ "rate_limit_threshold" : flattenThreshold (conf .RateLimitThreshold ),
988
+ "exceed_action" : conf .ExceedAction ,
989
+ "conform_action" : conf .ConformAction ,
990
+ "enforce_on_key" : conf .EnforceOnKey ,
991
+ "enforce_on_key_name" : conf .EnforceOnKeyName ,
992
992
"ban_duration_sec" : conf .BanDurationSec ,
993
993
"exceed_redirect_options" : flattenSecurityPolicyRedirectOptions (conf .ExceedRedirectOptions ),
994
994
}
0 commit comments