Documentation
¶
Index ¶
- type Client
- type CreateSQLQueryBadRequest
- type CreateSQLQueryConflict
- type CreateSQLQueryNotFound
- type CreateSQLQueryOK
- type CreateSQLQueryParams
- func NewCreateSQLQueryParams() *CreateSQLQueryParams
- func NewCreateSQLQueryParamsWithContext(ctx context.Context) *CreateSQLQueryParams
- func NewCreateSQLQueryParamsWithHTTPClient(client *http.Client) *CreateSQLQueryParams
- func NewCreateSQLQueryParamsWithTimeout(timeout time.Duration) *CreateSQLQueryParams
- func (o *CreateSQLQueryParams) SetBody(body *models.SQLQueryCreate)
- func (o *CreateSQLQueryParams) SetContext(ctx context.Context)
- func (o *CreateSQLQueryParams) SetHTTPClient(client *http.Client)
- func (o *CreateSQLQueryParams) SetTimeout(timeout time.Duration)
- func (o *CreateSQLQueryParams) WithBody(body *models.SQLQueryCreate) *CreateSQLQueryParams
- func (o *CreateSQLQueryParams) WithContext(ctx context.Context) *CreateSQLQueryParams
- func (o *CreateSQLQueryParams) WithHTTPClient(client *http.Client) *CreateSQLQueryParams
- func (o *CreateSQLQueryParams) WithTimeout(timeout time.Duration) *CreateSQLQueryParams
- func (o *CreateSQLQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSQLQueryReader
- type CreateSQLQueryUnprocessableEntity
- type SQLQueryBadRequest
- type SQLQueryNotFound
- type SQLQueryOK
- type SQLQueryParams
- func (o *SQLQueryParams) SetContext(ctx context.Context)
- func (o *SQLQueryParams) SetHTTPClient(client *http.Client)
- func (o *SQLQueryParams) SetSlug(slug string)
- func (o *SQLQueryParams) SetTimeout(timeout time.Duration)
- func (o *SQLQueryParams) WithContext(ctx context.Context) *SQLQueryParams
- func (o *SQLQueryParams) WithHTTPClient(client *http.Client) *SQLQueryParams
- func (o *SQLQueryParams) WithSlug(slug string) *SQLQueryParams
- func (o *SQLQueryParams) WithTimeout(timeout time.Duration) *SQLQueryParams
- func (o *SQLQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SQLQueryReader
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 sql query API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new sql query API client.
func (*Client) CreateSQLQuery ¶
func (a *Client) CreateSQLQuery(params *CreateSQLQueryParams) (*CreateSQLQueryOK, error)
CreateSQLQuery creates SQL runner query
Create a SQL Runner query.
func (*Client) SQLQuery ¶
func (a *Client) SQLQuery(params *SQLQueryParams) (*SQLQueryOK, error)
SQLQuery gets SQL runner query
Get a SQL Runner query.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateSQLQueryBadRequest ¶
CreateSQLQueryBadRequest handles this case with default header values.
Bad Request
func NewCreateSQLQueryBadRequest ¶
func NewCreateSQLQueryBadRequest() *CreateSQLQueryBadRequest
NewCreateSQLQueryBadRequest creates a CreateSQLQueryBadRequest with default headers values
func (*CreateSQLQueryBadRequest) Error ¶
func (o *CreateSQLQueryBadRequest) Error() string
type CreateSQLQueryConflict ¶
CreateSQLQueryConflict handles this case with default header values.
Resource Already Exists
func NewCreateSQLQueryConflict ¶
func NewCreateSQLQueryConflict() *CreateSQLQueryConflict
NewCreateSQLQueryConflict creates a CreateSQLQueryConflict with default headers values
func (*CreateSQLQueryConflict) Error ¶
func (o *CreateSQLQueryConflict) Error() string
type CreateSQLQueryNotFound ¶
CreateSQLQueryNotFound handles this case with default header values.
Not Found
func NewCreateSQLQueryNotFound ¶
func NewCreateSQLQueryNotFound() *CreateSQLQueryNotFound
NewCreateSQLQueryNotFound creates a CreateSQLQueryNotFound with default headers values
func (*CreateSQLQueryNotFound) Error ¶
func (o *CreateSQLQueryNotFound) Error() string
type CreateSQLQueryOK ¶
CreateSQLQueryOK handles this case with default header values.
SQL Runner Query
func NewCreateSQLQueryOK ¶
func NewCreateSQLQueryOK() *CreateSQLQueryOK
NewCreateSQLQueryOK creates a CreateSQLQueryOK with default headers values
func (*CreateSQLQueryOK) Error ¶
func (o *CreateSQLQueryOK) Error() string
type CreateSQLQueryParams ¶
type CreateSQLQueryParams struct {
/*Body
SQL Runner Query
*/
Body *models.SQLQueryCreate
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateSQLQueryParams contains all the parameters to send to the API endpoint for the create sql query operation typically these are written to a http.Request
func NewCreateSQLQueryParams ¶
func NewCreateSQLQueryParams() *CreateSQLQueryParams
NewCreateSQLQueryParams creates a new CreateSQLQueryParams object with the default values initialized.
func NewCreateSQLQueryParamsWithContext ¶
func NewCreateSQLQueryParamsWithContext(ctx context.Context) *CreateSQLQueryParams
NewCreateSQLQueryParamsWithContext creates a new CreateSQLQueryParams object with the default values initialized, and the ability to set a context for a request
func NewCreateSQLQueryParamsWithHTTPClient ¶
func NewCreateSQLQueryParamsWithHTTPClient(client *http.Client) *CreateSQLQueryParams
NewCreateSQLQueryParamsWithHTTPClient creates a new CreateSQLQueryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateSQLQueryParamsWithTimeout ¶
func NewCreateSQLQueryParamsWithTimeout(timeout time.Duration) *CreateSQLQueryParams
NewCreateSQLQueryParamsWithTimeout creates a new CreateSQLQueryParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateSQLQueryParams) SetBody ¶
func (o *CreateSQLQueryParams) SetBody(body *models.SQLQueryCreate)
SetBody adds the body to the create sql query params
func (*CreateSQLQueryParams) SetContext ¶
func (o *CreateSQLQueryParams) SetContext(ctx context.Context)
SetContext adds the context to the create sql query params
func (*CreateSQLQueryParams) SetHTTPClient ¶
func (o *CreateSQLQueryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create sql query params
func (*CreateSQLQueryParams) SetTimeout ¶
func (o *CreateSQLQueryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create sql query params
func (*CreateSQLQueryParams) WithBody ¶
func (o *CreateSQLQueryParams) WithBody(body *models.SQLQueryCreate) *CreateSQLQueryParams
WithBody adds the body to the create sql query params
func (*CreateSQLQueryParams) WithContext ¶
func (o *CreateSQLQueryParams) WithContext(ctx context.Context) *CreateSQLQueryParams
WithContext adds the context to the create sql query params
func (*CreateSQLQueryParams) WithHTTPClient ¶
func (o *CreateSQLQueryParams) WithHTTPClient(client *http.Client) *CreateSQLQueryParams
WithHTTPClient adds the HTTPClient to the create sql query params
func (*CreateSQLQueryParams) WithTimeout ¶
func (o *CreateSQLQueryParams) WithTimeout(timeout time.Duration) *CreateSQLQueryParams
WithTimeout adds the timeout to the create sql query params
func (*CreateSQLQueryParams) WriteToRequest ¶
func (o *CreateSQLQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSQLQueryReader ¶
type CreateSQLQueryReader struct {
// contains filtered or unexported fields
}
CreateSQLQueryReader is a Reader for the CreateSQLQuery structure.
func (*CreateSQLQueryReader) ReadResponse ¶
func (o *CreateSQLQueryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateSQLQueryUnprocessableEntity ¶
type CreateSQLQueryUnprocessableEntity struct {
Payload *models.ValidationError
}
CreateSQLQueryUnprocessableEntity handles this case with default header values.
Validation Error
func NewCreateSQLQueryUnprocessableEntity ¶
func NewCreateSQLQueryUnprocessableEntity() *CreateSQLQueryUnprocessableEntity
NewCreateSQLQueryUnprocessableEntity creates a CreateSQLQueryUnprocessableEntity with default headers values
func (*CreateSQLQueryUnprocessableEntity) Error ¶
func (o *CreateSQLQueryUnprocessableEntity) Error() string
type SQLQueryBadRequest ¶
SQLQueryBadRequest handles this case with default header values.
Bad Request
func NewSQLQueryBadRequest ¶
func NewSQLQueryBadRequest() *SQLQueryBadRequest
NewSQLQueryBadRequest creates a SQLQueryBadRequest with default headers values
func (*SQLQueryBadRequest) Error ¶
func (o *SQLQueryBadRequest) Error() string
type SQLQueryNotFound ¶
SQLQueryNotFound handles this case with default header values.
Not Found
func NewSQLQueryNotFound ¶
func NewSQLQueryNotFound() *SQLQueryNotFound
NewSQLQueryNotFound creates a SQLQueryNotFound with default headers values
func (*SQLQueryNotFound) Error ¶
func (o *SQLQueryNotFound) Error() string
type SQLQueryOK ¶
SQLQueryOK handles this case with default header values.
SQL Runner Query
func NewSQLQueryOK ¶
func NewSQLQueryOK() *SQLQueryOK
NewSQLQueryOK creates a SQLQueryOK with default headers values
func (*SQLQueryOK) Error ¶
func (o *SQLQueryOK) Error() string
type SQLQueryParams ¶
type SQLQueryParams struct {
/*Slug
slug of query
*/
Slug string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
SQLQueryParams contains all the parameters to send to the API endpoint for the sql query operation typically these are written to a http.Request
func NewSQLQueryParams ¶
func NewSQLQueryParams() *SQLQueryParams
NewSQLQueryParams creates a new SQLQueryParams object with the default values initialized.
func NewSQLQueryParamsWithContext ¶
func NewSQLQueryParamsWithContext(ctx context.Context) *SQLQueryParams
NewSQLQueryParamsWithContext creates a new SQLQueryParams object with the default values initialized, and the ability to set a context for a request
func NewSQLQueryParamsWithHTTPClient ¶
func NewSQLQueryParamsWithHTTPClient(client *http.Client) *SQLQueryParams
NewSQLQueryParamsWithHTTPClient creates a new SQLQueryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSQLQueryParamsWithTimeout ¶
func NewSQLQueryParamsWithTimeout(timeout time.Duration) *SQLQueryParams
NewSQLQueryParamsWithTimeout creates a new SQLQueryParams object with the default values initialized, and the ability to set a timeout on a request
func (*SQLQueryParams) SetContext ¶
func (o *SQLQueryParams) SetContext(ctx context.Context)
SetContext adds the context to the sql query params
func (*SQLQueryParams) SetHTTPClient ¶
func (o *SQLQueryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the sql query params
func (*SQLQueryParams) SetSlug ¶
func (o *SQLQueryParams) SetSlug(slug string)
SetSlug adds the slug to the sql query params
func (*SQLQueryParams) SetTimeout ¶
func (o *SQLQueryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the sql query params
func (*SQLQueryParams) WithContext ¶
func (o *SQLQueryParams) WithContext(ctx context.Context) *SQLQueryParams
WithContext adds the context to the sql query params
func (*SQLQueryParams) WithHTTPClient ¶
func (o *SQLQueryParams) WithHTTPClient(client *http.Client) *SQLQueryParams
WithHTTPClient adds the HTTPClient to the sql query params
func (*SQLQueryParams) WithSlug ¶
func (o *SQLQueryParams) WithSlug(slug string) *SQLQueryParams
WithSlug adds the slug to the sql query params
func (*SQLQueryParams) WithTimeout ¶
func (o *SQLQueryParams) WithTimeout(timeout time.Duration) *SQLQueryParams
WithTimeout adds the timeout to the sql query params
func (*SQLQueryParams) WriteToRequest ¶
func (o *SQLQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SQLQueryReader ¶
type SQLQueryReader struct {
// contains filtered or unexported fields
}
SQLQueryReader is a Reader for the SQLQuery structure.
func (*SQLQueryReader) ReadResponse ¶
func (o *SQLQueryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.