Files
gtslib/client/lists/add_list_accounts_responses.go
decentral1se e4ade9c758
All checks were successful
continuous-integration/drone/push Build is passing
feat: init
2024-07-31 22:47:18 +02:00

399 lines
13 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
package lists
// 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"
)
// AddListAccountsReader is a Reader for the AddListAccounts structure.
type AddListAccountsReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AddListAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAddListAccountsOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
case 400:
result := NewAddListAccountsBadRequest()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return nil, result
case 401:
result := NewAddListAccountsUnauthorized()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return nil, result
case 404:
result := NewAddListAccountsNotFound()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return nil, result
case 406:
result := NewAddListAccountsNotAcceptable()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return nil, result
case 500:
result := NewAddListAccountsInternalServerError()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return nil, result
default:
return nil, runtime.NewAPIError("[POST /api/v1/lists/{id}/accounts] addListAccounts", response, response.Code())
}
}
// NewAddListAccountsOK creates a AddListAccountsOK with default headers values
func NewAddListAccountsOK() *AddListAccountsOK {
return &AddListAccountsOK{}
}
/*
AddListAccountsOK describes a response with status code 200, with default header values.
list accounts updated
*/
type AddListAccountsOK struct {
}
// IsSuccess returns true when this add list accounts o k response has a 2xx status code
func (o *AddListAccountsOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this add list accounts o k response has a 3xx status code
func (o *AddListAccountsOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this add list accounts o k response has a 4xx status code
func (o *AddListAccountsOK) IsClientError() bool {
return false
}
// IsServerError returns true when this add list accounts o k response has a 5xx status code
func (o *AddListAccountsOK) IsServerError() bool {
return false
}
// IsCode returns true when this add list accounts o k response a status code equal to that given
func (o *AddListAccountsOK) IsCode(code int) bool {
return code == 200
}
// Code gets the status code for the add list accounts o k response
func (o *AddListAccountsOK) Code() int {
return 200
}
func (o *AddListAccountsOK) Error() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsOK", 200)
}
func (o *AddListAccountsOK) String() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsOK", 200)
}
func (o *AddListAccountsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAddListAccountsBadRequest creates a AddListAccountsBadRequest with default headers values
func NewAddListAccountsBadRequest() *AddListAccountsBadRequest {
return &AddListAccountsBadRequest{}
}
/*
AddListAccountsBadRequest describes a response with status code 400, with default header values.
bad request
*/
type AddListAccountsBadRequest struct {
}
// IsSuccess returns true when this add list accounts bad request response has a 2xx status code
func (o *AddListAccountsBadRequest) IsSuccess() bool {
return false
}
// IsRedirect returns true when this add list accounts bad request response has a 3xx status code
func (o *AddListAccountsBadRequest) IsRedirect() bool {
return false
}
// IsClientError returns true when this add list accounts bad request response has a 4xx status code
func (o *AddListAccountsBadRequest) IsClientError() bool {
return true
}
// IsServerError returns true when this add list accounts bad request response has a 5xx status code
func (o *AddListAccountsBadRequest) IsServerError() bool {
return false
}
// IsCode returns true when this add list accounts bad request response a status code equal to that given
func (o *AddListAccountsBadRequest) IsCode(code int) bool {
return code == 400
}
// Code gets the status code for the add list accounts bad request response
func (o *AddListAccountsBadRequest) Code() int {
return 400
}
func (o *AddListAccountsBadRequest) Error() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsBadRequest", 400)
}
func (o *AddListAccountsBadRequest) String() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsBadRequest", 400)
}
func (o *AddListAccountsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAddListAccountsUnauthorized creates a AddListAccountsUnauthorized with default headers values
func NewAddListAccountsUnauthorized() *AddListAccountsUnauthorized {
return &AddListAccountsUnauthorized{}
}
/*
AddListAccountsUnauthorized describes a response with status code 401, with default header values.
unauthorized
*/
type AddListAccountsUnauthorized struct {
}
// IsSuccess returns true when this add list accounts unauthorized response has a 2xx status code
func (o *AddListAccountsUnauthorized) IsSuccess() bool {
return false
}
// IsRedirect returns true when this add list accounts unauthorized response has a 3xx status code
func (o *AddListAccountsUnauthorized) IsRedirect() bool {
return false
}
// IsClientError returns true when this add list accounts unauthorized response has a 4xx status code
func (o *AddListAccountsUnauthorized) IsClientError() bool {
return true
}
// IsServerError returns true when this add list accounts unauthorized response has a 5xx status code
func (o *AddListAccountsUnauthorized) IsServerError() bool {
return false
}
// IsCode returns true when this add list accounts unauthorized response a status code equal to that given
func (o *AddListAccountsUnauthorized) IsCode(code int) bool {
return code == 401
}
// Code gets the status code for the add list accounts unauthorized response
func (o *AddListAccountsUnauthorized) Code() int {
return 401
}
func (o *AddListAccountsUnauthorized) Error() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsUnauthorized", 401)
}
func (o *AddListAccountsUnauthorized) String() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsUnauthorized", 401)
}
func (o *AddListAccountsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAddListAccountsNotFound creates a AddListAccountsNotFound with default headers values
func NewAddListAccountsNotFound() *AddListAccountsNotFound {
return &AddListAccountsNotFound{}
}
/*
AddListAccountsNotFound describes a response with status code 404, with default header values.
not found
*/
type AddListAccountsNotFound struct {
}
// IsSuccess returns true when this add list accounts not found response has a 2xx status code
func (o *AddListAccountsNotFound) IsSuccess() bool {
return false
}
// IsRedirect returns true when this add list accounts not found response has a 3xx status code
func (o *AddListAccountsNotFound) IsRedirect() bool {
return false
}
// IsClientError returns true when this add list accounts not found response has a 4xx status code
func (o *AddListAccountsNotFound) IsClientError() bool {
return true
}
// IsServerError returns true when this add list accounts not found response has a 5xx status code
func (o *AddListAccountsNotFound) IsServerError() bool {
return false
}
// IsCode returns true when this add list accounts not found response a status code equal to that given
func (o *AddListAccountsNotFound) IsCode(code int) bool {
return code == 404
}
// Code gets the status code for the add list accounts not found response
func (o *AddListAccountsNotFound) Code() int {
return 404
}
func (o *AddListAccountsNotFound) Error() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsNotFound", 404)
}
func (o *AddListAccountsNotFound) String() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsNotFound", 404)
}
func (o *AddListAccountsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAddListAccountsNotAcceptable creates a AddListAccountsNotAcceptable with default headers values
func NewAddListAccountsNotAcceptable() *AddListAccountsNotAcceptable {
return &AddListAccountsNotAcceptable{}
}
/*
AddListAccountsNotAcceptable describes a response with status code 406, with default header values.
not acceptable
*/
type AddListAccountsNotAcceptable struct {
}
// IsSuccess returns true when this add list accounts not acceptable response has a 2xx status code
func (o *AddListAccountsNotAcceptable) IsSuccess() bool {
return false
}
// IsRedirect returns true when this add list accounts not acceptable response has a 3xx status code
func (o *AddListAccountsNotAcceptable) IsRedirect() bool {
return false
}
// IsClientError returns true when this add list accounts not acceptable response has a 4xx status code
func (o *AddListAccountsNotAcceptable) IsClientError() bool {
return true
}
// IsServerError returns true when this add list accounts not acceptable response has a 5xx status code
func (o *AddListAccountsNotAcceptable) IsServerError() bool {
return false
}
// IsCode returns true when this add list accounts not acceptable response a status code equal to that given
func (o *AddListAccountsNotAcceptable) IsCode(code int) bool {
return code == 406
}
// Code gets the status code for the add list accounts not acceptable response
func (o *AddListAccountsNotAcceptable) Code() int {
return 406
}
func (o *AddListAccountsNotAcceptable) Error() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsNotAcceptable", 406)
}
func (o *AddListAccountsNotAcceptable) String() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsNotAcceptable", 406)
}
func (o *AddListAccountsNotAcceptable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAddListAccountsInternalServerError creates a AddListAccountsInternalServerError with default headers values
func NewAddListAccountsInternalServerError() *AddListAccountsInternalServerError {
return &AddListAccountsInternalServerError{}
}
/*
AddListAccountsInternalServerError describes a response with status code 500, with default header values.
internal server error
*/
type AddListAccountsInternalServerError struct {
}
// IsSuccess returns true when this add list accounts internal server error response has a 2xx status code
func (o *AddListAccountsInternalServerError) IsSuccess() bool {
return false
}
// IsRedirect returns true when this add list accounts internal server error response has a 3xx status code
func (o *AddListAccountsInternalServerError) IsRedirect() bool {
return false
}
// IsClientError returns true when this add list accounts internal server error response has a 4xx status code
func (o *AddListAccountsInternalServerError) IsClientError() bool {
return false
}
// IsServerError returns true when this add list accounts internal server error response has a 5xx status code
func (o *AddListAccountsInternalServerError) IsServerError() bool {
return true
}
// IsCode returns true when this add list accounts internal server error response a status code equal to that given
func (o *AddListAccountsInternalServerError) IsCode(code int) bool {
return code == 500
}
// Code gets the status code for the add list accounts internal server error response
func (o *AddListAccountsInternalServerError) Code() int {
return 500
}
func (o *AddListAccountsInternalServerError) Error() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsInternalServerError", 500)
}
func (o *AddListAccountsInternalServerError) String() string {
return fmt.Sprintf("[POST /api/v1/lists/{id}/accounts][%d] addListAccountsInternalServerError", 500)
}
func (o *AddListAccountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}