1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
9 strfmt "github.com/go-openapi/strfmt"
11 "github.com/go-openapi/errors"
12 "github.com/go-openapi/swag"
13 "github.com/go-openapi/validate"
16 // ActionParameters action parameters
17 // swagger:model ActionParameters
18 type ActionParameters struct {
20 // action parameter ID
22 ActionParameterID *int64 `json:"ActionParameterID"`
24 // action parameter value
26 ActionParameterValue *bool `json:"ActionParameterValue"`
29 // Validate validates this action parameters
30 func (m *ActionParameters) Validate(formats strfmt.Registry) error {
33 if err := m.validateActionParameterID(formats); err != nil {
34 res = append(res, err)
37 if err := m.validateActionParameterValue(formats); err != nil {
38 res = append(res, err)
42 return errors.CompositeValidationError(res...)
47 func (m *ActionParameters) validateActionParameterID(formats strfmt.Registry) error {
49 if err := validate.Required("ActionParameterID", "body", m.ActionParameterID); err != nil {
56 func (m *ActionParameters) validateActionParameterValue(formats strfmt.Registry) error {
58 if err := validate.Required("ActionParameterValue", "body", m.ActionParameterValue); err != nil {
65 // MarshalBinary interface implementation
66 func (m *ActionParameters) MarshalBinary() ([]byte, error) {
70 return swag.WriteJSON(m)
73 // UnmarshalBinary interface implementation
74 func (m *ActionParameters) UnmarshalBinary(b []byte) error {
75 var res ActionParameters
76 if err := swag.ReadJSON(b, &res); err != nil {