code: func (o *InventoryGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
  	switch response.Code() {
  
  	case 200:
  		result := NewInventoryGetOK()
  		if err := result.readResponse(response, consumer, o.formats); err != nil {
  			return nil, err
  		}
  		return result, nil
  
  	default:
  		return nil, runtime.NewAPIError("unknown error", response, response.Code())
  	}
  }
docs: // ReadResponse reads a server response into the received o.