package telephony_providers_edge

import (
	"fmt"
	"io"

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

	"github.com/freman/genesysapi/models"
)

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesReader struct {
	formats strfmt.Registry
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 408:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 413:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 415:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 429:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 503:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 504:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout()
		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())
	}
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK struct {
	Payload *models.TrunkMetabaseEntityListing
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK  %+v", 200, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK) GetPayload() *models.TrunkMetabaseEntityListing {
	return o.Payload
}

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

	o.Payload = new(models.TrunkMetabaseEntityListing)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest  %+v", 400, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized  %+v", 401, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden  %+v", 403, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound  %+v", 404, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout  %+v", 408, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge  %+v", 413, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType  %+v", 415, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests  %+v", 429, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError  %+v", 500, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable  %+v", 503, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout{}
}

type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout  %+v", 504, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

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

package telephony_providers_edge

// 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"

	"github.com/freman/genesysapi/models"
)

// GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesReader is a Reader for the GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases structure.
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 408:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 413:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 415:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 429:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 503:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 504:
		result := NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout()
		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())
	}
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK handles this case with default header values.

successful operation
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK struct {
	Payload *models.TrunkMetabaseEntityListing
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK  %+v", 200, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesOK) GetPayload() *models.TrunkMetabaseEntityListing {
	return o.Payload
}

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

	o.Payload = new(models.TrunkMetabaseEntityListing)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest handles this case with default header values.

The request could not be understood by the server due to malformed syntax.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest  %+v", 400, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesBadRequest) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized handles this case with default header values.

No authentication bearer token specified in authorization header.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized  %+v", 401, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnauthorized) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden handles this case with default header values.

You are not authorized to perform the requested action.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden  %+v", 403, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesForbidden) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound handles this case with default header values.

The requested resource was not found.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound  %+v", 404, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesNotFound) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout handles this case with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout  %+v", 408, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge handles this case with default header values.

The request is over the size limit. Content-Length: %s
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge  %+v", 413, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesRequestEntityTooLarge) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType handles this case with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType  %+v", 415, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesUnsupportedMediaType) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests handles this case with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests  %+v", 429, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesTooManyRequests) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError handles this case with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError  %+v", 500, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesInternalServerError) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable handles this case with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable  %+v", 503, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesServiceUnavailable) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout creates a GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout with default headers values
func NewGetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout() *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout {
	return &GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout{}
}

/*GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout handles this case with default header values.

The request timed out.
*/
type GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout struct {
	Payload *models.ErrorBody
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout) Error() string {
	return fmt.Sprintf("[GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases][%d] getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout  %+v", 504, o.Payload)
}

func (o *GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabasesGatewayTimeout) GetPayload() *models.ErrorBody {
	return o.Payload
}

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

	o.Payload = new(models.ErrorBody)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}
