sql_query

package
v0.0.0-...-162d0cd Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT 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 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

type CreateSQLQueryBadRequest struct {
	Payload *models.Error
}

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

type CreateSQLQueryConflict struct {
	Payload *models.Error
}

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

type CreateSQLQueryNotFound struct {
	Payload *models.Error
}

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

type CreateSQLQueryOK struct {
	Payload *models.SQLQuery
}

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

WithBody adds the body to the create sql query params

func (*CreateSQLQueryParams) WithContext

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

type SQLQueryBadRequest

type SQLQueryBadRequest struct {
	Payload *models.Error
}

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

type SQLQueryNotFound struct {
	Payload *models.Error
}

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

type SQLQueryOK struct {
	Payload *models.SQLQuery
}

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.

Jump to

Keyboard shortcuts

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