query_history

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 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 query history API

func (*Client) CreateQuery

func (a *Client) CreateQuery(params *CreateQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateQueryOK, error)

CreateQuery adds query to query history

Adds new query to query history.

func (*Client) DeleteQuery

func (a *Client) DeleteQuery(params *DeleteQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteQueryOK, error)

DeleteQuery deletes query in query history

Deletes an existing query in query history as specified by the UID. This operation cannot be reverted.

func (*Client) PatchQueryComment

func (a *Client) PatchQueryComment(params *PatchQueryCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchQueryCommentOK, error)

PatchQueryComment updates comment for query in query history

Updates comment for query in query history as specified by the UID.

func (*Client) SearchQueries

func (a *Client) SearchQueries(params *SearchQueriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchQueriesOK, error)
SearchQueries queries history search

Returns a list of queries in the query history that matches the search criteria.

Query history search supports pagination. Use the `limit` parameter to control the maximum number of queries returned; the default limit is 100. You can also use the `page` query parameter to fetch queries from any page other than the first one.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StarQuery

func (a *Client) StarQuery(params *StarQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StarQueryOK, error)

StarQuery adds star to query in query history

Adds star to query in query history as specified by the UID.

func (*Client) UnstarQuery

func (a *Client) UnstarQuery(params *UnstarQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnstarQueryOK, error)

UnstarQuery removes star to query in query history

Removes star from query in query history as specified by the UID.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateQuery(params *CreateQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateQueryOK, error)

	DeleteQuery(params *DeleteQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteQueryOK, error)

	PatchQueryComment(params *PatchQueryCommentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchQueryCommentOK, error)

	SearchQueries(params *SearchQueriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchQueriesOK, error)

	StarQuery(params *StarQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StarQueryOK, error)

	UnstarQuery(params *UnstarQueryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnstarQueryOK, 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 query history API client.

type CreateQueryBadRequest

type CreateQueryBadRequest struct {
	Payload *models.ErrorResponseBody
}

CreateQueryBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewCreateQueryBadRequest

func NewCreateQueryBadRequest() *CreateQueryBadRequest

NewCreateQueryBadRequest creates a CreateQueryBadRequest with default headers values

func (*CreateQueryBadRequest) Error

func (o *CreateQueryBadRequest) Error() string

func (*CreateQueryBadRequest) GetPayload

type CreateQueryInternalServerError

type CreateQueryInternalServerError struct {
	Payload *models.ErrorResponseBody
}

CreateQueryInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewCreateQueryInternalServerError

func NewCreateQueryInternalServerError() *CreateQueryInternalServerError

NewCreateQueryInternalServerError creates a CreateQueryInternalServerError with default headers values

func (*CreateQueryInternalServerError) Error

func (*CreateQueryInternalServerError) GetPayload

type CreateQueryOK

type CreateQueryOK struct {
	Payload *models.QueryHistoryResponse
}

CreateQueryOK describes a response with status code 200, with default header values.

(empty)

func NewCreateQueryOK

func NewCreateQueryOK() *CreateQueryOK

NewCreateQueryOK creates a CreateQueryOK with default headers values

func (*CreateQueryOK) Error

func (o *CreateQueryOK) Error() string

func (*CreateQueryOK) GetPayload

func (o *CreateQueryOK) GetPayload() *models.QueryHistoryResponse

type CreateQueryParams

type CreateQueryParams struct {

	// Body.
	Body *models.CreateQueryInQueryHistoryCommand

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

CreateQueryParams contains all the parameters to send to the API endpoint

for the create query operation.

Typically these are written to a http.Request.

func NewCreateQueryParams

func NewCreateQueryParams() *CreateQueryParams

NewCreateQueryParams creates a new CreateQueryParams 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 NewCreateQueryParamsWithContext

func NewCreateQueryParamsWithContext(ctx context.Context) *CreateQueryParams

NewCreateQueryParamsWithContext creates a new CreateQueryParams object with the ability to set a context for a request.

func NewCreateQueryParamsWithHTTPClient

func NewCreateQueryParamsWithHTTPClient(client *http.Client) *CreateQueryParams

NewCreateQueryParamsWithHTTPClient creates a new CreateQueryParams object with the ability to set a custom HTTPClient for a request.

func NewCreateQueryParamsWithTimeout

func NewCreateQueryParamsWithTimeout(timeout time.Duration) *CreateQueryParams

NewCreateQueryParamsWithTimeout creates a new CreateQueryParams object with the ability to set a timeout on a request.

func (*CreateQueryParams) SetBody

SetBody adds the body to the create query params

func (*CreateQueryParams) SetContext

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

SetContext adds the context to the create query params

func (*CreateQueryParams) SetDefaults

func (o *CreateQueryParams) SetDefaults()

SetDefaults hydrates default values in the create query params (not the query body).

All values with no default are reset to their zero value.

func (*CreateQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create query params

func (*CreateQueryParams) SetTimeout

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

SetTimeout adds the timeout to the create query params

func (*CreateQueryParams) WithBody

WithBody adds the body to the create query params

func (*CreateQueryParams) WithContext

func (o *CreateQueryParams) WithContext(ctx context.Context) *CreateQueryParams

WithContext adds the context to the create query params

func (*CreateQueryParams) WithDefaults

func (o *CreateQueryParams) WithDefaults() *CreateQueryParams

WithDefaults hydrates default values in the create query params (not the query body).

All values with no default are reset to their zero value.

func (*CreateQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create query params

func (*CreateQueryParams) WithTimeout

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

WithTimeout adds the timeout to the create query params

func (*CreateQueryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateQueryReader

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

CreateQueryReader is a Reader for the CreateQuery structure.

func (*CreateQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateQueryUnauthorized

type CreateQueryUnauthorized struct {
	Payload *models.ErrorResponseBody
}

CreateQueryUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewCreateQueryUnauthorized

func NewCreateQueryUnauthorized() *CreateQueryUnauthorized

NewCreateQueryUnauthorized creates a CreateQueryUnauthorized with default headers values

func (*CreateQueryUnauthorized) Error

func (o *CreateQueryUnauthorized) Error() string

func (*CreateQueryUnauthorized) GetPayload

type DeleteQueryInternalServerError

type DeleteQueryInternalServerError struct {
	Payload *models.ErrorResponseBody
}

DeleteQueryInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteQueryInternalServerError

func NewDeleteQueryInternalServerError() *DeleteQueryInternalServerError

NewDeleteQueryInternalServerError creates a DeleteQueryInternalServerError with default headers values

func (*DeleteQueryInternalServerError) Error

func (*DeleteQueryInternalServerError) GetPayload

type DeleteQueryOK

type DeleteQueryOK struct {
	Payload *models.QueryHistoryDeleteQueryResponse
}

DeleteQueryOK describes a response with status code 200, with default header values.

(empty)

func NewDeleteQueryOK

func NewDeleteQueryOK() *DeleteQueryOK

NewDeleteQueryOK creates a DeleteQueryOK with default headers values

func (*DeleteQueryOK) Error

func (o *DeleteQueryOK) Error() string

func (*DeleteQueryOK) GetPayload

type DeleteQueryParams

type DeleteQueryParams struct {

	// QueryHistoryUID.
	QueryHistoryUID string

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

DeleteQueryParams contains all the parameters to send to the API endpoint

for the delete query operation.

Typically these are written to a http.Request.

func NewDeleteQueryParams

func NewDeleteQueryParams() *DeleteQueryParams

NewDeleteQueryParams creates a new DeleteQueryParams 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 NewDeleteQueryParamsWithContext

func NewDeleteQueryParamsWithContext(ctx context.Context) *DeleteQueryParams

NewDeleteQueryParamsWithContext creates a new DeleteQueryParams object with the ability to set a context for a request.

func NewDeleteQueryParamsWithHTTPClient

func NewDeleteQueryParamsWithHTTPClient(client *http.Client) *DeleteQueryParams

NewDeleteQueryParamsWithHTTPClient creates a new DeleteQueryParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteQueryParamsWithTimeout

func NewDeleteQueryParamsWithTimeout(timeout time.Duration) *DeleteQueryParams

NewDeleteQueryParamsWithTimeout creates a new DeleteQueryParams object with the ability to set a timeout on a request.

func (*DeleteQueryParams) SetContext

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

SetContext adds the context to the delete query params

func (*DeleteQueryParams) SetDefaults

func (o *DeleteQueryParams) SetDefaults()

SetDefaults hydrates default values in the delete query params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete query params

func (*DeleteQueryParams) SetQueryHistoryUID

func (o *DeleteQueryParams) SetQueryHistoryUID(queryHistoryUID string)

SetQueryHistoryUID adds the queryHistoryUid to the delete query params

func (*DeleteQueryParams) SetTimeout

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

SetTimeout adds the timeout to the delete query params

func (*DeleteQueryParams) WithContext

func (o *DeleteQueryParams) WithContext(ctx context.Context) *DeleteQueryParams

WithContext adds the context to the delete query params

func (*DeleteQueryParams) WithDefaults

func (o *DeleteQueryParams) WithDefaults() *DeleteQueryParams

WithDefaults hydrates default values in the delete query params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete query params

func (*DeleteQueryParams) WithQueryHistoryUID

func (o *DeleteQueryParams) WithQueryHistoryUID(queryHistoryUID string) *DeleteQueryParams

WithQueryHistoryUID adds the queryHistoryUID to the delete query params

func (*DeleteQueryParams) WithTimeout

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

WithTimeout adds the timeout to the delete query params

func (*DeleteQueryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteQueryReader

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

DeleteQueryReader is a Reader for the DeleteQuery structure.

func (*DeleteQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteQueryUnauthorized

type DeleteQueryUnauthorized struct {
	Payload *models.ErrorResponseBody
}

DeleteQueryUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteQueryUnauthorized

func NewDeleteQueryUnauthorized() *DeleteQueryUnauthorized

NewDeleteQueryUnauthorized creates a DeleteQueryUnauthorized with default headers values

func (*DeleteQueryUnauthorized) Error

func (o *DeleteQueryUnauthorized) Error() string

func (*DeleteQueryUnauthorized) GetPayload

type MigrateQueriesBadRequest

type MigrateQueriesBadRequest struct {
	Payload *models.ErrorResponseBody
}

MigrateQueriesBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewMigrateQueriesBadRequest

func NewMigrateQueriesBadRequest() *MigrateQueriesBadRequest

NewMigrateQueriesBadRequest creates a MigrateQueriesBadRequest with default headers values

func (*MigrateQueriesBadRequest) Error

func (o *MigrateQueriesBadRequest) Error() string

func (*MigrateQueriesBadRequest) GetPayload

type MigrateQueriesInternalServerError

type MigrateQueriesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

MigrateQueriesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewMigrateQueriesInternalServerError

func NewMigrateQueriesInternalServerError() *MigrateQueriesInternalServerError

NewMigrateQueriesInternalServerError creates a MigrateQueriesInternalServerError with default headers values

func (*MigrateQueriesInternalServerError) Error

func (*MigrateQueriesInternalServerError) GetPayload

type MigrateQueriesOK

type MigrateQueriesOK struct {
	Payload *models.QueryHistoryMigrationResponse
}

MigrateQueriesOK describes a response with status code 200, with default header values.

(empty)

func NewMigrateQueriesOK

func NewMigrateQueriesOK() *MigrateQueriesOK

NewMigrateQueriesOK creates a MigrateQueriesOK with default headers values

func (*MigrateQueriesOK) Error

func (o *MigrateQueriesOK) Error() string

func (*MigrateQueriesOK) GetPayload

type MigrateQueriesParams

type MigrateQueriesParams struct {

	// Body.
	Body *models.MigrateQueriesToQueryHistoryCommand

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

MigrateQueriesParams contains all the parameters to send to the API endpoint

for the migrate queries operation.

Typically these are written to a http.Request.

func NewMigrateQueriesParams

func NewMigrateQueriesParams() *MigrateQueriesParams

NewMigrateQueriesParams creates a new MigrateQueriesParams 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 NewMigrateQueriesParamsWithContext

func NewMigrateQueriesParamsWithContext(ctx context.Context) *MigrateQueriesParams

NewMigrateQueriesParamsWithContext creates a new MigrateQueriesParams object with the ability to set a context for a request.

func NewMigrateQueriesParamsWithHTTPClient

func NewMigrateQueriesParamsWithHTTPClient(client *http.Client) *MigrateQueriesParams

NewMigrateQueriesParamsWithHTTPClient creates a new MigrateQueriesParams object with the ability to set a custom HTTPClient for a request.

func NewMigrateQueriesParamsWithTimeout

func NewMigrateQueriesParamsWithTimeout(timeout time.Duration) *MigrateQueriesParams

NewMigrateQueriesParamsWithTimeout creates a new MigrateQueriesParams object with the ability to set a timeout on a request.

func (*MigrateQueriesParams) SetBody

SetBody adds the body to the migrate queries params

func (*MigrateQueriesParams) SetContext

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

SetContext adds the context to the migrate queries params

func (*MigrateQueriesParams) SetDefaults

func (o *MigrateQueriesParams) SetDefaults()

SetDefaults hydrates default values in the migrate queries params (not the query body).

All values with no default are reset to their zero value.

func (*MigrateQueriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the migrate queries params

func (*MigrateQueriesParams) SetTimeout

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

SetTimeout adds the timeout to the migrate queries params

func (*MigrateQueriesParams) WithBody

WithBody adds the body to the migrate queries params

func (*MigrateQueriesParams) WithContext

WithContext adds the context to the migrate queries params

func (*MigrateQueriesParams) WithDefaults

func (o *MigrateQueriesParams) WithDefaults() *MigrateQueriesParams

WithDefaults hydrates default values in the migrate queries params (not the query body).

All values with no default are reset to their zero value.

func (*MigrateQueriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the migrate queries params

func (*MigrateQueriesParams) WithTimeout

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

WithTimeout adds the timeout to the migrate queries params

func (*MigrateQueriesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type MigrateQueriesReader

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

MigrateQueriesReader is a Reader for the MigrateQueries structure.

func (*MigrateQueriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MigrateQueriesUnauthorized

type MigrateQueriesUnauthorized struct {
	Payload *models.ErrorResponseBody
}

MigrateQueriesUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewMigrateQueriesUnauthorized

func NewMigrateQueriesUnauthorized() *MigrateQueriesUnauthorized

NewMigrateQueriesUnauthorized creates a MigrateQueriesUnauthorized with default headers values

func (*MigrateQueriesUnauthorized) Error

func (*MigrateQueriesUnauthorized) GetPayload

type PatchQueryCommentBadRequest

type PatchQueryCommentBadRequest struct {
	Payload *models.ErrorResponseBody
}

PatchQueryCommentBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewPatchQueryCommentBadRequest

func NewPatchQueryCommentBadRequest() *PatchQueryCommentBadRequest

NewPatchQueryCommentBadRequest creates a PatchQueryCommentBadRequest with default headers values

func (*PatchQueryCommentBadRequest) Error

func (*PatchQueryCommentBadRequest) GetPayload

type PatchQueryCommentInternalServerError

type PatchQueryCommentInternalServerError struct {
	Payload *models.ErrorResponseBody
}

PatchQueryCommentInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewPatchQueryCommentInternalServerError

func NewPatchQueryCommentInternalServerError() *PatchQueryCommentInternalServerError

NewPatchQueryCommentInternalServerError creates a PatchQueryCommentInternalServerError with default headers values

func (*PatchQueryCommentInternalServerError) Error

func (*PatchQueryCommentInternalServerError) GetPayload

type PatchQueryCommentOK

type PatchQueryCommentOK struct {
	Payload *models.QueryHistoryResponse
}

PatchQueryCommentOK describes a response with status code 200, with default header values.

(empty)

func NewPatchQueryCommentOK

func NewPatchQueryCommentOK() *PatchQueryCommentOK

NewPatchQueryCommentOK creates a PatchQueryCommentOK with default headers values

func (*PatchQueryCommentOK) Error

func (o *PatchQueryCommentOK) Error() string

func (*PatchQueryCommentOK) GetPayload

type PatchQueryCommentParams

type PatchQueryCommentParams struct {

	// Body.
	Body *models.PatchQueryCommentInQueryHistoryCommand

	// QueryHistoryUID.
	QueryHistoryUID string

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

PatchQueryCommentParams contains all the parameters to send to the API endpoint

for the patch query comment operation.

Typically these are written to a http.Request.

func NewPatchQueryCommentParams

func NewPatchQueryCommentParams() *PatchQueryCommentParams

NewPatchQueryCommentParams creates a new PatchQueryCommentParams 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 NewPatchQueryCommentParamsWithContext

func NewPatchQueryCommentParamsWithContext(ctx context.Context) *PatchQueryCommentParams

NewPatchQueryCommentParamsWithContext creates a new PatchQueryCommentParams object with the ability to set a context for a request.

func NewPatchQueryCommentParamsWithHTTPClient

func NewPatchQueryCommentParamsWithHTTPClient(client *http.Client) *PatchQueryCommentParams

NewPatchQueryCommentParamsWithHTTPClient creates a new PatchQueryCommentParams object with the ability to set a custom HTTPClient for a request.

func NewPatchQueryCommentParamsWithTimeout

func NewPatchQueryCommentParamsWithTimeout(timeout time.Duration) *PatchQueryCommentParams

NewPatchQueryCommentParamsWithTimeout creates a new PatchQueryCommentParams object with the ability to set a timeout on a request.

func (*PatchQueryCommentParams) SetBody

SetBody adds the body to the patch query comment params

func (*PatchQueryCommentParams) SetContext

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

SetContext adds the context to the patch query comment params

func (*PatchQueryCommentParams) SetDefaults

func (o *PatchQueryCommentParams) SetDefaults()

SetDefaults hydrates default values in the patch query comment params (not the query body).

All values with no default are reset to their zero value.

func (*PatchQueryCommentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch query comment params

func (*PatchQueryCommentParams) SetQueryHistoryUID

func (o *PatchQueryCommentParams) SetQueryHistoryUID(queryHistoryUID string)

SetQueryHistoryUID adds the queryHistoryUid to the patch query comment params

func (*PatchQueryCommentParams) SetTimeout

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

SetTimeout adds the timeout to the patch query comment params

func (*PatchQueryCommentParams) WithBody

WithBody adds the body to the patch query comment params

func (*PatchQueryCommentParams) WithContext

WithContext adds the context to the patch query comment params

func (*PatchQueryCommentParams) WithDefaults

WithDefaults hydrates default values in the patch query comment params (not the query body).

All values with no default are reset to their zero value.

func (*PatchQueryCommentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch query comment params

func (*PatchQueryCommentParams) WithQueryHistoryUID

func (o *PatchQueryCommentParams) WithQueryHistoryUID(queryHistoryUID string) *PatchQueryCommentParams

WithQueryHistoryUID adds the queryHistoryUID to the patch query comment params

func (*PatchQueryCommentParams) WithTimeout

WithTimeout adds the timeout to the patch query comment params

func (*PatchQueryCommentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchQueryCommentReader

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

PatchQueryCommentReader is a Reader for the PatchQueryComment structure.

func (*PatchQueryCommentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchQueryCommentUnauthorized

type PatchQueryCommentUnauthorized struct {
	Payload *models.ErrorResponseBody
}

PatchQueryCommentUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewPatchQueryCommentUnauthorized

func NewPatchQueryCommentUnauthorized() *PatchQueryCommentUnauthorized

NewPatchQueryCommentUnauthorized creates a PatchQueryCommentUnauthorized with default headers values

func (*PatchQueryCommentUnauthorized) Error

func (*PatchQueryCommentUnauthorized) GetPayload

type SearchQueriesInternalServerError

type SearchQueriesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SearchQueriesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSearchQueriesInternalServerError

func NewSearchQueriesInternalServerError() *SearchQueriesInternalServerError

NewSearchQueriesInternalServerError creates a SearchQueriesInternalServerError with default headers values

func (*SearchQueriesInternalServerError) Error

func (*SearchQueriesInternalServerError) GetPayload

type SearchQueriesOK

type SearchQueriesOK struct {
	Payload *models.QueryHistorySearchResponse
}

SearchQueriesOK describes a response with status code 200, with default header values.

(empty)

func NewSearchQueriesOK

func NewSearchQueriesOK() *SearchQueriesOK

NewSearchQueriesOK creates a SearchQueriesOK with default headers values

func (*SearchQueriesOK) Error

func (o *SearchQueriesOK) Error() string

func (*SearchQueriesOK) GetPayload

type SearchQueriesParams

type SearchQueriesParams struct {

	/* DatasourceUID.

	   List of data source UIDs to search for
	*/
	DatasourceUID []string

	/* From.

	   From range for the query history search

	   Format: int64
	*/
	From *int64

	/* Limit.

	   Limit the number of returned results

	   Format: int64
	*/
	Limit *int64

	/* OnlyStarred.

	   Flag indicating if only starred queries should be returned
	*/
	OnlyStarred *bool

	/* Page.

	   Use this parameter to access hits beyond limit. Numbering starts at 1. limit param acts as page size.

	   Format: int64
	*/
	Page *int64

	/* SearchString.

	   Text inside query or comments that is searched for
	*/
	SearchString *string

	/* Sort.

	   Sort method

	   Default: "time-desc"
	*/
	Sort *string

	/* To.

	   To range for the query history search

	   Format: int64
	*/
	To *int64

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

SearchQueriesParams contains all the parameters to send to the API endpoint

for the search queries operation.

Typically these are written to a http.Request.

func NewSearchQueriesParams

func NewSearchQueriesParams() *SearchQueriesParams

NewSearchQueriesParams creates a new SearchQueriesParams 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 NewSearchQueriesParamsWithContext

func NewSearchQueriesParamsWithContext(ctx context.Context) *SearchQueriesParams

NewSearchQueriesParamsWithContext creates a new SearchQueriesParams object with the ability to set a context for a request.

func NewSearchQueriesParamsWithHTTPClient

func NewSearchQueriesParamsWithHTTPClient(client *http.Client) *SearchQueriesParams

NewSearchQueriesParamsWithHTTPClient creates a new SearchQueriesParams object with the ability to set a custom HTTPClient for a request.

func NewSearchQueriesParamsWithTimeout

func NewSearchQueriesParamsWithTimeout(timeout time.Duration) *SearchQueriesParams

NewSearchQueriesParamsWithTimeout creates a new SearchQueriesParams object with the ability to set a timeout on a request.

func (*SearchQueriesParams) SetContext

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

SetContext adds the context to the search queries params

func (*SearchQueriesParams) SetDatasourceUID

func (o *SearchQueriesParams) SetDatasourceUID(datasourceUID []string)

SetDatasourceUID adds the datasourceUid to the search queries params

func (*SearchQueriesParams) SetDefaults

func (o *SearchQueriesParams) SetDefaults()

SetDefaults hydrates default values in the search queries params (not the query body).

All values with no default are reset to their zero value.

func (*SearchQueriesParams) SetFrom

func (o *SearchQueriesParams) SetFrom(from *int64)

SetFrom adds the from to the search queries params

func (*SearchQueriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search queries params

func (*SearchQueriesParams) SetLimit

func (o *SearchQueriesParams) SetLimit(limit *int64)

SetLimit adds the limit to the search queries params

func (*SearchQueriesParams) SetOnlyStarred

func (o *SearchQueriesParams) SetOnlyStarred(onlyStarred *bool)

SetOnlyStarred adds the onlyStarred to the search queries params

func (*SearchQueriesParams) SetPage

func (o *SearchQueriesParams) SetPage(page *int64)

SetPage adds the page to the search queries params

func (*SearchQueriesParams) SetSearchString

func (o *SearchQueriesParams) SetSearchString(searchString *string)

SetSearchString adds the searchString to the search queries params

func (*SearchQueriesParams) SetSort

func (o *SearchQueriesParams) SetSort(sort *string)

SetSort adds the sort to the search queries params

func (*SearchQueriesParams) SetTimeout

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

SetTimeout adds the timeout to the search queries params

func (*SearchQueriesParams) SetTo

func (o *SearchQueriesParams) SetTo(to *int64)

SetTo adds the to to the search queries params

func (*SearchQueriesParams) WithContext

WithContext adds the context to the search queries params

func (*SearchQueriesParams) WithDatasourceUID

func (o *SearchQueriesParams) WithDatasourceUID(datasourceUID []string) *SearchQueriesParams

WithDatasourceUID adds the datasourceUID to the search queries params

func (*SearchQueriesParams) WithDefaults

func (o *SearchQueriesParams) WithDefaults() *SearchQueriesParams

WithDefaults hydrates default values in the search queries params (not the query body).

All values with no default are reset to their zero value.

func (*SearchQueriesParams) WithFrom

func (o *SearchQueriesParams) WithFrom(from *int64) *SearchQueriesParams

WithFrom adds the from to the search queries params

func (*SearchQueriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search queries params

func (*SearchQueriesParams) WithLimit

func (o *SearchQueriesParams) WithLimit(limit *int64) *SearchQueriesParams

WithLimit adds the limit to the search queries params

func (*SearchQueriesParams) WithOnlyStarred

func (o *SearchQueriesParams) WithOnlyStarred(onlyStarred *bool) *SearchQueriesParams

WithOnlyStarred adds the onlyStarred to the search queries params

func (*SearchQueriesParams) WithPage

func (o *SearchQueriesParams) WithPage(page *int64) *SearchQueriesParams

WithPage adds the page to the search queries params

func (*SearchQueriesParams) WithSearchString

func (o *SearchQueriesParams) WithSearchString(searchString *string) *SearchQueriesParams

WithSearchString adds the searchString to the search queries params

func (*SearchQueriesParams) WithSort

func (o *SearchQueriesParams) WithSort(sort *string) *SearchQueriesParams

WithSort adds the sort to the search queries params

func (*SearchQueriesParams) WithTimeout

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

WithTimeout adds the timeout to the search queries params

func (*SearchQueriesParams) WithTo

WithTo adds the to to the search queries params

func (*SearchQueriesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchQueriesReader

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

SearchQueriesReader is a Reader for the SearchQueries structure.

func (*SearchQueriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchQueriesUnauthorized

type SearchQueriesUnauthorized struct {
	Payload *models.ErrorResponseBody
}

SearchQueriesUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewSearchQueriesUnauthorized

func NewSearchQueriesUnauthorized() *SearchQueriesUnauthorized

NewSearchQueriesUnauthorized creates a SearchQueriesUnauthorized with default headers values

func (*SearchQueriesUnauthorized) Error

func (o *SearchQueriesUnauthorized) Error() string

func (*SearchQueriesUnauthorized) GetPayload

type StarQueryInternalServerError

type StarQueryInternalServerError struct {
	Payload *models.ErrorResponseBody
}

StarQueryInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewStarQueryInternalServerError

func NewStarQueryInternalServerError() *StarQueryInternalServerError

NewStarQueryInternalServerError creates a StarQueryInternalServerError with default headers values

func (*StarQueryInternalServerError) Error

func (*StarQueryInternalServerError) GetPayload

type StarQueryOK

type StarQueryOK struct {
	Payload *models.QueryHistoryResponse
}

StarQueryOK describes a response with status code 200, with default header values.

(empty)

func NewStarQueryOK

func NewStarQueryOK() *StarQueryOK

NewStarQueryOK creates a StarQueryOK with default headers values

func (*StarQueryOK) Error

func (o *StarQueryOK) Error() string

func (*StarQueryOK) GetPayload

func (o *StarQueryOK) GetPayload() *models.QueryHistoryResponse

type StarQueryParams

type StarQueryParams struct {

	// QueryHistoryUID.
	QueryHistoryUID string

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

StarQueryParams contains all the parameters to send to the API endpoint

for the star query operation.

Typically these are written to a http.Request.

func NewStarQueryParams

func NewStarQueryParams() *StarQueryParams

NewStarQueryParams creates a new StarQueryParams 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 NewStarQueryParamsWithContext

func NewStarQueryParamsWithContext(ctx context.Context) *StarQueryParams

NewStarQueryParamsWithContext creates a new StarQueryParams object with the ability to set a context for a request.

func NewStarQueryParamsWithHTTPClient

func NewStarQueryParamsWithHTTPClient(client *http.Client) *StarQueryParams

NewStarQueryParamsWithHTTPClient creates a new StarQueryParams object with the ability to set a custom HTTPClient for a request.

func NewStarQueryParamsWithTimeout

func NewStarQueryParamsWithTimeout(timeout time.Duration) *StarQueryParams

NewStarQueryParamsWithTimeout creates a new StarQueryParams object with the ability to set a timeout on a request.

func (*StarQueryParams) SetContext

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

SetContext adds the context to the star query params

func (*StarQueryParams) SetDefaults

func (o *StarQueryParams) SetDefaults()

SetDefaults hydrates default values in the star query params (not the query body).

All values with no default are reset to their zero value.

func (*StarQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the star query params

func (*StarQueryParams) SetQueryHistoryUID

func (o *StarQueryParams) SetQueryHistoryUID(queryHistoryUID string)

SetQueryHistoryUID adds the queryHistoryUid to the star query params

func (*StarQueryParams) SetTimeout

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

SetTimeout adds the timeout to the star query params

func (*StarQueryParams) WithContext

func (o *StarQueryParams) WithContext(ctx context.Context) *StarQueryParams

WithContext adds the context to the star query params

func (*StarQueryParams) WithDefaults

func (o *StarQueryParams) WithDefaults() *StarQueryParams

WithDefaults hydrates default values in the star query params (not the query body).

All values with no default are reset to their zero value.

func (*StarQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the star query params

func (*StarQueryParams) WithQueryHistoryUID

func (o *StarQueryParams) WithQueryHistoryUID(queryHistoryUID string) *StarQueryParams

WithQueryHistoryUID adds the queryHistoryUID to the star query params

func (*StarQueryParams) WithTimeout

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

WithTimeout adds the timeout to the star query params

func (*StarQueryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StarQueryReader

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

StarQueryReader is a Reader for the StarQuery structure.

func (*StarQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StarQueryUnauthorized

type StarQueryUnauthorized struct {
	Payload *models.ErrorResponseBody
}

StarQueryUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewStarQueryUnauthorized

func NewStarQueryUnauthorized() *StarQueryUnauthorized

NewStarQueryUnauthorized creates a StarQueryUnauthorized with default headers values

func (*StarQueryUnauthorized) Error

func (o *StarQueryUnauthorized) Error() string

func (*StarQueryUnauthorized) GetPayload

type UnstarQueryInternalServerError

type UnstarQueryInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UnstarQueryInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUnstarQueryInternalServerError

func NewUnstarQueryInternalServerError() *UnstarQueryInternalServerError

NewUnstarQueryInternalServerError creates a UnstarQueryInternalServerError with default headers values

func (*UnstarQueryInternalServerError) Error

func (*UnstarQueryInternalServerError) GetPayload

type UnstarQueryOK

type UnstarQueryOK struct {
	Payload *models.QueryHistoryResponse
}

UnstarQueryOK describes a response with status code 200, with default header values.

(empty)

func NewUnstarQueryOK

func NewUnstarQueryOK() *UnstarQueryOK

NewUnstarQueryOK creates a UnstarQueryOK with default headers values

func (*UnstarQueryOK) Error

func (o *UnstarQueryOK) Error() string

func (*UnstarQueryOK) GetPayload

func (o *UnstarQueryOK) GetPayload() *models.QueryHistoryResponse

type UnstarQueryParams

type UnstarQueryParams struct {

	// QueryHistoryUID.
	QueryHistoryUID string

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

UnstarQueryParams contains all the parameters to send to the API endpoint

for the unstar query operation.

Typically these are written to a http.Request.

func NewUnstarQueryParams

func NewUnstarQueryParams() *UnstarQueryParams

NewUnstarQueryParams creates a new UnstarQueryParams 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 NewUnstarQueryParamsWithContext

func NewUnstarQueryParamsWithContext(ctx context.Context) *UnstarQueryParams

NewUnstarQueryParamsWithContext creates a new UnstarQueryParams object with the ability to set a context for a request.

func NewUnstarQueryParamsWithHTTPClient

func NewUnstarQueryParamsWithHTTPClient(client *http.Client) *UnstarQueryParams

NewUnstarQueryParamsWithHTTPClient creates a new UnstarQueryParams object with the ability to set a custom HTTPClient for a request.

func NewUnstarQueryParamsWithTimeout

func NewUnstarQueryParamsWithTimeout(timeout time.Duration) *UnstarQueryParams

NewUnstarQueryParamsWithTimeout creates a new UnstarQueryParams object with the ability to set a timeout on a request.

func (*UnstarQueryParams) SetContext

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

SetContext adds the context to the unstar query params

func (*UnstarQueryParams) SetDefaults

func (o *UnstarQueryParams) SetDefaults()

SetDefaults hydrates default values in the unstar query params (not the query body).

All values with no default are reset to their zero value.

func (*UnstarQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unstar query params

func (*UnstarQueryParams) SetQueryHistoryUID

func (o *UnstarQueryParams) SetQueryHistoryUID(queryHistoryUID string)

SetQueryHistoryUID adds the queryHistoryUid to the unstar query params

func (*UnstarQueryParams) SetTimeout

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

SetTimeout adds the timeout to the unstar query params

func (*UnstarQueryParams) WithContext

func (o *UnstarQueryParams) WithContext(ctx context.Context) *UnstarQueryParams

WithContext adds the context to the unstar query params

func (*UnstarQueryParams) WithDefaults

func (o *UnstarQueryParams) WithDefaults() *UnstarQueryParams

WithDefaults hydrates default values in the unstar query params (not the query body).

All values with no default are reset to their zero value.

func (*UnstarQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unstar query params

func (*UnstarQueryParams) WithQueryHistoryUID

func (o *UnstarQueryParams) WithQueryHistoryUID(queryHistoryUID string) *UnstarQueryParams

WithQueryHistoryUID adds the queryHistoryUID to the unstar query params

func (*UnstarQueryParams) WithTimeout

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

WithTimeout adds the timeout to the unstar query params

func (*UnstarQueryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnstarQueryReader

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

UnstarQueryReader is a Reader for the UnstarQuery structure.

func (*UnstarQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnstarQueryUnauthorized

type UnstarQueryUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UnstarQueryUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUnstarQueryUnauthorized

func NewUnstarQueryUnauthorized() *UnstarQueryUnauthorized

NewUnstarQueryUnauthorized creates a UnstarQueryUnauthorized with default headers values

func (*UnstarQueryUnauthorized) Error

func (o *UnstarQueryUnauthorized) Error() string

func (*UnstarQueryUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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