987f119c4b
* v3 model generation * v3 model generation * comms * fixes after master merge * missing reader close * use constants defined for types --------- Co-authored-by: bui <thibault@crowdsec.net>
59 lines
1.5 KiB
Go
59 lines
1.5 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package modelscapi
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// MetricsRequestBouncersItem MetricsBouncerInfo
|
|
//
|
|
// swagger:model MetricsRequestBouncersItem
|
|
type MetricsRequestBouncersItem struct {
|
|
|
|
// bouncer name
|
|
CustomName string `json:"custom_name,omitempty"`
|
|
|
|
// last bouncer pull date
|
|
LastPull string `json:"last_pull,omitempty"`
|
|
|
|
// bouncer type (firewall, php...)
|
|
Name string `json:"name,omitempty"`
|
|
|
|
// bouncer version
|
|
Version string `json:"version,omitempty"`
|
|
}
|
|
|
|
// Validate validates this metrics request bouncers item
|
|
func (m *MetricsRequestBouncersItem) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this metrics request bouncers item based on context it is used
|
|
func (m *MetricsRequestBouncersItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *MetricsRequestBouncersItem) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *MetricsRequestBouncersItem) UnmarshalBinary(b []byte) error {
|
|
var res MetricsRequestBouncersItem
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|