func (o *PutCredentialsIDNotFoundBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this put credentials ID not found body
package credential
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
	strfmt "github.com/go-openapi/strfmt"
)
type PutCredentialsIDReader struct {
	formats strfmt.Registry
}
func (o *PutCredentialsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 201:
		result := NewPutCredentialsIDCreated()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 202:
		result := NewPutCredentialsIDAccepted()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPutCredentialsIDBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewPutCredentialsIDUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewPutCredentialsIDNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 409:
		result := NewPutCredentialsIDConflict()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPutCredentialsIDInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("unknown error", response, response.Code())
	}
}
func NewPutCredentialsIDCreated() *PutCredentialsIDCreated {
	return &PutCredentialsIDCreated{}
}
type PutCredentialsIDCreated struct {
	Payload PutCredentialsIDCreatedBody
}
func (o *PutCredentialsIDCreated) Error() string {
	return fmt.Sprintf("[PUT /credentials/{id}][%d] putCredentialsIdCreated  %+v", 201, o.Payload)
}
func (o *PutCredentialsIDCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCredentialsIDAccepted() *PutCredentialsIDAccepted {
	return &PutCredentialsIDAccepted{}
}
type PutCredentialsIDAccepted struct {
	Payload PutCredentialsIDAcceptedBody
}
func (o *PutCredentialsIDAccepted) Error() string {
	return fmt.Sprintf("[PUT /credentials/{id}][%d] putCredentialsIdAccepted  %+v", 202, o.Payload)
}
func (o *PutCredentialsIDAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCredentialsIDBadRequest() *PutCredentialsIDBadRequest {
	return &PutCredentialsIDBadRequest{}
}
type PutCredentialsIDBadRequest struct {
	Payload PutCredentialsIDBadRequestBody
}
func (o *PutCredentialsIDBadRequest) Error() string {
	return fmt.Sprintf("[PUT /credentials/{id}][%d] putCredentialsIdBadRequest  %+v", 400, o.Payload)
}
func (o *PutCredentialsIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCredentialsIDUnauthorized() *PutCredentialsIDUnauthorized {
	return &PutCredentialsIDUnauthorized{}
}
type PutCredentialsIDUnauthorized struct {
	Payload PutCredentialsIDUnauthorizedBody
}
func (o *PutCredentialsIDUnauthorized) Error() string {
	return fmt.Sprintf("[PUT /credentials/{id}][%d] putCredentialsIdUnauthorized  %+v", 401, o.Payload)
}
func (o *PutCredentialsIDUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCredentialsIDNotFound() *PutCredentialsIDNotFound {
	return &PutCredentialsIDNotFound{}
}
type PutCredentialsIDNotFound struct {
	Payload PutCredentialsIDNotFoundBody
}
func (o *PutCredentialsIDNotFound) Error() string {
	return fmt.Sprintf("[PUT /credentials/{id}][%d] putCredentialsIdNotFound  %+v", 404, o.Payload)
}
func (o *PutCredentialsIDNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCredentialsIDConflict() *PutCredentialsIDConflict {
	return &PutCredentialsIDConflict{}
}
type PutCredentialsIDConflict struct {
	Payload PutCredentialsIDConflictBody
}
func (o *PutCredentialsIDConflict) Error() string {
	return fmt.Sprintf("[PUT /credentials/{id}][%d] putCredentialsIdConflict  %+v", 409, o.Payload)
}
func (o *PutCredentialsIDConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCredentialsIDInternalServerError() *PutCredentialsIDInternalServerError {
	return &PutCredentialsIDInternalServerError{}
}
type PutCredentialsIDInternalServerError struct {
	Payload PutCredentialsIDInternalServerErrorBody
}
func (o *PutCredentialsIDInternalServerError) Error() string {
	return fmt.Sprintf("[PUT /credentials/{id}][%d] putCredentialsIdInternalServerError  %+v", 500, o.Payload)
}
func (o *PutCredentialsIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
type PutCredentialsIDAcceptedBody struct {
	Message *string `json:"message"`
}
func (o *PutCredentialsIDAcceptedBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PutCredentialsIDAcceptedBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("putCredentialsIdAccepted"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	if err := validate.MinLength("putCredentialsIdAccepted"+"."+"message", "body", string(*o.Message), 3); err != nil {
		return err
	}
	if err := validate.MaxLength("putCredentialsIdAccepted"+"."+"message", "body", string(*o.Message), 256); err != nil {
		return err
	}
	return nil
}
type PutCredentialsIDBadRequestBody struct {
	Message *string `json:"message"`
}
func (o *PutCredentialsIDBadRequestBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PutCredentialsIDBadRequestBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("putCredentialsIdBadRequest"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	if err := validate.MinLength("putCredentialsIdBadRequest"+"."+"message", "body", string(*o.Message), 3); err != nil {
		return err
	}
	if err := validate.MaxLength("putCredentialsIdBadRequest"+"."+"message", "body", string(*o.Message), 256); err != nil {
		return err
	}
	return nil
}
type PutCredentialsIDConflictBody struct {
	Message *string `json:"message"`
}
func (o *PutCredentialsIDConflictBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PutCredentialsIDConflictBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("putCredentialsIdConflict"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	if err := validate.MinLength("putCredentialsIdConflict"+"."+"message", "body", string(*o.Message), 3); err != nil {
		return err
	}
	if err := validate.MaxLength("putCredentialsIdConflict"+"."+"message", "body", string(*o.Message), 256); err != nil {
		return err
	}
	return nil
}
type PutCredentialsIDCreatedBody struct {
	Credentials map[string]string `json:"credentials"`
	Message *string `json:"message"`
}
func (o *PutCredentialsIDCreatedBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateCredentials(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PutCredentialsIDCreatedBody) validateCredentials(formats strfmt.Registry) error {
	if swag.IsZero(o.Credentials) {  
		return nil
	}
	return nil
}
func (o *PutCredentialsIDCreatedBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("putCredentialsIdCreated"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	if err := validate.MinLength("putCredentialsIdCreated"+"."+"message", "body", string(*o.Message), 3); err != nil {
		return err
	}
	if err := validate.MaxLength("putCredentialsIdCreated"+"."+"message", "body", string(*o.Message), 256); err != nil {
		return err
	}
	return nil
}
type PutCredentialsIDInternalServerErrorBody struct {
	Message *string `json:"message"`
}
func (o *PutCredentialsIDInternalServerErrorBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PutCredentialsIDInternalServerErrorBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("putCredentialsIdInternalServerError"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	if err := validate.MinLength("putCredentialsIdInternalServerError"+"."+"message", "body", string(*o.Message), 3); err != nil {
		return err
	}
	if err := validate.MaxLength("putCredentialsIdInternalServerError"+"."+"message", "body", string(*o.Message), 256); err != nil {
		return err
	}
	return nil
}
type PutCredentialsIDNotFoundBody struct {
	Message *string `json:"message"`
}