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

func (*Client) CreateDashboard

func (a *Client) CreateDashboard(params *CreateDashboardParams, opts ...ClientOption) (*CreateDashboardOK, error)

CreateDashboard create dashboard API

func (*Client) DeleteDashboard

func (a *Client) DeleteDashboard(params *DeleteDashboardParams, opts ...ClientOption) (*DeleteDashboardOK, error)

DeleteDashboard delete dashboard API

func (*Client) ListDashboards

func (a *Client) ListDashboards(params *ListDashboardsParams, opts ...ClientOption) (*ListDashboardsOK, error)

ListDashboards list dashboards API

func (*Client) ReadDashboard

func (a *Client) ReadDashboard(params *ReadDashboardParams, opts ...ClientOption) (*ReadDashboardOK, error)

ReadDashboard read dashboard API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateDashboard

func (a *Client) UpdateDashboard(params *UpdateDashboardParams, opts ...ClientOption) (*UpdateDashboardOK, error)

UpdateDashboard update dashboard API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDashboard(params *CreateDashboardParams, opts ...ClientOption) (*CreateDashboardOK, error)

	DeleteDashboard(params *DeleteDashboardParams, opts ...ClientOption) (*DeleteDashboardOK, error)

	ListDashboards(params *ListDashboardsParams, opts ...ClientOption) (*ListDashboardsOK, error)

	ReadDashboard(params *ReadDashboardParams, opts ...ClientOption) (*ReadDashboardOK, error)

	UpdateDashboard(params *UpdateDashboardParams, opts ...ClientOption) (*UpdateDashboardOK, 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 dashboard API client.

type CreateDashboardBadRequest

type CreateDashboardBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the Dashboard because the request is invalid.

func NewCreateDashboardBadRequest

func NewCreateDashboardBadRequest() *CreateDashboardBadRequest

NewCreateDashboardBadRequest creates a CreateDashboardBadRequest with default headers values

func (*CreateDashboardBadRequest) Code

func (o *CreateDashboardBadRequest) Code() int

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

func (*CreateDashboardBadRequest) Error

func (o *CreateDashboardBadRequest) Error() string

func (*CreateDashboardBadRequest) GetPayload

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

func (*CreateDashboardBadRequest) IsClientError

func (o *CreateDashboardBadRequest) IsClientError() bool

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

func (*CreateDashboardBadRequest) IsCode

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

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

func (*CreateDashboardBadRequest) IsRedirect

func (o *CreateDashboardBadRequest) IsRedirect() bool

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

func (*CreateDashboardBadRequest) IsServerError

func (o *CreateDashboardBadRequest) IsServerError() bool

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

func (*CreateDashboardBadRequest) IsSuccess

func (o *CreateDashboardBadRequest) IsSuccess() bool

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

func (*CreateDashboardBadRequest) String

func (o *CreateDashboardBadRequest) String() string

type CreateDashboardConflict

type CreateDashboardConflict struct {
	Payload *models.APIError
}

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

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

func NewCreateDashboardConflict

func NewCreateDashboardConflict() *CreateDashboardConflict

NewCreateDashboardConflict creates a CreateDashboardConflict with default headers values

func (*CreateDashboardConflict) Code

func (o *CreateDashboardConflict) Code() int

Code gets the status code for the create dashboard conflict response

func (*CreateDashboardConflict) Error

func (o *CreateDashboardConflict) Error() string

func (*CreateDashboardConflict) GetPayload

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

func (*CreateDashboardConflict) IsClientError

func (o *CreateDashboardConflict) IsClientError() bool

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

func (*CreateDashboardConflict) IsCode

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

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

func (*CreateDashboardConflict) IsRedirect

func (o *CreateDashboardConflict) IsRedirect() bool

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

func (*CreateDashboardConflict) IsServerError

func (o *CreateDashboardConflict) IsServerError() bool

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

func (*CreateDashboardConflict) IsSuccess

func (o *CreateDashboardConflict) IsSuccess() bool

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

func (*CreateDashboardConflict) String

func (o *CreateDashboardConflict) String() string

type CreateDashboardDefault

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

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

An undefined error response.

func NewCreateDashboardDefault

func NewCreateDashboardDefault(code int) *CreateDashboardDefault

NewCreateDashboardDefault creates a CreateDashboardDefault with default headers values

func (*CreateDashboardDefault) Code

func (o *CreateDashboardDefault) Code() int

Code gets the status code for the create dashboard default response

func (*CreateDashboardDefault) Error

func (o *CreateDashboardDefault) Error() string

func (*CreateDashboardDefault) GetPayload

func (o *CreateDashboardDefault) GetPayload() models.GenericError

func (*CreateDashboardDefault) IsClientError

func (o *CreateDashboardDefault) IsClientError() bool

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

func (*CreateDashboardDefault) IsCode

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

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

func (*CreateDashboardDefault) IsRedirect

func (o *CreateDashboardDefault) IsRedirect() bool

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

func (*CreateDashboardDefault) IsServerError

func (o *CreateDashboardDefault) IsServerError() bool

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

func (*CreateDashboardDefault) IsSuccess

func (o *CreateDashboardDefault) IsSuccess() bool

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

func (*CreateDashboardDefault) String

func (o *CreateDashboardDefault) String() string

type CreateDashboardInternalServerError

type CreateDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateDashboardInternalServerError

func NewCreateDashboardInternalServerError() *CreateDashboardInternalServerError

NewCreateDashboardInternalServerError creates a CreateDashboardInternalServerError with default headers values

func (*CreateDashboardInternalServerError) Code

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

func (*CreateDashboardInternalServerError) Error

func (*CreateDashboardInternalServerError) GetPayload

func (*CreateDashboardInternalServerError) IsClientError

func (o *CreateDashboardInternalServerError) IsClientError() bool

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

func (*CreateDashboardInternalServerError) IsCode

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

func (*CreateDashboardInternalServerError) IsRedirect

func (o *CreateDashboardInternalServerError) IsRedirect() bool

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

func (*CreateDashboardInternalServerError) IsServerError

func (o *CreateDashboardInternalServerError) IsServerError() bool

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

func (*CreateDashboardInternalServerError) IsSuccess

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

func (*CreateDashboardInternalServerError) String

type CreateDashboardOK

type CreateDashboardOK struct {
	Payload *models.Configv1CreateDashboardResponse
}

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

A successful response containing the created Dashboard.

func NewCreateDashboardOK

func NewCreateDashboardOK() *CreateDashboardOK

NewCreateDashboardOK creates a CreateDashboardOK with default headers values

func (*CreateDashboardOK) Code

func (o *CreateDashboardOK) Code() int

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

func (*CreateDashboardOK) Error

func (o *CreateDashboardOK) Error() string

func (*CreateDashboardOK) GetPayload

func (*CreateDashboardOK) IsClientError

func (o *CreateDashboardOK) IsClientError() bool

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

func (*CreateDashboardOK) IsCode

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

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

func (*CreateDashboardOK) IsRedirect

func (o *CreateDashboardOK) IsRedirect() bool

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

func (*CreateDashboardOK) IsServerError

func (o *CreateDashboardOK) IsServerError() bool

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

func (*CreateDashboardOK) IsSuccess

func (o *CreateDashboardOK) IsSuccess() bool

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

func (*CreateDashboardOK) String

func (o *CreateDashboardOK) String() string

type CreateDashboardParams

type CreateDashboardParams struct {

	// Body.
	Body *models.Configv1CreateDashboardRequest

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

CreateDashboardParams contains all the parameters to send to the API endpoint

for the create dashboard operation.

Typically these are written to a http.Request.

func NewCreateDashboardParams

func NewCreateDashboardParams() *CreateDashboardParams

NewCreateDashboardParams creates a new CreateDashboardParams 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 NewCreateDashboardParamsWithContext

func NewCreateDashboardParamsWithContext(ctx context.Context) *CreateDashboardParams

NewCreateDashboardParamsWithContext creates a new CreateDashboardParams object with the ability to set a context for a request.

func NewCreateDashboardParamsWithHTTPClient

func NewCreateDashboardParamsWithHTTPClient(client *http.Client) *CreateDashboardParams

NewCreateDashboardParamsWithHTTPClient creates a new CreateDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDashboardParamsWithTimeout

func NewCreateDashboardParamsWithTimeout(timeout time.Duration) *CreateDashboardParams

NewCreateDashboardParamsWithTimeout creates a new CreateDashboardParams object with the ability to set a timeout on a request.

func (*CreateDashboardParams) SetBody

SetBody adds the body to the create dashboard params

func (*CreateDashboardParams) SetContext

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

SetContext adds the context to the create dashboard params

func (*CreateDashboardParams) SetDefaults

func (o *CreateDashboardParams) SetDefaults()

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

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

func (*CreateDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create dashboard params

func (*CreateDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the create dashboard params

func (*CreateDashboardParams) WithBody

WithBody adds the body to the create dashboard params

func (*CreateDashboardParams) WithContext

WithContext adds the context to the create dashboard params

func (*CreateDashboardParams) WithDefaults

func (o *CreateDashboardParams) WithDefaults() *CreateDashboardParams

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

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

func (*CreateDashboardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create dashboard params

func (*CreateDashboardParams) WithTimeout

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

WithTimeout adds the timeout to the create dashboard params

func (*CreateDashboardParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateDashboardReader

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

CreateDashboardReader is a Reader for the CreateDashboard structure.

func (*CreateDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDashboardBadRequest

type DeleteDashboardBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the Dashboard because it is in use.

func NewDeleteDashboardBadRequest

func NewDeleteDashboardBadRequest() *DeleteDashboardBadRequest

NewDeleteDashboardBadRequest creates a DeleteDashboardBadRequest with default headers values

func (*DeleteDashboardBadRequest) Code

func (o *DeleteDashboardBadRequest) Code() int

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

func (*DeleteDashboardBadRequest) Error

func (o *DeleteDashboardBadRequest) Error() string

func (*DeleteDashboardBadRequest) GetPayload

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

func (*DeleteDashboardBadRequest) IsClientError

func (o *DeleteDashboardBadRequest) IsClientError() bool

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

func (*DeleteDashboardBadRequest) IsCode

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

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

func (*DeleteDashboardBadRequest) IsRedirect

func (o *DeleteDashboardBadRequest) IsRedirect() bool

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

func (*DeleteDashboardBadRequest) IsServerError

func (o *DeleteDashboardBadRequest) IsServerError() bool

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

func (*DeleteDashboardBadRequest) IsSuccess

func (o *DeleteDashboardBadRequest) IsSuccess() bool

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

func (*DeleteDashboardBadRequest) String

func (o *DeleteDashboardBadRequest) String() string

type DeleteDashboardDefault

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

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

An undefined error response.

func NewDeleteDashboardDefault

func NewDeleteDashboardDefault(code int) *DeleteDashboardDefault

NewDeleteDashboardDefault creates a DeleteDashboardDefault with default headers values

func (*DeleteDashboardDefault) Code

func (o *DeleteDashboardDefault) Code() int

Code gets the status code for the delete dashboard default response

func (*DeleteDashboardDefault) Error

func (o *DeleteDashboardDefault) Error() string

func (*DeleteDashboardDefault) GetPayload

func (o *DeleteDashboardDefault) GetPayload() models.GenericError

func (*DeleteDashboardDefault) IsClientError

func (o *DeleteDashboardDefault) IsClientError() bool

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

func (*DeleteDashboardDefault) IsCode

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

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

func (*DeleteDashboardDefault) IsRedirect

func (o *DeleteDashboardDefault) IsRedirect() bool

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

func (*DeleteDashboardDefault) IsServerError

func (o *DeleteDashboardDefault) IsServerError() bool

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

func (*DeleteDashboardDefault) IsSuccess

func (o *DeleteDashboardDefault) IsSuccess() bool

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

func (*DeleteDashboardDefault) String

func (o *DeleteDashboardDefault) String() string

type DeleteDashboardInternalServerError

type DeleteDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteDashboardInternalServerError

func NewDeleteDashboardInternalServerError() *DeleteDashboardInternalServerError

NewDeleteDashboardInternalServerError creates a DeleteDashboardInternalServerError with default headers values

func (*DeleteDashboardInternalServerError) Code

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

func (*DeleteDashboardInternalServerError) Error

func (*DeleteDashboardInternalServerError) GetPayload

func (*DeleteDashboardInternalServerError) IsClientError

func (o *DeleteDashboardInternalServerError) IsClientError() bool

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

func (*DeleteDashboardInternalServerError) IsCode

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

func (*DeleteDashboardInternalServerError) IsRedirect

func (o *DeleteDashboardInternalServerError) IsRedirect() bool

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

func (*DeleteDashboardInternalServerError) IsServerError

func (o *DeleteDashboardInternalServerError) IsServerError() bool

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

func (*DeleteDashboardInternalServerError) IsSuccess

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

func (*DeleteDashboardInternalServerError) String

type DeleteDashboardNotFound

type DeleteDashboardNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the Dashboard because the slug does not exist.

func NewDeleteDashboardNotFound

func NewDeleteDashboardNotFound() *DeleteDashboardNotFound

NewDeleteDashboardNotFound creates a DeleteDashboardNotFound with default headers values

func (*DeleteDashboardNotFound) Code

func (o *DeleteDashboardNotFound) Code() int

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

func (*DeleteDashboardNotFound) Error

func (o *DeleteDashboardNotFound) Error() string

func (*DeleteDashboardNotFound) GetPayload

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

func (*DeleteDashboardNotFound) IsClientError

func (o *DeleteDashboardNotFound) IsClientError() bool

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

func (*DeleteDashboardNotFound) IsCode

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

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

func (*DeleteDashboardNotFound) IsRedirect

func (o *DeleteDashboardNotFound) IsRedirect() bool

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

func (*DeleteDashboardNotFound) IsServerError

func (o *DeleteDashboardNotFound) IsServerError() bool

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

func (*DeleteDashboardNotFound) IsSuccess

func (o *DeleteDashboardNotFound) IsSuccess() bool

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

func (*DeleteDashboardNotFound) String

func (o *DeleteDashboardNotFound) String() string

type DeleteDashboardOK

type DeleteDashboardOK struct {
	Payload models.Configv1DeleteDashboardResponse
}

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

A successful response.

func NewDeleteDashboardOK

func NewDeleteDashboardOK() *DeleteDashboardOK

NewDeleteDashboardOK creates a DeleteDashboardOK with default headers values

func (*DeleteDashboardOK) Code

func (o *DeleteDashboardOK) Code() int

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

func (*DeleteDashboardOK) Error

func (o *DeleteDashboardOK) Error() string

func (*DeleteDashboardOK) GetPayload

func (*DeleteDashboardOK) IsClientError

func (o *DeleteDashboardOK) IsClientError() bool

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

func (*DeleteDashboardOK) IsCode

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

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

func (*DeleteDashboardOK) IsRedirect

func (o *DeleteDashboardOK) IsRedirect() bool

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

func (*DeleteDashboardOK) IsServerError

func (o *DeleteDashboardOK) IsServerError() bool

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

func (*DeleteDashboardOK) IsSuccess

func (o *DeleteDashboardOK) IsSuccess() bool

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

func (*DeleteDashboardOK) String

func (o *DeleteDashboardOK) String() string

type DeleteDashboardParams

type DeleteDashboardParams struct {

	// Slug.
	Slug string

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

DeleteDashboardParams contains all the parameters to send to the API endpoint

for the delete dashboard operation.

Typically these are written to a http.Request.

func NewDeleteDashboardParams

func NewDeleteDashboardParams() *DeleteDashboardParams

NewDeleteDashboardParams creates a new DeleteDashboardParams 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 NewDeleteDashboardParamsWithContext

func NewDeleteDashboardParamsWithContext(ctx context.Context) *DeleteDashboardParams

NewDeleteDashboardParamsWithContext creates a new DeleteDashboardParams object with the ability to set a context for a request.

func NewDeleteDashboardParamsWithHTTPClient

func NewDeleteDashboardParamsWithHTTPClient(client *http.Client) *DeleteDashboardParams

NewDeleteDashboardParamsWithHTTPClient creates a new DeleteDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDashboardParamsWithTimeout

func NewDeleteDashboardParamsWithTimeout(timeout time.Duration) *DeleteDashboardParams

NewDeleteDashboardParamsWithTimeout creates a new DeleteDashboardParams object with the ability to set a timeout on a request.

func (*DeleteDashboardParams) SetContext

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

SetContext adds the context to the delete dashboard params

func (*DeleteDashboardParams) SetDefaults

func (o *DeleteDashboardParams) SetDefaults()

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

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

func (*DeleteDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete dashboard params

func (*DeleteDashboardParams) SetSlug

func (o *DeleteDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the delete dashboard params

func (*DeleteDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the delete dashboard params

func (*DeleteDashboardParams) WithContext

WithContext adds the context to the delete dashboard params

func (*DeleteDashboardParams) WithDefaults

func (o *DeleteDashboardParams) WithDefaults() *DeleteDashboardParams

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

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

func (*DeleteDashboardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete dashboard params

func (*DeleteDashboardParams) WithSlug

WithSlug adds the slug to the delete dashboard params

func (*DeleteDashboardParams) WithTimeout

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

WithTimeout adds the timeout to the delete dashboard params

func (*DeleteDashboardParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteDashboardReader

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

DeleteDashboardReader is a Reader for the DeleteDashboard structure.

func (*DeleteDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDashboardsDefault

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

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

An undefined error response.

func NewListDashboardsDefault

func NewListDashboardsDefault(code int) *ListDashboardsDefault

NewListDashboardsDefault creates a ListDashboardsDefault with default headers values

func (*ListDashboardsDefault) Code

func (o *ListDashboardsDefault) Code() int

Code gets the status code for the list dashboards default response

func (*ListDashboardsDefault) Error

func (o *ListDashboardsDefault) Error() string

func (*ListDashboardsDefault) GetPayload

func (o *ListDashboardsDefault) GetPayload() models.GenericError

func (*ListDashboardsDefault) IsClientError

func (o *ListDashboardsDefault) IsClientError() bool

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

func (*ListDashboardsDefault) IsCode

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

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

func (*ListDashboardsDefault) IsRedirect

func (o *ListDashboardsDefault) IsRedirect() bool

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

func (*ListDashboardsDefault) IsServerError

func (o *ListDashboardsDefault) IsServerError() bool

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

func (*ListDashboardsDefault) IsSuccess

func (o *ListDashboardsDefault) IsSuccess() bool

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

func (*ListDashboardsDefault) String

func (o *ListDashboardsDefault) String() string

type ListDashboardsInternalServerError

type ListDashboardsInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListDashboardsInternalServerError

func NewListDashboardsInternalServerError() *ListDashboardsInternalServerError

NewListDashboardsInternalServerError creates a ListDashboardsInternalServerError with default headers values

func (*ListDashboardsInternalServerError) Code

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

func (*ListDashboardsInternalServerError) Error

func (*ListDashboardsInternalServerError) GetPayload

func (*ListDashboardsInternalServerError) IsClientError

func (o *ListDashboardsInternalServerError) IsClientError() bool

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

func (*ListDashboardsInternalServerError) IsCode

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

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

func (*ListDashboardsInternalServerError) IsRedirect

func (o *ListDashboardsInternalServerError) IsRedirect() bool

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

func (*ListDashboardsInternalServerError) IsServerError

func (o *ListDashboardsInternalServerError) IsServerError() bool

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

func (*ListDashboardsInternalServerError) IsSuccess

func (o *ListDashboardsInternalServerError) IsSuccess() bool

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

func (*ListDashboardsInternalServerError) String

type ListDashboardsOK

type ListDashboardsOK struct {
	Payload *models.Configv1ListDashboardsResponse
}

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

A successful response.

func NewListDashboardsOK

func NewListDashboardsOK() *ListDashboardsOK

NewListDashboardsOK creates a ListDashboardsOK with default headers values

func (*ListDashboardsOK) Code

func (o *ListDashboardsOK) Code() int

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

func (*ListDashboardsOK) Error

func (o *ListDashboardsOK) Error() string

func (*ListDashboardsOK) GetPayload

func (*ListDashboardsOK) IsClientError

func (o *ListDashboardsOK) IsClientError() bool

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

func (*ListDashboardsOK) IsCode

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

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

func (*ListDashboardsOK) IsRedirect

func (o *ListDashboardsOK) IsRedirect() bool

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

func (*ListDashboardsOK) IsServerError

func (o *ListDashboardsOK) IsServerError() bool

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

func (*ListDashboardsOK) IsSuccess

func (o *ListDashboardsOK) IsSuccess() bool

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

func (*ListDashboardsOK) String

func (o *ListDashboardsOK) String() string

type ListDashboardsParams

type ListDashboardsParams struct {

	/* CollectionSlugs.

	   Filters results by collection_slug, where any Dashboard 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 Dashboard 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 Dashboard 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
}

ListDashboardsParams contains all the parameters to send to the API endpoint

for the list dashboards operation.

Typically these are written to a http.Request.

func NewListDashboardsParams

func NewListDashboardsParams() *ListDashboardsParams

NewListDashboardsParams creates a new ListDashboardsParams 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 NewListDashboardsParamsWithContext

func NewListDashboardsParamsWithContext(ctx context.Context) *ListDashboardsParams

NewListDashboardsParamsWithContext creates a new ListDashboardsParams object with the ability to set a context for a request.

func NewListDashboardsParamsWithHTTPClient

func NewListDashboardsParamsWithHTTPClient(client *http.Client) *ListDashboardsParams

NewListDashboardsParamsWithHTTPClient creates a new ListDashboardsParams object with the ability to set a custom HTTPClient for a request.

func NewListDashboardsParamsWithTimeout

func NewListDashboardsParamsWithTimeout(timeout time.Duration) *ListDashboardsParams

NewListDashboardsParamsWithTimeout creates a new ListDashboardsParams object with the ability to set a timeout on a request.

func (*ListDashboardsParams) SetCollectionSlugs

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

SetCollectionSlugs adds the collectionSlugs to the list dashboards params

func (*ListDashboardsParams) SetContext

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

SetContext adds the context to the list dashboards params

func (*ListDashboardsParams) SetDefaults

func (o *ListDashboardsParams) SetDefaults()

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

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

func (*ListDashboardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list dashboards params

func (*ListDashboardsParams) SetIncludeDashboardJSON

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

SetIncludeDashboardJSON adds the includeDashboardJson to the list dashboards params

func (*ListDashboardsParams) SetNames

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

SetNames adds the names to the list dashboards params

func (*ListDashboardsParams) SetPageMaxSize

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

SetPageMaxSize adds the pageMaxSize to the list dashboards params

func (*ListDashboardsParams) SetPageToken

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

SetPageToken adds the pageToken to the list dashboards params

func (*ListDashboardsParams) SetSlugs

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

SetSlugs adds the slugs to the list dashboards params

func (*ListDashboardsParams) SetTimeout

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

SetTimeout adds the timeout to the list dashboards params

func (*ListDashboardsParams) WithCollectionSlugs

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

WithCollectionSlugs adds the collectionSlugs to the list dashboards params

func (*ListDashboardsParams) WithContext

WithContext adds the context to the list dashboards params

func (*ListDashboardsParams) WithDefaults

func (o *ListDashboardsParams) WithDefaults() *ListDashboardsParams

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

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

func (*ListDashboardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list dashboards params

func (*ListDashboardsParams) WithIncludeDashboardJSON

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

WithIncludeDashboardJSON adds the includeDashboardJSON to the list dashboards params

func (*ListDashboardsParams) WithNames

func (o *ListDashboardsParams) WithNames(names []string) *ListDashboardsParams

WithNames adds the names to the list dashboards params

func (*ListDashboardsParams) WithPageMaxSize

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

WithPageMaxSize adds the pageMaxSize to the list dashboards params

func (*ListDashboardsParams) WithPageToken

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

WithPageToken adds the pageToken to the list dashboards params

func (*ListDashboardsParams) WithSlugs

func (o *ListDashboardsParams) WithSlugs(slugs []string) *ListDashboardsParams

WithSlugs adds the slugs to the list dashboards params

func (*ListDashboardsParams) WithTimeout

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

WithTimeout adds the timeout to the list dashboards params

func (*ListDashboardsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListDashboardsReader

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

ListDashboardsReader is a Reader for the ListDashboards structure.

func (*ListDashboardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadDashboardDefault

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

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

An undefined error response.

func NewReadDashboardDefault

func NewReadDashboardDefault(code int) *ReadDashboardDefault

NewReadDashboardDefault creates a ReadDashboardDefault with default headers values

func (*ReadDashboardDefault) Code

func (o *ReadDashboardDefault) Code() int

Code gets the status code for the read dashboard default response

func (*ReadDashboardDefault) Error

func (o *ReadDashboardDefault) Error() string

func (*ReadDashboardDefault) GetPayload

func (o *ReadDashboardDefault) GetPayload() models.GenericError

func (*ReadDashboardDefault) IsClientError

func (o *ReadDashboardDefault) IsClientError() bool

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

func (*ReadDashboardDefault) IsCode

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

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

func (*ReadDashboardDefault) IsRedirect

func (o *ReadDashboardDefault) IsRedirect() bool

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

func (*ReadDashboardDefault) IsServerError

func (o *ReadDashboardDefault) IsServerError() bool

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

func (*ReadDashboardDefault) IsSuccess

func (o *ReadDashboardDefault) IsSuccess() bool

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

func (*ReadDashboardDefault) String

func (o *ReadDashboardDefault) String() string

type ReadDashboardInternalServerError

type ReadDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadDashboardInternalServerError

func NewReadDashboardInternalServerError() *ReadDashboardInternalServerError

NewReadDashboardInternalServerError creates a ReadDashboardInternalServerError with default headers values

func (*ReadDashboardInternalServerError) Code

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

func (*ReadDashboardInternalServerError) Error

func (*ReadDashboardInternalServerError) GetPayload

func (*ReadDashboardInternalServerError) IsClientError

func (o *ReadDashboardInternalServerError) IsClientError() bool

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

func (*ReadDashboardInternalServerError) IsCode

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

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

func (*ReadDashboardInternalServerError) IsRedirect

func (o *ReadDashboardInternalServerError) IsRedirect() bool

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

func (*ReadDashboardInternalServerError) IsServerError

func (o *ReadDashboardInternalServerError) IsServerError() bool

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

func (*ReadDashboardInternalServerError) IsSuccess

func (o *ReadDashboardInternalServerError) IsSuccess() bool

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

func (*ReadDashboardInternalServerError) String

type ReadDashboardNotFound

type ReadDashboardNotFound struct {
	Payload *models.APIError
}

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

Cannot read the Dashboard because the slug does not exist.

func NewReadDashboardNotFound

func NewReadDashboardNotFound() *ReadDashboardNotFound

NewReadDashboardNotFound creates a ReadDashboardNotFound with default headers values

func (*ReadDashboardNotFound) Code

func (o *ReadDashboardNotFound) Code() int

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

func (*ReadDashboardNotFound) Error

func (o *ReadDashboardNotFound) Error() string

func (*ReadDashboardNotFound) GetPayload

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

func (*ReadDashboardNotFound) IsClientError

func (o *ReadDashboardNotFound) IsClientError() bool

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

func (*ReadDashboardNotFound) IsCode

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

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

func (*ReadDashboardNotFound) IsRedirect

func (o *ReadDashboardNotFound) IsRedirect() bool

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

func (*ReadDashboardNotFound) IsServerError

func (o *ReadDashboardNotFound) IsServerError() bool

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

func (*ReadDashboardNotFound) IsSuccess

func (o *ReadDashboardNotFound) IsSuccess() bool

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

func (*ReadDashboardNotFound) String

func (o *ReadDashboardNotFound) String() string

type ReadDashboardOK

type ReadDashboardOK struct {
	Payload *models.Configv1ReadDashboardResponse
}

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

A successful response.

func NewReadDashboardOK

func NewReadDashboardOK() *ReadDashboardOK

NewReadDashboardOK creates a ReadDashboardOK with default headers values

func (*ReadDashboardOK) Code

func (o *ReadDashboardOK) Code() int

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

func (*ReadDashboardOK) Error

func (o *ReadDashboardOK) Error() string

func (*ReadDashboardOK) GetPayload

func (*ReadDashboardOK) IsClientError

func (o *ReadDashboardOK) IsClientError() bool

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

func (*ReadDashboardOK) IsCode

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

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

func (*ReadDashboardOK) IsRedirect

func (o *ReadDashboardOK) IsRedirect() bool

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

func (*ReadDashboardOK) IsServerError

func (o *ReadDashboardOK) IsServerError() bool

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

func (*ReadDashboardOK) IsSuccess

func (o *ReadDashboardOK) IsSuccess() bool

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

func (*ReadDashboardOK) String

func (o *ReadDashboardOK) String() string

type ReadDashboardParams

type ReadDashboardParams struct {

	// Slug.
	Slug string

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

ReadDashboardParams contains all the parameters to send to the API endpoint

for the read dashboard operation.

Typically these are written to a http.Request.

func NewReadDashboardParams

func NewReadDashboardParams() *ReadDashboardParams

NewReadDashboardParams creates a new ReadDashboardParams 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 NewReadDashboardParamsWithContext

func NewReadDashboardParamsWithContext(ctx context.Context) *ReadDashboardParams

NewReadDashboardParamsWithContext creates a new ReadDashboardParams object with the ability to set a context for a request.

func NewReadDashboardParamsWithHTTPClient

func NewReadDashboardParamsWithHTTPClient(client *http.Client) *ReadDashboardParams

NewReadDashboardParamsWithHTTPClient creates a new ReadDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewReadDashboardParamsWithTimeout

func NewReadDashboardParamsWithTimeout(timeout time.Duration) *ReadDashboardParams

NewReadDashboardParamsWithTimeout creates a new ReadDashboardParams object with the ability to set a timeout on a request.

func (*ReadDashboardParams) SetContext

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

SetContext adds the context to the read dashboard params

func (*ReadDashboardParams) SetDefaults

func (o *ReadDashboardParams) SetDefaults()

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

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

func (*ReadDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read dashboard params

func (*ReadDashboardParams) SetSlug

func (o *ReadDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the read dashboard params

func (*ReadDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the read dashboard params

func (*ReadDashboardParams) WithContext

WithContext adds the context to the read dashboard params

func (*ReadDashboardParams) WithDefaults

func (o *ReadDashboardParams) WithDefaults() *ReadDashboardParams

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

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

func (*ReadDashboardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read dashboard params

func (*ReadDashboardParams) WithSlug

func (o *ReadDashboardParams) WithSlug(slug string) *ReadDashboardParams

WithSlug adds the slug to the read dashboard params

func (*ReadDashboardParams) WithTimeout

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

WithTimeout adds the timeout to the read dashboard params

func (*ReadDashboardParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadDashboardReader

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

ReadDashboardReader is a Reader for the ReadDashboard structure.

func (*ReadDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDashboardBadRequest

type UpdateDashboardBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the Dashboard because the request is invalid.

func NewUpdateDashboardBadRequest

func NewUpdateDashboardBadRequest() *UpdateDashboardBadRequest

NewUpdateDashboardBadRequest creates a UpdateDashboardBadRequest with default headers values

func (*UpdateDashboardBadRequest) Code

func (o *UpdateDashboardBadRequest) Code() int

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

func (*UpdateDashboardBadRequest) Error

func (o *UpdateDashboardBadRequest) Error() string

func (*UpdateDashboardBadRequest) GetPayload

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

func (*UpdateDashboardBadRequest) IsClientError

func (o *UpdateDashboardBadRequest) IsClientError() bool

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

func (*UpdateDashboardBadRequest) IsCode

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

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

func (*UpdateDashboardBadRequest) IsRedirect

func (o *UpdateDashboardBadRequest) IsRedirect() bool

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

func (*UpdateDashboardBadRequest) IsServerError

func (o *UpdateDashboardBadRequest) IsServerError() bool

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

func (*UpdateDashboardBadRequest) IsSuccess

func (o *UpdateDashboardBadRequest) IsSuccess() bool

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

func (*UpdateDashboardBadRequest) String

func (o *UpdateDashboardBadRequest) String() string

type UpdateDashboardConflict

type UpdateDashboardConflict struct {
	Payload *models.APIError
}

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

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

func NewUpdateDashboardConflict

func NewUpdateDashboardConflict() *UpdateDashboardConflict

NewUpdateDashboardConflict creates a UpdateDashboardConflict with default headers values

func (*UpdateDashboardConflict) Code

func (o *UpdateDashboardConflict) Code() int

Code gets the status code for the update dashboard conflict response

func (*UpdateDashboardConflict) Error

func (o *UpdateDashboardConflict) Error() string

func (*UpdateDashboardConflict) GetPayload

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

func (*UpdateDashboardConflict) IsClientError

func (o *UpdateDashboardConflict) IsClientError() bool

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

func (*UpdateDashboardConflict) IsCode

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

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

func (*UpdateDashboardConflict) IsRedirect

func (o *UpdateDashboardConflict) IsRedirect() bool

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

func (*UpdateDashboardConflict) IsServerError

func (o *UpdateDashboardConflict) IsServerError() bool

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

func (*UpdateDashboardConflict) IsSuccess

func (o *UpdateDashboardConflict) IsSuccess() bool

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

func (*UpdateDashboardConflict) String

func (o *UpdateDashboardConflict) String() string

type UpdateDashboardDefault

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

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

An undefined error response.

func NewUpdateDashboardDefault

func NewUpdateDashboardDefault(code int) *UpdateDashboardDefault

NewUpdateDashboardDefault creates a UpdateDashboardDefault with default headers values

func (*UpdateDashboardDefault) Code

func (o *UpdateDashboardDefault) Code() int

Code gets the status code for the update dashboard default response

func (*UpdateDashboardDefault) Error

func (o *UpdateDashboardDefault) Error() string

func (*UpdateDashboardDefault) GetPayload

func (o *UpdateDashboardDefault) GetPayload() models.GenericError

func (*UpdateDashboardDefault) IsClientError

func (o *UpdateDashboardDefault) IsClientError() bool

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

func (*UpdateDashboardDefault) IsCode

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

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

func (*UpdateDashboardDefault) IsRedirect

func (o *UpdateDashboardDefault) IsRedirect() bool

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

func (*UpdateDashboardDefault) IsServerError

func (o *UpdateDashboardDefault) IsServerError() bool

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

func (*UpdateDashboardDefault) IsSuccess

func (o *UpdateDashboardDefault) IsSuccess() bool

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

func (*UpdateDashboardDefault) String

func (o *UpdateDashboardDefault) String() string

type UpdateDashboardInternalServerError

type UpdateDashboardInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateDashboardInternalServerError

func NewUpdateDashboardInternalServerError() *UpdateDashboardInternalServerError

NewUpdateDashboardInternalServerError creates a UpdateDashboardInternalServerError with default headers values

func (*UpdateDashboardInternalServerError) Code

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

func (*UpdateDashboardInternalServerError) Error

func (*UpdateDashboardInternalServerError) GetPayload

func (*UpdateDashboardInternalServerError) IsClientError

func (o *UpdateDashboardInternalServerError) IsClientError() bool

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

func (*UpdateDashboardInternalServerError) IsCode

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

func (*UpdateDashboardInternalServerError) IsRedirect

func (o *UpdateDashboardInternalServerError) IsRedirect() bool

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

func (*UpdateDashboardInternalServerError) IsServerError

func (o *UpdateDashboardInternalServerError) IsServerError() bool

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

func (*UpdateDashboardInternalServerError) IsSuccess

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

func (*UpdateDashboardInternalServerError) String

type UpdateDashboardNotFound

type UpdateDashboardNotFound struct {
	Payload *models.APIError
}

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

Cannot update the Dashboard because the slug does not exist.

func NewUpdateDashboardNotFound

func NewUpdateDashboardNotFound() *UpdateDashboardNotFound

NewUpdateDashboardNotFound creates a UpdateDashboardNotFound with default headers values

func (*UpdateDashboardNotFound) Code

func (o *UpdateDashboardNotFound) Code() int

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

func (*UpdateDashboardNotFound) Error

func (o *UpdateDashboardNotFound) Error() string

func (*UpdateDashboardNotFound) GetPayload

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

func (*UpdateDashboardNotFound) IsClientError

func (o *UpdateDashboardNotFound) IsClientError() bool

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

func (*UpdateDashboardNotFound) IsCode

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

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

func (*UpdateDashboardNotFound) IsRedirect

func (o *UpdateDashboardNotFound) IsRedirect() bool

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

func (*UpdateDashboardNotFound) IsServerError

func (o *UpdateDashboardNotFound) IsServerError() bool

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

func (*UpdateDashboardNotFound) IsSuccess

func (o *UpdateDashboardNotFound) IsSuccess() bool

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

func (*UpdateDashboardNotFound) String

func (o *UpdateDashboardNotFound) String() string

type UpdateDashboardOK

type UpdateDashboardOK struct {
	Payload *models.Configv1UpdateDashboardResponse
}

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

A successful response containing the updated Dashboard.

func NewUpdateDashboardOK

func NewUpdateDashboardOK() *UpdateDashboardOK

NewUpdateDashboardOK creates a UpdateDashboardOK with default headers values

func (*UpdateDashboardOK) Code

func (o *UpdateDashboardOK) Code() int

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

func (*UpdateDashboardOK) Error

func (o *UpdateDashboardOK) Error() string

func (*UpdateDashboardOK) GetPayload

func (*UpdateDashboardOK) IsClientError

func (o *UpdateDashboardOK) IsClientError() bool

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

func (*UpdateDashboardOK) IsCode

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

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

func (*UpdateDashboardOK) IsRedirect

func (o *UpdateDashboardOK) IsRedirect() bool

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

func (*UpdateDashboardOK) IsServerError

func (o *UpdateDashboardOK) IsServerError() bool

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

func (*UpdateDashboardOK) IsSuccess

func (o *UpdateDashboardOK) IsSuccess() bool

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

func (*UpdateDashboardOK) String

func (o *UpdateDashboardOK) String() string

type UpdateDashboardParams

type UpdateDashboardParams struct {

	// Body.
	Body *models.ConfigV1UpdateDashboardBody

	// Slug.
	Slug string

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

UpdateDashboardParams contains all the parameters to send to the API endpoint

for the update dashboard operation.

Typically these are written to a http.Request.

func NewUpdateDashboardParams

func NewUpdateDashboardParams() *UpdateDashboardParams

NewUpdateDashboardParams creates a new UpdateDashboardParams 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 NewUpdateDashboardParamsWithContext

func NewUpdateDashboardParamsWithContext(ctx context.Context) *UpdateDashboardParams

NewUpdateDashboardParamsWithContext creates a new UpdateDashboardParams object with the ability to set a context for a request.

func NewUpdateDashboardParamsWithHTTPClient

func NewUpdateDashboardParamsWithHTTPClient(client *http.Client) *UpdateDashboardParams

NewUpdateDashboardParamsWithHTTPClient creates a new UpdateDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateDashboardParamsWithTimeout

func NewUpdateDashboardParamsWithTimeout(timeout time.Duration) *UpdateDashboardParams

NewUpdateDashboardParamsWithTimeout creates a new UpdateDashboardParams object with the ability to set a timeout on a request.

func (*UpdateDashboardParams) SetBody

SetBody adds the body to the update dashboard params

func (*UpdateDashboardParams) SetContext

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

SetContext adds the context to the update dashboard params

func (*UpdateDashboardParams) SetDefaults

func (o *UpdateDashboardParams) SetDefaults()

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

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

func (*UpdateDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update dashboard params

func (*UpdateDashboardParams) SetSlug

func (o *UpdateDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the update dashboard params

func (*UpdateDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the update dashboard params

func (*UpdateDashboardParams) WithBody

WithBody adds the body to the update dashboard params

func (*UpdateDashboardParams) WithContext

WithContext adds the context to the update dashboard params

func (*UpdateDashboardParams) WithDefaults

func (o *UpdateDashboardParams) WithDefaults() *UpdateDashboardParams

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

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

func (*UpdateDashboardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update dashboard params

func (*UpdateDashboardParams) WithSlug

WithSlug adds the slug to the update dashboard params

func (*UpdateDashboardParams) WithTimeout

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

WithTimeout adds the timeout to the update dashboard params

func (*UpdateDashboardParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateDashboardReader

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

UpdateDashboardReader is a Reader for the UpdateDashboard structure.

func (*UpdateDashboardReader) ReadResponse

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