// Code generated by go-swagger; DO NOT EDIT.

package product_licensing

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"fmt"

	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
)

// RemoveLicenseReader is a Reader for the RemoveLicense structure.
type RemoveLicenseReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *RemoveLicenseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	result := NewRemoveLicenseDefault(response.Code())
	if err := result.readResponse(response, consumer, o.formats); err != nil {
		return nil, err
	}
	if response.Code()/100 == 2 {
		return result, nil
	}
	return nil, result
}

// NewRemoveLicenseDefault creates a RemoveLicenseDefault with default headers values
func NewRemoveLicenseDefault(code int) *RemoveLicenseDefault {
	return &RemoveLicenseDefault{
		_statusCode: code,
	}
}

/*
RemoveLicenseDefault describes a response with status code -1, with default header values.

successful operation
*/
type RemoveLicenseDefault struct {
	_statusCode int
}

// IsSuccess returns true when this remove license default response has a 2xx status code
func (o *RemoveLicenseDefault) IsSuccess() bool {
	return o._statusCode/100 == 2
}

// IsRedirect returns true when this remove license default response has a 3xx status code
func (o *RemoveLicenseDefault) IsRedirect() bool {
	return o._statusCode/100 == 3
}

// IsClientError returns true when this remove license default response has a 4xx status code
func (o *RemoveLicenseDefault) IsClientError() bool {
	return o._statusCode/100 == 4
}

// IsServerError returns true when this remove license default response has a 5xx status code
func (o *RemoveLicenseDefault) IsServerError() bool {
	return o._statusCode/100 == 5
}

// IsCode returns true when this remove license default response a status code equal to that given
func (o *RemoveLicenseDefault) IsCode(code int) bool {
	return o._statusCode == code
}

// Code gets the status code for the remove license default response
func (o *RemoveLicenseDefault) Code() int {
	return o._statusCode
}

func (o *RemoveLicenseDefault) Error() string {
	return fmt.Sprintf("[DELETE /v1/system/license][%d] removeLicense default ", o._statusCode)
}

func (o *RemoveLicenseDefault) String() string {
	return fmt.Sprintf("[DELETE /v1/system/license][%d] removeLicense default ", o._statusCode)
}

func (o *RemoveLicenseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}
