mirror of https://github.com/vernonkeenan/lib
478 lines
17 KiB
Go
478 lines
17 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
// (c) 2012-2020 by Taxnexus, Inc.
|
|
// All rights reserved worldwide.
|
|
// Proprietary product; unlicensed use is not allowed
|
|
|
|
package research_projects
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
|
|
"github.com/go-openapi/runtime"
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
|
|
)
|
|
|
|
// GetResearchProjectServicesReader is a Reader for the GetResearchProjectServices structure.
|
|
type GetResearchProjectServicesReader struct {
|
|
formats strfmt.Registry
|
|
}
|
|
|
|
// ReadResponse reads a server response into the received o.
|
|
func (o *GetResearchProjectServicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
|
switch response.Code() {
|
|
case 200:
|
|
result := NewGetResearchProjectServicesOK()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return result, nil
|
|
case 401:
|
|
result := NewGetResearchProjectServicesUnauthorized()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 403:
|
|
result := NewGetResearchProjectServicesForbidden()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 404:
|
|
result := NewGetResearchProjectServicesNotFound()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 422:
|
|
result := NewGetResearchProjectServicesUnprocessableEntity()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 500:
|
|
result := NewGetResearchProjectServicesInternalServerError()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
default:
|
|
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
|
}
|
|
}
|
|
|
|
// NewGetResearchProjectServicesOK creates a GetResearchProjectServicesOK with default headers values
|
|
func NewGetResearchProjectServicesOK() *GetResearchProjectServicesOK {
|
|
return &GetResearchProjectServicesOK{}
|
|
}
|
|
|
|
/*
|
|
GetResearchProjectServicesOK describes a response with status code 200, with default header values.
|
|
|
|
ResearchProjectService Response Object
|
|
*/
|
|
type GetResearchProjectServicesOK struct {
|
|
Payload *sfgate_models.ResearchProjectServiceResponse
|
|
}
|
|
|
|
// IsSuccess returns true when this get research project services o k response has a 2xx status code
|
|
func (o *GetResearchProjectServicesOK) IsSuccess() bool {
|
|
return true
|
|
}
|
|
|
|
// IsRedirect returns true when this get research project services o k response has a 3xx status code
|
|
func (o *GetResearchProjectServicesOK) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get research project services o k response has a 4xx status code
|
|
func (o *GetResearchProjectServicesOK) IsClientError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsServerError returns true when this get research project services o k response has a 5xx status code
|
|
func (o *GetResearchProjectServicesOK) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get research project services o k response a status code equal to that given
|
|
func (o *GetResearchProjectServicesOK) IsCode(code int) bool {
|
|
return code == 200
|
|
}
|
|
|
|
// Code gets the status code for the get research project services o k response
|
|
func (o *GetResearchProjectServicesOK) Code() int {
|
|
return 200
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesOK) Error() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesOK %+v", 200, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesOK) String() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesOK %+v", 200, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesOK) GetPayload() *sfgate_models.ResearchProjectServiceResponse {
|
|
return o.Payload
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
o.Payload = new(sfgate_models.ResearchProjectServiceResponse)
|
|
|
|
// response payload
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetResearchProjectServicesUnauthorized creates a GetResearchProjectServicesUnauthorized with default headers values
|
|
func NewGetResearchProjectServicesUnauthorized() *GetResearchProjectServicesUnauthorized {
|
|
return &GetResearchProjectServicesUnauthorized{}
|
|
}
|
|
|
|
/*
|
|
GetResearchProjectServicesUnauthorized describes a response with status code 401, with default header values.
|
|
|
|
Access unauthorized, invalid API-KEY was used
|
|
*/
|
|
type GetResearchProjectServicesUnauthorized struct {
|
|
Payload *sfgate_models.Error
|
|
}
|
|
|
|
// IsSuccess returns true when this get research project services unauthorized response has a 2xx status code
|
|
func (o *GetResearchProjectServicesUnauthorized) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get research project services unauthorized response has a 3xx status code
|
|
func (o *GetResearchProjectServicesUnauthorized) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get research project services unauthorized response has a 4xx status code
|
|
func (o *GetResearchProjectServicesUnauthorized) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this get research project services unauthorized response has a 5xx status code
|
|
func (o *GetResearchProjectServicesUnauthorized) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get research project services unauthorized response a status code equal to that given
|
|
func (o *GetResearchProjectServicesUnauthorized) IsCode(code int) bool {
|
|
return code == 401
|
|
}
|
|
|
|
// Code gets the status code for the get research project services unauthorized response
|
|
func (o *GetResearchProjectServicesUnauthorized) Code() int {
|
|
return 401
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnauthorized) Error() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesUnauthorized %+v", 401, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnauthorized) String() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesUnauthorized %+v", 401, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnauthorized) GetPayload() *sfgate_models.Error {
|
|
return o.Payload
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
// response payload
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetResearchProjectServicesForbidden creates a GetResearchProjectServicesForbidden with default headers values
|
|
func NewGetResearchProjectServicesForbidden() *GetResearchProjectServicesForbidden {
|
|
return &GetResearchProjectServicesForbidden{}
|
|
}
|
|
|
|
/*
|
|
GetResearchProjectServicesForbidden describes a response with status code 403, with default header values.
|
|
|
|
Access forbidden, account lacks access
|
|
*/
|
|
type GetResearchProjectServicesForbidden struct {
|
|
Payload *sfgate_models.Error
|
|
}
|
|
|
|
// IsSuccess returns true when this get research project services forbidden response has a 2xx status code
|
|
func (o *GetResearchProjectServicesForbidden) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get research project services forbidden response has a 3xx status code
|
|
func (o *GetResearchProjectServicesForbidden) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get research project services forbidden response has a 4xx status code
|
|
func (o *GetResearchProjectServicesForbidden) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this get research project services forbidden response has a 5xx status code
|
|
func (o *GetResearchProjectServicesForbidden) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get research project services forbidden response a status code equal to that given
|
|
func (o *GetResearchProjectServicesForbidden) IsCode(code int) bool {
|
|
return code == 403
|
|
}
|
|
|
|
// Code gets the status code for the get research project services forbidden response
|
|
func (o *GetResearchProjectServicesForbidden) Code() int {
|
|
return 403
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesForbidden) Error() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesForbidden %+v", 403, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesForbidden) String() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesForbidden %+v", 403, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesForbidden) GetPayload() *sfgate_models.Error {
|
|
return o.Payload
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
// response payload
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetResearchProjectServicesNotFound creates a GetResearchProjectServicesNotFound with default headers values
|
|
func NewGetResearchProjectServicesNotFound() *GetResearchProjectServicesNotFound {
|
|
return &GetResearchProjectServicesNotFound{}
|
|
}
|
|
|
|
/*
|
|
GetResearchProjectServicesNotFound describes a response with status code 404, with default header values.
|
|
|
|
Resource was not found
|
|
*/
|
|
type GetResearchProjectServicesNotFound struct {
|
|
Payload *sfgate_models.Error
|
|
}
|
|
|
|
// IsSuccess returns true when this get research project services not found response has a 2xx status code
|
|
func (o *GetResearchProjectServicesNotFound) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get research project services not found response has a 3xx status code
|
|
func (o *GetResearchProjectServicesNotFound) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get research project services not found response has a 4xx status code
|
|
func (o *GetResearchProjectServicesNotFound) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this get research project services not found response has a 5xx status code
|
|
func (o *GetResearchProjectServicesNotFound) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get research project services not found response a status code equal to that given
|
|
func (o *GetResearchProjectServicesNotFound) IsCode(code int) bool {
|
|
return code == 404
|
|
}
|
|
|
|
// Code gets the status code for the get research project services not found response
|
|
func (o *GetResearchProjectServicesNotFound) Code() int {
|
|
return 404
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesNotFound) Error() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesNotFound %+v", 404, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesNotFound) String() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesNotFound %+v", 404, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesNotFound) GetPayload() *sfgate_models.Error {
|
|
return o.Payload
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
// response payload
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetResearchProjectServicesUnprocessableEntity creates a GetResearchProjectServicesUnprocessableEntity with default headers values
|
|
func NewGetResearchProjectServicesUnprocessableEntity() *GetResearchProjectServicesUnprocessableEntity {
|
|
return &GetResearchProjectServicesUnprocessableEntity{}
|
|
}
|
|
|
|
/*
|
|
GetResearchProjectServicesUnprocessableEntity describes a response with status code 422, with default header values.
|
|
|
|
Unprocessable Entity, likely a bad parameter
|
|
*/
|
|
type GetResearchProjectServicesUnprocessableEntity struct {
|
|
Payload *sfgate_models.Error
|
|
}
|
|
|
|
// IsSuccess returns true when this get research project services unprocessable entity response has a 2xx status code
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get research project services unprocessable entity response has a 3xx status code
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get research project services unprocessable entity response has a 4xx status code
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this get research project services unprocessable entity response has a 5xx status code
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get research project services unprocessable entity response a status code equal to that given
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) IsCode(code int) bool {
|
|
return code == 422
|
|
}
|
|
|
|
// Code gets the status code for the get research project services unprocessable entity response
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) Code() int {
|
|
return 422
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) Error() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesUnprocessableEntity %+v", 422, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) String() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesUnprocessableEntity %+v", 422, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) GetPayload() *sfgate_models.Error {
|
|
return o.Payload
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
// response payload
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetResearchProjectServicesInternalServerError creates a GetResearchProjectServicesInternalServerError with default headers values
|
|
func NewGetResearchProjectServicesInternalServerError() *GetResearchProjectServicesInternalServerError {
|
|
return &GetResearchProjectServicesInternalServerError{}
|
|
}
|
|
|
|
/*
|
|
GetResearchProjectServicesInternalServerError describes a response with status code 500, with default header values.
|
|
|
|
Server Internal Error
|
|
*/
|
|
type GetResearchProjectServicesInternalServerError struct {
|
|
Payload *sfgate_models.Error
|
|
}
|
|
|
|
// IsSuccess returns true when this get research project services internal server error response has a 2xx status code
|
|
func (o *GetResearchProjectServicesInternalServerError) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get research project services internal server error response has a 3xx status code
|
|
func (o *GetResearchProjectServicesInternalServerError) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get research project services internal server error response has a 4xx status code
|
|
func (o *GetResearchProjectServicesInternalServerError) IsClientError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsServerError returns true when this get research project services internal server error response has a 5xx status code
|
|
func (o *GetResearchProjectServicesInternalServerError) IsServerError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsCode returns true when this get research project services internal server error response a status code equal to that given
|
|
func (o *GetResearchProjectServicesInternalServerError) IsCode(code int) bool {
|
|
return code == 500
|
|
}
|
|
|
|
// Code gets the status code for the get research project services internal server error response
|
|
func (o *GetResearchProjectServicesInternalServerError) Code() int {
|
|
return 500
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesInternalServerError) Error() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesInternalServerError %+v", 500, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesInternalServerError) String() string {
|
|
return fmt.Sprintf("[GET /researchprojectservices][%d] getResearchProjectServicesInternalServerError %+v", 500, o.Payload)
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesInternalServerError) GetPayload() *sfgate_models.Error {
|
|
return o.Payload
|
|
}
|
|
|
|
func (o *GetResearchProjectServicesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
// response payload
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|