Skip to content

Commit

Permalink
feat(WAF): waf policy support new field (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-hang authored Oct 18, 2024
1 parent f223049 commit 010eac1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions openstack/waf_hw/v1/policies/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ type UpdateOptsBuilder interface {

// UpdateOpts contains all the values needed to update a policy.
type UpdateOpts struct {
FullDetection *bool `json:"full_detection,omitempty"`
RobotAction *Action `json:"robot_action,omitempty"`
Action *Action `json:"action,omitempty"`
Options *PolicyOption `json:"options,omitempty"`
Name string `json:"name,omitempty"`
Level int `json:"level,omitempty"`
EnterpriseProjectId string `q:"enterprise_project_id" json:"-"`
FullDetection *bool `json:"full_detection,omitempty"`
RobotAction *Action `json:"robot_action,omitempty"`
Action *Action `json:"action,omitempty"`
Options *PolicyOption `json:"options,omitempty"`
Name string `json:"name,omitempty"`
Level int `json:"level,omitempty"`
Extend map[string]string `json:"extend,omitempty"`
EnterpriseProjectId string `q:"enterprise_project_id" json:"-"`
}

// ToPolicyUpdateMap builds a update request body from UpdateOpts.
Expand Down

0 comments on commit 010eac1

Please sign in to comment.