graphql

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 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) (*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) (*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 ClientService

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

	GraphqlPost(params *GraphqlPostParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case with default header values.

Forbidden

func NewGraphqlBatchForbidden

func NewGraphqlBatchForbidden() *GraphqlBatchForbidden

NewGraphqlBatchForbidden creates a GraphqlBatchForbidden with default headers values

func (*GraphqlBatchForbidden) Error

func (o *GraphqlBatchForbidden) Error() string

func (*GraphqlBatchForbidden) GetPayload

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

type GraphqlBatchInternalServerError

type GraphqlBatchInternalServerError struct {
	Payload *models.ErrorResponse
}

GraphqlBatchInternalServerError handles this case 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) Error

func (*GraphqlBatchInternalServerError) GetPayload

type GraphqlBatchOK

type GraphqlBatchOK struct {
	Payload models.GraphQLResponses
}

GraphqlBatchOK handles this case with default header values.

Successful query (with select).

func NewGraphqlBatchOK

func NewGraphqlBatchOK() *GraphqlBatchOK

NewGraphqlBatchOK creates a GraphqlBatchOK with default headers values

func (*GraphqlBatchOK) Error

func (o *GraphqlBatchOK) Error() string

func (*GraphqlBatchOK) GetPayload

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

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 values initialized.

func NewGraphqlBatchParamsWithContext

func NewGraphqlBatchParamsWithContext(ctx context.Context) *GraphqlBatchParams

NewGraphqlBatchParamsWithContext creates a new GraphqlBatchParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

Unauthorized or invalid credentials.

func NewGraphqlBatchUnauthorized

func NewGraphqlBatchUnauthorized() *GraphqlBatchUnauthorized

NewGraphqlBatchUnauthorized creates a GraphqlBatchUnauthorized with default headers values

func (*GraphqlBatchUnauthorized) Error

func (o *GraphqlBatchUnauthorized) Error() string

type GraphqlBatchUnprocessableEntity

type GraphqlBatchUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

GraphqlBatchUnprocessableEntity handles this case 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) Error

func (*GraphqlBatchUnprocessableEntity) GetPayload

type GraphqlPostForbidden

type GraphqlPostForbidden struct {
	Payload *models.ErrorResponse
}

GraphqlPostForbidden handles this case with default header values.

Forbidden

func NewGraphqlPostForbidden

func NewGraphqlPostForbidden() *GraphqlPostForbidden

NewGraphqlPostForbidden creates a GraphqlPostForbidden with default headers values

func (*GraphqlPostForbidden) Error

func (o *GraphqlPostForbidden) Error() string

func (*GraphqlPostForbidden) GetPayload

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

type GraphqlPostInternalServerError

type GraphqlPostInternalServerError struct {
	Payload *models.ErrorResponse
}

GraphqlPostInternalServerError handles this case 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) Error

func (*GraphqlPostInternalServerError) GetPayload

type GraphqlPostOK

type GraphqlPostOK struct {
	Payload *models.GraphQLResponse
}

GraphqlPostOK handles this case with default header values.

Successful query (with select).

func NewGraphqlPostOK

func NewGraphqlPostOK() *GraphqlPostOK

NewGraphqlPostOK creates a GraphqlPostOK with default headers values

func (*GraphqlPostOK) Error

func (o *GraphqlPostOK) Error() string

func (*GraphqlPostOK) GetPayload

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

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 values initialized.

func NewGraphqlPostParamsWithContext

func NewGraphqlPostParamsWithContext(ctx context.Context) *GraphqlPostParams

NewGraphqlPostParamsWithContext creates a new GraphqlPostParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

Unauthorized or invalid credentials.

func NewGraphqlPostUnauthorized

func NewGraphqlPostUnauthorized() *GraphqlPostUnauthorized

NewGraphqlPostUnauthorized creates a GraphqlPostUnauthorized with default headers values

func (*GraphqlPostUnauthorized) Error

func (o *GraphqlPostUnauthorized) Error() string

type GraphqlPostUnprocessableEntity

type GraphqlPostUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

GraphqlPostUnprocessableEntity handles this case 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) Error

func (*GraphqlPostUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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