ruleset: fix RulesetRuleActionParameters struct
Updates the `RulesetRuleActionParameters.Rules` to be the correct type.
`[]RulesetRuleActionParametersRules` was incorrectly copy and pasted and
instead should be a `map[string][]string`.
Includes an addition for `RulesetRuleActionParameters.Rulesets` to
accomodate the addition of more skip rules support in
cloudflare/terraform-provider-cloudflare#1177
@@ -161,12 +161,14 @@ type Ruleset struct {
type RulesetRuleActionParameters struct {
ID string `json:"id,omitempty"`
Ruleset string `json:"ruleset,omitempty"`
+ Rulesets []string `json:"rulesets,omitempty"`
+ Rules map[string][]string `json:"rules,omitempty"`
Increment int `json:"increment,omitempty"`
URI *RulesetRuleActionParametersURI `json:"uri,omitempty"`
Headers map[string]RulesetRuleActionParametersHTTPHeader `json:"headers,omitempty"`
Products []string `json:"products,omitempty"`
Overrides *RulesetRuleActionParametersOverrides `json:"overrides,omitempty"`
- Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"`
+
MatchedData *RulesetRuleActionParametersMatchedData `json:"matched_data,omitempty"`
}
