snapshots

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 snapshots API

func (*Client) CreateDashboardSnapshot

func (a *Client) CreateDashboardSnapshot(params *CreateDashboardSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDashboardSnapshotOK, error)

CreateDashboardSnapshot whens creating a snapshot using the API you have to provide the full dashboard payload including the snapshot data this endpoint is designed for the grafana UI

Snapshot public mode should be enabled or authentication is required.

func (*Client) DeleteDashboardSnapshot

func (a *Client) DeleteDashboardSnapshot(params *DeleteDashboardSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDashboardSnapshotOK, error)

DeleteDashboardSnapshot deletes snapshot by key

func (*Client) DeleteDashboardSnapshotByDeleteKey

func (a *Client) DeleteDashboardSnapshotByDeleteKey(params *DeleteDashboardSnapshotByDeleteKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDashboardSnapshotByDeleteKeyOK, error)

DeleteDashboardSnapshotByDeleteKey deletes snapshot by delete key

Snapshot public mode should be enabled or authentication is required.

func (*Client) GetDashboardSnapshot

func (a *Client) GetDashboardSnapshot(params *GetDashboardSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDashboardSnapshotOK, error)

GetDashboardSnapshot gets snapshot by key

func (*Client) GetSharingOptions

func (a *Client) GetSharingOptions(params *GetSharingOptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSharingOptionsOK, error)

GetSharingOptions gets snapshot sharing settings

func (*Client) SearchDashboardSnapshots

func (a *Client) SearchDashboardSnapshots(params *SearchDashboardSnapshotsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchDashboardSnapshotsOK, error)

SearchDashboardSnapshots lists snapshots

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDashboardSnapshot(params *CreateDashboardSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDashboardSnapshotOK, error)

	DeleteDashboardSnapshot(params *DeleteDashboardSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDashboardSnapshotOK, error)

	DeleteDashboardSnapshotByDeleteKey(params *DeleteDashboardSnapshotByDeleteKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDashboardSnapshotByDeleteKeyOK, error)

	GetDashboardSnapshot(params *GetDashboardSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDashboardSnapshotOK, error)

	GetSharingOptions(params *GetSharingOptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSharingOptionsOK, error)

	SearchDashboardSnapshots(params *SearchDashboardSnapshotsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchDashboardSnapshotsOK, 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 snapshots API client.

type CreateDashboardSnapshotForbidden

type CreateDashboardSnapshotForbidden struct {
	Payload *models.ErrorResponseBody
}

CreateDashboardSnapshotForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewCreateDashboardSnapshotForbidden

func NewCreateDashboardSnapshotForbidden() *CreateDashboardSnapshotForbidden

NewCreateDashboardSnapshotForbidden creates a CreateDashboardSnapshotForbidden with default headers values

func (*CreateDashboardSnapshotForbidden) Error

func (*CreateDashboardSnapshotForbidden) GetPayload

type CreateDashboardSnapshotInternalServerError

type CreateDashboardSnapshotInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewCreateDashboardSnapshotInternalServerError

func NewCreateDashboardSnapshotInternalServerError() *CreateDashboardSnapshotInternalServerError

NewCreateDashboardSnapshotInternalServerError creates a CreateDashboardSnapshotInternalServerError with default headers values

func (*CreateDashboardSnapshotInternalServerError) Error

func (*CreateDashboardSnapshotInternalServerError) GetPayload

type CreateDashboardSnapshotOK

type CreateDashboardSnapshotOK struct {
	Payload *models.CreateDashboardSnapshotOKBody
}

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

(empty)

func NewCreateDashboardSnapshotOK

func NewCreateDashboardSnapshotOK() *CreateDashboardSnapshotOK

NewCreateDashboardSnapshotOK creates a CreateDashboardSnapshotOK with default headers values

func (*CreateDashboardSnapshotOK) Error

func (o *CreateDashboardSnapshotOK) Error() string

func (*CreateDashboardSnapshotOK) GetPayload

type CreateDashboardSnapshotParams

type CreateDashboardSnapshotParams struct {

	// Body.
	Body *models.CreateDashboardSnapshotCommand

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

CreateDashboardSnapshotParams contains all the parameters to send to the API endpoint

for the create dashboard snapshot operation.

Typically these are written to a http.Request.

func NewCreateDashboardSnapshotParams

func NewCreateDashboardSnapshotParams() *CreateDashboardSnapshotParams

NewCreateDashboardSnapshotParams creates a new CreateDashboardSnapshotParams 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 NewCreateDashboardSnapshotParamsWithContext

func NewCreateDashboardSnapshotParamsWithContext(ctx context.Context) *CreateDashboardSnapshotParams

NewCreateDashboardSnapshotParamsWithContext creates a new CreateDashboardSnapshotParams object with the ability to set a context for a request.

func NewCreateDashboardSnapshotParamsWithHTTPClient

func NewCreateDashboardSnapshotParamsWithHTTPClient(client *http.Client) *CreateDashboardSnapshotParams

NewCreateDashboardSnapshotParamsWithHTTPClient creates a new CreateDashboardSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDashboardSnapshotParamsWithTimeout

func NewCreateDashboardSnapshotParamsWithTimeout(timeout time.Duration) *CreateDashboardSnapshotParams

NewCreateDashboardSnapshotParamsWithTimeout creates a new CreateDashboardSnapshotParams object with the ability to set a timeout on a request.

func (*CreateDashboardSnapshotParams) SetBody

SetBody adds the body to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) SetContext

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

SetContext adds the context to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) SetDefaults

func (o *CreateDashboardSnapshotParams) SetDefaults()

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

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

func (*CreateDashboardSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) WithBody

WithBody adds the body to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) WithContext

WithContext adds the context to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) WithDefaults

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

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

func (*CreateDashboardSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) WithTimeout

WithTimeout adds the timeout to the create dashboard snapshot params

func (*CreateDashboardSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDashboardSnapshotReader

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

CreateDashboardSnapshotReader is a Reader for the CreateDashboardSnapshot structure.

func (*CreateDashboardSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDashboardSnapshotUnauthorized

type CreateDashboardSnapshotUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewCreateDashboardSnapshotUnauthorized

func NewCreateDashboardSnapshotUnauthorized() *CreateDashboardSnapshotUnauthorized

NewCreateDashboardSnapshotUnauthorized creates a CreateDashboardSnapshotUnauthorized with default headers values

func (*CreateDashboardSnapshotUnauthorized) Error

func (*CreateDashboardSnapshotUnauthorized) GetPayload

type DeleteDashboardSnapshotByDeleteKeyForbidden

type DeleteDashboardSnapshotByDeleteKeyForbidden struct {
	Payload *models.ErrorResponseBody
}

DeleteDashboardSnapshotByDeleteKeyForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewDeleteDashboardSnapshotByDeleteKeyForbidden

func NewDeleteDashboardSnapshotByDeleteKeyForbidden() *DeleteDashboardSnapshotByDeleteKeyForbidden

NewDeleteDashboardSnapshotByDeleteKeyForbidden creates a DeleteDashboardSnapshotByDeleteKeyForbidden with default headers values

func (*DeleteDashboardSnapshotByDeleteKeyForbidden) Error

func (*DeleteDashboardSnapshotByDeleteKeyForbidden) GetPayload

type DeleteDashboardSnapshotByDeleteKeyInternalServerError

type DeleteDashboardSnapshotByDeleteKeyInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteDashboardSnapshotByDeleteKeyInternalServerError

func NewDeleteDashboardSnapshotByDeleteKeyInternalServerError() *DeleteDashboardSnapshotByDeleteKeyInternalServerError

NewDeleteDashboardSnapshotByDeleteKeyInternalServerError creates a DeleteDashboardSnapshotByDeleteKeyInternalServerError with default headers values

func (*DeleteDashboardSnapshotByDeleteKeyInternalServerError) Error

func (*DeleteDashboardSnapshotByDeleteKeyInternalServerError) GetPayload

type DeleteDashboardSnapshotByDeleteKeyNotFound

type DeleteDashboardSnapshotByDeleteKeyNotFound struct {
	Payload *models.ErrorResponseBody
}

DeleteDashboardSnapshotByDeleteKeyNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewDeleteDashboardSnapshotByDeleteKeyNotFound

func NewDeleteDashboardSnapshotByDeleteKeyNotFound() *DeleteDashboardSnapshotByDeleteKeyNotFound

NewDeleteDashboardSnapshotByDeleteKeyNotFound creates a DeleteDashboardSnapshotByDeleteKeyNotFound with default headers values

func (*DeleteDashboardSnapshotByDeleteKeyNotFound) Error

func (*DeleteDashboardSnapshotByDeleteKeyNotFound) GetPayload

type DeleteDashboardSnapshotByDeleteKeyOK

type DeleteDashboardSnapshotByDeleteKeyOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewDeleteDashboardSnapshotByDeleteKeyOK

func NewDeleteDashboardSnapshotByDeleteKeyOK() *DeleteDashboardSnapshotByDeleteKeyOK

NewDeleteDashboardSnapshotByDeleteKeyOK creates a DeleteDashboardSnapshotByDeleteKeyOK with default headers values

func (*DeleteDashboardSnapshotByDeleteKeyOK) Error

func (*DeleteDashboardSnapshotByDeleteKeyOK) GetPayload

type DeleteDashboardSnapshotByDeleteKeyParams

type DeleteDashboardSnapshotByDeleteKeyParams struct {

	// DeleteKey.
	DeleteKey string

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

DeleteDashboardSnapshotByDeleteKeyParams contains all the parameters to send to the API endpoint

for the delete dashboard snapshot by delete key operation.

Typically these are written to a http.Request.

func NewDeleteDashboardSnapshotByDeleteKeyParams

func NewDeleteDashboardSnapshotByDeleteKeyParams() *DeleteDashboardSnapshotByDeleteKeyParams

NewDeleteDashboardSnapshotByDeleteKeyParams creates a new DeleteDashboardSnapshotByDeleteKeyParams 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 NewDeleteDashboardSnapshotByDeleteKeyParamsWithContext

func NewDeleteDashboardSnapshotByDeleteKeyParamsWithContext(ctx context.Context) *DeleteDashboardSnapshotByDeleteKeyParams

NewDeleteDashboardSnapshotByDeleteKeyParamsWithContext creates a new DeleteDashboardSnapshotByDeleteKeyParams object with the ability to set a context for a request.

func NewDeleteDashboardSnapshotByDeleteKeyParamsWithHTTPClient

func NewDeleteDashboardSnapshotByDeleteKeyParamsWithHTTPClient(client *http.Client) *DeleteDashboardSnapshotByDeleteKeyParams

NewDeleteDashboardSnapshotByDeleteKeyParamsWithHTTPClient creates a new DeleteDashboardSnapshotByDeleteKeyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDashboardSnapshotByDeleteKeyParamsWithTimeout

func NewDeleteDashboardSnapshotByDeleteKeyParamsWithTimeout(timeout time.Duration) *DeleteDashboardSnapshotByDeleteKeyParams

NewDeleteDashboardSnapshotByDeleteKeyParamsWithTimeout creates a new DeleteDashboardSnapshotByDeleteKeyParams object with the ability to set a timeout on a request.

func (*DeleteDashboardSnapshotByDeleteKeyParams) SetContext

SetContext adds the context to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) SetDefaults

SetDefaults hydrates default values in the delete dashboard snapshot by delete key params (not the query body).

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

func (*DeleteDashboardSnapshotByDeleteKeyParams) SetDeleteKey

func (o *DeleteDashboardSnapshotByDeleteKeyParams) SetDeleteKey(deleteKey string)

SetDeleteKey adds the deleteKey to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) SetTimeout

SetTimeout adds the timeout to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) WithContext

WithContext adds the context to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) WithDefaults

WithDefaults hydrates default values in the delete dashboard snapshot by delete key params (not the query body).

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

func (*DeleteDashboardSnapshotByDeleteKeyParams) WithDeleteKey

WithDeleteKey adds the deleteKey to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) WithTimeout

WithTimeout adds the timeout to the delete dashboard snapshot by delete key params

func (*DeleteDashboardSnapshotByDeleteKeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDashboardSnapshotByDeleteKeyReader

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

DeleteDashboardSnapshotByDeleteKeyReader is a Reader for the DeleteDashboardSnapshotByDeleteKey structure.

func (*DeleteDashboardSnapshotByDeleteKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDashboardSnapshotByDeleteKeyUnauthorized

type DeleteDashboardSnapshotByDeleteKeyUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteDashboardSnapshotByDeleteKeyUnauthorized

func NewDeleteDashboardSnapshotByDeleteKeyUnauthorized() *DeleteDashboardSnapshotByDeleteKeyUnauthorized

NewDeleteDashboardSnapshotByDeleteKeyUnauthorized creates a DeleteDashboardSnapshotByDeleteKeyUnauthorized with default headers values

func (*DeleteDashboardSnapshotByDeleteKeyUnauthorized) Error

func (*DeleteDashboardSnapshotByDeleteKeyUnauthorized) GetPayload

type DeleteDashboardSnapshotForbidden

type DeleteDashboardSnapshotForbidden struct {
	Payload *models.ErrorResponseBody
}

DeleteDashboardSnapshotForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewDeleteDashboardSnapshotForbidden

func NewDeleteDashboardSnapshotForbidden() *DeleteDashboardSnapshotForbidden

NewDeleteDashboardSnapshotForbidden creates a DeleteDashboardSnapshotForbidden with default headers values

func (*DeleteDashboardSnapshotForbidden) Error

func (*DeleteDashboardSnapshotForbidden) GetPayload

type DeleteDashboardSnapshotInternalServerError

type DeleteDashboardSnapshotInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteDashboardSnapshotInternalServerError

func NewDeleteDashboardSnapshotInternalServerError() *DeleteDashboardSnapshotInternalServerError

NewDeleteDashboardSnapshotInternalServerError creates a DeleteDashboardSnapshotInternalServerError with default headers values

func (*DeleteDashboardSnapshotInternalServerError) Error

func (*DeleteDashboardSnapshotInternalServerError) GetPayload

type DeleteDashboardSnapshotNotFound

type DeleteDashboardSnapshotNotFound struct {
	Payload *models.ErrorResponseBody
}

DeleteDashboardSnapshotNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewDeleteDashboardSnapshotNotFound

func NewDeleteDashboardSnapshotNotFound() *DeleteDashboardSnapshotNotFound

NewDeleteDashboardSnapshotNotFound creates a DeleteDashboardSnapshotNotFound with default headers values

func (*DeleteDashboardSnapshotNotFound) Error

func (*DeleteDashboardSnapshotNotFound) GetPayload

type DeleteDashboardSnapshotOK

type DeleteDashboardSnapshotOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewDeleteDashboardSnapshotOK

func NewDeleteDashboardSnapshotOK() *DeleteDashboardSnapshotOK

NewDeleteDashboardSnapshotOK creates a DeleteDashboardSnapshotOK with default headers values

func (*DeleteDashboardSnapshotOK) Error

func (o *DeleteDashboardSnapshotOK) Error() string

func (*DeleteDashboardSnapshotOK) GetPayload

type DeleteDashboardSnapshotParams

type DeleteDashboardSnapshotParams struct {

	// Key.
	Key string

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

DeleteDashboardSnapshotParams contains all the parameters to send to the API endpoint

for the delete dashboard snapshot operation.

Typically these are written to a http.Request.

func NewDeleteDashboardSnapshotParams

func NewDeleteDashboardSnapshotParams() *DeleteDashboardSnapshotParams

NewDeleteDashboardSnapshotParams creates a new DeleteDashboardSnapshotParams 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 NewDeleteDashboardSnapshotParamsWithContext

func NewDeleteDashboardSnapshotParamsWithContext(ctx context.Context) *DeleteDashboardSnapshotParams

NewDeleteDashboardSnapshotParamsWithContext creates a new DeleteDashboardSnapshotParams object with the ability to set a context for a request.

func NewDeleteDashboardSnapshotParamsWithHTTPClient

func NewDeleteDashboardSnapshotParamsWithHTTPClient(client *http.Client) *DeleteDashboardSnapshotParams

NewDeleteDashboardSnapshotParamsWithHTTPClient creates a new DeleteDashboardSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDashboardSnapshotParamsWithTimeout

func NewDeleteDashboardSnapshotParamsWithTimeout(timeout time.Duration) *DeleteDashboardSnapshotParams

NewDeleteDashboardSnapshotParamsWithTimeout creates a new DeleteDashboardSnapshotParams object with the ability to set a timeout on a request.

func (*DeleteDashboardSnapshotParams) SetContext

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

SetContext adds the context to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) SetDefaults

func (o *DeleteDashboardSnapshotParams) SetDefaults()

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

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

func (*DeleteDashboardSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) SetKey

func (o *DeleteDashboardSnapshotParams) SetKey(key string)

SetKey adds the key to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) WithContext

WithContext adds the context to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) WithDefaults

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

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

func (*DeleteDashboardSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) WithKey

WithKey adds the key to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) WithTimeout

WithTimeout adds the timeout to the delete dashboard snapshot params

func (*DeleteDashboardSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDashboardSnapshotReader

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

DeleteDashboardSnapshotReader is a Reader for the DeleteDashboardSnapshot structure.

func (*DeleteDashboardSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDashboardSnapshotBadRequest

type GetDashboardSnapshotBadRequest struct {
	Payload *models.ErrorResponseBody
}

GetDashboardSnapshotBadRequest 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 NewGetDashboardSnapshotBadRequest

func NewGetDashboardSnapshotBadRequest() *GetDashboardSnapshotBadRequest

NewGetDashboardSnapshotBadRequest creates a GetDashboardSnapshotBadRequest with default headers values

func (*GetDashboardSnapshotBadRequest) Error

func (*GetDashboardSnapshotBadRequest) GetPayload

type GetDashboardSnapshotInternalServerError

type GetDashboardSnapshotInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetDashboardSnapshotInternalServerError

func NewGetDashboardSnapshotInternalServerError() *GetDashboardSnapshotInternalServerError

NewGetDashboardSnapshotInternalServerError creates a GetDashboardSnapshotInternalServerError with default headers values

func (*GetDashboardSnapshotInternalServerError) Error

func (*GetDashboardSnapshotInternalServerError) GetPayload

type GetDashboardSnapshotNotFound

type GetDashboardSnapshotNotFound struct {
	Payload *models.ErrorResponseBody
}

GetDashboardSnapshotNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetDashboardSnapshotNotFound

func NewGetDashboardSnapshotNotFound() *GetDashboardSnapshotNotFound

NewGetDashboardSnapshotNotFound creates a GetDashboardSnapshotNotFound with default headers values

func (*GetDashboardSnapshotNotFound) Error

func (*GetDashboardSnapshotNotFound) GetPayload

type GetDashboardSnapshotOK

type GetDashboardSnapshotOK struct {
}

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

(empty)

func NewGetDashboardSnapshotOK

func NewGetDashboardSnapshotOK() *GetDashboardSnapshotOK

NewGetDashboardSnapshotOK creates a GetDashboardSnapshotOK with default headers values

func (*GetDashboardSnapshotOK) Error

func (o *GetDashboardSnapshotOK) Error() string

type GetDashboardSnapshotParams

type GetDashboardSnapshotParams struct {

	// Key.
	Key string

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

GetDashboardSnapshotParams contains all the parameters to send to the API endpoint

for the get dashboard snapshot operation.

Typically these are written to a http.Request.

func NewGetDashboardSnapshotParams

func NewGetDashboardSnapshotParams() *GetDashboardSnapshotParams

NewGetDashboardSnapshotParams creates a new GetDashboardSnapshotParams 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 NewGetDashboardSnapshotParamsWithContext

func NewGetDashboardSnapshotParamsWithContext(ctx context.Context) *GetDashboardSnapshotParams

NewGetDashboardSnapshotParamsWithContext creates a new GetDashboardSnapshotParams object with the ability to set a context for a request.

func NewGetDashboardSnapshotParamsWithHTTPClient

func NewGetDashboardSnapshotParamsWithHTTPClient(client *http.Client) *GetDashboardSnapshotParams

NewGetDashboardSnapshotParamsWithHTTPClient creates a new GetDashboardSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewGetDashboardSnapshotParamsWithTimeout

func NewGetDashboardSnapshotParamsWithTimeout(timeout time.Duration) *GetDashboardSnapshotParams

NewGetDashboardSnapshotParamsWithTimeout creates a new GetDashboardSnapshotParams object with the ability to set a timeout on a request.

func (*GetDashboardSnapshotParams) SetContext

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

SetContext adds the context to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) SetDefaults

func (o *GetDashboardSnapshotParams) SetDefaults()

SetDefaults hydrates default values in the get dashboard snapshot params (not the query body).

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

func (*GetDashboardSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) SetKey

func (o *GetDashboardSnapshotParams) SetKey(key string)

SetKey adds the key to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) WithContext

WithContext adds the context to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) WithDefaults

WithDefaults hydrates default values in the get dashboard snapshot params (not the query body).

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

func (*GetDashboardSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) WithKey

WithKey adds the key to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) WithTimeout

WithTimeout adds the timeout to the get dashboard snapshot params

func (*GetDashboardSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDashboardSnapshotReader

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

GetDashboardSnapshotReader is a Reader for the GetDashboardSnapshot structure.

func (*GetDashboardSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSharingOptionsOK

type GetSharingOptionsOK struct {
	Payload *models.GetSharingOptionsOKBody
}

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

(empty)

func NewGetSharingOptionsOK

func NewGetSharingOptionsOK() *GetSharingOptionsOK

NewGetSharingOptionsOK creates a GetSharingOptionsOK with default headers values

func (*GetSharingOptionsOK) Error

func (o *GetSharingOptionsOK) Error() string

func (*GetSharingOptionsOK) GetPayload

type GetSharingOptionsParams

type GetSharingOptionsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSharingOptionsParams contains all the parameters to send to the API endpoint

for the get sharing options operation.

Typically these are written to a http.Request.

func NewGetSharingOptionsParams

func NewGetSharingOptionsParams() *GetSharingOptionsParams

NewGetSharingOptionsParams creates a new GetSharingOptionsParams 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 NewGetSharingOptionsParamsWithContext

func NewGetSharingOptionsParamsWithContext(ctx context.Context) *GetSharingOptionsParams

NewGetSharingOptionsParamsWithContext creates a new GetSharingOptionsParams object with the ability to set a context for a request.

func NewGetSharingOptionsParamsWithHTTPClient

func NewGetSharingOptionsParamsWithHTTPClient(client *http.Client) *GetSharingOptionsParams

NewGetSharingOptionsParamsWithHTTPClient creates a new GetSharingOptionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSharingOptionsParamsWithTimeout

func NewGetSharingOptionsParamsWithTimeout(timeout time.Duration) *GetSharingOptionsParams

NewGetSharingOptionsParamsWithTimeout creates a new GetSharingOptionsParams object with the ability to set a timeout on a request.

func (*GetSharingOptionsParams) SetContext

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

SetContext adds the context to the get sharing options params

func (*GetSharingOptionsParams) SetDefaults

func (o *GetSharingOptionsParams) SetDefaults()

SetDefaults hydrates default values in the get sharing options params (not the query body).

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

func (*GetSharingOptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sharing options params

func (*GetSharingOptionsParams) SetTimeout

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

SetTimeout adds the timeout to the get sharing options params

func (*GetSharingOptionsParams) WithContext

WithContext adds the context to the get sharing options params

func (*GetSharingOptionsParams) WithDefaults

WithDefaults hydrates default values in the get sharing options params (not the query body).

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

func (*GetSharingOptionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sharing options params

func (*GetSharingOptionsParams) WithTimeout

WithTimeout adds the timeout to the get sharing options params

func (*GetSharingOptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSharingOptionsReader

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

GetSharingOptionsReader is a Reader for the GetSharingOptions structure.

func (*GetSharingOptionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSharingOptionsUnauthorized

type GetSharingOptionsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetSharingOptionsUnauthorized

func NewGetSharingOptionsUnauthorized() *GetSharingOptionsUnauthorized

NewGetSharingOptionsUnauthorized creates a GetSharingOptionsUnauthorized with default headers values

func (*GetSharingOptionsUnauthorized) Error

func (*GetSharingOptionsUnauthorized) GetPayload

type SearchDashboardSnapshotsInternalServerError

type SearchDashboardSnapshotsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewSearchDashboardSnapshotsInternalServerError

func NewSearchDashboardSnapshotsInternalServerError() *SearchDashboardSnapshotsInternalServerError

NewSearchDashboardSnapshotsInternalServerError creates a SearchDashboardSnapshotsInternalServerError with default headers values

func (*SearchDashboardSnapshotsInternalServerError) Error

func (*SearchDashboardSnapshotsInternalServerError) GetPayload

type SearchDashboardSnapshotsOK

type SearchDashboardSnapshotsOK struct {
	Payload []*models.DashboardSnapshotDTO
}

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

(empty)

func NewSearchDashboardSnapshotsOK

func NewSearchDashboardSnapshotsOK() *SearchDashboardSnapshotsOK

NewSearchDashboardSnapshotsOK creates a SearchDashboardSnapshotsOK with default headers values

func (*SearchDashboardSnapshotsOK) Error

func (*SearchDashboardSnapshotsOK) GetPayload

type SearchDashboardSnapshotsParams

type SearchDashboardSnapshotsParams struct {

	/* Limit.

	   Limit the number of returned results

	   Format: int64
	   Default: 1000
	*/
	Limit *int64

	/* Query.

	   Search Query
	*/
	Query *string

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

SearchDashboardSnapshotsParams contains all the parameters to send to the API endpoint

for the search dashboard snapshots operation.

Typically these are written to a http.Request.

func NewSearchDashboardSnapshotsParams

func NewSearchDashboardSnapshotsParams() *SearchDashboardSnapshotsParams

NewSearchDashboardSnapshotsParams creates a new SearchDashboardSnapshotsParams 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 NewSearchDashboardSnapshotsParamsWithContext

func NewSearchDashboardSnapshotsParamsWithContext(ctx context.Context) *SearchDashboardSnapshotsParams

NewSearchDashboardSnapshotsParamsWithContext creates a new SearchDashboardSnapshotsParams object with the ability to set a context for a request.

func NewSearchDashboardSnapshotsParamsWithHTTPClient

func NewSearchDashboardSnapshotsParamsWithHTTPClient(client *http.Client) *SearchDashboardSnapshotsParams

NewSearchDashboardSnapshotsParamsWithHTTPClient creates a new SearchDashboardSnapshotsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchDashboardSnapshotsParamsWithTimeout

func NewSearchDashboardSnapshotsParamsWithTimeout(timeout time.Duration) *SearchDashboardSnapshotsParams

NewSearchDashboardSnapshotsParamsWithTimeout creates a new SearchDashboardSnapshotsParams object with the ability to set a timeout on a request.

func (*SearchDashboardSnapshotsParams) SetContext

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

SetContext adds the context to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) SetDefaults

func (o *SearchDashboardSnapshotsParams) SetDefaults()

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

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

func (*SearchDashboardSnapshotsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) SetLimit

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

SetLimit adds the limit to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) SetQuery

func (o *SearchDashboardSnapshotsParams) SetQuery(query *string)

SetQuery adds the query to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) SetTimeout

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

SetTimeout adds the timeout to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) WithContext

WithContext adds the context to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) WithDefaults

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

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

func (*SearchDashboardSnapshotsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) WithLimit

WithLimit adds the limit to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) WithQuery

WithQuery adds the query to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) WithTimeout

WithTimeout adds the timeout to the search dashboard snapshots params

func (*SearchDashboardSnapshotsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchDashboardSnapshotsReader

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

SearchDashboardSnapshotsReader is a Reader for the SearchDashboardSnapshots structure.

func (*SearchDashboardSnapshotsReader) ReadResponse

func (o *SearchDashboardSnapshotsReader) 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