135 lines
3.4 KiB
Go
135 lines
3.4 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package models
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
strfmt "github.com/go-openapi/strfmt"
|
|
|
|
"github.com/go-openapi/errors"
|
|
"github.com/go-openapi/swag"
|
|
"github.com/go-openapi/validate"
|
|
)
|
|
|
|
// GetDogmaAttributesAttributeIDOKBody get_dogma_attributes_attribute_id_ok
|
|
//
|
|
// 200 ok object
|
|
// swagger:model getDogmaAttributesAttributeIdOKBody
|
|
|
|
type GetDogmaAttributesAttributeIDOKBody struct {
|
|
|
|
// get_dogma_attributes_attribute_id_attribute_id
|
|
//
|
|
// attribute_id integer
|
|
// Required: true
|
|
AttributeID *int32 `json:"attribute_id"`
|
|
|
|
// get_dogma_attributes_attribute_id_default_value
|
|
//
|
|
// default_value number
|
|
DefaultValue float32 `json:"default_value,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_description
|
|
//
|
|
// description string
|
|
Description string `json:"description,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_display_name
|
|
//
|
|
// display_name string
|
|
DisplayName string `json:"display_name,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_high_is_good
|
|
//
|
|
// high_is_good boolean
|
|
HighIsGood bool `json:"high_is_good,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_icon_id
|
|
//
|
|
// icon_id integer
|
|
IconID int32 `json:"icon_id,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_name
|
|
//
|
|
// name string
|
|
Name string `json:"name,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_published
|
|
//
|
|
// published boolean
|
|
Published bool `json:"published,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_stackable
|
|
//
|
|
// stackable boolean
|
|
Stackable bool `json:"stackable,omitempty"`
|
|
|
|
// get_dogma_attributes_attribute_id_unit_id
|
|
//
|
|
// unit_id integer
|
|
UnitID int32 `json:"unit_id,omitempty"`
|
|
}
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody attribute_id false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody default_value false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody description false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody display_name false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody high_is_good false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody icon_id false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody name false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody published false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody stackable false */
|
|
|
|
/* polymorph getDogmaAttributesAttributeIdOKBody unit_id false */
|
|
|
|
// Validate validates this get dogma attributes attribute Id o k body
|
|
func (m *GetDogmaAttributesAttributeIDOKBody) Validate(formats strfmt.Registry) error {
|
|
var res []error
|
|
|
|
if err := m.validateAttributeID(formats); err != nil {
|
|
// prop
|
|
res = append(res, err)
|
|
}
|
|
|
|
if len(res) > 0 {
|
|
return errors.CompositeValidationError(res...)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetDogmaAttributesAttributeIDOKBody) validateAttributeID(formats strfmt.Registry) error {
|
|
|
|
if err := validate.Required("attribute_id", "body", m.AttributeID); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *GetDogmaAttributesAttributeIDOKBody) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *GetDogmaAttributesAttributeIDOKBody) UnmarshalBinary(b []byte) error {
|
|
var res GetDogmaAttributesAttributeIDOKBody
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|