Documentation
¶
Index ¶
- type Client
- func (a *Client) GraphqlBatch(params *GraphqlBatchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GraphqlBatchOK, error)
- func (a *Client) GraphqlPost(params *GraphqlPostParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GraphqlPostOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GraphqlBatchForbidden
- func (o *GraphqlBatchForbidden) Code() int
- func (o *GraphqlBatchForbidden) Error() string
- func (o *GraphqlBatchForbidden) GetPayload() *models.ErrorResponse
- func (o *GraphqlBatchForbidden) IsClientError() bool
- func (o *GraphqlBatchForbidden) IsCode(code int) bool
- func (o *GraphqlBatchForbidden) IsRedirect() bool
- func (o *GraphqlBatchForbidden) IsServerError() bool
- func (o *GraphqlBatchForbidden) IsSuccess() bool
- func (o *GraphqlBatchForbidden) String() string
- type GraphqlBatchInternalServerError
- func (o *GraphqlBatchInternalServerError) Code() int
- func (o *GraphqlBatchInternalServerError) Error() string
- func (o *GraphqlBatchInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GraphqlBatchInternalServerError) IsClientError() bool
- func (o *GraphqlBatchInternalServerError) IsCode(code int) bool
- func (o *GraphqlBatchInternalServerError) IsRedirect() bool
- func (o *GraphqlBatchInternalServerError) IsServerError() bool
- func (o *GraphqlBatchInternalServerError) IsSuccess() bool
- func (o *GraphqlBatchInternalServerError) String() string
- type GraphqlBatchOK
- func (o *GraphqlBatchOK) Code() int
- func (o *GraphqlBatchOK) Error() string
- func (o *GraphqlBatchOK) GetPayload() models.GraphQLResponses
- func (o *GraphqlBatchOK) IsClientError() bool
- func (o *GraphqlBatchOK) IsCode(code int) bool
- func (o *GraphqlBatchOK) IsRedirect() bool
- func (o *GraphqlBatchOK) IsServerError() bool
- func (o *GraphqlBatchOK) IsSuccess() bool
- func (o *GraphqlBatchOK) String() string
- type GraphqlBatchParams
- func (o *GraphqlBatchParams) SetBody(body models.GraphQLQueries)
- func (o *GraphqlBatchParams) SetContext(ctx context.Context)
- func (o *GraphqlBatchParams) SetDefaults()
- func (o *GraphqlBatchParams) SetHTTPClient(client *http.Client)
- func (o *GraphqlBatchParams) SetTimeout(timeout time.Duration)
- func (o *GraphqlBatchParams) WithBody(body models.GraphQLQueries) *GraphqlBatchParams
- func (o *GraphqlBatchParams) WithContext(ctx context.Context) *GraphqlBatchParams
- func (o *GraphqlBatchParams) WithDefaults() *GraphqlBatchParams
- func (o *GraphqlBatchParams) WithHTTPClient(client *http.Client) *GraphqlBatchParams
- func (o *GraphqlBatchParams) WithTimeout(timeout time.Duration) *GraphqlBatchParams
- func (o *GraphqlBatchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GraphqlBatchReader
- type GraphqlBatchUnauthorized
- func (o *GraphqlBatchUnauthorized) Code() int
- func (o *GraphqlBatchUnauthorized) Error() string
- func (o *GraphqlBatchUnauthorized) IsClientError() bool
- func (o *GraphqlBatchUnauthorized) IsCode(code int) bool
- func (o *GraphqlBatchUnauthorized) IsRedirect() bool
- func (o *GraphqlBatchUnauthorized) IsServerError() bool
- func (o *GraphqlBatchUnauthorized) IsSuccess() bool
- func (o *GraphqlBatchUnauthorized) String() string
- type GraphqlBatchUnprocessableEntity
- func (o *GraphqlBatchUnprocessableEntity) Code() int
- func (o *GraphqlBatchUnprocessableEntity) Error() string
- func (o *GraphqlBatchUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *GraphqlBatchUnprocessableEntity) IsClientError() bool
- func (o *GraphqlBatchUnprocessableEntity) IsCode(code int) bool
- func (o *GraphqlBatchUnprocessableEntity) IsRedirect() bool
- func (o *GraphqlBatchUnprocessableEntity) IsServerError() bool
- func (o *GraphqlBatchUnprocessableEntity) IsSuccess() bool
- func (o *GraphqlBatchUnprocessableEntity) String() string
- type GraphqlPostForbidden
- func (o *GraphqlPostForbidden) Code() int
- func (o *GraphqlPostForbidden) Error() string
- func (o *GraphqlPostForbidden) GetPayload() *models.ErrorResponse
- func (o *GraphqlPostForbidden) IsClientError() bool
- func (o *GraphqlPostForbidden) IsCode(code int) bool
- func (o *GraphqlPostForbidden) IsRedirect() bool
- func (o *GraphqlPostForbidden) IsServerError() bool
- func (o *GraphqlPostForbidden) IsSuccess() bool
- func (o *GraphqlPostForbidden) String() string
- type GraphqlPostInternalServerError
- func (o *GraphqlPostInternalServerError) Code() int
- func (o *GraphqlPostInternalServerError) Error() string
- func (o *GraphqlPostInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GraphqlPostInternalServerError) IsClientError() bool
- func (o *GraphqlPostInternalServerError) IsCode(code int) bool
- func (o *GraphqlPostInternalServerError) IsRedirect() bool
- func (o *GraphqlPostInternalServerError) IsServerError() bool
- func (o *GraphqlPostInternalServerError) IsSuccess() bool
- func (o *GraphqlPostInternalServerError) String() string
- type GraphqlPostOK
- func (o *GraphqlPostOK) Code() int
- func (o *GraphqlPostOK) Error() string
- func (o *GraphqlPostOK) GetPayload() *models.GraphQLResponse
- func (o *GraphqlPostOK) IsClientError() bool
- func (o *GraphqlPostOK) IsCode(code int) bool
- func (o *GraphqlPostOK) IsRedirect() bool
- func (o *GraphqlPostOK) IsServerError() bool
- func (o *GraphqlPostOK) IsSuccess() bool
- func (o *GraphqlPostOK) String() string
- type GraphqlPostParams
- func (o *GraphqlPostParams) SetBody(body *models.GraphQLQuery)
- func (o *GraphqlPostParams) SetContext(ctx context.Context)
- func (o *GraphqlPostParams) SetDefaults()
- func (o *GraphqlPostParams) SetHTTPClient(client *http.Client)
- func (o *GraphqlPostParams) SetTimeout(timeout time.Duration)
- func (o *GraphqlPostParams) WithBody(body *models.GraphQLQuery) *GraphqlPostParams
- func (o *GraphqlPostParams) WithContext(ctx context.Context) *GraphqlPostParams
- func (o *GraphqlPostParams) WithDefaults() *GraphqlPostParams
- func (o *GraphqlPostParams) WithHTTPClient(client *http.Client) *GraphqlPostParams
- func (o *GraphqlPostParams) WithTimeout(timeout time.Duration) *GraphqlPostParams
- func (o *GraphqlPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GraphqlPostReader
- type GraphqlPostUnauthorized
- func (o *GraphqlPostUnauthorized) Code() int
- func (o *GraphqlPostUnauthorized) Error() string
- func (o *GraphqlPostUnauthorized) IsClientError() bool
- func (o *GraphqlPostUnauthorized) IsCode(code int) bool
- func (o *GraphqlPostUnauthorized) IsRedirect() bool
- func (o *GraphqlPostUnauthorized) IsServerError() bool
- func (o *GraphqlPostUnauthorized) IsSuccess() bool
- func (o *GraphqlPostUnauthorized) String() string
- type GraphqlPostUnprocessableEntity
- func (o *GraphqlPostUnprocessableEntity) Code() int
- func (o *GraphqlPostUnprocessableEntity) Error() string
- func (o *GraphqlPostUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *GraphqlPostUnprocessableEntity) IsClientError() bool
- func (o *GraphqlPostUnprocessableEntity) IsCode(code int) bool
- func (o *GraphqlPostUnprocessableEntity) IsRedirect() bool
- func (o *GraphqlPostUnprocessableEntity) IsServerError() bool
- func (o *GraphqlPostUnprocessableEntity) IsSuccess() bool
- func (o *GraphqlPostUnprocessableEntity) String() string
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 performs batched graph q l queries
Executes multiple GraphQL queries provided in the request body as an array. Allows performing several queries in a single network request for efficiency.
func (*Client) GraphqlPost ¶
func (a *Client) GraphqlPost(params *GraphqlPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GraphqlPostOK, error)
GraphqlPost performs a graph q l query
Executes a single GraphQL query provided in the request body. Use this endpoint for all Weaviate data queries and exploration.
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 internal server error occurred during batch query execution. Check the ErrorResponse for details.
func NewGraphqlBatchInternalServerError ¶
func NewGraphqlBatchInternalServerError() *GraphqlBatchInternalServerError
NewGraphqlBatchInternalServerError creates a GraphqlBatchInternalServerError with default headers values
func (*GraphqlBatchInternalServerError) Code ¶ added in v1.18.0
func (o *GraphqlBatchInternalServerError) Code() int
Code gets the status code for the graphql batch internal server error response
func (*GraphqlBatchInternalServerError) Error ¶
func (o *GraphqlBatchInternalServerError) Error() string
func (*GraphqlBatchInternalServerError) GetPayload ¶
func (o *GraphqlBatchInternalServerError) GetPayload() *models.ErrorResponse
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
func (o *GraphqlBatchInternalServerError) String() string
type GraphqlBatchOK ¶
type GraphqlBatchOK struct {
Payload models.GraphQLResponses
}
GraphqlBatchOK describes a response with status code 200, with default header values.
Batch request processed successfully. The response body contains an array of results corresponding to the input queries.
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.
An array containing multiple GraphQL query objects to execute in batch.
*/
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 ¶
func (o *GraphqlBatchParams) WithBody(body models.GraphQLQueries) *GraphqlBatchParams
WithBody adds the body to the graphql batch params
func (*GraphqlBatchParams) WithContext ¶
func (o *GraphqlBatchParams) WithContext(ctx context.Context) *GraphqlBatchParams
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.
The request syntax is correct, but the server couldn't process it due to semantic issues. Please check the values in your request.
func NewGraphqlBatchUnprocessableEntity ¶
func NewGraphqlBatchUnprocessableEntity() *GraphqlBatchUnprocessableEntity
NewGraphqlBatchUnprocessableEntity creates a GraphqlBatchUnprocessableEntity with default headers values
func (*GraphqlBatchUnprocessableEntity) Code ¶ added in v1.18.0
func (o *GraphqlBatchUnprocessableEntity) Code() int
Code gets the status code for the graphql batch unprocessable entity response
func (*GraphqlBatchUnprocessableEntity) Error ¶
func (o *GraphqlBatchUnprocessableEntity) Error() string
func (*GraphqlBatchUnprocessableEntity) GetPayload ¶
func (o *GraphqlBatchUnprocessableEntity) GetPayload() *models.ErrorResponse
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
func (o *GraphqlBatchUnprocessableEntity) String() string
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 internal server error occurred during query execution. Check the ErrorResponse for details.
func NewGraphqlPostInternalServerError ¶
func NewGraphqlPostInternalServerError() *GraphqlPostInternalServerError
NewGraphqlPostInternalServerError creates a GraphqlPostInternalServerError with default headers values
func (*GraphqlPostInternalServerError) Code ¶ added in v1.18.0
func (o *GraphqlPostInternalServerError) Code() int
Code gets the status code for the graphql post internal server error response
func (*GraphqlPostInternalServerError) Error ¶
func (o *GraphqlPostInternalServerError) Error() string
func (*GraphqlPostInternalServerError) GetPayload ¶
func (o *GraphqlPostInternalServerError) GetPayload() *models.ErrorResponse
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
func (o *GraphqlPostInternalServerError) String() string
type GraphqlPostOK ¶
type GraphqlPostOK struct {
Payload *models.GraphQLResponse
}
GraphqlPostOK describes a response with status code 200, with default header values.
Query executed successfully. The response body contains the query result.
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 to execute, including the query string and optional variables.
*/
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 ¶
func (o *GraphqlPostParams) WithBody(body *models.GraphQLQuery) *GraphqlPostParams
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.
The request syntax is correct, but the server couldn't process it due to semantic issues. Please check the values in your request.
func NewGraphqlPostUnprocessableEntity ¶
func NewGraphqlPostUnprocessableEntity() *GraphqlPostUnprocessableEntity
NewGraphqlPostUnprocessableEntity creates a GraphqlPostUnprocessableEntity with default headers values
func (*GraphqlPostUnprocessableEntity) Code ¶ added in v1.18.0
func (o *GraphqlPostUnprocessableEntity) Code() int
Code gets the status code for the graphql post unprocessable entity response
func (*GraphqlPostUnprocessableEntity) Error ¶
func (o *GraphqlPostUnprocessableEntity) Error() string
func (*GraphqlPostUnprocessableEntity) GetPayload ¶
func (o *GraphqlPostUnprocessableEntity) GetPayload() *models.ErrorResponse
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
func (o *GraphqlPostUnprocessableEntity) String() string