annotations

package
v0.0.0-...-59d2d35 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 12 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 annotations API

func (*Client) DeleteAnnotationByID

func (a *Client) DeleteAnnotationByID(annotationID string, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)

DeleteAnnotationByID deletes annotation by ID

Deletes the annotation that matches the specified ID.

func (*Client) DeleteAnnotationByIDWithParams

func (a *Client) DeleteAnnotationByIDWithParams(params *DeleteAnnotationByIDParams, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)

func (*Client) GetAnnotationByID

func (a *Client) GetAnnotationByID(annotationID string, opts ...ClientOption) (*GetAnnotationByIDOK, error)

GetAnnotationByID gets annotation by ID

func (*Client) GetAnnotationByIDWithParams

func (a *Client) GetAnnotationByIDWithParams(params *GetAnnotationByIDParams, opts ...ClientOption) (*GetAnnotationByIDOK, error)

func (*Client) GetAnnotationTags

func (a *Client) GetAnnotationTags(params *GetAnnotationTagsParams, opts ...ClientOption) (*GetAnnotationTagsOK, error)

func (*Client) GetAnnotations

func (a *Client) GetAnnotations(params *GetAnnotationsParams, opts ...ClientOption) (*GetAnnotationsOK, error)

func (*Client) MassDeleteAnnotations

func (a *Client) MassDeleteAnnotations(body *models.MassDeleteAnnotationsCmd, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)

MassDeleteAnnotations deletes multiple annotations

func (*Client) MassDeleteAnnotationsWithParams

func (a *Client) MassDeleteAnnotationsWithParams(params *MassDeleteAnnotationsParams, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)

func (*Client) PatchAnnotation

func (a *Client) PatchAnnotation(annotationID string, body *models.PatchAnnotationsCmd, opts ...ClientOption) (*PatchAnnotationOK, error)

PatchAnnotation patches annotation

Updates one or more properties of an annotation that matches the specified ID. This operation currently supports updating of the `text`, `tags`, `time` and `timeEnd` properties. This is available in Grafana 6.0.0-beta2 and above.

func (*Client) PatchAnnotationWithParams

func (a *Client) PatchAnnotationWithParams(params *PatchAnnotationParams, opts ...ClientOption) (*PatchAnnotationOK, error)

func (*Client) PostAnnotation

func (a *Client) PostAnnotation(body *models.PostAnnotationsCmd, opts ...ClientOption) (*PostAnnotationOK, error)

PostAnnotation creates annotation

Creates an annotation in the Grafana database. The dashboardId and panelId fields are optional. If they are not specified then an organization annotation is created and can be queried in any dashboard that adds the Grafana annotations data source. When creating a region annotation include the timeEnd property. The format for `time` and `timeEnd` should be epoch numbers in millisecond resolution. The response for this HTTP request is slightly different in versions prior to v6.4. In prior versions you would also get an endId if you where creating a region. But in 6.4 regions are represented using a single event with time and timeEnd properties.

func (*Client) PostAnnotationWithParams

func (a *Client) PostAnnotationWithParams(params *PostAnnotationParams, opts ...ClientOption) (*PostAnnotationOK, error)

func (*Client) PostGraphiteAnnotation

func (a *Client) PostGraphiteAnnotation(body *models.PostGraphiteAnnotationsCmd, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)

PostGraphiteAnnotation creates annotation in graphite format

Creates an annotation by using Graphite-compatible event format. The `when` and `data` fields are optional. If `when` is not specified then the current time will be used as annotation’s timestamp. The `tags` field can also be in prior to Graphite `0.10.0` format (string with multiple tags being separated by a space).

func (*Client) PostGraphiteAnnotationWithParams

func (a *Client) PostGraphiteAnnotationWithParams(params *PostGraphiteAnnotationParams, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAnnotation

func (a *Client) UpdateAnnotation(annotationID string, body *models.UpdateAnnotationsCmd, opts ...ClientOption) (*UpdateAnnotationOK, error)

UpdateAnnotation updates annotation

Updates all properties of an annotation that matches the specified id. To only update certain property, consider using the Patch Annotation operation.

func (*Client) UpdateAnnotationWithParams

func (a *Client) UpdateAnnotationWithParams(params *UpdateAnnotationParams, opts ...ClientOption) (*UpdateAnnotationOK, error)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	DeleteAnnotationByID(annotationID string, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)
	DeleteAnnotationByIDWithParams(params *DeleteAnnotationByIDParams, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)

	GetAnnotationByID(annotationID string, opts ...ClientOption) (*GetAnnotationByIDOK, error)
	GetAnnotationByIDWithParams(params *GetAnnotationByIDParams, opts ...ClientOption) (*GetAnnotationByIDOK, error)

	GetAnnotationTags(params *GetAnnotationTagsParams, opts ...ClientOption) (*GetAnnotationTagsOK, error)

	GetAnnotations(params *GetAnnotationsParams, opts ...ClientOption) (*GetAnnotationsOK, error)

	MassDeleteAnnotations(body *models.MassDeleteAnnotationsCmd, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)
	MassDeleteAnnotationsWithParams(params *MassDeleteAnnotationsParams, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)

	PatchAnnotation(annotationID string, body *models.PatchAnnotationsCmd, opts ...ClientOption) (*PatchAnnotationOK, error)
	PatchAnnotationWithParams(params *PatchAnnotationParams, opts ...ClientOption) (*PatchAnnotationOK, error)

	PostAnnotation(body *models.PostAnnotationsCmd, opts ...ClientOption) (*PostAnnotationOK, error)
	PostAnnotationWithParams(params *PostAnnotationParams, opts ...ClientOption) (*PostAnnotationOK, error)

	PostGraphiteAnnotation(body *models.PostGraphiteAnnotationsCmd, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)
	PostGraphiteAnnotationWithParams(params *PostGraphiteAnnotationParams, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)

	UpdateAnnotation(annotationID string, body *models.UpdateAnnotationsCmd, opts ...ClientOption) (*UpdateAnnotationOK, error)
	UpdateAnnotationWithParams(params *UpdateAnnotationParams, opts ...ClientOption) (*UpdateAnnotationOK, 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 annotations API client.

type DeleteAnnotationByIDForbidden

type DeleteAnnotationByIDForbidden struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewDeleteAnnotationByIDForbidden

func NewDeleteAnnotationByIDForbidden() *DeleteAnnotationByIDForbidden

NewDeleteAnnotationByIDForbidden creates a DeleteAnnotationByIDForbidden with default headers values

func (*DeleteAnnotationByIDForbidden) Code

Code gets the status code for the delete annotation by Id forbidden response

func (*DeleteAnnotationByIDForbidden) Error

func (*DeleteAnnotationByIDForbidden) GetPayload

func (*DeleteAnnotationByIDForbidden) IsClientError

func (o *DeleteAnnotationByIDForbidden) IsClientError() bool

IsClientError returns true when this delete annotation by Id forbidden response has a 4xx status code

func (*DeleteAnnotationByIDForbidden) IsCode

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

IsCode returns true when this delete annotation by Id forbidden response a status code equal to that given

func (*DeleteAnnotationByIDForbidden) IsRedirect

func (o *DeleteAnnotationByIDForbidden) IsRedirect() bool

IsRedirect returns true when this delete annotation by Id forbidden response has a 3xx status code

func (*DeleteAnnotationByIDForbidden) IsServerError

func (o *DeleteAnnotationByIDForbidden) IsServerError() bool

IsServerError returns true when this delete annotation by Id forbidden response has a 5xx status code

func (*DeleteAnnotationByIDForbidden) IsSuccess

func (o *DeleteAnnotationByIDForbidden) IsSuccess() bool

IsSuccess returns true when this delete annotation by Id forbidden response has a 2xx status code

func (*DeleteAnnotationByIDForbidden) String

type DeleteAnnotationByIDInternalServerError

type DeleteAnnotationByIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteAnnotationByIDInternalServerError

func NewDeleteAnnotationByIDInternalServerError() *DeleteAnnotationByIDInternalServerError

NewDeleteAnnotationByIDInternalServerError creates a DeleteAnnotationByIDInternalServerError with default headers values

func (*DeleteAnnotationByIDInternalServerError) Code

Code gets the status code for the delete annotation by Id internal server error response

func (*DeleteAnnotationByIDInternalServerError) Error

func (*DeleteAnnotationByIDInternalServerError) GetPayload

func (*DeleteAnnotationByIDInternalServerError) IsClientError

func (o *DeleteAnnotationByIDInternalServerError) IsClientError() bool

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

func (*DeleteAnnotationByIDInternalServerError) IsCode

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

func (*DeleteAnnotationByIDInternalServerError) IsRedirect

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

func (*DeleteAnnotationByIDInternalServerError) IsServerError

func (o *DeleteAnnotationByIDInternalServerError) IsServerError() bool

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

func (*DeleteAnnotationByIDInternalServerError) IsSuccess

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

func (*DeleteAnnotationByIDInternalServerError) String

type DeleteAnnotationByIDOK

type DeleteAnnotationByIDOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewDeleteAnnotationByIDOK

func NewDeleteAnnotationByIDOK() *DeleteAnnotationByIDOK

NewDeleteAnnotationByIDOK creates a DeleteAnnotationByIDOK with default headers values

func (*DeleteAnnotationByIDOK) Code

func (o *DeleteAnnotationByIDOK) Code() int

Code gets the status code for the delete annotation by Id Ok response

func (*DeleteAnnotationByIDOK) Error

func (o *DeleteAnnotationByIDOK) Error() string

func (*DeleteAnnotationByIDOK) GetPayload

func (*DeleteAnnotationByIDOK) IsClientError

func (o *DeleteAnnotationByIDOK) IsClientError() bool

IsClientError returns true when this delete annotation by Id Ok response has a 4xx status code

func (*DeleteAnnotationByIDOK) IsCode

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

IsCode returns true when this delete annotation by Id Ok response a status code equal to that given

func (*DeleteAnnotationByIDOK) IsRedirect

func (o *DeleteAnnotationByIDOK) IsRedirect() bool

IsRedirect returns true when this delete annotation by Id Ok response has a 3xx status code

func (*DeleteAnnotationByIDOK) IsServerError

func (o *DeleteAnnotationByIDOK) IsServerError() bool

IsServerError returns true when this delete annotation by Id Ok response has a 5xx status code

func (*DeleteAnnotationByIDOK) IsSuccess

func (o *DeleteAnnotationByIDOK) IsSuccess() bool

IsSuccess returns true when this delete annotation by Id Ok response has a 2xx status code

func (*DeleteAnnotationByIDOK) String

func (o *DeleteAnnotationByIDOK) String() string

type DeleteAnnotationByIDParams

type DeleteAnnotationByIDParams struct {

	// AnnotationID.
	AnnotationID string

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

DeleteAnnotationByIDParams contains all the parameters to send to the API endpoint

for the delete annotation by ID operation.

Typically these are written to a http.Request.

func NewDeleteAnnotationByIDParams

func NewDeleteAnnotationByIDParams() *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParams creates a new DeleteAnnotationByIDParams 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 NewDeleteAnnotationByIDParamsWithContext

func NewDeleteAnnotationByIDParamsWithContext(ctx context.Context) *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParamsWithContext creates a new DeleteAnnotationByIDParams object with the ability to set a context for a request.

func NewDeleteAnnotationByIDParamsWithHTTPClient

func NewDeleteAnnotationByIDParamsWithHTTPClient(client *http.Client) *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParamsWithHTTPClient creates a new DeleteAnnotationByIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAnnotationByIDParamsWithTimeout

func NewDeleteAnnotationByIDParamsWithTimeout(timeout time.Duration) *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParamsWithTimeout creates a new DeleteAnnotationByIDParams object with the ability to set a timeout on a request.

func (*DeleteAnnotationByIDParams) SetAnnotationID

func (o *DeleteAnnotationByIDParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) SetContext

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

SetContext adds the context to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) SetDefaults

func (o *DeleteAnnotationByIDParams) SetDefaults()

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

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

func (*DeleteAnnotationByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithAnnotationID

func (o *DeleteAnnotationByIDParams) WithAnnotationID(annotationID string) *DeleteAnnotationByIDParams

WithAnnotationID adds the annotationID to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithContext

WithContext adds the context to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithDefaults

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

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

func (*DeleteAnnotationByIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithTimeout

WithTimeout adds the timeout to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAnnotationByIDReader

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

DeleteAnnotationByIDReader is a Reader for the DeleteAnnotationByID structure.

func (*DeleteAnnotationByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAnnotationByIDUnauthorized

type DeleteAnnotationByIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteAnnotationByIDUnauthorized

func NewDeleteAnnotationByIDUnauthorized() *DeleteAnnotationByIDUnauthorized

NewDeleteAnnotationByIDUnauthorized creates a DeleteAnnotationByIDUnauthorized with default headers values

func (*DeleteAnnotationByIDUnauthorized) Code

Code gets the status code for the delete annotation by Id unauthorized response

func (*DeleteAnnotationByIDUnauthorized) Error

func (*DeleteAnnotationByIDUnauthorized) GetPayload

func (*DeleteAnnotationByIDUnauthorized) IsClientError

func (o *DeleteAnnotationByIDUnauthorized) IsClientError() bool

IsClientError returns true when this delete annotation by Id unauthorized response has a 4xx status code

func (*DeleteAnnotationByIDUnauthorized) IsCode

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

IsCode returns true when this delete annotation by Id unauthorized response a status code equal to that given

func (*DeleteAnnotationByIDUnauthorized) IsRedirect

func (o *DeleteAnnotationByIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete annotation by Id unauthorized response has a 3xx status code

func (*DeleteAnnotationByIDUnauthorized) IsServerError

func (o *DeleteAnnotationByIDUnauthorized) IsServerError() bool

IsServerError returns true when this delete annotation by Id unauthorized response has a 5xx status code

func (*DeleteAnnotationByIDUnauthorized) IsSuccess

func (o *DeleteAnnotationByIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete annotation by Id unauthorized response has a 2xx status code

func (*DeleteAnnotationByIDUnauthorized) String

type GetAnnotationByIDInternalServerError

type GetAnnotationByIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetAnnotationByIDInternalServerError

func NewGetAnnotationByIDInternalServerError() *GetAnnotationByIDInternalServerError

NewGetAnnotationByIDInternalServerError creates a GetAnnotationByIDInternalServerError with default headers values

func (*GetAnnotationByIDInternalServerError) Code

Code gets the status code for the get annotation by Id internal server error response

func (*GetAnnotationByIDInternalServerError) Error

func (*GetAnnotationByIDInternalServerError) GetPayload

func (*GetAnnotationByIDInternalServerError) IsClientError

func (o *GetAnnotationByIDInternalServerError) IsClientError() bool

IsClientError returns true when this get annotation by Id internal server error response has a 4xx status code

func (*GetAnnotationByIDInternalServerError) IsCode

IsCode returns true when this get annotation by Id internal server error response a status code equal to that given

func (*GetAnnotationByIDInternalServerError) IsRedirect

IsRedirect returns true when this get annotation by Id internal server error response has a 3xx status code

func (*GetAnnotationByIDInternalServerError) IsServerError

func (o *GetAnnotationByIDInternalServerError) IsServerError() bool

IsServerError returns true when this get annotation by Id internal server error response has a 5xx status code

func (*GetAnnotationByIDInternalServerError) IsSuccess

IsSuccess returns true when this get annotation by Id internal server error response has a 2xx status code

func (*GetAnnotationByIDInternalServerError) String

type GetAnnotationByIDOK

type GetAnnotationByIDOK struct {
	Payload *models.Annotation
}

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

(empty)

func NewGetAnnotationByIDOK

func NewGetAnnotationByIDOK() *GetAnnotationByIDOK

NewGetAnnotationByIDOK creates a GetAnnotationByIDOK with default headers values

func (*GetAnnotationByIDOK) Code

func (o *GetAnnotationByIDOK) Code() int

Code gets the status code for the get annotation by Id Ok response

func (*GetAnnotationByIDOK) Error

func (o *GetAnnotationByIDOK) Error() string

func (*GetAnnotationByIDOK) GetPayload

func (o *GetAnnotationByIDOK) GetPayload() *models.Annotation

func (*GetAnnotationByIDOK) IsClientError

func (o *GetAnnotationByIDOK) IsClientError() bool

IsClientError returns true when this get annotation by Id Ok response has a 4xx status code

func (*GetAnnotationByIDOK) IsCode

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

IsCode returns true when this get annotation by Id Ok response a status code equal to that given

func (*GetAnnotationByIDOK) IsRedirect

func (o *GetAnnotationByIDOK) IsRedirect() bool

IsRedirect returns true when this get annotation by Id Ok response has a 3xx status code

func (*GetAnnotationByIDOK) IsServerError

func (o *GetAnnotationByIDOK) IsServerError() bool

IsServerError returns true when this get annotation by Id Ok response has a 5xx status code

func (*GetAnnotationByIDOK) IsSuccess

func (o *GetAnnotationByIDOK) IsSuccess() bool

IsSuccess returns true when this get annotation by Id Ok response has a 2xx status code

func (*GetAnnotationByIDOK) String

func (o *GetAnnotationByIDOK) String() string

type GetAnnotationByIDParams

type GetAnnotationByIDParams struct {

	// AnnotationID.
	AnnotationID string

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

GetAnnotationByIDParams contains all the parameters to send to the API endpoint

for the get annotation by ID operation.

Typically these are written to a http.Request.

func NewGetAnnotationByIDParams

func NewGetAnnotationByIDParams() *GetAnnotationByIDParams

NewGetAnnotationByIDParams creates a new GetAnnotationByIDParams 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 NewGetAnnotationByIDParamsWithContext

func NewGetAnnotationByIDParamsWithContext(ctx context.Context) *GetAnnotationByIDParams

NewGetAnnotationByIDParamsWithContext creates a new GetAnnotationByIDParams object with the ability to set a context for a request.

func NewGetAnnotationByIDParamsWithHTTPClient

func NewGetAnnotationByIDParamsWithHTTPClient(client *http.Client) *GetAnnotationByIDParams

NewGetAnnotationByIDParamsWithHTTPClient creates a new GetAnnotationByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnnotationByIDParamsWithTimeout

func NewGetAnnotationByIDParamsWithTimeout(timeout time.Duration) *GetAnnotationByIDParams

NewGetAnnotationByIDParamsWithTimeout creates a new GetAnnotationByIDParams object with the ability to set a timeout on a request.

func (*GetAnnotationByIDParams) SetAnnotationID

func (o *GetAnnotationByIDParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the get annotation by ID params

func (*GetAnnotationByIDParams) SetContext

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

SetContext adds the context to the get annotation by ID params

func (*GetAnnotationByIDParams) SetDefaults

func (o *GetAnnotationByIDParams) SetDefaults()

SetDefaults hydrates default values in the get annotation by ID params (not the query body).

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

func (*GetAnnotationByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get annotation by ID params

func (*GetAnnotationByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get annotation by ID params

func (*GetAnnotationByIDParams) WithAnnotationID

func (o *GetAnnotationByIDParams) WithAnnotationID(annotationID string) *GetAnnotationByIDParams

WithAnnotationID adds the annotationID to the get annotation by ID params

func (*GetAnnotationByIDParams) WithContext

WithContext adds the context to the get annotation by ID params

func (*GetAnnotationByIDParams) WithDefaults

WithDefaults hydrates default values in the get annotation by ID params (not the query body).

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

func (*GetAnnotationByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get annotation by ID params

func (*GetAnnotationByIDParams) WithTimeout

WithTimeout adds the timeout to the get annotation by ID params

func (*GetAnnotationByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAnnotationByIDReader

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

GetAnnotationByIDReader is a Reader for the GetAnnotationByID structure.

func (*GetAnnotationByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAnnotationByIDUnauthorized

type GetAnnotationByIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetAnnotationByIDUnauthorized

func NewGetAnnotationByIDUnauthorized() *GetAnnotationByIDUnauthorized

NewGetAnnotationByIDUnauthorized creates a GetAnnotationByIDUnauthorized with default headers values

func (*GetAnnotationByIDUnauthorized) Code

Code gets the status code for the get annotation by Id unauthorized response

func (*GetAnnotationByIDUnauthorized) Error

func (*GetAnnotationByIDUnauthorized) GetPayload

func (*GetAnnotationByIDUnauthorized) IsClientError

func (o *GetAnnotationByIDUnauthorized) IsClientError() bool

IsClientError returns true when this get annotation by Id unauthorized response has a 4xx status code

func (*GetAnnotationByIDUnauthorized) IsCode

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

IsCode returns true when this get annotation by Id unauthorized response a status code equal to that given

func (*GetAnnotationByIDUnauthorized) IsRedirect

func (o *GetAnnotationByIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this get annotation by Id unauthorized response has a 3xx status code

func (*GetAnnotationByIDUnauthorized) IsServerError

func (o *GetAnnotationByIDUnauthorized) IsServerError() bool

IsServerError returns true when this get annotation by Id unauthorized response has a 5xx status code

func (*GetAnnotationByIDUnauthorized) IsSuccess

func (o *GetAnnotationByIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this get annotation by Id unauthorized response has a 2xx status code

func (*GetAnnotationByIDUnauthorized) String

type GetAnnotationTagsInternalServerError

type GetAnnotationTagsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetAnnotationTagsInternalServerError

func NewGetAnnotationTagsInternalServerError() *GetAnnotationTagsInternalServerError

NewGetAnnotationTagsInternalServerError creates a GetAnnotationTagsInternalServerError with default headers values

func (*GetAnnotationTagsInternalServerError) Code

Code gets the status code for the get annotation tags internal server error response

func (*GetAnnotationTagsInternalServerError) Error

func (*GetAnnotationTagsInternalServerError) GetPayload

func (*GetAnnotationTagsInternalServerError) IsClientError

func (o *GetAnnotationTagsInternalServerError) IsClientError() bool

IsClientError returns true when this get annotation tags internal server error response has a 4xx status code

func (*GetAnnotationTagsInternalServerError) IsCode

IsCode returns true when this get annotation tags internal server error response a status code equal to that given

func (*GetAnnotationTagsInternalServerError) IsRedirect

IsRedirect returns true when this get annotation tags internal server error response has a 3xx status code

func (*GetAnnotationTagsInternalServerError) IsServerError

func (o *GetAnnotationTagsInternalServerError) IsServerError() bool

IsServerError returns true when this get annotation tags internal server error response has a 5xx status code

func (*GetAnnotationTagsInternalServerError) IsSuccess

IsSuccess returns true when this get annotation tags internal server error response has a 2xx status code

func (*GetAnnotationTagsInternalServerError) String

type GetAnnotationTagsOK

type GetAnnotationTagsOK struct {
	Payload *models.GetAnnotationTagsResponse
}

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

(empty)

func NewGetAnnotationTagsOK

func NewGetAnnotationTagsOK() *GetAnnotationTagsOK

NewGetAnnotationTagsOK creates a GetAnnotationTagsOK with default headers values

func (*GetAnnotationTagsOK) Code

func (o *GetAnnotationTagsOK) Code() int

Code gets the status code for the get annotation tags Ok response

func (*GetAnnotationTagsOK) Error

func (o *GetAnnotationTagsOK) Error() string

func (*GetAnnotationTagsOK) GetPayload

func (*GetAnnotationTagsOK) IsClientError

func (o *GetAnnotationTagsOK) IsClientError() bool

IsClientError returns true when this get annotation tags Ok response has a 4xx status code

func (*GetAnnotationTagsOK) IsCode

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

IsCode returns true when this get annotation tags Ok response a status code equal to that given

func (*GetAnnotationTagsOK) IsRedirect

func (o *GetAnnotationTagsOK) IsRedirect() bool

IsRedirect returns true when this get annotation tags Ok response has a 3xx status code

func (*GetAnnotationTagsOK) IsServerError

func (o *GetAnnotationTagsOK) IsServerError() bool

IsServerError returns true when this get annotation tags Ok response has a 5xx status code

func (*GetAnnotationTagsOK) IsSuccess

func (o *GetAnnotationTagsOK) IsSuccess() bool

IsSuccess returns true when this get annotation tags Ok response has a 2xx status code

func (*GetAnnotationTagsOK) String

func (o *GetAnnotationTagsOK) String() string

type GetAnnotationTagsParams

type GetAnnotationTagsParams struct {

	/* Limit.

	   Max limit for results returned.

	   Default: "100"
	*/
	Limit *string

	/* Tag.

	   Tag is a string that you can use to filter tags.
	*/
	Tag *string

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

GetAnnotationTagsParams contains all the parameters to send to the API endpoint

for the get annotation tags operation.

Typically these are written to a http.Request.

func NewGetAnnotationTagsParams

func NewGetAnnotationTagsParams() *GetAnnotationTagsParams

NewGetAnnotationTagsParams creates a new GetAnnotationTagsParams 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 NewGetAnnotationTagsParamsWithContext

func NewGetAnnotationTagsParamsWithContext(ctx context.Context) *GetAnnotationTagsParams

NewGetAnnotationTagsParamsWithContext creates a new GetAnnotationTagsParams object with the ability to set a context for a request.

func NewGetAnnotationTagsParamsWithHTTPClient

func NewGetAnnotationTagsParamsWithHTTPClient(client *http.Client) *GetAnnotationTagsParams

NewGetAnnotationTagsParamsWithHTTPClient creates a new GetAnnotationTagsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnnotationTagsParamsWithTimeout

func NewGetAnnotationTagsParamsWithTimeout(timeout time.Duration) *GetAnnotationTagsParams

NewGetAnnotationTagsParamsWithTimeout creates a new GetAnnotationTagsParams object with the ability to set a timeout on a request.

func (*GetAnnotationTagsParams) SetContext

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

SetContext adds the context to the get annotation tags params

func (*GetAnnotationTagsParams) SetDefaults

func (o *GetAnnotationTagsParams) SetDefaults()

SetDefaults hydrates default values in the get annotation tags params (not the query body).

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

func (*GetAnnotationTagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get annotation tags params

func (*GetAnnotationTagsParams) SetLimit

func (o *GetAnnotationTagsParams) SetLimit(limit *string)

SetLimit adds the limit to the get annotation tags params

func (*GetAnnotationTagsParams) SetTag

func (o *GetAnnotationTagsParams) SetTag(tag *string)

SetTag adds the tag to the get annotation tags params

func (*GetAnnotationTagsParams) SetTimeout

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

SetTimeout adds the timeout to the get annotation tags params

func (*GetAnnotationTagsParams) WithContext

WithContext adds the context to the get annotation tags params

func (*GetAnnotationTagsParams) WithDefaults

WithDefaults hydrates default values in the get annotation tags params (not the query body).

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

func (*GetAnnotationTagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get annotation tags params

func (*GetAnnotationTagsParams) WithLimit

WithLimit adds the limit to the get annotation tags params

func (*GetAnnotationTagsParams) WithTag

WithTag adds the tag to the get annotation tags params

func (*GetAnnotationTagsParams) WithTimeout

WithTimeout adds the timeout to the get annotation tags params

func (*GetAnnotationTagsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAnnotationTagsReader

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

GetAnnotationTagsReader is a Reader for the GetAnnotationTags structure.

func (*GetAnnotationTagsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAnnotationTagsUnauthorized

type GetAnnotationTagsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetAnnotationTagsUnauthorized

func NewGetAnnotationTagsUnauthorized() *GetAnnotationTagsUnauthorized

NewGetAnnotationTagsUnauthorized creates a GetAnnotationTagsUnauthorized with default headers values

func (*GetAnnotationTagsUnauthorized) Code

Code gets the status code for the get annotation tags unauthorized response

func (*GetAnnotationTagsUnauthorized) Error

func (*GetAnnotationTagsUnauthorized) GetPayload

func (*GetAnnotationTagsUnauthorized) IsClientError

func (o *GetAnnotationTagsUnauthorized) IsClientError() bool

IsClientError returns true when this get annotation tags unauthorized response has a 4xx status code

func (*GetAnnotationTagsUnauthorized) IsCode

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

IsCode returns true when this get annotation tags unauthorized response a status code equal to that given

func (*GetAnnotationTagsUnauthorized) IsRedirect

func (o *GetAnnotationTagsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get annotation tags unauthorized response has a 3xx status code

func (*GetAnnotationTagsUnauthorized) IsServerError

func (o *GetAnnotationTagsUnauthorized) IsServerError() bool

IsServerError returns true when this get annotation tags unauthorized response has a 5xx status code

func (*GetAnnotationTagsUnauthorized) IsSuccess

func (o *GetAnnotationTagsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get annotation tags unauthorized response has a 2xx status code

func (*GetAnnotationTagsUnauthorized) String

type GetAnnotationsInternalServerError

type GetAnnotationsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetAnnotationsInternalServerError

func NewGetAnnotationsInternalServerError() *GetAnnotationsInternalServerError

NewGetAnnotationsInternalServerError creates a GetAnnotationsInternalServerError with default headers values

func (*GetAnnotationsInternalServerError) Code

Code gets the status code for the get annotations internal server error response

func (*GetAnnotationsInternalServerError) Error

func (*GetAnnotationsInternalServerError) GetPayload

func (*GetAnnotationsInternalServerError) IsClientError

func (o *GetAnnotationsInternalServerError) IsClientError() bool

IsClientError returns true when this get annotations internal server error response has a 4xx status code

func (*GetAnnotationsInternalServerError) IsCode

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

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

func (*GetAnnotationsInternalServerError) IsRedirect

func (o *GetAnnotationsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get annotations internal server error response has a 3xx status code

func (*GetAnnotationsInternalServerError) IsServerError

func (o *GetAnnotationsInternalServerError) IsServerError() bool

IsServerError returns true when this get annotations internal server error response has a 5xx status code

func (*GetAnnotationsInternalServerError) IsSuccess

func (o *GetAnnotationsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get annotations internal server error response has a 2xx status code

func (*GetAnnotationsInternalServerError) String

type GetAnnotationsOK

type GetAnnotationsOK struct {
	Payload []*models.Annotation
}

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

(empty)

func NewGetAnnotationsOK

func NewGetAnnotationsOK() *GetAnnotationsOK

NewGetAnnotationsOK creates a GetAnnotationsOK with default headers values

func (*GetAnnotationsOK) Code

func (o *GetAnnotationsOK) Code() int

Code gets the status code for the get annotations Ok response

func (*GetAnnotationsOK) Error

func (o *GetAnnotationsOK) Error() string

func (*GetAnnotationsOK) GetPayload

func (o *GetAnnotationsOK) GetPayload() []*models.Annotation

func (*GetAnnotationsOK) IsClientError

func (o *GetAnnotationsOK) IsClientError() bool

IsClientError returns true when this get annotations Ok response has a 4xx status code

func (*GetAnnotationsOK) IsCode

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

IsCode returns true when this get annotations Ok response a status code equal to that given

func (*GetAnnotationsOK) IsRedirect

func (o *GetAnnotationsOK) IsRedirect() bool

IsRedirect returns true when this get annotations Ok response has a 3xx status code

func (*GetAnnotationsOK) IsServerError

func (o *GetAnnotationsOK) IsServerError() bool

IsServerError returns true when this get annotations Ok response has a 5xx status code

func (*GetAnnotationsOK) IsSuccess

func (o *GetAnnotationsOK) IsSuccess() bool

IsSuccess returns true when this get annotations Ok response has a 2xx status code

func (*GetAnnotationsOK) String

func (o *GetAnnotationsOK) String() string

type GetAnnotationsParams

type GetAnnotationsParams struct {

	/* AlertID.

	   Find annotations for a specified alert.

	   Format: int64
	*/
	AlertID *int64

	/* DashboardID.

	   Find annotations that are scoped to a specific dashboard

	   Format: int64
	*/
	DashboardID *int64

	/* DashboardUID.

	   Find annotations that are scoped to a specific dashboard
	*/
	DashboardUID *string

	/* From.

	   Find annotations created after specific epoch datetime in milliseconds.

	   Format: int64
	*/
	From *int64

	/* Limit.

	   Max limit for results returned.

	   Format: int64
	*/
	Limit *int64

	/* MatchAny.

	   Match any or all tags
	*/
	MatchAny *bool

	/* PanelID.

	   Find annotations that are scoped to a specific panel

	   Format: int64
	*/
	PanelID *int64

	/* Tags.

	   Use this to filter organization annotations. Organization annotations are annotations from an annotation data source that are not connected specifically to a dashboard or panel. You can filter by multiple tags.
	*/
	Tags []string

	/* To.

	   Find annotations created before specific epoch datetime in milliseconds.

	   Format: int64
	*/
	To *int64

	/* Type.

	   Return alerts or user created annotations
	*/
	Type *string

	/* UserID.

	   Limit response to annotations created by specific user.

	   Format: int64
	*/
	UserID *int64

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

GetAnnotationsParams contains all the parameters to send to the API endpoint

for the get annotations operation.

Typically these are written to a http.Request.

func NewGetAnnotationsParams

func NewGetAnnotationsParams() *GetAnnotationsParams

NewGetAnnotationsParams creates a new GetAnnotationsParams 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 NewGetAnnotationsParamsWithContext

func NewGetAnnotationsParamsWithContext(ctx context.Context) *GetAnnotationsParams

NewGetAnnotationsParamsWithContext creates a new GetAnnotationsParams object with the ability to set a context for a request.

func NewGetAnnotationsParamsWithHTTPClient

func NewGetAnnotationsParamsWithHTTPClient(client *http.Client) *GetAnnotationsParams

NewGetAnnotationsParamsWithHTTPClient creates a new GetAnnotationsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnnotationsParamsWithTimeout

func NewGetAnnotationsParamsWithTimeout(timeout time.Duration) *GetAnnotationsParams

NewGetAnnotationsParamsWithTimeout creates a new GetAnnotationsParams object with the ability to set a timeout on a request.

func (*GetAnnotationsParams) SetAlertID

func (o *GetAnnotationsParams) SetAlertID(alertID *int64)

SetAlertID adds the alertId to the get annotations params

func (*GetAnnotationsParams) SetContext

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

SetContext adds the context to the get annotations params

func (*GetAnnotationsParams) SetDashboardID

func (o *GetAnnotationsParams) SetDashboardID(dashboardID *int64)

SetDashboardID adds the dashboardId to the get annotations params

func (*GetAnnotationsParams) SetDashboardUID

func (o *GetAnnotationsParams) SetDashboardUID(dashboardUID *string)

SetDashboardUID adds the dashboardUid to the get annotations params

func (*GetAnnotationsParams) SetDefaults

func (o *GetAnnotationsParams) SetDefaults()

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

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

func (*GetAnnotationsParams) SetFrom

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

SetFrom adds the from to the get annotations params

func (*GetAnnotationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get annotations params

func (*GetAnnotationsParams) SetLimit

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

SetLimit adds the limit to the get annotations params

func (*GetAnnotationsParams) SetMatchAny

func (o *GetAnnotationsParams) SetMatchAny(matchAny *bool)

SetMatchAny adds the matchAny to the get annotations params

func (*GetAnnotationsParams) SetPanelID

func (o *GetAnnotationsParams) SetPanelID(panelID *int64)

SetPanelID adds the panelId to the get annotations params

func (*GetAnnotationsParams) SetTags

func (o *GetAnnotationsParams) SetTags(tags []string)

SetTags adds the tags to the get annotations params

func (*GetAnnotationsParams) SetTimeout

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

SetTimeout adds the timeout to the get annotations params

func (*GetAnnotationsParams) SetTo

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

SetTo adds the to to the get annotations params

func (*GetAnnotationsParams) SetType

func (o *GetAnnotationsParams) SetType(typeVar *string)

SetType adds the type to the get annotations params

func (*GetAnnotationsParams) SetUserID

func (o *GetAnnotationsParams) SetUserID(userID *int64)

SetUserID adds the userId to the get annotations params

func (*GetAnnotationsParams) WithAlertID

func (o *GetAnnotationsParams) WithAlertID(alertID *int64) *GetAnnotationsParams

WithAlertID adds the alertID to the get annotations params

func (*GetAnnotationsParams) WithContext

WithContext adds the context to the get annotations params

func (*GetAnnotationsParams) WithDashboardID

func (o *GetAnnotationsParams) WithDashboardID(dashboardID *int64) *GetAnnotationsParams

WithDashboardID adds the dashboardID to the get annotations params

func (*GetAnnotationsParams) WithDashboardUID

func (o *GetAnnotationsParams) WithDashboardUID(dashboardUID *string) *GetAnnotationsParams

WithDashboardUID adds the dashboardUID to the get annotations params

func (*GetAnnotationsParams) WithDefaults

func (o *GetAnnotationsParams) WithDefaults() *GetAnnotationsParams

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

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

func (*GetAnnotationsParams) WithFrom

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

WithFrom adds the from to the get annotations params

func (*GetAnnotationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get annotations params

func (*GetAnnotationsParams) WithLimit

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

WithLimit adds the limit to the get annotations params

func (*GetAnnotationsParams) WithMatchAny

func (o *GetAnnotationsParams) WithMatchAny(matchAny *bool) *GetAnnotationsParams

WithMatchAny adds the matchAny to the get annotations params

func (*GetAnnotationsParams) WithPanelID

func (o *GetAnnotationsParams) WithPanelID(panelID *int64) *GetAnnotationsParams

WithPanelID adds the panelID to the get annotations params

func (*GetAnnotationsParams) WithTags

func (o *GetAnnotationsParams) WithTags(tags []string) *GetAnnotationsParams

WithTags adds the tags to the get annotations params

func (*GetAnnotationsParams) WithTimeout

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

WithTimeout adds the timeout to the get annotations params

func (*GetAnnotationsParams) WithTo

WithTo adds the to to the get annotations params

func (*GetAnnotationsParams) WithType

func (o *GetAnnotationsParams) WithType(typeVar *string) *GetAnnotationsParams

WithType adds the typeVar to the get annotations params

func (*GetAnnotationsParams) WithUserID

func (o *GetAnnotationsParams) WithUserID(userID *int64) *GetAnnotationsParams

WithUserID adds the userID to the get annotations params

func (*GetAnnotationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAnnotationsReader

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

GetAnnotationsReader is a Reader for the GetAnnotations structure.

func (*GetAnnotationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAnnotationsUnauthorized

type GetAnnotationsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetAnnotationsUnauthorized

func NewGetAnnotationsUnauthorized() *GetAnnotationsUnauthorized

NewGetAnnotationsUnauthorized creates a GetAnnotationsUnauthorized with default headers values

func (*GetAnnotationsUnauthorized) Code

func (o *GetAnnotationsUnauthorized) Code() int

Code gets the status code for the get annotations unauthorized response

func (*GetAnnotationsUnauthorized) Error

func (*GetAnnotationsUnauthorized) GetPayload

func (*GetAnnotationsUnauthorized) IsClientError

func (o *GetAnnotationsUnauthorized) IsClientError() bool

IsClientError returns true when this get annotations unauthorized response has a 4xx status code

func (*GetAnnotationsUnauthorized) IsCode

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

IsCode returns true when this get annotations unauthorized response a status code equal to that given

func (*GetAnnotationsUnauthorized) IsRedirect

func (o *GetAnnotationsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get annotations unauthorized response has a 3xx status code

func (*GetAnnotationsUnauthorized) IsServerError

func (o *GetAnnotationsUnauthorized) IsServerError() bool

IsServerError returns true when this get annotations unauthorized response has a 5xx status code

func (*GetAnnotationsUnauthorized) IsSuccess

func (o *GetAnnotationsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get annotations unauthorized response has a 2xx status code

func (*GetAnnotationsUnauthorized) String

func (o *GetAnnotationsUnauthorized) String() string

type MassDeleteAnnotationsInternalServerError

type MassDeleteAnnotationsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewMassDeleteAnnotationsInternalServerError

func NewMassDeleteAnnotationsInternalServerError() *MassDeleteAnnotationsInternalServerError

NewMassDeleteAnnotationsInternalServerError creates a MassDeleteAnnotationsInternalServerError with default headers values

func (*MassDeleteAnnotationsInternalServerError) Code

Code gets the status code for the mass delete annotations internal server error response

func (*MassDeleteAnnotationsInternalServerError) Error

func (*MassDeleteAnnotationsInternalServerError) GetPayload

func (*MassDeleteAnnotationsInternalServerError) IsClientError

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

func (*MassDeleteAnnotationsInternalServerError) IsCode

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

func (*MassDeleteAnnotationsInternalServerError) IsRedirect

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

func (*MassDeleteAnnotationsInternalServerError) IsServerError

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

func (*MassDeleteAnnotationsInternalServerError) IsSuccess

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

func (*MassDeleteAnnotationsInternalServerError) String

type MassDeleteAnnotationsOK

type MassDeleteAnnotationsOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewMassDeleteAnnotationsOK

func NewMassDeleteAnnotationsOK() *MassDeleteAnnotationsOK

NewMassDeleteAnnotationsOK creates a MassDeleteAnnotationsOK with default headers values

func (*MassDeleteAnnotationsOK) Code

func (o *MassDeleteAnnotationsOK) Code() int

Code gets the status code for the mass delete annotations Ok response

func (*MassDeleteAnnotationsOK) Error

func (o *MassDeleteAnnotationsOK) Error() string

func (*MassDeleteAnnotationsOK) GetPayload

func (*MassDeleteAnnotationsOK) IsClientError

func (o *MassDeleteAnnotationsOK) IsClientError() bool

IsClientError returns true when this mass delete annotations Ok response has a 4xx status code

func (*MassDeleteAnnotationsOK) IsCode

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

IsCode returns true when this mass delete annotations Ok response a status code equal to that given

func (*MassDeleteAnnotationsOK) IsRedirect

func (o *MassDeleteAnnotationsOK) IsRedirect() bool

IsRedirect returns true when this mass delete annotations Ok response has a 3xx status code

func (*MassDeleteAnnotationsOK) IsServerError

func (o *MassDeleteAnnotationsOK) IsServerError() bool

IsServerError returns true when this mass delete annotations Ok response has a 5xx status code

func (*MassDeleteAnnotationsOK) IsSuccess

func (o *MassDeleteAnnotationsOK) IsSuccess() bool

IsSuccess returns true when this mass delete annotations Ok response has a 2xx status code

func (*MassDeleteAnnotationsOK) String

func (o *MassDeleteAnnotationsOK) String() string

type MassDeleteAnnotationsParams

type MassDeleteAnnotationsParams struct {

	// Body.
	Body *models.MassDeleteAnnotationsCmd

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

MassDeleteAnnotationsParams contains all the parameters to send to the API endpoint

for the mass delete annotations operation.

Typically these are written to a http.Request.

func NewMassDeleteAnnotationsParams

func NewMassDeleteAnnotationsParams() *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParams creates a new MassDeleteAnnotationsParams 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 NewMassDeleteAnnotationsParamsWithContext

func NewMassDeleteAnnotationsParamsWithContext(ctx context.Context) *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParamsWithContext creates a new MassDeleteAnnotationsParams object with the ability to set a context for a request.

func NewMassDeleteAnnotationsParamsWithHTTPClient

func NewMassDeleteAnnotationsParamsWithHTTPClient(client *http.Client) *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParamsWithHTTPClient creates a new MassDeleteAnnotationsParams object with the ability to set a custom HTTPClient for a request.

func NewMassDeleteAnnotationsParamsWithTimeout

func NewMassDeleteAnnotationsParamsWithTimeout(timeout time.Duration) *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParamsWithTimeout creates a new MassDeleteAnnotationsParams object with the ability to set a timeout on a request.

func (*MassDeleteAnnotationsParams) SetBody

SetBody adds the body to the mass delete annotations params

func (*MassDeleteAnnotationsParams) SetContext

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

SetContext adds the context to the mass delete annotations params

func (*MassDeleteAnnotationsParams) SetDefaults

func (o *MassDeleteAnnotationsParams) SetDefaults()

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

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

func (*MassDeleteAnnotationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the mass delete annotations params

func (*MassDeleteAnnotationsParams) SetTimeout

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

SetTimeout adds the timeout to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithBody

WithBody adds the body to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithContext

WithContext adds the context to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithDefaults

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

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

func (*MassDeleteAnnotationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithTimeout

WithTimeout adds the timeout to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type MassDeleteAnnotationsReader

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

MassDeleteAnnotationsReader is a Reader for the MassDeleteAnnotations structure.

func (*MassDeleteAnnotationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MassDeleteAnnotationsUnauthorized

type MassDeleteAnnotationsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewMassDeleteAnnotationsUnauthorized

func NewMassDeleteAnnotationsUnauthorized() *MassDeleteAnnotationsUnauthorized

NewMassDeleteAnnotationsUnauthorized creates a MassDeleteAnnotationsUnauthorized with default headers values

func (*MassDeleteAnnotationsUnauthorized) Code

Code gets the status code for the mass delete annotations unauthorized response

func (*MassDeleteAnnotationsUnauthorized) Error

func (*MassDeleteAnnotationsUnauthorized) GetPayload

func (*MassDeleteAnnotationsUnauthorized) IsClientError

func (o *MassDeleteAnnotationsUnauthorized) IsClientError() bool

IsClientError returns true when this mass delete annotations unauthorized response has a 4xx status code

func (*MassDeleteAnnotationsUnauthorized) IsCode

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

IsCode returns true when this mass delete annotations unauthorized response a status code equal to that given

func (*MassDeleteAnnotationsUnauthorized) IsRedirect

func (o *MassDeleteAnnotationsUnauthorized) IsRedirect() bool

IsRedirect returns true when this mass delete annotations unauthorized response has a 3xx status code

func (*MassDeleteAnnotationsUnauthorized) IsServerError

func (o *MassDeleteAnnotationsUnauthorized) IsServerError() bool

IsServerError returns true when this mass delete annotations unauthorized response has a 5xx status code

func (*MassDeleteAnnotationsUnauthorized) IsSuccess

func (o *MassDeleteAnnotationsUnauthorized) IsSuccess() bool

IsSuccess returns true when this mass delete annotations unauthorized response has a 2xx status code

func (*MassDeleteAnnotationsUnauthorized) String

type PatchAnnotationForbidden

type PatchAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewPatchAnnotationForbidden

func NewPatchAnnotationForbidden() *PatchAnnotationForbidden

NewPatchAnnotationForbidden creates a PatchAnnotationForbidden with default headers values

func (*PatchAnnotationForbidden) Code

func (o *PatchAnnotationForbidden) Code() int

Code gets the status code for the patch annotation forbidden response

func (*PatchAnnotationForbidden) Error

func (o *PatchAnnotationForbidden) Error() string

func (*PatchAnnotationForbidden) GetPayload

func (*PatchAnnotationForbidden) IsClientError

func (o *PatchAnnotationForbidden) IsClientError() bool

IsClientError returns true when this patch annotation forbidden response has a 4xx status code

func (*PatchAnnotationForbidden) IsCode

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

IsCode returns true when this patch annotation forbidden response a status code equal to that given

func (*PatchAnnotationForbidden) IsRedirect

func (o *PatchAnnotationForbidden) IsRedirect() bool

IsRedirect returns true when this patch annotation forbidden response has a 3xx status code

func (*PatchAnnotationForbidden) IsServerError

func (o *PatchAnnotationForbidden) IsServerError() bool

IsServerError returns true when this patch annotation forbidden response has a 5xx status code

func (*PatchAnnotationForbidden) IsSuccess

func (o *PatchAnnotationForbidden) IsSuccess() bool

IsSuccess returns true when this patch annotation forbidden response has a 2xx status code

func (*PatchAnnotationForbidden) String

func (o *PatchAnnotationForbidden) String() string

type PatchAnnotationInternalServerError

type PatchAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewPatchAnnotationInternalServerError

func NewPatchAnnotationInternalServerError() *PatchAnnotationInternalServerError

NewPatchAnnotationInternalServerError creates a PatchAnnotationInternalServerError with default headers values

func (*PatchAnnotationInternalServerError) Code

Code gets the status code for the patch annotation internal server error response

func (*PatchAnnotationInternalServerError) Error

func (*PatchAnnotationInternalServerError) GetPayload

func (*PatchAnnotationInternalServerError) IsClientError

func (o *PatchAnnotationInternalServerError) IsClientError() bool

IsClientError returns true when this patch annotation internal server error response has a 4xx status code

func (*PatchAnnotationInternalServerError) IsCode

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

func (*PatchAnnotationInternalServerError) IsRedirect

func (o *PatchAnnotationInternalServerError) IsRedirect() bool

IsRedirect returns true when this patch annotation internal server error response has a 3xx status code

func (*PatchAnnotationInternalServerError) IsServerError

func (o *PatchAnnotationInternalServerError) IsServerError() bool

IsServerError returns true when this patch annotation internal server error response has a 5xx status code

func (*PatchAnnotationInternalServerError) IsSuccess

IsSuccess returns true when this patch annotation internal server error response has a 2xx status code

func (*PatchAnnotationInternalServerError) String

type PatchAnnotationNotFound

type PatchAnnotationNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewPatchAnnotationNotFound

func NewPatchAnnotationNotFound() *PatchAnnotationNotFound

NewPatchAnnotationNotFound creates a PatchAnnotationNotFound with default headers values

func (*PatchAnnotationNotFound) Code

func (o *PatchAnnotationNotFound) Code() int

Code gets the status code for the patch annotation not found response

func (*PatchAnnotationNotFound) Error

func (o *PatchAnnotationNotFound) Error() string

func (*PatchAnnotationNotFound) GetPayload

func (*PatchAnnotationNotFound) IsClientError

func (o *PatchAnnotationNotFound) IsClientError() bool

IsClientError returns true when this patch annotation not found response has a 4xx status code

func (*PatchAnnotationNotFound) IsCode

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

IsCode returns true when this patch annotation not found response a status code equal to that given

func (*PatchAnnotationNotFound) IsRedirect

func (o *PatchAnnotationNotFound) IsRedirect() bool

IsRedirect returns true when this patch annotation not found response has a 3xx status code

func (*PatchAnnotationNotFound) IsServerError

func (o *PatchAnnotationNotFound) IsServerError() bool

IsServerError returns true when this patch annotation not found response has a 5xx status code

func (*PatchAnnotationNotFound) IsSuccess

func (o *PatchAnnotationNotFound) IsSuccess() bool

IsSuccess returns true when this patch annotation not found response has a 2xx status code

func (*PatchAnnotationNotFound) String

func (o *PatchAnnotationNotFound) String() string

type PatchAnnotationOK

type PatchAnnotationOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewPatchAnnotationOK

func NewPatchAnnotationOK() *PatchAnnotationOK

NewPatchAnnotationOK creates a PatchAnnotationOK with default headers values

func (*PatchAnnotationOK) Code

func (o *PatchAnnotationOK) Code() int

Code gets the status code for the patch annotation Ok response

func (*PatchAnnotationOK) Error

func (o *PatchAnnotationOK) Error() string

func (*PatchAnnotationOK) GetPayload

func (o *PatchAnnotationOK) GetPayload() *models.SuccessResponseBody

func (*PatchAnnotationOK) IsClientError

func (o *PatchAnnotationOK) IsClientError() bool

IsClientError returns true when this patch annotation Ok response has a 4xx status code

func (*PatchAnnotationOK) IsCode

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

IsCode returns true when this patch annotation Ok response a status code equal to that given

func (*PatchAnnotationOK) IsRedirect

func (o *PatchAnnotationOK) IsRedirect() bool

IsRedirect returns true when this patch annotation Ok response has a 3xx status code

func (*PatchAnnotationOK) IsServerError

func (o *PatchAnnotationOK) IsServerError() bool

IsServerError returns true when this patch annotation Ok response has a 5xx status code

func (*PatchAnnotationOK) IsSuccess

func (o *PatchAnnotationOK) IsSuccess() bool

IsSuccess returns true when this patch annotation Ok response has a 2xx status code

func (*PatchAnnotationOK) String

func (o *PatchAnnotationOK) String() string

type PatchAnnotationParams

type PatchAnnotationParams struct {

	// AnnotationID.
	AnnotationID string

	// Body.
	Body *models.PatchAnnotationsCmd

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

PatchAnnotationParams contains all the parameters to send to the API endpoint

for the patch annotation operation.

Typically these are written to a http.Request.

func NewPatchAnnotationParams

func NewPatchAnnotationParams() *PatchAnnotationParams

NewPatchAnnotationParams creates a new PatchAnnotationParams 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 NewPatchAnnotationParamsWithContext

func NewPatchAnnotationParamsWithContext(ctx context.Context) *PatchAnnotationParams

NewPatchAnnotationParamsWithContext creates a new PatchAnnotationParams object with the ability to set a context for a request.

func NewPatchAnnotationParamsWithHTTPClient

func NewPatchAnnotationParamsWithHTTPClient(client *http.Client) *PatchAnnotationParams

NewPatchAnnotationParamsWithHTTPClient creates a new PatchAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAnnotationParamsWithTimeout

func NewPatchAnnotationParamsWithTimeout(timeout time.Duration) *PatchAnnotationParams

NewPatchAnnotationParamsWithTimeout creates a new PatchAnnotationParams object with the ability to set a timeout on a request.

func (*PatchAnnotationParams) SetAnnotationID

func (o *PatchAnnotationParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the patch annotation params

func (*PatchAnnotationParams) SetBody

SetBody adds the body to the patch annotation params

func (*PatchAnnotationParams) SetContext

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

SetContext adds the context to the patch annotation params

func (*PatchAnnotationParams) SetDefaults

func (o *PatchAnnotationParams) SetDefaults()

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

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

func (*PatchAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch annotation params

func (*PatchAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the patch annotation params

func (*PatchAnnotationParams) WithAnnotationID

func (o *PatchAnnotationParams) WithAnnotationID(annotationID string) *PatchAnnotationParams

WithAnnotationID adds the annotationID to the patch annotation params

func (*PatchAnnotationParams) WithBody

WithBody adds the body to the patch annotation params

func (*PatchAnnotationParams) WithContext

WithContext adds the context to the patch annotation params

func (*PatchAnnotationParams) WithDefaults

func (o *PatchAnnotationParams) WithDefaults() *PatchAnnotationParams

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

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

func (*PatchAnnotationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch annotation params

func (*PatchAnnotationParams) WithTimeout

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

WithTimeout adds the timeout to the patch annotation params

func (*PatchAnnotationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchAnnotationReader

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

PatchAnnotationReader is a Reader for the PatchAnnotation structure.

func (*PatchAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAnnotationUnauthorized

type PatchAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewPatchAnnotationUnauthorized

func NewPatchAnnotationUnauthorized() *PatchAnnotationUnauthorized

NewPatchAnnotationUnauthorized creates a PatchAnnotationUnauthorized with default headers values

func (*PatchAnnotationUnauthorized) Code

func (o *PatchAnnotationUnauthorized) Code() int

Code gets the status code for the patch annotation unauthorized response

func (*PatchAnnotationUnauthorized) Error

func (*PatchAnnotationUnauthorized) GetPayload

func (*PatchAnnotationUnauthorized) IsClientError

func (o *PatchAnnotationUnauthorized) IsClientError() bool

IsClientError returns true when this patch annotation unauthorized response has a 4xx status code

func (*PatchAnnotationUnauthorized) IsCode

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

IsCode returns true when this patch annotation unauthorized response a status code equal to that given

func (*PatchAnnotationUnauthorized) IsRedirect

func (o *PatchAnnotationUnauthorized) IsRedirect() bool

IsRedirect returns true when this patch annotation unauthorized response has a 3xx status code

func (*PatchAnnotationUnauthorized) IsServerError

func (o *PatchAnnotationUnauthorized) IsServerError() bool

IsServerError returns true when this patch annotation unauthorized response has a 5xx status code

func (*PatchAnnotationUnauthorized) IsSuccess

func (o *PatchAnnotationUnauthorized) IsSuccess() bool

IsSuccess returns true when this patch annotation unauthorized response has a 2xx status code

func (*PatchAnnotationUnauthorized) String

func (o *PatchAnnotationUnauthorized) String() string

type PostAnnotationBadRequest

type PostAnnotationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewPostAnnotationBadRequest

func NewPostAnnotationBadRequest() *PostAnnotationBadRequest

NewPostAnnotationBadRequest creates a PostAnnotationBadRequest with default headers values

func (*PostAnnotationBadRequest) Code

func (o *PostAnnotationBadRequest) Code() int

Code gets the status code for the post annotation bad request response

func (*PostAnnotationBadRequest) Error

func (o *PostAnnotationBadRequest) Error() string

func (*PostAnnotationBadRequest) GetPayload

func (*PostAnnotationBadRequest) IsClientError

func (o *PostAnnotationBadRequest) IsClientError() bool

IsClientError returns true when this post annotation bad request response has a 4xx status code

func (*PostAnnotationBadRequest) IsCode

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

IsCode returns true when this post annotation bad request response a status code equal to that given

func (*PostAnnotationBadRequest) IsRedirect

func (o *PostAnnotationBadRequest) IsRedirect() bool

IsRedirect returns true when this post annotation bad request response has a 3xx status code

func (*PostAnnotationBadRequest) IsServerError

func (o *PostAnnotationBadRequest) IsServerError() bool

IsServerError returns true when this post annotation bad request response has a 5xx status code

func (*PostAnnotationBadRequest) IsSuccess

func (o *PostAnnotationBadRequest) IsSuccess() bool

IsSuccess returns true when this post annotation bad request response has a 2xx status code

func (*PostAnnotationBadRequest) String

func (o *PostAnnotationBadRequest) String() string

type PostAnnotationForbidden

type PostAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewPostAnnotationForbidden

func NewPostAnnotationForbidden() *PostAnnotationForbidden

NewPostAnnotationForbidden creates a PostAnnotationForbidden with default headers values

func (*PostAnnotationForbidden) Code

func (o *PostAnnotationForbidden) Code() int

Code gets the status code for the post annotation forbidden response

func (*PostAnnotationForbidden) Error

func (o *PostAnnotationForbidden) Error() string

func (*PostAnnotationForbidden) GetPayload

func (*PostAnnotationForbidden) IsClientError

func (o *PostAnnotationForbidden) IsClientError() bool

IsClientError returns true when this post annotation forbidden response has a 4xx status code

func (*PostAnnotationForbidden) IsCode

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

IsCode returns true when this post annotation forbidden response a status code equal to that given

func (*PostAnnotationForbidden) IsRedirect

func (o *PostAnnotationForbidden) IsRedirect() bool

IsRedirect returns true when this post annotation forbidden response has a 3xx status code

func (*PostAnnotationForbidden) IsServerError

func (o *PostAnnotationForbidden) IsServerError() bool

IsServerError returns true when this post annotation forbidden response has a 5xx status code

func (*PostAnnotationForbidden) IsSuccess

func (o *PostAnnotationForbidden) IsSuccess() bool

IsSuccess returns true when this post annotation forbidden response has a 2xx status code

func (*PostAnnotationForbidden) String

func (o *PostAnnotationForbidden) String() string

type PostAnnotationInternalServerError

type PostAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewPostAnnotationInternalServerError

func NewPostAnnotationInternalServerError() *PostAnnotationInternalServerError

NewPostAnnotationInternalServerError creates a PostAnnotationInternalServerError with default headers values

func (*PostAnnotationInternalServerError) Code

Code gets the status code for the post annotation internal server error response

func (*PostAnnotationInternalServerError) Error

func (*PostAnnotationInternalServerError) GetPayload

func (*PostAnnotationInternalServerError) IsClientError

func (o *PostAnnotationInternalServerError) IsClientError() bool

IsClientError returns true when this post annotation internal server error response has a 4xx status code

func (*PostAnnotationInternalServerError) IsCode

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

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

func (*PostAnnotationInternalServerError) IsRedirect

func (o *PostAnnotationInternalServerError) IsRedirect() bool

IsRedirect returns true when this post annotation internal server error response has a 3xx status code

func (*PostAnnotationInternalServerError) IsServerError

func (o *PostAnnotationInternalServerError) IsServerError() bool

IsServerError returns true when this post annotation internal server error response has a 5xx status code

func (*PostAnnotationInternalServerError) IsSuccess

func (o *PostAnnotationInternalServerError) IsSuccess() bool

IsSuccess returns true when this post annotation internal server error response has a 2xx status code

func (*PostAnnotationInternalServerError) String

type PostAnnotationOK

type PostAnnotationOK struct {
	Payload *models.PostAnnotationOKBody
}

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

(empty)

func NewPostAnnotationOK

func NewPostAnnotationOK() *PostAnnotationOK

NewPostAnnotationOK creates a PostAnnotationOK with default headers values

func (*PostAnnotationOK) Code

func (o *PostAnnotationOK) Code() int

Code gets the status code for the post annotation Ok response

func (*PostAnnotationOK) Error

func (o *PostAnnotationOK) Error() string

func (*PostAnnotationOK) GetPayload

func (o *PostAnnotationOK) GetPayload() *models.PostAnnotationOKBody

func (*PostAnnotationOK) IsClientError

func (o *PostAnnotationOK) IsClientError() bool

IsClientError returns true when this post annotation Ok response has a 4xx status code

func (*PostAnnotationOK) IsCode

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

IsCode returns true when this post annotation Ok response a status code equal to that given

func (*PostAnnotationOK) IsRedirect

func (o *PostAnnotationOK) IsRedirect() bool

IsRedirect returns true when this post annotation Ok response has a 3xx status code

func (*PostAnnotationOK) IsServerError

func (o *PostAnnotationOK) IsServerError() bool

IsServerError returns true when this post annotation Ok response has a 5xx status code

func (*PostAnnotationOK) IsSuccess

func (o *PostAnnotationOK) IsSuccess() bool

IsSuccess returns true when this post annotation Ok response has a 2xx status code

func (*PostAnnotationOK) String

func (o *PostAnnotationOK) String() string

type PostAnnotationParams

type PostAnnotationParams struct {

	// Body.
	Body *models.PostAnnotationsCmd

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

PostAnnotationParams contains all the parameters to send to the API endpoint

for the post annotation operation.

Typically these are written to a http.Request.

func NewPostAnnotationParams

func NewPostAnnotationParams() *PostAnnotationParams

NewPostAnnotationParams creates a new PostAnnotationParams 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 NewPostAnnotationParamsWithContext

func NewPostAnnotationParamsWithContext(ctx context.Context) *PostAnnotationParams

NewPostAnnotationParamsWithContext creates a new PostAnnotationParams object with the ability to set a context for a request.

func NewPostAnnotationParamsWithHTTPClient

func NewPostAnnotationParamsWithHTTPClient(client *http.Client) *PostAnnotationParams

NewPostAnnotationParamsWithHTTPClient creates a new PostAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewPostAnnotationParamsWithTimeout

func NewPostAnnotationParamsWithTimeout(timeout time.Duration) *PostAnnotationParams

NewPostAnnotationParamsWithTimeout creates a new PostAnnotationParams object with the ability to set a timeout on a request.

func (*PostAnnotationParams) SetBody

SetBody adds the body to the post annotation params

func (*PostAnnotationParams) SetContext

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

SetContext adds the context to the post annotation params

func (*PostAnnotationParams) SetDefaults

func (o *PostAnnotationParams) SetDefaults()

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

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

func (*PostAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post annotation params

func (*PostAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the post annotation params

func (*PostAnnotationParams) WithBody

WithBody adds the body to the post annotation params

func (*PostAnnotationParams) WithContext

WithContext adds the context to the post annotation params

func (*PostAnnotationParams) WithDefaults

func (o *PostAnnotationParams) WithDefaults() *PostAnnotationParams

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

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

func (*PostAnnotationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post annotation params

func (*PostAnnotationParams) WithTimeout

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

WithTimeout adds the timeout to the post annotation params

func (*PostAnnotationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAnnotationReader

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

PostAnnotationReader is a Reader for the PostAnnotation structure.

func (*PostAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAnnotationUnauthorized

type PostAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewPostAnnotationUnauthorized

func NewPostAnnotationUnauthorized() *PostAnnotationUnauthorized

NewPostAnnotationUnauthorized creates a PostAnnotationUnauthorized with default headers values

func (*PostAnnotationUnauthorized) Code

func (o *PostAnnotationUnauthorized) Code() int

Code gets the status code for the post annotation unauthorized response

func (*PostAnnotationUnauthorized) Error

func (*PostAnnotationUnauthorized) GetPayload

func (*PostAnnotationUnauthorized) IsClientError

func (o *PostAnnotationUnauthorized) IsClientError() bool

IsClientError returns true when this post annotation unauthorized response has a 4xx status code

func (*PostAnnotationUnauthorized) IsCode

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

IsCode returns true when this post annotation unauthorized response a status code equal to that given

func (*PostAnnotationUnauthorized) IsRedirect

func (o *PostAnnotationUnauthorized) IsRedirect() bool

IsRedirect returns true when this post annotation unauthorized response has a 3xx status code

func (*PostAnnotationUnauthorized) IsServerError

func (o *PostAnnotationUnauthorized) IsServerError() bool

IsServerError returns true when this post annotation unauthorized response has a 5xx status code

func (*PostAnnotationUnauthorized) IsSuccess

func (o *PostAnnotationUnauthorized) IsSuccess() bool

IsSuccess returns true when this post annotation unauthorized response has a 2xx status code

func (*PostAnnotationUnauthorized) String

func (o *PostAnnotationUnauthorized) String() string

type PostGraphiteAnnotationBadRequest

type PostGraphiteAnnotationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewPostGraphiteAnnotationBadRequest

func NewPostGraphiteAnnotationBadRequest() *PostGraphiteAnnotationBadRequest

NewPostGraphiteAnnotationBadRequest creates a PostGraphiteAnnotationBadRequest with default headers values

func (*PostGraphiteAnnotationBadRequest) Code

Code gets the status code for the post graphite annotation bad request response

func (*PostGraphiteAnnotationBadRequest) Error

func (*PostGraphiteAnnotationBadRequest) GetPayload

func (*PostGraphiteAnnotationBadRequest) IsClientError

func (o *PostGraphiteAnnotationBadRequest) IsClientError() bool

IsClientError returns true when this post graphite annotation bad request response has a 4xx status code

func (*PostGraphiteAnnotationBadRequest) IsCode

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

IsCode returns true when this post graphite annotation bad request response a status code equal to that given

func (*PostGraphiteAnnotationBadRequest) IsRedirect

func (o *PostGraphiteAnnotationBadRequest) IsRedirect() bool

IsRedirect returns true when this post graphite annotation bad request response has a 3xx status code

func (*PostGraphiteAnnotationBadRequest) IsServerError

func (o *PostGraphiteAnnotationBadRequest) IsServerError() bool

IsServerError returns true when this post graphite annotation bad request response has a 5xx status code

func (*PostGraphiteAnnotationBadRequest) IsSuccess

func (o *PostGraphiteAnnotationBadRequest) IsSuccess() bool

IsSuccess returns true when this post graphite annotation bad request response has a 2xx status code

func (*PostGraphiteAnnotationBadRequest) String

type PostGraphiteAnnotationForbidden

type PostGraphiteAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewPostGraphiteAnnotationForbidden

func NewPostGraphiteAnnotationForbidden() *PostGraphiteAnnotationForbidden

NewPostGraphiteAnnotationForbidden creates a PostGraphiteAnnotationForbidden with default headers values

func (*PostGraphiteAnnotationForbidden) Code

Code gets the status code for the post graphite annotation forbidden response

func (*PostGraphiteAnnotationForbidden) Error

func (*PostGraphiteAnnotationForbidden) GetPayload

func (*PostGraphiteAnnotationForbidden) IsClientError

func (o *PostGraphiteAnnotationForbidden) IsClientError() bool

IsClientError returns true when this post graphite annotation forbidden response has a 4xx status code

func (*PostGraphiteAnnotationForbidden) IsCode

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

IsCode returns true when this post graphite annotation forbidden response a status code equal to that given

func (*PostGraphiteAnnotationForbidden) IsRedirect

func (o *PostGraphiteAnnotationForbidden) IsRedirect() bool

IsRedirect returns true when this post graphite annotation forbidden response has a 3xx status code

func (*PostGraphiteAnnotationForbidden) IsServerError

func (o *PostGraphiteAnnotationForbidden) IsServerError() bool

IsServerError returns true when this post graphite annotation forbidden response has a 5xx status code

func (*PostGraphiteAnnotationForbidden) IsSuccess

func (o *PostGraphiteAnnotationForbidden) IsSuccess() bool

IsSuccess returns true when this post graphite annotation forbidden response has a 2xx status code

func (*PostGraphiteAnnotationForbidden) String

type PostGraphiteAnnotationInternalServerError

type PostGraphiteAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewPostGraphiteAnnotationInternalServerError

func NewPostGraphiteAnnotationInternalServerError() *PostGraphiteAnnotationInternalServerError

NewPostGraphiteAnnotationInternalServerError creates a PostGraphiteAnnotationInternalServerError with default headers values

func (*PostGraphiteAnnotationInternalServerError) Code

Code gets the status code for the post graphite annotation internal server error response

func (*PostGraphiteAnnotationInternalServerError) Error

func (*PostGraphiteAnnotationInternalServerError) GetPayload

func (*PostGraphiteAnnotationInternalServerError) IsClientError

IsClientError returns true when this post graphite annotation internal server error response has a 4xx status code

func (*PostGraphiteAnnotationInternalServerError) IsCode

IsCode returns true when this post graphite annotation internal server error response a status code equal to that given

func (*PostGraphiteAnnotationInternalServerError) IsRedirect

IsRedirect returns true when this post graphite annotation internal server error response has a 3xx status code

func (*PostGraphiteAnnotationInternalServerError) IsServerError

IsServerError returns true when this post graphite annotation internal server error response has a 5xx status code

func (*PostGraphiteAnnotationInternalServerError) IsSuccess

IsSuccess returns true when this post graphite annotation internal server error response has a 2xx status code

func (*PostGraphiteAnnotationInternalServerError) String

type PostGraphiteAnnotationOK

type PostGraphiteAnnotationOK struct {
	Payload *models.PostGraphiteAnnotationOKBody
}

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

(empty)

func NewPostGraphiteAnnotationOK

func NewPostGraphiteAnnotationOK() *PostGraphiteAnnotationOK

NewPostGraphiteAnnotationOK creates a PostGraphiteAnnotationOK with default headers values

func (*PostGraphiteAnnotationOK) Code

func (o *PostGraphiteAnnotationOK) Code() int

Code gets the status code for the post graphite annotation Ok response

func (*PostGraphiteAnnotationOK) Error

func (o *PostGraphiteAnnotationOK) Error() string

func (*PostGraphiteAnnotationOK) GetPayload

func (*PostGraphiteAnnotationOK) IsClientError

func (o *PostGraphiteAnnotationOK) IsClientError() bool

IsClientError returns true when this post graphite annotation Ok response has a 4xx status code

func (*PostGraphiteAnnotationOK) IsCode

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

IsCode returns true when this post graphite annotation Ok response a status code equal to that given

func (*PostGraphiteAnnotationOK) IsRedirect

func (o *PostGraphiteAnnotationOK) IsRedirect() bool

IsRedirect returns true when this post graphite annotation Ok response has a 3xx status code

func (*PostGraphiteAnnotationOK) IsServerError

func (o *PostGraphiteAnnotationOK) IsServerError() bool

IsServerError returns true when this post graphite annotation Ok response has a 5xx status code

func (*PostGraphiteAnnotationOK) IsSuccess

func (o *PostGraphiteAnnotationOK) IsSuccess() bool

IsSuccess returns true when this post graphite annotation Ok response has a 2xx status code

func (*PostGraphiteAnnotationOK) String

func (o *PostGraphiteAnnotationOK) String() string

type PostGraphiteAnnotationParams

type PostGraphiteAnnotationParams struct {

	// Body.
	Body *models.PostGraphiteAnnotationsCmd

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

PostGraphiteAnnotationParams contains all the parameters to send to the API endpoint

for the post graphite annotation operation.

Typically these are written to a http.Request.

func NewPostGraphiteAnnotationParams

func NewPostGraphiteAnnotationParams() *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParams creates a new PostGraphiteAnnotationParams 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 NewPostGraphiteAnnotationParamsWithContext

func NewPostGraphiteAnnotationParamsWithContext(ctx context.Context) *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParamsWithContext creates a new PostGraphiteAnnotationParams object with the ability to set a context for a request.

func NewPostGraphiteAnnotationParamsWithHTTPClient

func NewPostGraphiteAnnotationParamsWithHTTPClient(client *http.Client) *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParamsWithHTTPClient creates a new PostGraphiteAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewPostGraphiteAnnotationParamsWithTimeout

func NewPostGraphiteAnnotationParamsWithTimeout(timeout time.Duration) *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParamsWithTimeout creates a new PostGraphiteAnnotationParams object with the ability to set a timeout on a request.

func (*PostGraphiteAnnotationParams) SetBody

SetBody adds the body to the post graphite annotation params

func (*PostGraphiteAnnotationParams) SetContext

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

SetContext adds the context to the post graphite annotation params

func (*PostGraphiteAnnotationParams) SetDefaults

func (o *PostGraphiteAnnotationParams) SetDefaults()

SetDefaults hydrates default values in the post graphite annotation params (not the query body).

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

func (*PostGraphiteAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post graphite annotation params

func (*PostGraphiteAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithBody

WithBody adds the body to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithContext

WithContext adds the context to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithDefaults

WithDefaults hydrates default values in the post graphite annotation params (not the query body).

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

func (*PostGraphiteAnnotationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithTimeout

WithTimeout adds the timeout to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostGraphiteAnnotationReader

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

PostGraphiteAnnotationReader is a Reader for the PostGraphiteAnnotation structure.

func (*PostGraphiteAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostGraphiteAnnotationUnauthorized

type PostGraphiteAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewPostGraphiteAnnotationUnauthorized

func NewPostGraphiteAnnotationUnauthorized() *PostGraphiteAnnotationUnauthorized

NewPostGraphiteAnnotationUnauthorized creates a PostGraphiteAnnotationUnauthorized with default headers values

func (*PostGraphiteAnnotationUnauthorized) Code

Code gets the status code for the post graphite annotation unauthorized response

func (*PostGraphiteAnnotationUnauthorized) Error

func (*PostGraphiteAnnotationUnauthorized) GetPayload

func (*PostGraphiteAnnotationUnauthorized) IsClientError

func (o *PostGraphiteAnnotationUnauthorized) IsClientError() bool

IsClientError returns true when this post graphite annotation unauthorized response has a 4xx status code

func (*PostGraphiteAnnotationUnauthorized) IsCode

IsCode returns true when this post graphite annotation unauthorized response a status code equal to that given

func (*PostGraphiteAnnotationUnauthorized) IsRedirect

func (o *PostGraphiteAnnotationUnauthorized) IsRedirect() bool

IsRedirect returns true when this post graphite annotation unauthorized response has a 3xx status code

func (*PostGraphiteAnnotationUnauthorized) IsServerError

func (o *PostGraphiteAnnotationUnauthorized) IsServerError() bool

IsServerError returns true when this post graphite annotation unauthorized response has a 5xx status code

func (*PostGraphiteAnnotationUnauthorized) IsSuccess

IsSuccess returns true when this post graphite annotation unauthorized response has a 2xx status code

func (*PostGraphiteAnnotationUnauthorized) String

type UpdateAnnotationBadRequest

type UpdateAnnotationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewUpdateAnnotationBadRequest

func NewUpdateAnnotationBadRequest() *UpdateAnnotationBadRequest

NewUpdateAnnotationBadRequest creates a UpdateAnnotationBadRequest with default headers values

func (*UpdateAnnotationBadRequest) Code

func (o *UpdateAnnotationBadRequest) Code() int

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

func (*UpdateAnnotationBadRequest) Error

func (*UpdateAnnotationBadRequest) GetPayload

func (*UpdateAnnotationBadRequest) IsClientError

func (o *UpdateAnnotationBadRequest) IsClientError() bool

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

func (*UpdateAnnotationBadRequest) IsCode

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

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

func (*UpdateAnnotationBadRequest) IsRedirect

func (o *UpdateAnnotationBadRequest) IsRedirect() bool

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

func (*UpdateAnnotationBadRequest) IsServerError

func (o *UpdateAnnotationBadRequest) IsServerError() bool

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

func (*UpdateAnnotationBadRequest) IsSuccess

func (o *UpdateAnnotationBadRequest) IsSuccess() bool

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

func (*UpdateAnnotationBadRequest) String

func (o *UpdateAnnotationBadRequest) String() string

type UpdateAnnotationForbidden

type UpdateAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

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

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

func NewUpdateAnnotationForbidden

func NewUpdateAnnotationForbidden() *UpdateAnnotationForbidden

NewUpdateAnnotationForbidden creates a UpdateAnnotationForbidden with default headers values

func (*UpdateAnnotationForbidden) Code

func (o *UpdateAnnotationForbidden) Code() int

Code gets the status code for the update annotation forbidden response

func (*UpdateAnnotationForbidden) Error

func (o *UpdateAnnotationForbidden) Error() string

func (*UpdateAnnotationForbidden) GetPayload

func (*UpdateAnnotationForbidden) IsClientError

func (o *UpdateAnnotationForbidden) IsClientError() bool

IsClientError returns true when this update annotation forbidden response has a 4xx status code

func (*UpdateAnnotationForbidden) IsCode

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

IsCode returns true when this update annotation forbidden response a status code equal to that given

func (*UpdateAnnotationForbidden) IsRedirect

func (o *UpdateAnnotationForbidden) IsRedirect() bool

IsRedirect returns true when this update annotation forbidden response has a 3xx status code

func (*UpdateAnnotationForbidden) IsServerError

func (o *UpdateAnnotationForbidden) IsServerError() bool

IsServerError returns true when this update annotation forbidden response has a 5xx status code

func (*UpdateAnnotationForbidden) IsSuccess

func (o *UpdateAnnotationForbidden) IsSuccess() bool

IsSuccess returns true when this update annotation forbidden response has a 2xx status code

func (*UpdateAnnotationForbidden) String

func (o *UpdateAnnotationForbidden) String() string

type UpdateAnnotationInternalServerError

type UpdateAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateAnnotationInternalServerError

func NewUpdateAnnotationInternalServerError() *UpdateAnnotationInternalServerError

NewUpdateAnnotationInternalServerError creates a UpdateAnnotationInternalServerError with default headers values

func (*UpdateAnnotationInternalServerError) Code

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

func (*UpdateAnnotationInternalServerError) Error

func (*UpdateAnnotationInternalServerError) GetPayload

func (*UpdateAnnotationInternalServerError) IsClientError

func (o *UpdateAnnotationInternalServerError) IsClientError() bool

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

func (*UpdateAnnotationInternalServerError) IsCode

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

func (*UpdateAnnotationInternalServerError) IsRedirect

func (o *UpdateAnnotationInternalServerError) IsRedirect() bool

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

func (*UpdateAnnotationInternalServerError) IsServerError

func (o *UpdateAnnotationInternalServerError) IsServerError() bool

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

func (*UpdateAnnotationInternalServerError) IsSuccess

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

func (*UpdateAnnotationInternalServerError) String

type UpdateAnnotationOK

type UpdateAnnotationOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewUpdateAnnotationOK

func NewUpdateAnnotationOK() *UpdateAnnotationOK

NewUpdateAnnotationOK creates a UpdateAnnotationOK with default headers values

func (*UpdateAnnotationOK) Code

func (o *UpdateAnnotationOK) Code() int

Code gets the status code for the update annotation Ok response

func (*UpdateAnnotationOK) Error

func (o *UpdateAnnotationOK) Error() string

func (*UpdateAnnotationOK) GetPayload

func (*UpdateAnnotationOK) IsClientError

func (o *UpdateAnnotationOK) IsClientError() bool

IsClientError returns true when this update annotation Ok response has a 4xx status code

func (*UpdateAnnotationOK) IsCode

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

IsCode returns true when this update annotation Ok response a status code equal to that given

func (*UpdateAnnotationOK) IsRedirect

func (o *UpdateAnnotationOK) IsRedirect() bool

IsRedirect returns true when this update annotation Ok response has a 3xx status code

func (*UpdateAnnotationOK) IsServerError

func (o *UpdateAnnotationOK) IsServerError() bool

IsServerError returns true when this update annotation Ok response has a 5xx status code

func (*UpdateAnnotationOK) IsSuccess

func (o *UpdateAnnotationOK) IsSuccess() bool

IsSuccess returns true when this update annotation Ok response has a 2xx status code

func (*UpdateAnnotationOK) String

func (o *UpdateAnnotationOK) String() string

type UpdateAnnotationParams

type UpdateAnnotationParams struct {

	// AnnotationID.
	AnnotationID string

	// Body.
	Body *models.UpdateAnnotationsCmd

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

UpdateAnnotationParams contains all the parameters to send to the API endpoint

for the update annotation operation.

Typically these are written to a http.Request.

func NewUpdateAnnotationParams

func NewUpdateAnnotationParams() *UpdateAnnotationParams

NewUpdateAnnotationParams creates a new UpdateAnnotationParams 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 NewUpdateAnnotationParamsWithContext

func NewUpdateAnnotationParamsWithContext(ctx context.Context) *UpdateAnnotationParams

NewUpdateAnnotationParamsWithContext creates a new UpdateAnnotationParams object with the ability to set a context for a request.

func NewUpdateAnnotationParamsWithHTTPClient

func NewUpdateAnnotationParamsWithHTTPClient(client *http.Client) *UpdateAnnotationParams

NewUpdateAnnotationParamsWithHTTPClient creates a new UpdateAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAnnotationParamsWithTimeout

func NewUpdateAnnotationParamsWithTimeout(timeout time.Duration) *UpdateAnnotationParams

NewUpdateAnnotationParamsWithTimeout creates a new UpdateAnnotationParams object with the ability to set a timeout on a request.

func (*UpdateAnnotationParams) SetAnnotationID

func (o *UpdateAnnotationParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the update annotation params

func (*UpdateAnnotationParams) SetBody

SetBody adds the body to the update annotation params

func (*UpdateAnnotationParams) SetContext

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

SetContext adds the context to the update annotation params

func (*UpdateAnnotationParams) SetDefaults

func (o *UpdateAnnotationParams) SetDefaults()

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

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

func (*UpdateAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update annotation params

func (*UpdateAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the update annotation params

func (*UpdateAnnotationParams) WithAnnotationID

func (o *UpdateAnnotationParams) WithAnnotationID(annotationID string) *UpdateAnnotationParams

WithAnnotationID adds the annotationID to the update annotation params

func (*UpdateAnnotationParams) WithBody

WithBody adds the body to the update annotation params

func (*UpdateAnnotationParams) WithContext

WithContext adds the context to the update annotation params

func (*UpdateAnnotationParams) WithDefaults

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

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

func (*UpdateAnnotationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update annotation params

func (*UpdateAnnotationParams) WithTimeout

WithTimeout adds the timeout to the update annotation params

func (*UpdateAnnotationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateAnnotationReader

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

UpdateAnnotationReader is a Reader for the UpdateAnnotation structure.

func (*UpdateAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAnnotationUnauthorized

type UpdateAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateAnnotationUnauthorized

func NewUpdateAnnotationUnauthorized() *UpdateAnnotationUnauthorized

NewUpdateAnnotationUnauthorized creates a UpdateAnnotationUnauthorized with default headers values

func (*UpdateAnnotationUnauthorized) Code

Code gets the status code for the update annotation unauthorized response

func (*UpdateAnnotationUnauthorized) Error

func (*UpdateAnnotationUnauthorized) GetPayload

func (*UpdateAnnotationUnauthorized) IsClientError

func (o *UpdateAnnotationUnauthorized) IsClientError() bool

IsClientError returns true when this update annotation unauthorized response has a 4xx status code

func (*UpdateAnnotationUnauthorized) IsCode

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

IsCode returns true when this update annotation unauthorized response a status code equal to that given

func (*UpdateAnnotationUnauthorized) IsRedirect

func (o *UpdateAnnotationUnauthorized) IsRedirect() bool

IsRedirect returns true when this update annotation unauthorized response has a 3xx status code

func (*UpdateAnnotationUnauthorized) IsServerError

func (o *UpdateAnnotationUnauthorized) IsServerError() bool

IsServerError returns true when this update annotation unauthorized response has a 5xx status code

func (*UpdateAnnotationUnauthorized) IsSuccess

func (o *UpdateAnnotationUnauthorized) IsSuccess() bool

IsSuccess returns true when this update annotation unauthorized response has a 2xx status code

func (*UpdateAnnotationUnauthorized) String

Jump to

Keyboard shortcuts

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