// 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"
)

// Log log
// swagger:model Log

type Log struct {

	// content
	Content strfmt.URI `json:"content,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// external info
	ExternalInfo strfmt.URI `json:"externalInfo,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// last modified
	LastModified strfmt.DateTime `json:"lastModified,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`
}

/* polymorph Log content false */

/* polymorph Log description false */

/* polymorph Log displayName false */

/* polymorph Log externalInfo false */

/* polymorph Log id false */

/* polymorph Log lastModified false */

/* polymorph Log size false */

// Validate validates this log
func (m *Log) Validate(formats strfmt.Registry) error {
	var res []error

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

// MarshalBinary interface implementation
func (m *Log) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *Log) UnmarshalBinary(b []byte) error {
	var res Log
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
