github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/aad/v1/rules/results.go (about) 1 package rules 2 3 // BatchResp is the structure that represents the API request response for the create and delete methods. 4 type BatchResp struct { 5 SuccessNum int `json:"successNum"` 6 } 7 8 // ListResp is the structure that represents the API request response for list method. 9 type ListResp struct { 10 Count int `json:"count"` 11 Rules []Rule `json:"rules"` 12 } 13 14 // Rule is the structure that represents the details of the forward rule. 15 type Rule struct { 16 ID string `json:"rule_id"` 17 ForwardProtocol string `json:"forward_protocol"` 18 ForwardPort int `json:"forward_port"` 19 SourcePort int `json:"source_port"` 20 SourceIp string `json:"source_ip"` 21 LbMethod string `json:"lb_method"` 22 Status int `json:"status"` 23 }