graphql

package
v0.0.0-...-0b50d9d Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 11 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) GraphqlCreate

func (a *Client) GraphqlCreate(params *GraphqlCreateParams, authInfo runtime.ClientAuthInfoWriter) (*GraphqlCreateOK, error)

GraphqlCreate Query the database using a GraphQL query

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GraphqlCreate(params *GraphqlCreateParams, authInfo runtime.ClientAuthInfoWriter) (*GraphqlCreateOK, 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 GraphqlCreateBadRequest

type GraphqlCreateBadRequest struct {
	Payload *GraphqlCreateBadRequestBody
}

GraphqlCreateBadRequest handles this case with default header values.

GraphqlCreateBadRequest graphql create bad request

func NewGraphqlCreateBadRequest

func NewGraphqlCreateBadRequest() *GraphqlCreateBadRequest

NewGraphqlCreateBadRequest creates a GraphqlCreateBadRequest with default headers values

func (*GraphqlCreateBadRequest) Error

func (o *GraphqlCreateBadRequest) Error() string

func (*GraphqlCreateBadRequest) GetPayload

type GraphqlCreateBadRequestBody

type GraphqlCreateBadRequestBody struct {

	// errors
	Errors []interface{} `json:"errors"`
}

GraphqlCreateBadRequestBody graphql create bad request body swagger:model GraphqlCreateBadRequestBody

func (*GraphqlCreateBadRequestBody) MarshalBinary

func (o *GraphqlCreateBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GraphqlCreateBadRequestBody) UnmarshalBinary

func (o *GraphqlCreateBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GraphqlCreateBadRequestBody) Validate

func (o *GraphqlCreateBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this graphql create bad request body

type GraphqlCreateDefault

type GraphqlCreateDefault struct {
	Payload interface{}
	// contains filtered or unexported fields
}

GraphqlCreateDefault handles this case with default header values.

GraphqlCreateDefault graphql create default

func NewGraphqlCreateDefault

func NewGraphqlCreateDefault(code int) *GraphqlCreateDefault

NewGraphqlCreateDefault creates a GraphqlCreateDefault with default headers values

func (*GraphqlCreateDefault) Code

func (o *GraphqlCreateDefault) Code() int

Code gets the status code for the graphql create default response

func (*GraphqlCreateDefault) Error

func (o *GraphqlCreateDefault) Error() string

func (*GraphqlCreateDefault) GetPayload

func (o *GraphqlCreateDefault) GetPayload() interface{}

type GraphqlCreateOK

type GraphqlCreateOK struct {
	Payload *GraphqlCreateOKBody
}

GraphqlCreateOK handles this case with default header values.

GraphqlCreateOK graphql create o k

func NewGraphqlCreateOK

func NewGraphqlCreateOK() *GraphqlCreateOK

NewGraphqlCreateOK creates a GraphqlCreateOK with default headers values

func (*GraphqlCreateOK) Error

func (o *GraphqlCreateOK) Error() string

func (*GraphqlCreateOK) GetPayload

func (o *GraphqlCreateOK) GetPayload() *GraphqlCreateOKBody

type GraphqlCreateOKBody

type GraphqlCreateOKBody struct {

	// data
	Data interface{} `json:"data,omitempty"`
}

GraphqlCreateOKBody graphql create o k body swagger:model GraphqlCreateOKBody

func (*GraphqlCreateOKBody) MarshalBinary

func (o *GraphqlCreateOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GraphqlCreateOKBody) UnmarshalBinary

func (o *GraphqlCreateOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GraphqlCreateOKBody) Validate

func (o *GraphqlCreateOKBody) Validate(formats strfmt.Registry) error

Validate validates this graphql create o k body

type GraphqlCreateParams

type GraphqlCreateParams struct {

	/*Data*/
	Data *models.GraphQLAPI

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

GraphqlCreateParams contains all the parameters to send to the API endpoint for the graphql create operation typically these are written to a http.Request

func NewGraphqlCreateParams

func NewGraphqlCreateParams() *GraphqlCreateParams

NewGraphqlCreateParams creates a new GraphqlCreateParams object with the default values initialized.

func NewGraphqlCreateParamsWithContext

func NewGraphqlCreateParamsWithContext(ctx context.Context) *GraphqlCreateParams

NewGraphqlCreateParamsWithContext creates a new GraphqlCreateParams object with the default values initialized, and the ability to set a context for a request

func NewGraphqlCreateParamsWithHTTPClient

func NewGraphqlCreateParamsWithHTTPClient(client *http.Client) *GraphqlCreateParams

NewGraphqlCreateParamsWithHTTPClient creates a new GraphqlCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGraphqlCreateParamsWithTimeout

func NewGraphqlCreateParamsWithTimeout(timeout time.Duration) *GraphqlCreateParams

NewGraphqlCreateParamsWithTimeout creates a new GraphqlCreateParams object with the default values initialized, and the ability to set a timeout on a request

func (*GraphqlCreateParams) SetContext

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

SetContext adds the context to the graphql create params

func (*GraphqlCreateParams) SetData

func (o *GraphqlCreateParams) SetData(data *models.GraphQLAPI)

SetData adds the data to the graphql create params

func (*GraphqlCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the graphql create params

func (*GraphqlCreateParams) SetTimeout

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

SetTimeout adds the timeout to the graphql create params

func (*GraphqlCreateParams) WithContext

WithContext adds the context to the graphql create params

func (*GraphqlCreateParams) WithData

WithData adds the data to the graphql create params

func (*GraphqlCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the graphql create params

func (*GraphqlCreateParams) WithTimeout

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

WithTimeout adds the timeout to the graphql create params

func (*GraphqlCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GraphqlCreateReader

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

GraphqlCreateReader is a Reader for the GraphqlCreate structure.

func (*GraphqlCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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