github.com/crowdsecurity/crowdsec@v1.6.1/pkg/models/flush_decision_response.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "github.com/go-openapi/strfmt" 10 "github.com/go-openapi/swag" 11 ) 12 13 // FlushDecisionResponse FlushDecisionResponse 14 // 15 // swagger:model FlushDecisionResponse 16 type FlushDecisionResponse struct { 17 18 // decision id 19 DecisionID string `json:"decision_id,omitempty"` 20 } 21 22 // Validate validates this flush decision response 23 func (m *FlushDecisionResponse) Validate(formats strfmt.Registry) error { 24 return nil 25 } 26 27 // MarshalBinary interface implementation 28 func (m *FlushDecisionResponse) MarshalBinary() ([]byte, error) { 29 if m == nil { 30 return nil, nil 31 } 32 return swag.WriteJSON(m) 33 } 34 35 // UnmarshalBinary interface implementation 36 func (m *FlushDecisionResponse) UnmarshalBinary(b []byte) error { 37 var res FlushDecisionResponse 38 if err := swag.ReadJSON(b, &res); err != nil { 39 return err 40 } 41 *m = res 42 return nil 43 }