graphql

package
v1.24.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for graphql API

func (*Client) GraphqlBatch

func (a *Client) GraphqlBatch(params *GraphqlBatchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GraphqlBatchOK, error)

GraphqlBatch gets a response based on graph q l

Perform a batched GraphQL query

func (*Client) GraphqlPost

func (a *Client) GraphqlPost(params *GraphqlPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GraphqlPostOK, error)

GraphqlPost gets a response based on graph q l

Get an object based on GraphQL

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption added in v1.18.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GraphqlBatch(params *GraphqlBatchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GraphqlBatchOK, error)

	GraphqlPost(params *GraphqlPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GraphqlPostOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new graphql API client.

type GraphqlBatchForbidden

type GraphqlBatchForbidden struct {
	Payload *models.ErrorResponse
}

GraphqlBatchForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGraphqlBatchForbidden

func NewGraphqlBatchForbidden() *GraphqlBatchForbidden

NewGraphqlBatchForbidden creates a GraphqlBatchForbidden with default headers values

func (*GraphqlBatchForbidden) Code added in v1.18.0

func (o *GraphqlBatchForbidden) Code() int

Code gets the status code for the graphql batch forbidden response

func (*GraphqlBatchForbidden) Error

func (o *GraphqlBatchForbidden) Error() string

func (*GraphqlBatchForbidden) GetPayload

func (o *GraphqlBatchForbidden) GetPayload() *models.ErrorResponse

func (*GraphqlBatchForbidden) IsClientError added in v1.18.0

func (o *GraphqlBatchForbidden) IsClientError() bool

IsClientError returns true when this graphql batch forbidden response has a 4xx status code

func (*GraphqlBatchForbidden) IsCode added in v1.18.0

func (o *GraphqlBatchForbidden) IsCode(code int) bool

IsCode returns true when this graphql batch forbidden response a status code equal to that given

func (*GraphqlBatchForbidden) IsRedirect added in v1.18.0

func (o *GraphqlBatchForbidden) IsRedirect() bool

IsRedirect returns true when this graphql batch forbidden response has a 3xx status code

func (*GraphqlBatchForbidden) IsServerError added in v1.18.0

func (o *GraphqlBatchForbidden) IsServerError() bool

IsServerError returns true when this graphql batch forbidden response has a 5xx status code

func (*GraphqlBatchForbidden) IsSuccess added in v1.18.0

func (o *GraphqlBatchForbidden) IsSuccess() bool

IsSuccess returns true when this graphql batch forbidden response has a 2xx status code

func (*GraphqlBatchForbidden) String added in v1.18.0

func (o *GraphqlBatchForbidden) String() string

type GraphqlBatchInternalServerError

type GraphqlBatchInternalServerError struct {
	Payload *models.ErrorResponse
}

GraphqlBatchInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGraphqlBatchInternalServerError

func NewGraphqlBatchInternalServerError() *GraphqlBatchInternalServerError

NewGraphqlBatchInternalServerError creates a GraphqlBatchInternalServerError with default headers values

func (*GraphqlBatchInternalServerError) Code added in v1.18.0

Code gets the status code for the graphql batch internal server error response

func (*GraphqlBatchInternalServerError) Error

func (*GraphqlBatchInternalServerError) GetPayload

func (*GraphqlBatchInternalServerError) IsClientError added in v1.18.0

func (o *GraphqlBatchInternalServerError) IsClientError() bool

IsClientError returns true when this graphql batch internal server error response has a 4xx status code

func (*GraphqlBatchInternalServerError) IsCode added in v1.18.0

func (o *GraphqlBatchInternalServerError) IsCode(code int) bool

IsCode returns true when this graphql batch internal server error response a status code equal to that given

func (*GraphqlBatchInternalServerError) IsRedirect added in v1.18.0

func (o *GraphqlBatchInternalServerError) IsRedirect() bool

IsRedirect returns true when this graphql batch internal server error response has a 3xx status code

func (*GraphqlBatchInternalServerError) IsServerError added in v1.18.0

func (o *GraphqlBatchInternalServerError) IsServerError() bool

IsServerError returns true when this graphql batch internal server error response has a 5xx status code

func (*GraphqlBatchInternalServerError) IsSuccess added in v1.18.0

func (o *GraphqlBatchInternalServerError) IsSuccess() bool

IsSuccess returns true when this graphql batch internal server error response has a 2xx status code

func (*GraphqlBatchInternalServerError) String added in v1.18.0

type GraphqlBatchOK

type GraphqlBatchOK struct {
	Payload models.GraphQLResponses
}

GraphqlBatchOK describes a response with status code 200, with default header values.

Successful query (with select).

func NewGraphqlBatchOK

func NewGraphqlBatchOK() *GraphqlBatchOK

NewGraphqlBatchOK creates a GraphqlBatchOK with default headers values

func (*GraphqlBatchOK) Code added in v1.18.0

func (o *GraphqlBatchOK) Code() int

Code gets the status code for the graphql batch o k response

func (*GraphqlBatchOK) Error

func (o *GraphqlBatchOK) Error() string

func (*GraphqlBatchOK) GetPayload

func (o *GraphqlBatchOK) GetPayload() models.GraphQLResponses

func (*GraphqlBatchOK) IsClientError added in v1.18.0

func (o *GraphqlBatchOK) IsClientError() bool

IsClientError returns true when this graphql batch o k response has a 4xx status code

func (*GraphqlBatchOK) IsCode added in v1.18.0

func (o *GraphqlBatchOK) IsCode(code int) bool

IsCode returns true when this graphql batch o k response a status code equal to that given

func (*GraphqlBatchOK) IsRedirect added in v1.18.0

func (o *GraphqlBatchOK) IsRedirect() bool

IsRedirect returns true when this graphql batch o k response has a 3xx status code

func (*GraphqlBatchOK) IsServerError added in v1.18.0

func (o *GraphqlBatchOK) IsServerError() bool

IsServerError returns true when this graphql batch o k response has a 5xx status code

func (*GraphqlBatchOK) IsSuccess added in v1.18.0

func (o *GraphqlBatchOK) IsSuccess() bool

IsSuccess returns true when this graphql batch o k response has a 2xx status code

func (*GraphqlBatchOK) String added in v1.18.0

func (o *GraphqlBatchOK) String() string

type GraphqlBatchParams

type GraphqlBatchParams struct {

	/* Body.

	   The GraphQL queries.
	*/
	Body models.GraphQLQueries

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GraphqlBatchParams contains all the parameters to send to the API endpoint

for the graphql batch operation.

Typically these are written to a http.Request.

func NewGraphqlBatchParams

func NewGraphqlBatchParams() *GraphqlBatchParams

NewGraphqlBatchParams creates a new GraphqlBatchParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGraphqlBatchParamsWithContext

func NewGraphqlBatchParamsWithContext(ctx context.Context) *GraphqlBatchParams

NewGraphqlBatchParamsWithContext creates a new GraphqlBatchParams object with the ability to set a context for a request.

func NewGraphqlBatchParamsWithHTTPClient

func NewGraphqlBatchParamsWithHTTPClient(client *http.Client) *GraphqlBatchParams

NewGraphqlBatchParamsWithHTTPClient creates a new GraphqlBatchParams object with the ability to set a custom HTTPClient for a request.

func NewGraphqlBatchParamsWithTimeout

func NewGraphqlBatchParamsWithTimeout(timeout time.Duration) *GraphqlBatchParams

NewGraphqlBatchParamsWithTimeout creates a new GraphqlBatchParams object with the ability to set a timeout on a request.

func (*GraphqlBatchParams) SetBody

func (o *GraphqlBatchParams) SetBody(body models.GraphQLQueries)

SetBody adds the body to the graphql batch params

func (*GraphqlBatchParams) SetContext

func (o *GraphqlBatchParams) SetContext(ctx context.Context)

SetContext adds the context to the graphql batch params

func (*GraphqlBatchParams) SetDefaults added in v1.18.0

func (o *GraphqlBatchParams) SetDefaults()

SetDefaults hydrates default values in the graphql batch params (not the query body).

All values with no default are reset to their zero value.

func (*GraphqlBatchParams) SetHTTPClient

func (o *GraphqlBatchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the graphql batch params

func (*GraphqlBatchParams) SetTimeout

func (o *GraphqlBatchParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the graphql batch params

func (*GraphqlBatchParams) WithBody

WithBody adds the body to the graphql batch params

func (*GraphqlBatchParams) WithContext

WithContext adds the context to the graphql batch params

func (*GraphqlBatchParams) WithDefaults added in v1.18.0

func (o *GraphqlBatchParams) WithDefaults() *GraphqlBatchParams

WithDefaults hydrates default values in the graphql batch params (not the query body).

All values with no default are reset to their zero value.

func (*GraphqlBatchParams) WithHTTPClient

func (o *GraphqlBatchParams) WithHTTPClient(client *http.Client) *GraphqlBatchParams

WithHTTPClient adds the HTTPClient to the graphql batch params

func (*GraphqlBatchParams) WithTimeout

func (o *GraphqlBatchParams) WithTimeout(timeout time.Duration) *GraphqlBatchParams

WithTimeout adds the timeout to the graphql batch params

func (*GraphqlBatchParams) WriteToRequest

func (o *GraphqlBatchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GraphqlBatchReader

type GraphqlBatchReader struct {
	// contains filtered or unexported fields
}

GraphqlBatchReader is a Reader for the GraphqlBatch structure.

func (*GraphqlBatchReader) ReadResponse

func (o *GraphqlBatchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GraphqlBatchUnauthorized

type GraphqlBatchUnauthorized struct {
}

GraphqlBatchUnauthorized describes a response with status code 401, with default header values.

Unauthorized or invalid credentials.

func NewGraphqlBatchUnauthorized

func NewGraphqlBatchUnauthorized() *GraphqlBatchUnauthorized

NewGraphqlBatchUnauthorized creates a GraphqlBatchUnauthorized with default headers values

func (*GraphqlBatchUnauthorized) Code added in v1.18.0

func (o *GraphqlBatchUnauthorized) Code() int

Code gets the status code for the graphql batch unauthorized response

func (*GraphqlBatchUnauthorized) Error

func (o *GraphqlBatchUnauthorized) Error() string

func (*GraphqlBatchUnauthorized) IsClientError added in v1.18.0

func (o *GraphqlBatchUnauthorized) IsClientError() bool

IsClientError returns true when this graphql batch unauthorized response has a 4xx status code

func (*GraphqlBatchUnauthorized) IsCode added in v1.18.0

func (o *GraphqlBatchUnauthorized) IsCode(code int) bool

IsCode returns true when this graphql batch unauthorized response a status code equal to that given

func (*GraphqlBatchUnauthorized) IsRedirect added in v1.18.0

func (o *GraphqlBatchUnauthorized) IsRedirect() bool

IsRedirect returns true when this graphql batch unauthorized response has a 3xx status code

func (*GraphqlBatchUnauthorized) IsServerError added in v1.18.0

func (o *GraphqlBatchUnauthorized) IsServerError() bool

IsServerError returns true when this graphql batch unauthorized response has a 5xx status code

func (*GraphqlBatchUnauthorized) IsSuccess added in v1.18.0

func (o *GraphqlBatchUnauthorized) IsSuccess() bool

IsSuccess returns true when this graphql batch unauthorized response has a 2xx status code

func (*GraphqlBatchUnauthorized) String added in v1.18.0

func (o *GraphqlBatchUnauthorized) String() string

type GraphqlBatchUnprocessableEntity

type GraphqlBatchUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

GraphqlBatchUnprocessableEntity describes a response with status code 422, with default header values.

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewGraphqlBatchUnprocessableEntity

func NewGraphqlBatchUnprocessableEntity() *GraphqlBatchUnprocessableEntity

NewGraphqlBatchUnprocessableEntity creates a GraphqlBatchUnprocessableEntity with default headers values

func (*GraphqlBatchUnprocessableEntity) Code added in v1.18.0

Code gets the status code for the graphql batch unprocessable entity response

func (*GraphqlBatchUnprocessableEntity) Error

func (*GraphqlBatchUnprocessableEntity) GetPayload

func (*GraphqlBatchUnprocessableEntity) IsClientError added in v1.18.0

func (o *GraphqlBatchUnprocessableEntity) IsClientError() bool

IsClientError returns true when this graphql batch unprocessable entity response has a 4xx status code

func (*GraphqlBatchUnprocessableEntity) IsCode added in v1.18.0

func (o *GraphqlBatchUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this graphql batch unprocessable entity response a status code equal to that given

func (*GraphqlBatchUnprocessableEntity) IsRedirect added in v1.18.0

func (o *GraphqlBatchUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this graphql batch unprocessable entity response has a 3xx status code

func (*GraphqlBatchUnprocessableEntity) IsServerError added in v1.18.0

func (o *GraphqlBatchUnprocessableEntity) IsServerError() bool

IsServerError returns true when this graphql batch unprocessable entity response has a 5xx status code

func (*GraphqlBatchUnprocessableEntity) IsSuccess added in v1.18.0

func (o *GraphqlBatchUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this graphql batch unprocessable entity response has a 2xx status code

func (*GraphqlBatchUnprocessableEntity) String added in v1.18.0

type GraphqlPostForbidden

type GraphqlPostForbidden struct {
	Payload *models.ErrorResponse
}

GraphqlPostForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGraphqlPostForbidden

func NewGraphqlPostForbidden() *GraphqlPostForbidden

NewGraphqlPostForbidden creates a GraphqlPostForbidden with default headers values

func (*GraphqlPostForbidden) Code added in v1.18.0

func (o *GraphqlPostForbidden) Code() int

Code gets the status code for the graphql post forbidden response

func (*GraphqlPostForbidden) Error

func (o *GraphqlPostForbidden) Error() string

func (*GraphqlPostForbidden) GetPayload

func (o *GraphqlPostForbidden) GetPayload() *models.ErrorResponse

func (*GraphqlPostForbidden) IsClientError added in v1.18.0

func (o *GraphqlPostForbidden) IsClientError() bool

IsClientError returns true when this graphql post forbidden response has a 4xx status code

func (*GraphqlPostForbidden) IsCode added in v1.18.0

func (o *GraphqlPostForbidden) IsCode(code int) bool

IsCode returns true when this graphql post forbidden response a status code equal to that given

func (*GraphqlPostForbidden) IsRedirect added in v1.18.0

func (o *GraphqlPostForbidden) IsRedirect() bool

IsRedirect returns true when this graphql post forbidden response has a 3xx status code

func (*GraphqlPostForbidden) IsServerError added in v1.18.0

func (o *GraphqlPostForbidden) IsServerError() bool

IsServerError returns true when this graphql post forbidden response has a 5xx status code

func (*GraphqlPostForbidden) IsSuccess added in v1.18.0

func (o *GraphqlPostForbidden) IsSuccess() bool

IsSuccess returns true when this graphql post forbidden response has a 2xx status code

func (*GraphqlPostForbidden) String added in v1.18.0

func (o *GraphqlPostForbidden) String() string

type GraphqlPostInternalServerError

type GraphqlPostInternalServerError struct {
	Payload *models.ErrorResponse
}

GraphqlPostInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGraphqlPostInternalServerError

func NewGraphqlPostInternalServerError() *GraphqlPostInternalServerError

NewGraphqlPostInternalServerError creates a GraphqlPostInternalServerError with default headers values

func (*GraphqlPostInternalServerError) Code added in v1.18.0

Code gets the status code for the graphql post internal server error response

func (*GraphqlPostInternalServerError) Error

func (*GraphqlPostInternalServerError) GetPayload

func (*GraphqlPostInternalServerError) IsClientError added in v1.18.0

func (o *GraphqlPostInternalServerError) IsClientError() bool

IsClientError returns true when this graphql post internal server error response has a 4xx status code

func (*GraphqlPostInternalServerError) IsCode added in v1.18.0

func (o *GraphqlPostInternalServerError) IsCode(code int) bool

IsCode returns true when this graphql post internal server error response a status code equal to that given

func (*GraphqlPostInternalServerError) IsRedirect added in v1.18.0

func (o *GraphqlPostInternalServerError) IsRedirect() bool

IsRedirect returns true when this graphql post internal server error response has a 3xx status code

func (*GraphqlPostInternalServerError) IsServerError added in v1.18.0

func (o *GraphqlPostInternalServerError) IsServerError() bool

IsServerError returns true when this graphql post internal server error response has a 5xx status code

func (*GraphqlPostInternalServerError) IsSuccess added in v1.18.0

func (o *GraphqlPostInternalServerError) IsSuccess() bool

IsSuccess returns true when this graphql post internal server error response has a 2xx status code

func (*GraphqlPostInternalServerError) String added in v1.18.0

type GraphqlPostOK

type GraphqlPostOK struct {
	Payload *models.GraphQLResponse
}

GraphqlPostOK describes a response with status code 200, with default header values.

Successful query (with select).

func NewGraphqlPostOK

func NewGraphqlPostOK() *GraphqlPostOK

NewGraphqlPostOK creates a GraphqlPostOK with default headers values

func (*GraphqlPostOK) Code added in v1.18.0

func (o *GraphqlPostOK) Code() int

Code gets the status code for the graphql post o k response

func (*GraphqlPostOK) Error

func (o *GraphqlPostOK) Error() string

func (*GraphqlPostOK) GetPayload

func (o *GraphqlPostOK) GetPayload() *models.GraphQLResponse

func (*GraphqlPostOK) IsClientError added in v1.18.0

func (o *GraphqlPostOK) IsClientError() bool

IsClientError returns true when this graphql post o k response has a 4xx status code

func (*GraphqlPostOK) IsCode added in v1.18.0

func (o *GraphqlPostOK) IsCode(code int) bool

IsCode returns true when this graphql post o k response a status code equal to that given

func (*GraphqlPostOK) IsRedirect added in v1.18.0

func (o *GraphqlPostOK) IsRedirect() bool

IsRedirect returns true when this graphql post o k response has a 3xx status code

func (*GraphqlPostOK) IsServerError added in v1.18.0

func (o *GraphqlPostOK) IsServerError() bool

IsServerError returns true when this graphql post o k response has a 5xx status code

func (*GraphqlPostOK) IsSuccess added in v1.18.0

func (o *GraphqlPostOK) IsSuccess() bool

IsSuccess returns true when this graphql post o k response has a 2xx status code

func (*GraphqlPostOK) String added in v1.18.0

func (o *GraphqlPostOK) String() string

type GraphqlPostParams

type GraphqlPostParams struct {

	/* Body.

	   The GraphQL query request parameters.
	*/
	Body *models.GraphQLQuery

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GraphqlPostParams contains all the parameters to send to the API endpoint

for the graphql post operation.

Typically these are written to a http.Request.

func NewGraphqlPostParams

func NewGraphqlPostParams() *GraphqlPostParams

NewGraphqlPostParams creates a new GraphqlPostParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGraphqlPostParamsWithContext

func NewGraphqlPostParamsWithContext(ctx context.Context) *GraphqlPostParams

NewGraphqlPostParamsWithContext creates a new GraphqlPostParams object with the ability to set a context for a request.

func NewGraphqlPostParamsWithHTTPClient

func NewGraphqlPostParamsWithHTTPClient(client *http.Client) *GraphqlPostParams

NewGraphqlPostParamsWithHTTPClient creates a new GraphqlPostParams object with the ability to set a custom HTTPClient for a request.

func NewGraphqlPostParamsWithTimeout

func NewGraphqlPostParamsWithTimeout(timeout time.Duration) *GraphqlPostParams

NewGraphqlPostParamsWithTimeout creates a new GraphqlPostParams object with the ability to set a timeout on a request.

func (*GraphqlPostParams) SetBody

func (o *GraphqlPostParams) SetBody(body *models.GraphQLQuery)

SetBody adds the body to the graphql post params

func (*GraphqlPostParams) SetContext

func (o *GraphqlPostParams) SetContext(ctx context.Context)

SetContext adds the context to the graphql post params

func (*GraphqlPostParams) SetDefaults added in v1.18.0

func (o *GraphqlPostParams) SetDefaults()

SetDefaults hydrates default values in the graphql post params (not the query body).

All values with no default are reset to their zero value.

func (*GraphqlPostParams) SetHTTPClient

func (o *GraphqlPostParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the graphql post params

func (*GraphqlPostParams) SetTimeout

func (o *GraphqlPostParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the graphql post params

func (*GraphqlPostParams) WithBody

WithBody adds the body to the graphql post params

func (*GraphqlPostParams) WithContext

func (o *GraphqlPostParams) WithContext(ctx context.Context) *GraphqlPostParams

WithContext adds the context to the graphql post params

func (*GraphqlPostParams) WithDefaults added in v1.18.0

func (o *GraphqlPostParams) WithDefaults() *GraphqlPostParams

WithDefaults hydrates default values in the graphql post params (not the query body).

All values with no default are reset to their zero value.

func (*GraphqlPostParams) WithHTTPClient

func (o *GraphqlPostParams) WithHTTPClient(client *http.Client) *GraphqlPostParams

WithHTTPClient adds the HTTPClient to the graphql post params

func (*GraphqlPostParams) WithTimeout

func (o *GraphqlPostParams) WithTimeout(timeout time.Duration) *GraphqlPostParams

WithTimeout adds the timeout to the graphql post params

func (*GraphqlPostParams) WriteToRequest

func (o *GraphqlPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GraphqlPostReader

type GraphqlPostReader struct {
	// contains filtered or unexported fields
}

GraphqlPostReader is a Reader for the GraphqlPost structure.

func (*GraphqlPostReader) ReadResponse

func (o *GraphqlPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GraphqlPostUnauthorized

type GraphqlPostUnauthorized struct {
}

GraphqlPostUnauthorized describes a response with status code 401, with default header values.

Unauthorized or invalid credentials.

func NewGraphqlPostUnauthorized

func NewGraphqlPostUnauthorized() *GraphqlPostUnauthorized

NewGraphqlPostUnauthorized creates a GraphqlPostUnauthorized with default headers values

func (*GraphqlPostUnauthorized) Code added in v1.18.0

func (o *GraphqlPostUnauthorized) Code() int

Code gets the status code for the graphql post unauthorized response

func (*GraphqlPostUnauthorized) Error

func (o *GraphqlPostUnauthorized) Error() string

func (*GraphqlPostUnauthorized) IsClientError added in v1.18.0

func (o *GraphqlPostUnauthorized) IsClientError() bool

IsClientError returns true when this graphql post unauthorized response has a 4xx status code

func (*GraphqlPostUnauthorized) IsCode added in v1.18.0

func (o *GraphqlPostUnauthorized) IsCode(code int) bool

IsCode returns true when this graphql post unauthorized response a status code equal to that given

func (*GraphqlPostUnauthorized) IsRedirect added in v1.18.0

func (o *GraphqlPostUnauthorized) IsRedirect() bool

IsRedirect returns true when this graphql post unauthorized response has a 3xx status code

func (*GraphqlPostUnauthorized) IsServerError added in v1.18.0

func (o *GraphqlPostUnauthorized) IsServerError() bool

IsServerError returns true when this graphql post unauthorized response has a 5xx status code

func (*GraphqlPostUnauthorized) IsSuccess added in v1.18.0

func (o *GraphqlPostUnauthorized) IsSuccess() bool

IsSuccess returns true when this graphql post unauthorized response has a 2xx status code

func (*GraphqlPostUnauthorized) String added in v1.18.0

func (o *GraphqlPostUnauthorized) String() string

type GraphqlPostUnprocessableEntity

type GraphqlPostUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

GraphqlPostUnprocessableEntity describes a response with status code 422, with default header values.

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewGraphqlPostUnprocessableEntity

func NewGraphqlPostUnprocessableEntity() *GraphqlPostUnprocessableEntity

NewGraphqlPostUnprocessableEntity creates a GraphqlPostUnprocessableEntity with default headers values

func (*GraphqlPostUnprocessableEntity) Code added in v1.18.0

Code gets the status code for the graphql post unprocessable entity response

func (*GraphqlPostUnprocessableEntity) Error

func (*GraphqlPostUnprocessableEntity) GetPayload

func (*GraphqlPostUnprocessableEntity) IsClientError added in v1.18.0

func (o *GraphqlPostUnprocessableEntity) IsClientError() bool

IsClientError returns true when this graphql post unprocessable entity response has a 4xx status code

func (*GraphqlPostUnprocessableEntity) IsCode added in v1.18.0

func (o *GraphqlPostUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this graphql post unprocessable entity response a status code equal to that given

func (*GraphqlPostUnprocessableEntity) IsRedirect added in v1.18.0

func (o *GraphqlPostUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this graphql post unprocessable entity response has a 3xx status code

func (*GraphqlPostUnprocessableEntity) IsServerError added in v1.18.0

func (o *GraphqlPostUnprocessableEntity) IsServerError() bool

IsServerError returns true when this graphql post unprocessable entity response has a 5xx status code

func (*GraphqlPostUnprocessableEntity) IsSuccess added in v1.18.0

func (o *GraphqlPostUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this graphql post unprocessable entity response has a 2xx status code

func (*GraphqlPostUnprocessableEntity) String added in v1.18.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL