classic_dashboard

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 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 classic dashboard API

func (*Client) CreateClassicDashboard

func (a *Client) CreateClassicDashboard(params *CreateClassicDashboardParams, opts ...ClientOption) (*CreateClassicDashboardOK, error)

CreateClassicDashboard create classic dashboard API

func (*Client) DeleteClassicDashboard

func (a *Client) DeleteClassicDashboard(params *DeleteClassicDashboardParams, opts ...ClientOption) (*DeleteClassicDashboardOK, error)

DeleteClassicDashboard delete classic dashboard API

func (*Client) ListClassicDashboards

func (a *Client) ListClassicDashboards(params *ListClassicDashboardsParams, opts ...ClientOption) (*ListClassicDashboardsOK, error)

ListClassicDashboards list classic dashboards API

func (*Client) ReadClassicDashboard

func (a *Client) ReadClassicDashboard(params *ReadClassicDashboardParams, opts ...ClientOption) (*ReadClassicDashboardOK, error)

ReadClassicDashboard read classic dashboard API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateClassicDashboard

func (a *Client) UpdateClassicDashboard(params *UpdateClassicDashboardParams, opts ...ClientOption) (*UpdateClassicDashboardOK, error)

UpdateClassicDashboard update classic dashboard API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateClassicDashboard(params *CreateClassicDashboardParams, opts ...ClientOption) (*CreateClassicDashboardOK, error)

	DeleteClassicDashboard(params *DeleteClassicDashboardParams, opts ...ClientOption) (*DeleteClassicDashboardOK, error)

	ListClassicDashboards(params *ListClassicDashboardsParams, opts ...ClientOption) (*ListClassicDashboardsOK, error)

	ReadClassicDashboard(params *ReadClassicDashboardParams, opts ...ClientOption) (*ReadClassicDashboardOK, error)

	UpdateClassicDashboard(params *UpdateClassicDashboardParams, opts ...ClientOption) (*UpdateClassicDashboardOK, 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 classic dashboard API client.

type CreateClassicDashboardBadRequest

type CreateClassicDashboardBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the GrafanaDashboard because the request is invalid.

func NewCreateClassicDashboardBadRequest

func NewCreateClassicDashboardBadRequest() *CreateClassicDashboardBadRequest

NewCreateClassicDashboardBadRequest creates a CreateClassicDashboardBadRequest with default headers values

func (*CreateClassicDashboardBadRequest) Code

Code gets the status code for the create classic dashboard bad request response

func (*CreateClassicDashboardBadRequest) Error

func (*CreateClassicDashboardBadRequest) GetPayload

func (*CreateClassicDashboardBadRequest) IsClientError

func (o *CreateClassicDashboardBadRequest) IsClientError() bool

IsClientError returns true when this create classic dashboard bad request response has a 4xx status code

func (*CreateClassicDashboardBadRequest) IsCode

func (o *CreateClassicDashboardBadRequest) IsCode(code int) bool

IsCode returns true when this create classic dashboard bad request response a status code equal to that given

func (*CreateClassicDashboardBadRequest) IsRedirect

func (o *CreateClassicDashboardBadRequest) IsRedirect() bool

IsRedirect returns true when this create classic dashboard bad request response has a 3xx status code

func (*CreateClassicDashboardBadRequest) IsServerError

func (o *CreateClassicDashboardBadRequest) IsServerError() bool

IsServerError returns true when this create classic dashboard bad request response has a 5xx status code

func (*CreateClassicDashboardBadRequest) IsSuccess

func (o *CreateClassicDashboardBadRequest) IsSuccess() bool

IsSuccess returns true when this create classic dashboard bad request response has a 2xx status code

func (*CreateClassicDashboardBadRequest) String

type CreateClassicDashboardConflict

type CreateClassicDashboardConflict struct {
	Payload *models.APIError
}

CreateClassicDashboardConflict describes a response with status code 409, with default header values.

Cannot create the GrafanaDashboard because there is a conflict with an existing GrafanaDashboard.

func NewCreateClassicDashboardConflict

func NewCreateClassicDashboardConflict() *CreateClassicDashboardConflict

NewCreateClassicDashboardConflict creates a CreateClassicDashboardConflict with default headers values

func (*CreateClassicDashboardConflict) Code

Code gets the status code for the create classic dashboard conflict response

func (*CreateClassicDashboardConflict) Error

func (*CreateClassicDashboardConflict) GetPayload

func (*CreateClassicDashboardConflict) IsClientError

func (o *CreateClassicDashboardConflict) IsClientError() bool

IsClientError returns true when this create classic dashboard conflict response has a 4xx status code

func (*CreateClassicDashboardConflict) IsCode

func (o *CreateClassicDashboardConflict) IsCode(code int) bool

IsCode returns true when this create classic dashboard conflict response a status code equal to that given

func (*CreateClassicDashboardConflict) IsRedirect

func (o *CreateClassicDashboardConflict) IsRedirect() bool

IsRedirect returns true when this create classic dashboard conflict response has a 3xx status code

func (*CreateClassicDashboardConflict) IsServerError

func (o *CreateClassicDashboardConflict) IsServerError() bool

IsServerError returns true when this create classic dashboard conflict response has a 5xx status code

func (*CreateClassicDashboardConflict) IsSuccess

func (o *CreateClassicDashboardConflict) IsSuccess() bool

IsSuccess returns true when this create classic dashboard conflict response has a 2xx status code

func (*CreateClassicDashboardConflict) String

type CreateClassicDashboardDefault

type CreateClassicDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateClassicDashboardDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateClassicDashboardDefault

func NewCreateClassicDashboardDefault(code int) *CreateClassicDashboardDefault

NewCreateClassicDashboardDefault creates a CreateClassicDashboardDefault with default headers values

func (*CreateClassicDashboardDefault) Code

Code gets the status code for the create classic dashboard default response

func (*CreateClassicDashboardDefault) Error

func (*CreateClassicDashboardDefault) GetPayload

func (*CreateClassicDashboardDefault) IsClientError

func (o *CreateClassicDashboardDefault) IsClientError() bool

IsClientError returns true when this create classic dashboard default response has a 4xx status code

func (*CreateClassicDashboardDefault) IsCode

func (o *CreateClassicDashboardDefault) IsCode(code int) bool

IsCode returns true when this create classic dashboard default response a status code equal to that given

func (*CreateClassicDashboardDefault) IsRedirect

func (o *CreateClassicDashboardDefault) IsRedirect() bool

IsRedirect returns true when this create classic dashboard default response has a 3xx status code

func (*CreateClassicDashboardDefault) IsServerError

func (o *CreateClassicDashboardDefault) IsServerError() bool

IsServerError returns true when this create classic dashboard default response has a 5xx status code

func (*CreateClassicDashboardDefault) IsSuccess

func (o *CreateClassicDashboardDefault) IsSuccess() bool

IsSuccess returns true when this create classic dashboard default response has a 2xx status code

func (*CreateClassicDashboardDefault) String

type CreateClassicDashboardInternalServerError

type CreateClassicDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateClassicDashboardInternalServerError

func NewCreateClassicDashboardInternalServerError() *CreateClassicDashboardInternalServerError

NewCreateClassicDashboardInternalServerError creates a CreateClassicDashboardInternalServerError with default headers values

func (*CreateClassicDashboardInternalServerError) Code

Code gets the status code for the create classic dashboard internal server error response

func (*CreateClassicDashboardInternalServerError) Error

func (*CreateClassicDashboardInternalServerError) GetPayload

func (*CreateClassicDashboardInternalServerError) IsClientError

IsClientError returns true when this create classic dashboard internal server error response has a 4xx status code

func (*CreateClassicDashboardInternalServerError) IsCode

IsCode returns true when this create classic dashboard internal server error response a status code equal to that given

func (*CreateClassicDashboardInternalServerError) IsRedirect

IsRedirect returns true when this create classic dashboard internal server error response has a 3xx status code

func (*CreateClassicDashboardInternalServerError) IsServerError

IsServerError returns true when this create classic dashboard internal server error response has a 5xx status code

func (*CreateClassicDashboardInternalServerError) IsSuccess

IsSuccess returns true when this create classic dashboard internal server error response has a 2xx status code

func (*CreateClassicDashboardInternalServerError) String

type CreateClassicDashboardOK

type CreateClassicDashboardOK struct {
	Payload *models.Configv1CreateClassicDashboardResponse
}

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

A successful response containing the created GrafanaDashboard.

func NewCreateClassicDashboardOK

func NewCreateClassicDashboardOK() *CreateClassicDashboardOK

NewCreateClassicDashboardOK creates a CreateClassicDashboardOK with default headers values

func (*CreateClassicDashboardOK) Code

func (o *CreateClassicDashboardOK) Code() int

Code gets the status code for the create classic dashboard o k response

func (*CreateClassicDashboardOK) Error

func (o *CreateClassicDashboardOK) Error() string

func (*CreateClassicDashboardOK) GetPayload

func (*CreateClassicDashboardOK) IsClientError

func (o *CreateClassicDashboardOK) IsClientError() bool

IsClientError returns true when this create classic dashboard o k response has a 4xx status code

func (*CreateClassicDashboardOK) IsCode

func (o *CreateClassicDashboardOK) IsCode(code int) bool

IsCode returns true when this create classic dashboard o k response a status code equal to that given

func (*CreateClassicDashboardOK) IsRedirect

func (o *CreateClassicDashboardOK) IsRedirect() bool

IsRedirect returns true when this create classic dashboard o k response has a 3xx status code

func (*CreateClassicDashboardOK) IsServerError

func (o *CreateClassicDashboardOK) IsServerError() bool

IsServerError returns true when this create classic dashboard o k response has a 5xx status code

func (*CreateClassicDashboardOK) IsSuccess

func (o *CreateClassicDashboardOK) IsSuccess() bool

IsSuccess returns true when this create classic dashboard o k response has a 2xx status code

func (*CreateClassicDashboardOK) String

func (o *CreateClassicDashboardOK) String() string

type CreateClassicDashboardParams

type CreateClassicDashboardParams struct {

	// Body.
	Body *models.Configv1CreateClassicDashboardRequest

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

CreateClassicDashboardParams contains all the parameters to send to the API endpoint

for the create classic dashboard operation.

Typically these are written to a http.Request.

func NewCreateClassicDashboardParams

func NewCreateClassicDashboardParams() *CreateClassicDashboardParams

NewCreateClassicDashboardParams creates a new CreateClassicDashboardParams 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 NewCreateClassicDashboardParamsWithContext

func NewCreateClassicDashboardParamsWithContext(ctx context.Context) *CreateClassicDashboardParams

NewCreateClassicDashboardParamsWithContext creates a new CreateClassicDashboardParams object with the ability to set a context for a request.

func NewCreateClassicDashboardParamsWithHTTPClient

func NewCreateClassicDashboardParamsWithHTTPClient(client *http.Client) *CreateClassicDashboardParams

NewCreateClassicDashboardParamsWithHTTPClient creates a new CreateClassicDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewCreateClassicDashboardParamsWithTimeout

func NewCreateClassicDashboardParamsWithTimeout(timeout time.Duration) *CreateClassicDashboardParams

NewCreateClassicDashboardParamsWithTimeout creates a new CreateClassicDashboardParams object with the ability to set a timeout on a request.

func (*CreateClassicDashboardParams) SetBody

SetBody adds the body to the create classic dashboard params

func (*CreateClassicDashboardParams) SetContext

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

SetContext adds the context to the create classic dashboard params

func (*CreateClassicDashboardParams) SetDefaults

func (o *CreateClassicDashboardParams) SetDefaults()

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

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

func (*CreateClassicDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create classic dashboard params

func (*CreateClassicDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the create classic dashboard params

func (*CreateClassicDashboardParams) WithBody

WithBody adds the body to the create classic dashboard params

func (*CreateClassicDashboardParams) WithContext

WithContext adds the context to the create classic dashboard params

func (*CreateClassicDashboardParams) WithDefaults

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

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

func (*CreateClassicDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create classic dashboard params

func (*CreateClassicDashboardParams) WithTimeout

WithTimeout adds the timeout to the create classic dashboard params

func (*CreateClassicDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateClassicDashboardReader

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

CreateClassicDashboardReader is a Reader for the CreateClassicDashboard structure.

func (*CreateClassicDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteClassicDashboardBadRequest

type DeleteClassicDashboardBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the GrafanaDashboard because it is in use.

func NewDeleteClassicDashboardBadRequest

func NewDeleteClassicDashboardBadRequest() *DeleteClassicDashboardBadRequest

NewDeleteClassicDashboardBadRequest creates a DeleteClassicDashboardBadRequest with default headers values

func (*DeleteClassicDashboardBadRequest) Code

Code gets the status code for the delete classic dashboard bad request response

func (*DeleteClassicDashboardBadRequest) Error

func (*DeleteClassicDashboardBadRequest) GetPayload

func (*DeleteClassicDashboardBadRequest) IsClientError

func (o *DeleteClassicDashboardBadRequest) IsClientError() bool

IsClientError returns true when this delete classic dashboard bad request response has a 4xx status code

func (*DeleteClassicDashboardBadRequest) IsCode

func (o *DeleteClassicDashboardBadRequest) IsCode(code int) bool

IsCode returns true when this delete classic dashboard bad request response a status code equal to that given

func (*DeleteClassicDashboardBadRequest) IsRedirect

func (o *DeleteClassicDashboardBadRequest) IsRedirect() bool

IsRedirect returns true when this delete classic dashboard bad request response has a 3xx status code

func (*DeleteClassicDashboardBadRequest) IsServerError

func (o *DeleteClassicDashboardBadRequest) IsServerError() bool

IsServerError returns true when this delete classic dashboard bad request response has a 5xx status code

func (*DeleteClassicDashboardBadRequest) IsSuccess

func (o *DeleteClassicDashboardBadRequest) IsSuccess() bool

IsSuccess returns true when this delete classic dashboard bad request response has a 2xx status code

func (*DeleteClassicDashboardBadRequest) String

type DeleteClassicDashboardDefault

type DeleteClassicDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteClassicDashboardDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteClassicDashboardDefault

func NewDeleteClassicDashboardDefault(code int) *DeleteClassicDashboardDefault

NewDeleteClassicDashboardDefault creates a DeleteClassicDashboardDefault with default headers values

func (*DeleteClassicDashboardDefault) Code

Code gets the status code for the delete classic dashboard default response

func (*DeleteClassicDashboardDefault) Error

func (*DeleteClassicDashboardDefault) GetPayload

func (*DeleteClassicDashboardDefault) IsClientError

func (o *DeleteClassicDashboardDefault) IsClientError() bool

IsClientError returns true when this delete classic dashboard default response has a 4xx status code

func (*DeleteClassicDashboardDefault) IsCode

func (o *DeleteClassicDashboardDefault) IsCode(code int) bool

IsCode returns true when this delete classic dashboard default response a status code equal to that given

func (*DeleteClassicDashboardDefault) IsRedirect

func (o *DeleteClassicDashboardDefault) IsRedirect() bool

IsRedirect returns true when this delete classic dashboard default response has a 3xx status code

func (*DeleteClassicDashboardDefault) IsServerError

func (o *DeleteClassicDashboardDefault) IsServerError() bool

IsServerError returns true when this delete classic dashboard default response has a 5xx status code

func (*DeleteClassicDashboardDefault) IsSuccess

func (o *DeleteClassicDashboardDefault) IsSuccess() bool

IsSuccess returns true when this delete classic dashboard default response has a 2xx status code

func (*DeleteClassicDashboardDefault) String

type DeleteClassicDashboardInternalServerError

type DeleteClassicDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteClassicDashboardInternalServerError

func NewDeleteClassicDashboardInternalServerError() *DeleteClassicDashboardInternalServerError

NewDeleteClassicDashboardInternalServerError creates a DeleteClassicDashboardInternalServerError with default headers values

func (*DeleteClassicDashboardInternalServerError) Code

Code gets the status code for the delete classic dashboard internal server error response

func (*DeleteClassicDashboardInternalServerError) Error

func (*DeleteClassicDashboardInternalServerError) GetPayload

func (*DeleteClassicDashboardInternalServerError) IsClientError

IsClientError returns true when this delete classic dashboard internal server error response has a 4xx status code

func (*DeleteClassicDashboardInternalServerError) IsCode

IsCode returns true when this delete classic dashboard internal server error response a status code equal to that given

func (*DeleteClassicDashboardInternalServerError) IsRedirect

IsRedirect returns true when this delete classic dashboard internal server error response has a 3xx status code

func (*DeleteClassicDashboardInternalServerError) IsServerError

IsServerError returns true when this delete classic dashboard internal server error response has a 5xx status code

func (*DeleteClassicDashboardInternalServerError) IsSuccess

IsSuccess returns true when this delete classic dashboard internal server error response has a 2xx status code

func (*DeleteClassicDashboardInternalServerError) String

type DeleteClassicDashboardNotFound

type DeleteClassicDashboardNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the GrafanaDashboard because the slug does not exist.

func NewDeleteClassicDashboardNotFound

func NewDeleteClassicDashboardNotFound() *DeleteClassicDashboardNotFound

NewDeleteClassicDashboardNotFound creates a DeleteClassicDashboardNotFound with default headers values

func (*DeleteClassicDashboardNotFound) Code

Code gets the status code for the delete classic dashboard not found response

func (*DeleteClassicDashboardNotFound) Error

func (*DeleteClassicDashboardNotFound) GetPayload

func (*DeleteClassicDashboardNotFound) IsClientError

func (o *DeleteClassicDashboardNotFound) IsClientError() bool

IsClientError returns true when this delete classic dashboard not found response has a 4xx status code

func (*DeleteClassicDashboardNotFound) IsCode

func (o *DeleteClassicDashboardNotFound) IsCode(code int) bool

IsCode returns true when this delete classic dashboard not found response a status code equal to that given

func (*DeleteClassicDashboardNotFound) IsRedirect

func (o *DeleteClassicDashboardNotFound) IsRedirect() bool

IsRedirect returns true when this delete classic dashboard not found response has a 3xx status code

func (*DeleteClassicDashboardNotFound) IsServerError

func (o *DeleteClassicDashboardNotFound) IsServerError() bool

IsServerError returns true when this delete classic dashboard not found response has a 5xx status code

func (*DeleteClassicDashboardNotFound) IsSuccess

func (o *DeleteClassicDashboardNotFound) IsSuccess() bool

IsSuccess returns true when this delete classic dashboard not found response has a 2xx status code

func (*DeleteClassicDashboardNotFound) String

type DeleteClassicDashboardOK

type DeleteClassicDashboardOK struct {
	Payload models.Configv1DeleteClassicDashboardResponse
}

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

A successful response.

func NewDeleteClassicDashboardOK

func NewDeleteClassicDashboardOK() *DeleteClassicDashboardOK

NewDeleteClassicDashboardOK creates a DeleteClassicDashboardOK with default headers values

func (*DeleteClassicDashboardOK) Code

func (o *DeleteClassicDashboardOK) Code() int

Code gets the status code for the delete classic dashboard o k response

func (*DeleteClassicDashboardOK) Error

func (o *DeleteClassicDashboardOK) Error() string

func (*DeleteClassicDashboardOK) GetPayload

func (*DeleteClassicDashboardOK) IsClientError

func (o *DeleteClassicDashboardOK) IsClientError() bool

IsClientError returns true when this delete classic dashboard o k response has a 4xx status code

func (*DeleteClassicDashboardOK) IsCode

func (o *DeleteClassicDashboardOK) IsCode(code int) bool

IsCode returns true when this delete classic dashboard o k response a status code equal to that given

func (*DeleteClassicDashboardOK) IsRedirect

func (o *DeleteClassicDashboardOK) IsRedirect() bool

IsRedirect returns true when this delete classic dashboard o k response has a 3xx status code

func (*DeleteClassicDashboardOK) IsServerError

func (o *DeleteClassicDashboardOK) IsServerError() bool

IsServerError returns true when this delete classic dashboard o k response has a 5xx status code

func (*DeleteClassicDashboardOK) IsSuccess

func (o *DeleteClassicDashboardOK) IsSuccess() bool

IsSuccess returns true when this delete classic dashboard o k response has a 2xx status code

func (*DeleteClassicDashboardOK) String

func (o *DeleteClassicDashboardOK) String() string

type DeleteClassicDashboardParams

type DeleteClassicDashboardParams struct {

	// Slug.
	Slug string

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

DeleteClassicDashboardParams contains all the parameters to send to the API endpoint

for the delete classic dashboard operation.

Typically these are written to a http.Request.

func NewDeleteClassicDashboardParams

func NewDeleteClassicDashboardParams() *DeleteClassicDashboardParams

NewDeleteClassicDashboardParams creates a new DeleteClassicDashboardParams 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 NewDeleteClassicDashboardParamsWithContext

func NewDeleteClassicDashboardParamsWithContext(ctx context.Context) *DeleteClassicDashboardParams

NewDeleteClassicDashboardParamsWithContext creates a new DeleteClassicDashboardParams object with the ability to set a context for a request.

func NewDeleteClassicDashboardParamsWithHTTPClient

func NewDeleteClassicDashboardParamsWithHTTPClient(client *http.Client) *DeleteClassicDashboardParams

NewDeleteClassicDashboardParamsWithHTTPClient creates a new DeleteClassicDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteClassicDashboardParamsWithTimeout

func NewDeleteClassicDashboardParamsWithTimeout(timeout time.Duration) *DeleteClassicDashboardParams

NewDeleteClassicDashboardParamsWithTimeout creates a new DeleteClassicDashboardParams object with the ability to set a timeout on a request.

func (*DeleteClassicDashboardParams) SetContext

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

SetContext adds the context to the delete classic dashboard params

func (*DeleteClassicDashboardParams) SetDefaults

func (o *DeleteClassicDashboardParams) SetDefaults()

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

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

func (*DeleteClassicDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete classic dashboard params

func (*DeleteClassicDashboardParams) SetSlug

func (o *DeleteClassicDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the delete classic dashboard params

func (*DeleteClassicDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the delete classic dashboard params

func (*DeleteClassicDashboardParams) WithContext

WithContext adds the context to the delete classic dashboard params

func (*DeleteClassicDashboardParams) WithDefaults

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

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

func (*DeleteClassicDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete classic dashboard params

func (*DeleteClassicDashboardParams) WithSlug

WithSlug adds the slug to the delete classic dashboard params

func (*DeleteClassicDashboardParams) WithTimeout

WithTimeout adds the timeout to the delete classic dashboard params

func (*DeleteClassicDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteClassicDashboardReader

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

DeleteClassicDashboardReader is a Reader for the DeleteClassicDashboard structure.

func (*DeleteClassicDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListClassicDashboardsDefault

type ListClassicDashboardsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListClassicDashboardsDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListClassicDashboardsDefault

func NewListClassicDashboardsDefault(code int) *ListClassicDashboardsDefault

NewListClassicDashboardsDefault creates a ListClassicDashboardsDefault with default headers values

func (*ListClassicDashboardsDefault) Code

Code gets the status code for the list classic dashboards default response

func (*ListClassicDashboardsDefault) Error

func (*ListClassicDashboardsDefault) GetPayload

func (*ListClassicDashboardsDefault) IsClientError

func (o *ListClassicDashboardsDefault) IsClientError() bool

IsClientError returns true when this list classic dashboards default response has a 4xx status code

func (*ListClassicDashboardsDefault) IsCode

func (o *ListClassicDashboardsDefault) IsCode(code int) bool

IsCode returns true when this list classic dashboards default response a status code equal to that given

func (*ListClassicDashboardsDefault) IsRedirect

func (o *ListClassicDashboardsDefault) IsRedirect() bool

IsRedirect returns true when this list classic dashboards default response has a 3xx status code

func (*ListClassicDashboardsDefault) IsServerError

func (o *ListClassicDashboardsDefault) IsServerError() bool

IsServerError returns true when this list classic dashboards default response has a 5xx status code

func (*ListClassicDashboardsDefault) IsSuccess

func (o *ListClassicDashboardsDefault) IsSuccess() bool

IsSuccess returns true when this list classic dashboards default response has a 2xx status code

func (*ListClassicDashboardsDefault) String

type ListClassicDashboardsInternalServerError

type ListClassicDashboardsInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListClassicDashboardsInternalServerError

func NewListClassicDashboardsInternalServerError() *ListClassicDashboardsInternalServerError

NewListClassicDashboardsInternalServerError creates a ListClassicDashboardsInternalServerError with default headers values

func (*ListClassicDashboardsInternalServerError) Code

Code gets the status code for the list classic dashboards internal server error response

func (*ListClassicDashboardsInternalServerError) Error

func (*ListClassicDashboardsInternalServerError) GetPayload

func (*ListClassicDashboardsInternalServerError) IsClientError

IsClientError returns true when this list classic dashboards internal server error response has a 4xx status code

func (*ListClassicDashboardsInternalServerError) IsCode

IsCode returns true when this list classic dashboards internal server error response a status code equal to that given

func (*ListClassicDashboardsInternalServerError) IsRedirect

IsRedirect returns true when this list classic dashboards internal server error response has a 3xx status code

func (*ListClassicDashboardsInternalServerError) IsServerError

IsServerError returns true when this list classic dashboards internal server error response has a 5xx status code

func (*ListClassicDashboardsInternalServerError) IsSuccess

IsSuccess returns true when this list classic dashboards internal server error response has a 2xx status code

func (*ListClassicDashboardsInternalServerError) String

type ListClassicDashboardsOK

type ListClassicDashboardsOK struct {
	Payload *models.Configv1ListClassicDashboardsResponse
}

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

A successful response.

func NewListClassicDashboardsOK

func NewListClassicDashboardsOK() *ListClassicDashboardsOK

NewListClassicDashboardsOK creates a ListClassicDashboardsOK with default headers values

func (*ListClassicDashboardsOK) Code

func (o *ListClassicDashboardsOK) Code() int

Code gets the status code for the list classic dashboards o k response

func (*ListClassicDashboardsOK) Error

func (o *ListClassicDashboardsOK) Error() string

func (*ListClassicDashboardsOK) GetPayload

func (*ListClassicDashboardsOK) IsClientError

func (o *ListClassicDashboardsOK) IsClientError() bool

IsClientError returns true when this list classic dashboards o k response has a 4xx status code

func (*ListClassicDashboardsOK) IsCode

func (o *ListClassicDashboardsOK) IsCode(code int) bool

IsCode returns true when this list classic dashboards o k response a status code equal to that given

func (*ListClassicDashboardsOK) IsRedirect

func (o *ListClassicDashboardsOK) IsRedirect() bool

IsRedirect returns true when this list classic dashboards o k response has a 3xx status code

func (*ListClassicDashboardsOK) IsServerError

func (o *ListClassicDashboardsOK) IsServerError() bool

IsServerError returns true when this list classic dashboards o k response has a 5xx status code

func (*ListClassicDashboardsOK) IsSuccess

func (o *ListClassicDashboardsOK) IsSuccess() bool

IsSuccess returns true when this list classic dashboards o k response has a 2xx status code

func (*ListClassicDashboardsOK) String

func (o *ListClassicDashboardsOK) String() string

type ListClassicDashboardsParams

type ListClassicDashboardsParams struct {

	/* BucketSlugs.

	   Filters results by bucket_slug, where any ClassicDashboard with a matching bucket_slug in the given list (and matches all other filters) is returned.
	*/
	BucketSlugs []string

	/* CollectionSlugs.

	   Filters results by collection_slug, where any ClassicDashboard with a matching collection_slug in the given list (and matches all other filters) is returned.
	*/
	CollectionSlugs []string

	/* IncludeDashboardJSON.

	     Optional flag to populate the dashboard_json of the returned dashboards.
	By default, dashboard_json will be left empty.
	*/
	IncludeDashboardJSON *bool

	/* Names.

	   Filters results by name, where any ClassicDashboard with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any ClassicDashboard with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

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

ListClassicDashboardsParams contains all the parameters to send to the API endpoint

for the list classic dashboards operation.

Typically these are written to a http.Request.

func NewListClassicDashboardsParams

func NewListClassicDashboardsParams() *ListClassicDashboardsParams

NewListClassicDashboardsParams creates a new ListClassicDashboardsParams 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 NewListClassicDashboardsParamsWithContext

func NewListClassicDashboardsParamsWithContext(ctx context.Context) *ListClassicDashboardsParams

NewListClassicDashboardsParamsWithContext creates a new ListClassicDashboardsParams object with the ability to set a context for a request.

func NewListClassicDashboardsParamsWithHTTPClient

func NewListClassicDashboardsParamsWithHTTPClient(client *http.Client) *ListClassicDashboardsParams

NewListClassicDashboardsParamsWithHTTPClient creates a new ListClassicDashboardsParams object with the ability to set a custom HTTPClient for a request.

func NewListClassicDashboardsParamsWithTimeout

func NewListClassicDashboardsParamsWithTimeout(timeout time.Duration) *ListClassicDashboardsParams

NewListClassicDashboardsParamsWithTimeout creates a new ListClassicDashboardsParams object with the ability to set a timeout on a request.

func (*ListClassicDashboardsParams) SetBucketSlugs

func (o *ListClassicDashboardsParams) SetBucketSlugs(bucketSlugs []string)

SetBucketSlugs adds the bucketSlugs to the list classic dashboards params

func (*ListClassicDashboardsParams) SetCollectionSlugs

func (o *ListClassicDashboardsParams) SetCollectionSlugs(collectionSlugs []string)

SetCollectionSlugs adds the collectionSlugs to the list classic dashboards params

func (*ListClassicDashboardsParams) SetContext

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

SetContext adds the context to the list classic dashboards params

func (*ListClassicDashboardsParams) SetDefaults

func (o *ListClassicDashboardsParams) SetDefaults()

SetDefaults hydrates default values in the list classic dashboards params (not the query body).

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

func (*ListClassicDashboardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list classic dashboards params

func (*ListClassicDashboardsParams) SetIncludeDashboardJSON

func (o *ListClassicDashboardsParams) SetIncludeDashboardJSON(includeDashboardJSON *bool)

SetIncludeDashboardJSON adds the includeDashboardJson to the list classic dashboards params

func (*ListClassicDashboardsParams) SetNames

func (o *ListClassicDashboardsParams) SetNames(names []string)

SetNames adds the names to the list classic dashboards params

func (*ListClassicDashboardsParams) SetPageMaxSize

func (o *ListClassicDashboardsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list classic dashboards params

func (*ListClassicDashboardsParams) SetPageToken

func (o *ListClassicDashboardsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list classic dashboards params

func (*ListClassicDashboardsParams) SetSlugs

func (o *ListClassicDashboardsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list classic dashboards params

func (*ListClassicDashboardsParams) SetTimeout

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

SetTimeout adds the timeout to the list classic dashboards params

func (*ListClassicDashboardsParams) WithBucketSlugs

func (o *ListClassicDashboardsParams) WithBucketSlugs(bucketSlugs []string) *ListClassicDashboardsParams

WithBucketSlugs adds the bucketSlugs to the list classic dashboards params

func (*ListClassicDashboardsParams) WithCollectionSlugs

func (o *ListClassicDashboardsParams) WithCollectionSlugs(collectionSlugs []string) *ListClassicDashboardsParams

WithCollectionSlugs adds the collectionSlugs to the list classic dashboards params

func (*ListClassicDashboardsParams) WithContext

WithContext adds the context to the list classic dashboards params

func (*ListClassicDashboardsParams) WithDefaults

WithDefaults hydrates default values in the list classic dashboards params (not the query body).

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

func (*ListClassicDashboardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list classic dashboards params

func (*ListClassicDashboardsParams) WithIncludeDashboardJSON

func (o *ListClassicDashboardsParams) WithIncludeDashboardJSON(includeDashboardJSON *bool) *ListClassicDashboardsParams

WithIncludeDashboardJSON adds the includeDashboardJSON to the list classic dashboards params

func (*ListClassicDashboardsParams) WithNames

WithNames adds the names to the list classic dashboards params

func (*ListClassicDashboardsParams) WithPageMaxSize

func (o *ListClassicDashboardsParams) WithPageMaxSize(pageMaxSize *int64) *ListClassicDashboardsParams

WithPageMaxSize adds the pageMaxSize to the list classic dashboards params

func (*ListClassicDashboardsParams) WithPageToken

func (o *ListClassicDashboardsParams) WithPageToken(pageToken *string) *ListClassicDashboardsParams

WithPageToken adds the pageToken to the list classic dashboards params

func (*ListClassicDashboardsParams) WithSlugs

WithSlugs adds the slugs to the list classic dashboards params

func (*ListClassicDashboardsParams) WithTimeout

WithTimeout adds the timeout to the list classic dashboards params

func (*ListClassicDashboardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListClassicDashboardsReader

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

ListClassicDashboardsReader is a Reader for the ListClassicDashboards structure.

func (*ListClassicDashboardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadClassicDashboardDefault

type ReadClassicDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadClassicDashboardDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadClassicDashboardDefault

func NewReadClassicDashboardDefault(code int) *ReadClassicDashboardDefault

NewReadClassicDashboardDefault creates a ReadClassicDashboardDefault with default headers values

func (*ReadClassicDashboardDefault) Code

func (o *ReadClassicDashboardDefault) Code() int

Code gets the status code for the read classic dashboard default response

func (*ReadClassicDashboardDefault) Error

func (*ReadClassicDashboardDefault) GetPayload

func (*ReadClassicDashboardDefault) IsClientError

func (o *ReadClassicDashboardDefault) IsClientError() bool

IsClientError returns true when this read classic dashboard default response has a 4xx status code

func (*ReadClassicDashboardDefault) IsCode

func (o *ReadClassicDashboardDefault) IsCode(code int) bool

IsCode returns true when this read classic dashboard default response a status code equal to that given

func (*ReadClassicDashboardDefault) IsRedirect

func (o *ReadClassicDashboardDefault) IsRedirect() bool

IsRedirect returns true when this read classic dashboard default response has a 3xx status code

func (*ReadClassicDashboardDefault) IsServerError

func (o *ReadClassicDashboardDefault) IsServerError() bool

IsServerError returns true when this read classic dashboard default response has a 5xx status code

func (*ReadClassicDashboardDefault) IsSuccess

func (o *ReadClassicDashboardDefault) IsSuccess() bool

IsSuccess returns true when this read classic dashboard default response has a 2xx status code

func (*ReadClassicDashboardDefault) String

func (o *ReadClassicDashboardDefault) String() string

type ReadClassicDashboardInternalServerError

type ReadClassicDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadClassicDashboardInternalServerError

func NewReadClassicDashboardInternalServerError() *ReadClassicDashboardInternalServerError

NewReadClassicDashboardInternalServerError creates a ReadClassicDashboardInternalServerError with default headers values

func (*ReadClassicDashboardInternalServerError) Code

Code gets the status code for the read classic dashboard internal server error response

func (*ReadClassicDashboardInternalServerError) Error

func (*ReadClassicDashboardInternalServerError) GetPayload

func (*ReadClassicDashboardInternalServerError) IsClientError

func (o *ReadClassicDashboardInternalServerError) IsClientError() bool

IsClientError returns true when this read classic dashboard internal server error response has a 4xx status code

func (*ReadClassicDashboardInternalServerError) IsCode

IsCode returns true when this read classic dashboard internal server error response a status code equal to that given

func (*ReadClassicDashboardInternalServerError) IsRedirect

IsRedirect returns true when this read classic dashboard internal server error response has a 3xx status code

func (*ReadClassicDashboardInternalServerError) IsServerError

func (o *ReadClassicDashboardInternalServerError) IsServerError() bool

IsServerError returns true when this read classic dashboard internal server error response has a 5xx status code

func (*ReadClassicDashboardInternalServerError) IsSuccess

IsSuccess returns true when this read classic dashboard internal server error response has a 2xx status code

func (*ReadClassicDashboardInternalServerError) String

type ReadClassicDashboardNotFound

type ReadClassicDashboardNotFound struct {
	Payload *models.APIError
}

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

Cannot read the GrafanaDashboard because the slug does not exist.

func NewReadClassicDashboardNotFound

func NewReadClassicDashboardNotFound() *ReadClassicDashboardNotFound

NewReadClassicDashboardNotFound creates a ReadClassicDashboardNotFound with default headers values

func (*ReadClassicDashboardNotFound) Code

Code gets the status code for the read classic dashboard not found response

func (*ReadClassicDashboardNotFound) Error

func (*ReadClassicDashboardNotFound) GetPayload

func (o *ReadClassicDashboardNotFound) GetPayload() *models.APIError

func (*ReadClassicDashboardNotFound) IsClientError

func (o *ReadClassicDashboardNotFound) IsClientError() bool

IsClientError returns true when this read classic dashboard not found response has a 4xx status code

func (*ReadClassicDashboardNotFound) IsCode

func (o *ReadClassicDashboardNotFound) IsCode(code int) bool

IsCode returns true when this read classic dashboard not found response a status code equal to that given

func (*ReadClassicDashboardNotFound) IsRedirect

func (o *ReadClassicDashboardNotFound) IsRedirect() bool

IsRedirect returns true when this read classic dashboard not found response has a 3xx status code

func (*ReadClassicDashboardNotFound) IsServerError

func (o *ReadClassicDashboardNotFound) IsServerError() bool

IsServerError returns true when this read classic dashboard not found response has a 5xx status code

func (*ReadClassicDashboardNotFound) IsSuccess

func (o *ReadClassicDashboardNotFound) IsSuccess() bool

IsSuccess returns true when this read classic dashboard not found response has a 2xx status code

func (*ReadClassicDashboardNotFound) String

type ReadClassicDashboardOK

type ReadClassicDashboardOK struct {
	Payload *models.Configv1ReadClassicDashboardResponse
}

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

A successful response.

func NewReadClassicDashboardOK

func NewReadClassicDashboardOK() *ReadClassicDashboardOK

NewReadClassicDashboardOK creates a ReadClassicDashboardOK with default headers values

func (*ReadClassicDashboardOK) Code

func (o *ReadClassicDashboardOK) Code() int

Code gets the status code for the read classic dashboard o k response

func (*ReadClassicDashboardOK) Error

func (o *ReadClassicDashboardOK) Error() string

func (*ReadClassicDashboardOK) GetPayload

func (*ReadClassicDashboardOK) IsClientError

func (o *ReadClassicDashboardOK) IsClientError() bool

IsClientError returns true when this read classic dashboard o k response has a 4xx status code

func (*ReadClassicDashboardOK) IsCode

func (o *ReadClassicDashboardOK) IsCode(code int) bool

IsCode returns true when this read classic dashboard o k response a status code equal to that given

func (*ReadClassicDashboardOK) IsRedirect

func (o *ReadClassicDashboardOK) IsRedirect() bool

IsRedirect returns true when this read classic dashboard o k response has a 3xx status code

func (*ReadClassicDashboardOK) IsServerError

func (o *ReadClassicDashboardOK) IsServerError() bool

IsServerError returns true when this read classic dashboard o k response has a 5xx status code

func (*ReadClassicDashboardOK) IsSuccess

func (o *ReadClassicDashboardOK) IsSuccess() bool

IsSuccess returns true when this read classic dashboard o k response has a 2xx status code

func (*ReadClassicDashboardOK) String

func (o *ReadClassicDashboardOK) String() string

type ReadClassicDashboardParams

type ReadClassicDashboardParams struct {

	// Slug.
	Slug string

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

ReadClassicDashboardParams contains all the parameters to send to the API endpoint

for the read classic dashboard operation.

Typically these are written to a http.Request.

func NewReadClassicDashboardParams

func NewReadClassicDashboardParams() *ReadClassicDashboardParams

NewReadClassicDashboardParams creates a new ReadClassicDashboardParams 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 NewReadClassicDashboardParamsWithContext

func NewReadClassicDashboardParamsWithContext(ctx context.Context) *ReadClassicDashboardParams

NewReadClassicDashboardParamsWithContext creates a new ReadClassicDashboardParams object with the ability to set a context for a request.

func NewReadClassicDashboardParamsWithHTTPClient

func NewReadClassicDashboardParamsWithHTTPClient(client *http.Client) *ReadClassicDashboardParams

NewReadClassicDashboardParamsWithHTTPClient creates a new ReadClassicDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewReadClassicDashboardParamsWithTimeout

func NewReadClassicDashboardParamsWithTimeout(timeout time.Duration) *ReadClassicDashboardParams

NewReadClassicDashboardParamsWithTimeout creates a new ReadClassicDashboardParams object with the ability to set a timeout on a request.

func (*ReadClassicDashboardParams) SetContext

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

SetContext adds the context to the read classic dashboard params

func (*ReadClassicDashboardParams) SetDefaults

func (o *ReadClassicDashboardParams) SetDefaults()

SetDefaults hydrates default values in the read classic dashboard params (not the query body).

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

func (*ReadClassicDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read classic dashboard params

func (*ReadClassicDashboardParams) SetSlug

func (o *ReadClassicDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the read classic dashboard params

func (*ReadClassicDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the read classic dashboard params

func (*ReadClassicDashboardParams) WithContext

WithContext adds the context to the read classic dashboard params

func (*ReadClassicDashboardParams) WithDefaults

WithDefaults hydrates default values in the read classic dashboard params (not the query body).

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

func (*ReadClassicDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the read classic dashboard params

func (*ReadClassicDashboardParams) WithSlug

WithSlug adds the slug to the read classic dashboard params

func (*ReadClassicDashboardParams) WithTimeout

WithTimeout adds the timeout to the read classic dashboard params

func (*ReadClassicDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadClassicDashboardReader

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

ReadClassicDashboardReader is a Reader for the ReadClassicDashboard structure.

func (*ReadClassicDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateClassicDashboardBadRequest

type UpdateClassicDashboardBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the GrafanaDashboard because the request is invalid.

func NewUpdateClassicDashboardBadRequest

func NewUpdateClassicDashboardBadRequest() *UpdateClassicDashboardBadRequest

NewUpdateClassicDashboardBadRequest creates a UpdateClassicDashboardBadRequest with default headers values

func (*UpdateClassicDashboardBadRequest) Code

Code gets the status code for the update classic dashboard bad request response

func (*UpdateClassicDashboardBadRequest) Error

func (*UpdateClassicDashboardBadRequest) GetPayload

func (*UpdateClassicDashboardBadRequest) IsClientError

func (o *UpdateClassicDashboardBadRequest) IsClientError() bool

IsClientError returns true when this update classic dashboard bad request response has a 4xx status code

func (*UpdateClassicDashboardBadRequest) IsCode

func (o *UpdateClassicDashboardBadRequest) IsCode(code int) bool

IsCode returns true when this update classic dashboard bad request response a status code equal to that given

func (*UpdateClassicDashboardBadRequest) IsRedirect

func (o *UpdateClassicDashboardBadRequest) IsRedirect() bool

IsRedirect returns true when this update classic dashboard bad request response has a 3xx status code

func (*UpdateClassicDashboardBadRequest) IsServerError

func (o *UpdateClassicDashboardBadRequest) IsServerError() bool

IsServerError returns true when this update classic dashboard bad request response has a 5xx status code

func (*UpdateClassicDashboardBadRequest) IsSuccess

func (o *UpdateClassicDashboardBadRequest) IsSuccess() bool

IsSuccess returns true when this update classic dashboard bad request response has a 2xx status code

func (*UpdateClassicDashboardBadRequest) String

type UpdateClassicDashboardConflict

type UpdateClassicDashboardConflict struct {
	Payload *models.APIError
}

UpdateClassicDashboardConflict describes a response with status code 409, with default header values.

Cannot update the GrafanaDashboard because there is a conflict with an existing GrafanaDashboard.

func NewUpdateClassicDashboardConflict

func NewUpdateClassicDashboardConflict() *UpdateClassicDashboardConflict

NewUpdateClassicDashboardConflict creates a UpdateClassicDashboardConflict with default headers values

func (*UpdateClassicDashboardConflict) Code

Code gets the status code for the update classic dashboard conflict response

func (*UpdateClassicDashboardConflict) Error

func (*UpdateClassicDashboardConflict) GetPayload

func (*UpdateClassicDashboardConflict) IsClientError

func (o *UpdateClassicDashboardConflict) IsClientError() bool

IsClientError returns true when this update classic dashboard conflict response has a 4xx status code

func (*UpdateClassicDashboardConflict) IsCode

func (o *UpdateClassicDashboardConflict) IsCode(code int) bool

IsCode returns true when this update classic dashboard conflict response a status code equal to that given

func (*UpdateClassicDashboardConflict) IsRedirect

func (o *UpdateClassicDashboardConflict) IsRedirect() bool

IsRedirect returns true when this update classic dashboard conflict response has a 3xx status code

func (*UpdateClassicDashboardConflict) IsServerError

func (o *UpdateClassicDashboardConflict) IsServerError() bool

IsServerError returns true when this update classic dashboard conflict response has a 5xx status code

func (*UpdateClassicDashboardConflict) IsSuccess

func (o *UpdateClassicDashboardConflict) IsSuccess() bool

IsSuccess returns true when this update classic dashboard conflict response has a 2xx status code

func (*UpdateClassicDashboardConflict) String

type UpdateClassicDashboardDefault

type UpdateClassicDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateClassicDashboardDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateClassicDashboardDefault

func NewUpdateClassicDashboardDefault(code int) *UpdateClassicDashboardDefault

NewUpdateClassicDashboardDefault creates a UpdateClassicDashboardDefault with default headers values

func (*UpdateClassicDashboardDefault) Code

Code gets the status code for the update classic dashboard default response

func (*UpdateClassicDashboardDefault) Error

func (*UpdateClassicDashboardDefault) GetPayload

func (*UpdateClassicDashboardDefault) IsClientError

func (o *UpdateClassicDashboardDefault) IsClientError() bool

IsClientError returns true when this update classic dashboard default response has a 4xx status code

func (*UpdateClassicDashboardDefault) IsCode

func (o *UpdateClassicDashboardDefault) IsCode(code int) bool

IsCode returns true when this update classic dashboard default response a status code equal to that given

func (*UpdateClassicDashboardDefault) IsRedirect

func (o *UpdateClassicDashboardDefault) IsRedirect() bool

IsRedirect returns true when this update classic dashboard default response has a 3xx status code

func (*UpdateClassicDashboardDefault) IsServerError

func (o *UpdateClassicDashboardDefault) IsServerError() bool

IsServerError returns true when this update classic dashboard default response has a 5xx status code

func (*UpdateClassicDashboardDefault) IsSuccess

func (o *UpdateClassicDashboardDefault) IsSuccess() bool

IsSuccess returns true when this update classic dashboard default response has a 2xx status code

func (*UpdateClassicDashboardDefault) String

type UpdateClassicDashboardInternalServerError

type UpdateClassicDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateClassicDashboardInternalServerError

func NewUpdateClassicDashboardInternalServerError() *UpdateClassicDashboardInternalServerError

NewUpdateClassicDashboardInternalServerError creates a UpdateClassicDashboardInternalServerError with default headers values

func (*UpdateClassicDashboardInternalServerError) Code

Code gets the status code for the update classic dashboard internal server error response

func (*UpdateClassicDashboardInternalServerError) Error

func (*UpdateClassicDashboardInternalServerError) GetPayload

func (*UpdateClassicDashboardInternalServerError) IsClientError

IsClientError returns true when this update classic dashboard internal server error response has a 4xx status code

func (*UpdateClassicDashboardInternalServerError) IsCode

IsCode returns true when this update classic dashboard internal server error response a status code equal to that given

func (*UpdateClassicDashboardInternalServerError) IsRedirect

IsRedirect returns true when this update classic dashboard internal server error response has a 3xx status code

func (*UpdateClassicDashboardInternalServerError) IsServerError

IsServerError returns true when this update classic dashboard internal server error response has a 5xx status code

func (*UpdateClassicDashboardInternalServerError) IsSuccess

IsSuccess returns true when this update classic dashboard internal server error response has a 2xx status code

func (*UpdateClassicDashboardInternalServerError) String

type UpdateClassicDashboardNotFound

type UpdateClassicDashboardNotFound struct {
	Payload *models.APIError
}

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

Cannot update the GrafanaDashboard because the slug does not exist.

func NewUpdateClassicDashboardNotFound

func NewUpdateClassicDashboardNotFound() *UpdateClassicDashboardNotFound

NewUpdateClassicDashboardNotFound creates a UpdateClassicDashboardNotFound with default headers values

func (*UpdateClassicDashboardNotFound) Code

Code gets the status code for the update classic dashboard not found response

func (*UpdateClassicDashboardNotFound) Error

func (*UpdateClassicDashboardNotFound) GetPayload

func (*UpdateClassicDashboardNotFound) IsClientError

func (o *UpdateClassicDashboardNotFound) IsClientError() bool

IsClientError returns true when this update classic dashboard not found response has a 4xx status code

func (*UpdateClassicDashboardNotFound) IsCode

func (o *UpdateClassicDashboardNotFound) IsCode(code int) bool

IsCode returns true when this update classic dashboard not found response a status code equal to that given

func (*UpdateClassicDashboardNotFound) IsRedirect

func (o *UpdateClassicDashboardNotFound) IsRedirect() bool

IsRedirect returns true when this update classic dashboard not found response has a 3xx status code

func (*UpdateClassicDashboardNotFound) IsServerError

func (o *UpdateClassicDashboardNotFound) IsServerError() bool

IsServerError returns true when this update classic dashboard not found response has a 5xx status code

func (*UpdateClassicDashboardNotFound) IsSuccess

func (o *UpdateClassicDashboardNotFound) IsSuccess() bool

IsSuccess returns true when this update classic dashboard not found response has a 2xx status code

func (*UpdateClassicDashboardNotFound) String

type UpdateClassicDashboardOK

type UpdateClassicDashboardOK struct {
	Payload *models.Configv1UpdateClassicDashboardResponse
}

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

A successful response containing the updated GrafanaDashboard.

func NewUpdateClassicDashboardOK

func NewUpdateClassicDashboardOK() *UpdateClassicDashboardOK

NewUpdateClassicDashboardOK creates a UpdateClassicDashboardOK with default headers values

func (*UpdateClassicDashboardOK) Code

func (o *UpdateClassicDashboardOK) Code() int

Code gets the status code for the update classic dashboard o k response

func (*UpdateClassicDashboardOK) Error

func (o *UpdateClassicDashboardOK) Error() string

func (*UpdateClassicDashboardOK) GetPayload

func (*UpdateClassicDashboardOK) IsClientError

func (o *UpdateClassicDashboardOK) IsClientError() bool

IsClientError returns true when this update classic dashboard o k response has a 4xx status code

func (*UpdateClassicDashboardOK) IsCode

func (o *UpdateClassicDashboardOK) IsCode(code int) bool

IsCode returns true when this update classic dashboard o k response a status code equal to that given

func (*UpdateClassicDashboardOK) IsRedirect

func (o *UpdateClassicDashboardOK) IsRedirect() bool

IsRedirect returns true when this update classic dashboard o k response has a 3xx status code

func (*UpdateClassicDashboardOK) IsServerError

func (o *UpdateClassicDashboardOK) IsServerError() bool

IsServerError returns true when this update classic dashboard o k response has a 5xx status code

func (*UpdateClassicDashboardOK) IsSuccess

func (o *UpdateClassicDashboardOK) IsSuccess() bool

IsSuccess returns true when this update classic dashboard o k response has a 2xx status code

func (*UpdateClassicDashboardOK) String

func (o *UpdateClassicDashboardOK) String() string

type UpdateClassicDashboardParams

type UpdateClassicDashboardParams struct {

	// Body.
	Body *models.ConfigV1UpdateClassicDashboardBody

	// Slug.
	Slug string

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

UpdateClassicDashboardParams contains all the parameters to send to the API endpoint

for the update classic dashboard operation.

Typically these are written to a http.Request.

func NewUpdateClassicDashboardParams

func NewUpdateClassicDashboardParams() *UpdateClassicDashboardParams

NewUpdateClassicDashboardParams creates a new UpdateClassicDashboardParams 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 NewUpdateClassicDashboardParamsWithContext

func NewUpdateClassicDashboardParamsWithContext(ctx context.Context) *UpdateClassicDashboardParams

NewUpdateClassicDashboardParamsWithContext creates a new UpdateClassicDashboardParams object with the ability to set a context for a request.

func NewUpdateClassicDashboardParamsWithHTTPClient

func NewUpdateClassicDashboardParamsWithHTTPClient(client *http.Client) *UpdateClassicDashboardParams

NewUpdateClassicDashboardParamsWithHTTPClient creates a new UpdateClassicDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateClassicDashboardParamsWithTimeout

func NewUpdateClassicDashboardParamsWithTimeout(timeout time.Duration) *UpdateClassicDashboardParams

NewUpdateClassicDashboardParamsWithTimeout creates a new UpdateClassicDashboardParams object with the ability to set a timeout on a request.

func (*UpdateClassicDashboardParams) SetBody

SetBody adds the body to the update classic dashboard params

func (*UpdateClassicDashboardParams) SetContext

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

SetContext adds the context to the update classic dashboard params

func (*UpdateClassicDashboardParams) SetDefaults

func (o *UpdateClassicDashboardParams) SetDefaults()

SetDefaults hydrates default values in the update classic dashboard params (not the query body).

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

func (*UpdateClassicDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update classic dashboard params

func (*UpdateClassicDashboardParams) SetSlug

func (o *UpdateClassicDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the update classic dashboard params

func (*UpdateClassicDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the update classic dashboard params

func (*UpdateClassicDashboardParams) WithBody

WithBody adds the body to the update classic dashboard params

func (*UpdateClassicDashboardParams) WithContext

WithContext adds the context to the update classic dashboard params

func (*UpdateClassicDashboardParams) WithDefaults

WithDefaults hydrates default values in the update classic dashboard params (not the query body).

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

func (*UpdateClassicDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update classic dashboard params

func (*UpdateClassicDashboardParams) WithSlug

WithSlug adds the slug to the update classic dashboard params

func (*UpdateClassicDashboardParams) WithTimeout

WithTimeout adds the timeout to the update classic dashboard params

func (*UpdateClassicDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateClassicDashboardReader

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

UpdateClassicDashboardReader is a Reader for the UpdateClassicDashboard structure.

func (*UpdateClassicDashboardReader) ReadResponse

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