func (o *PutCredentialRotationsRotationIDBadRequestBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateType(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this put credential rotations rotation ID bad request body
package credential_rotation
import (
	"encoding/json"
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/validate"
	strfmt "github.com/go-openapi/strfmt"
)
type PutCredentialRotationsRotationIDReader struct {
	formats strfmt.Registry
}
func (o *PutCredentialRotationsRotationIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 202:
		result := NewPutCredentialRotationsRotationIDAccepted()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPutCredentialRotationsRotationIDBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewPutCredentialRotationsRotationIDUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewPutCredentialRotationsRotationIDNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 405:
		result := NewPutCredentialRotationsRotationIDMethodNotAllowed()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPutCredentialRotationsRotationIDInternalServerError()
		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 NewPutCredentialRotationsRotationIDAccepted() *PutCredentialRotationsRotationIDAccepted {
	return &PutCredentialRotationsRotationIDAccepted{}
}
type PutCredentialRotationsRotationIDAccepted struct {
}
func (o *PutCredentialRotationsRotationIDAccepted) Error() string {
	return fmt.Sprintf("[PUT /credential-rotations/{rotation_id}][%d] putCredentialRotationsRotationIdAccepted ", 202)
}
func (o *PutCredentialRotationsRotationIDAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewPutCredentialRotationsRotationIDBadRequest() *PutCredentialRotationsRotationIDBadRequest {
	return &PutCredentialRotationsRotationIDBadRequest{}
}
type PutCredentialRotationsRotationIDBadRequest struct {
	Payload PutCredentialRotationsRotationIDBadRequestBody
}
func (o *PutCredentialRotationsRotationIDBadRequest) Error() string {
	return fmt.Sprintf("[PUT /credential-rotations/{rotation_id}][%d] putCredentialRotationsRotationIdBadRequest  %+v", 400, o.Payload)
}
func (o *PutCredentialRotationsRotationIDBadRequest) 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 NewPutCredentialRotationsRotationIDUnauthorized() *PutCredentialRotationsRotationIDUnauthorized {
	return &PutCredentialRotationsRotationIDUnauthorized{}
}
type PutCredentialRotationsRotationIDUnauthorized struct {
	Payload PutCredentialRotationsRotationIDUnauthorizedBody
}
func (o *PutCredentialRotationsRotationIDUnauthorized) Error() string {
	return fmt.Sprintf("[PUT /credential-rotations/{rotation_id}][%d] putCredentialRotationsRotationIdUnauthorized  %+v", 401, o.Payload)
}
func (o *PutCredentialRotationsRotationIDUnauthorized) 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 NewPutCredentialRotationsRotationIDNotFound() *PutCredentialRotationsRotationIDNotFound {
	return &PutCredentialRotationsRotationIDNotFound{}
}
type PutCredentialRotationsRotationIDNotFound struct {
	Payload PutCredentialRotationsRotationIDNotFoundBody
}
func (o *PutCredentialRotationsRotationIDNotFound) Error() string {
	return fmt.Sprintf("[PUT /credential-rotations/{rotation_id}][%d] putCredentialRotationsRotationIdNotFound  %+v", 404, o.Payload)
}
func (o *PutCredentialRotationsRotationIDNotFound) 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 NewPutCredentialRotationsRotationIDMethodNotAllowed() *PutCredentialRotationsRotationIDMethodNotAllowed {
	return &PutCredentialRotationsRotationIDMethodNotAllowed{}
}
type PutCredentialRotationsRotationIDMethodNotAllowed struct {
	Payload PutCredentialRotationsRotationIDMethodNotAllowedBody
}
func (o *PutCredentialRotationsRotationIDMethodNotAllowed) Error() string {
	return fmt.Sprintf("[PUT /credential-rotations/{rotation_id}][%d] putCredentialRotationsRotationIdMethodNotAllowed  %+v", 405, o.Payload)
}
func (o *PutCredentialRotationsRotationIDMethodNotAllowed) 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 NewPutCredentialRotationsRotationIDInternalServerError() *PutCredentialRotationsRotationIDInternalServerError {
	return &PutCredentialRotationsRotationIDInternalServerError{}
}
type PutCredentialRotationsRotationIDInternalServerError struct {
	Payload PutCredentialRotationsRotationIDInternalServerErrorBody
}
func (o *PutCredentialRotationsRotationIDInternalServerError) Error() string {
	return fmt.Sprintf("[PUT /credential-rotations/{rotation_id}][%d] putCredentialRotationsRotationIdInternalServerError  %+v", 500, o.Payload)
}
func (o *PutCredentialRotationsRotationIDInternalServerError) 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 PutCredentialRotationsRotationIDBadRequestBody struct {
	Message []string `json:"message"`
	Type *string `json:"type"`
}