Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteAnnotationByID(annotationID string, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)
- func (a *Client) DeleteAnnotationByIDWithParams(params *DeleteAnnotationByIDParams, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)
- func (a *Client) GetAnnotationByID(annotationID string, opts ...ClientOption) (*GetAnnotationByIDOK, error)
- func (a *Client) GetAnnotationByIDWithParams(params *GetAnnotationByIDParams, opts ...ClientOption) (*GetAnnotationByIDOK, error)
- func (a *Client) GetAnnotationTags(params *GetAnnotationTagsParams, opts ...ClientOption) (*GetAnnotationTagsOK, error)
- func (a *Client) GetAnnotations(params *GetAnnotationsParams, opts ...ClientOption) (*GetAnnotationsOK, error)
- func (a *Client) MassDeleteAnnotations(body *models.MassDeleteAnnotationsCmd, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)
- func (a *Client) MassDeleteAnnotationsWithParams(params *MassDeleteAnnotationsParams, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)
- func (a *Client) PatchAnnotation(annotationID string, body *models.PatchAnnotationsCmd, opts ...ClientOption) (*PatchAnnotationOK, error)
- func (a *Client) PatchAnnotationWithParams(params *PatchAnnotationParams, opts ...ClientOption) (*PatchAnnotationOK, error)
- func (a *Client) PostAnnotation(body *models.PostAnnotationsCmd, opts ...ClientOption) (*PostAnnotationOK, error)
- func (a *Client) PostAnnotationWithParams(params *PostAnnotationParams, opts ...ClientOption) (*PostAnnotationOK, error)
- func (a *Client) PostGraphiteAnnotation(body *models.PostGraphiteAnnotationsCmd, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)
- func (a *Client) PostGraphiteAnnotationWithParams(params *PostGraphiteAnnotationParams, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateAnnotation(annotationID string, body *models.UpdateAnnotationsCmd, opts ...ClientOption) (*UpdateAnnotationOK, error)
- func (a *Client) UpdateAnnotationWithParams(params *UpdateAnnotationParams, opts ...ClientOption) (*UpdateAnnotationOK, error)
- type ClientOption
- type ClientService
- type DeleteAnnotationByIDForbidden
- func (o *DeleteAnnotationByIDForbidden) Code() int
- func (o *DeleteAnnotationByIDForbidden) Error() string
- func (o *DeleteAnnotationByIDForbidden) GetPayload() *models.ErrorResponseBody
- func (o *DeleteAnnotationByIDForbidden) IsClientError() bool
- func (o *DeleteAnnotationByIDForbidden) IsCode(code int) bool
- func (o *DeleteAnnotationByIDForbidden) IsRedirect() bool
- func (o *DeleteAnnotationByIDForbidden) IsServerError() bool
- func (o *DeleteAnnotationByIDForbidden) IsSuccess() bool
- func (o *DeleteAnnotationByIDForbidden) String() string
- type DeleteAnnotationByIDInternalServerError
- func (o *DeleteAnnotationByIDInternalServerError) Code() int
- func (o *DeleteAnnotationByIDInternalServerError) Error() string
- func (o *DeleteAnnotationByIDInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *DeleteAnnotationByIDInternalServerError) IsClientError() bool
- func (o *DeleteAnnotationByIDInternalServerError) IsCode(code int) bool
- func (o *DeleteAnnotationByIDInternalServerError) IsRedirect() bool
- func (o *DeleteAnnotationByIDInternalServerError) IsServerError() bool
- func (o *DeleteAnnotationByIDInternalServerError) IsSuccess() bool
- func (o *DeleteAnnotationByIDInternalServerError) String() string
- type DeleteAnnotationByIDOK
- func (o *DeleteAnnotationByIDOK) Code() int
- func (o *DeleteAnnotationByIDOK) Error() string
- func (o *DeleteAnnotationByIDOK) GetPayload() *models.SuccessResponseBody
- func (o *DeleteAnnotationByIDOK) IsClientError() bool
- func (o *DeleteAnnotationByIDOK) IsCode(code int) bool
- func (o *DeleteAnnotationByIDOK) IsRedirect() bool
- func (o *DeleteAnnotationByIDOK) IsServerError() bool
- func (o *DeleteAnnotationByIDOK) IsSuccess() bool
- func (o *DeleteAnnotationByIDOK) String() string
- type DeleteAnnotationByIDParams
- func NewDeleteAnnotationByIDParams() *DeleteAnnotationByIDParams
- func NewDeleteAnnotationByIDParamsWithContext(ctx context.Context) *DeleteAnnotationByIDParams
- func NewDeleteAnnotationByIDParamsWithHTTPClient(client *http.Client) *DeleteAnnotationByIDParams
- func NewDeleteAnnotationByIDParamsWithTimeout(timeout time.Duration) *DeleteAnnotationByIDParams
- func (o *DeleteAnnotationByIDParams) SetAnnotationID(annotationID string)
- func (o *DeleteAnnotationByIDParams) SetContext(ctx context.Context)
- func (o *DeleteAnnotationByIDParams) SetDefaults()
- func (o *DeleteAnnotationByIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAnnotationByIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAnnotationByIDParams) WithAnnotationID(annotationID string) *DeleteAnnotationByIDParams
- func (o *DeleteAnnotationByIDParams) WithContext(ctx context.Context) *DeleteAnnotationByIDParams
- func (o *DeleteAnnotationByIDParams) WithDefaults() *DeleteAnnotationByIDParams
- func (o *DeleteAnnotationByIDParams) WithHTTPClient(client *http.Client) *DeleteAnnotationByIDParams
- func (o *DeleteAnnotationByIDParams) WithTimeout(timeout time.Duration) *DeleteAnnotationByIDParams
- func (o *DeleteAnnotationByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAnnotationByIDReader
- type DeleteAnnotationByIDUnauthorized
- func (o *DeleteAnnotationByIDUnauthorized) Code() int
- func (o *DeleteAnnotationByIDUnauthorized) Error() string
- func (o *DeleteAnnotationByIDUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *DeleteAnnotationByIDUnauthorized) IsClientError() bool
- func (o *DeleteAnnotationByIDUnauthorized) IsCode(code int) bool
- func (o *DeleteAnnotationByIDUnauthorized) IsRedirect() bool
- func (o *DeleteAnnotationByIDUnauthorized) IsServerError() bool
- func (o *DeleteAnnotationByIDUnauthorized) IsSuccess() bool
- func (o *DeleteAnnotationByIDUnauthorized) String() string
- type GetAnnotationByIDInternalServerError
- func (o *GetAnnotationByIDInternalServerError) Code() int
- func (o *GetAnnotationByIDInternalServerError) Error() string
- func (o *GetAnnotationByIDInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetAnnotationByIDInternalServerError) IsClientError() bool
- func (o *GetAnnotationByIDInternalServerError) IsCode(code int) bool
- func (o *GetAnnotationByIDInternalServerError) IsRedirect() bool
- func (o *GetAnnotationByIDInternalServerError) IsServerError() bool
- func (o *GetAnnotationByIDInternalServerError) IsSuccess() bool
- func (o *GetAnnotationByIDInternalServerError) String() string
- type GetAnnotationByIDOK
- func (o *GetAnnotationByIDOK) Code() int
- func (o *GetAnnotationByIDOK) Error() string
- func (o *GetAnnotationByIDOK) GetPayload() *models.Annotation
- func (o *GetAnnotationByIDOK) IsClientError() bool
- func (o *GetAnnotationByIDOK) IsCode(code int) bool
- func (o *GetAnnotationByIDOK) IsRedirect() bool
- func (o *GetAnnotationByIDOK) IsServerError() bool
- func (o *GetAnnotationByIDOK) IsSuccess() bool
- func (o *GetAnnotationByIDOK) String() string
- type GetAnnotationByIDParams
- func NewGetAnnotationByIDParams() *GetAnnotationByIDParams
- func NewGetAnnotationByIDParamsWithContext(ctx context.Context) *GetAnnotationByIDParams
- func NewGetAnnotationByIDParamsWithHTTPClient(client *http.Client) *GetAnnotationByIDParams
- func NewGetAnnotationByIDParamsWithTimeout(timeout time.Duration) *GetAnnotationByIDParams
- func (o *GetAnnotationByIDParams) SetAnnotationID(annotationID string)
- func (o *GetAnnotationByIDParams) SetContext(ctx context.Context)
- func (o *GetAnnotationByIDParams) SetDefaults()
- func (o *GetAnnotationByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetAnnotationByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetAnnotationByIDParams) WithAnnotationID(annotationID string) *GetAnnotationByIDParams
- func (o *GetAnnotationByIDParams) WithContext(ctx context.Context) *GetAnnotationByIDParams
- func (o *GetAnnotationByIDParams) WithDefaults() *GetAnnotationByIDParams
- func (o *GetAnnotationByIDParams) WithHTTPClient(client *http.Client) *GetAnnotationByIDParams
- func (o *GetAnnotationByIDParams) WithTimeout(timeout time.Duration) *GetAnnotationByIDParams
- func (o *GetAnnotationByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAnnotationByIDReader
- type GetAnnotationByIDUnauthorized
- func (o *GetAnnotationByIDUnauthorized) Code() int
- func (o *GetAnnotationByIDUnauthorized) Error() string
- func (o *GetAnnotationByIDUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetAnnotationByIDUnauthorized) IsClientError() bool
- func (o *GetAnnotationByIDUnauthorized) IsCode(code int) bool
- func (o *GetAnnotationByIDUnauthorized) IsRedirect() bool
- func (o *GetAnnotationByIDUnauthorized) IsServerError() bool
- func (o *GetAnnotationByIDUnauthorized) IsSuccess() bool
- func (o *GetAnnotationByIDUnauthorized) String() string
- type GetAnnotationTagsInternalServerError
- func (o *GetAnnotationTagsInternalServerError) Code() int
- func (o *GetAnnotationTagsInternalServerError) Error() string
- func (o *GetAnnotationTagsInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetAnnotationTagsInternalServerError) IsClientError() bool
- func (o *GetAnnotationTagsInternalServerError) IsCode(code int) bool
- func (o *GetAnnotationTagsInternalServerError) IsRedirect() bool
- func (o *GetAnnotationTagsInternalServerError) IsServerError() bool
- func (o *GetAnnotationTagsInternalServerError) IsSuccess() bool
- func (o *GetAnnotationTagsInternalServerError) String() string
- type GetAnnotationTagsOK
- func (o *GetAnnotationTagsOK) Code() int
- func (o *GetAnnotationTagsOK) Error() string
- func (o *GetAnnotationTagsOK) GetPayload() *models.GetAnnotationTagsResponse
- func (o *GetAnnotationTagsOK) IsClientError() bool
- func (o *GetAnnotationTagsOK) IsCode(code int) bool
- func (o *GetAnnotationTagsOK) IsRedirect() bool
- func (o *GetAnnotationTagsOK) IsServerError() bool
- func (o *GetAnnotationTagsOK) IsSuccess() bool
- func (o *GetAnnotationTagsOK) String() string
- type GetAnnotationTagsParams
- func NewGetAnnotationTagsParams() *GetAnnotationTagsParams
- func NewGetAnnotationTagsParamsWithContext(ctx context.Context) *GetAnnotationTagsParams
- func NewGetAnnotationTagsParamsWithHTTPClient(client *http.Client) *GetAnnotationTagsParams
- func NewGetAnnotationTagsParamsWithTimeout(timeout time.Duration) *GetAnnotationTagsParams
- func (o *GetAnnotationTagsParams) SetContext(ctx context.Context)
- func (o *GetAnnotationTagsParams) SetDefaults()
- func (o *GetAnnotationTagsParams) SetHTTPClient(client *http.Client)
- func (o *GetAnnotationTagsParams) SetLimit(limit *string)
- func (o *GetAnnotationTagsParams) SetTag(tag *string)
- func (o *GetAnnotationTagsParams) SetTimeout(timeout time.Duration)
- func (o *GetAnnotationTagsParams) WithContext(ctx context.Context) *GetAnnotationTagsParams
- func (o *GetAnnotationTagsParams) WithDefaults() *GetAnnotationTagsParams
- func (o *GetAnnotationTagsParams) WithHTTPClient(client *http.Client) *GetAnnotationTagsParams
- func (o *GetAnnotationTagsParams) WithLimit(limit *string) *GetAnnotationTagsParams
- func (o *GetAnnotationTagsParams) WithTag(tag *string) *GetAnnotationTagsParams
- func (o *GetAnnotationTagsParams) WithTimeout(timeout time.Duration) *GetAnnotationTagsParams
- func (o *GetAnnotationTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAnnotationTagsReader
- type GetAnnotationTagsUnauthorized
- func (o *GetAnnotationTagsUnauthorized) Code() int
- func (o *GetAnnotationTagsUnauthorized) Error() string
- func (o *GetAnnotationTagsUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetAnnotationTagsUnauthorized) IsClientError() bool
- func (o *GetAnnotationTagsUnauthorized) IsCode(code int) bool
- func (o *GetAnnotationTagsUnauthorized) IsRedirect() bool
- func (o *GetAnnotationTagsUnauthorized) IsServerError() bool
- func (o *GetAnnotationTagsUnauthorized) IsSuccess() bool
- func (o *GetAnnotationTagsUnauthorized) String() string
- type GetAnnotationsInternalServerError
- func (o *GetAnnotationsInternalServerError) Code() int
- func (o *GetAnnotationsInternalServerError) Error() string
- func (o *GetAnnotationsInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetAnnotationsInternalServerError) IsClientError() bool
- func (o *GetAnnotationsInternalServerError) IsCode(code int) bool
- func (o *GetAnnotationsInternalServerError) IsRedirect() bool
- func (o *GetAnnotationsInternalServerError) IsServerError() bool
- func (o *GetAnnotationsInternalServerError) IsSuccess() bool
- func (o *GetAnnotationsInternalServerError) String() string
- type GetAnnotationsOK
- func (o *GetAnnotationsOK) Code() int
- func (o *GetAnnotationsOK) Error() string
- func (o *GetAnnotationsOK) GetPayload() []*models.Annotation
- func (o *GetAnnotationsOK) IsClientError() bool
- func (o *GetAnnotationsOK) IsCode(code int) bool
- func (o *GetAnnotationsOK) IsRedirect() bool
- func (o *GetAnnotationsOK) IsServerError() bool
- func (o *GetAnnotationsOK) IsSuccess() bool
- func (o *GetAnnotationsOK) String() string
- type GetAnnotationsParams
- func NewGetAnnotationsParams() *GetAnnotationsParams
- func NewGetAnnotationsParamsWithContext(ctx context.Context) *GetAnnotationsParams
- func NewGetAnnotationsParamsWithHTTPClient(client *http.Client) *GetAnnotationsParams
- func NewGetAnnotationsParamsWithTimeout(timeout time.Duration) *GetAnnotationsParams
- func (o *GetAnnotationsParams) SetAlertID(alertID *int64)
- func (o *GetAnnotationsParams) SetContext(ctx context.Context)
- func (o *GetAnnotationsParams) SetDashboardID(dashboardID *int64)
- func (o *GetAnnotationsParams) SetDashboardUID(dashboardUID *string)
- func (o *GetAnnotationsParams) SetDefaults()
- func (o *GetAnnotationsParams) SetFrom(from *int64)
- func (o *GetAnnotationsParams) SetHTTPClient(client *http.Client)
- func (o *GetAnnotationsParams) SetLimit(limit *int64)
- func (o *GetAnnotationsParams) SetMatchAny(matchAny *bool)
- func (o *GetAnnotationsParams) SetPanelID(panelID *int64)
- func (o *GetAnnotationsParams) SetTags(tags []string)
- func (o *GetAnnotationsParams) SetTimeout(timeout time.Duration)
- func (o *GetAnnotationsParams) SetTo(to *int64)
- func (o *GetAnnotationsParams) SetType(typeVar *string)
- func (o *GetAnnotationsParams) SetUserID(userID *int64)
- func (o *GetAnnotationsParams) WithAlertID(alertID *int64) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithContext(ctx context.Context) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithDashboardID(dashboardID *int64) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithDashboardUID(dashboardUID *string) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithDefaults() *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithFrom(from *int64) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithHTTPClient(client *http.Client) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithLimit(limit *int64) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithMatchAny(matchAny *bool) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithPanelID(panelID *int64) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithTags(tags []string) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithTimeout(timeout time.Duration) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithTo(to *int64) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithType(typeVar *string) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WithUserID(userID *int64) *GetAnnotationsParams
- func (o *GetAnnotationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAnnotationsReader
- type GetAnnotationsUnauthorized
- func (o *GetAnnotationsUnauthorized) Code() int
- func (o *GetAnnotationsUnauthorized) Error() string
- func (o *GetAnnotationsUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetAnnotationsUnauthorized) IsClientError() bool
- func (o *GetAnnotationsUnauthorized) IsCode(code int) bool
- func (o *GetAnnotationsUnauthorized) IsRedirect() bool
- func (o *GetAnnotationsUnauthorized) IsServerError() bool
- func (o *GetAnnotationsUnauthorized) IsSuccess() bool
- func (o *GetAnnotationsUnauthorized) String() string
- type MassDeleteAnnotationsInternalServerError
- func (o *MassDeleteAnnotationsInternalServerError) Code() int
- func (o *MassDeleteAnnotationsInternalServerError) Error() string
- func (o *MassDeleteAnnotationsInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *MassDeleteAnnotationsInternalServerError) IsClientError() bool
- func (o *MassDeleteAnnotationsInternalServerError) IsCode(code int) bool
- func (o *MassDeleteAnnotationsInternalServerError) IsRedirect() bool
- func (o *MassDeleteAnnotationsInternalServerError) IsServerError() bool
- func (o *MassDeleteAnnotationsInternalServerError) IsSuccess() bool
- func (o *MassDeleteAnnotationsInternalServerError) String() string
- type MassDeleteAnnotationsOK
- func (o *MassDeleteAnnotationsOK) Code() int
- func (o *MassDeleteAnnotationsOK) Error() string
- func (o *MassDeleteAnnotationsOK) GetPayload() *models.SuccessResponseBody
- func (o *MassDeleteAnnotationsOK) IsClientError() bool
- func (o *MassDeleteAnnotationsOK) IsCode(code int) bool
- func (o *MassDeleteAnnotationsOK) IsRedirect() bool
- func (o *MassDeleteAnnotationsOK) IsServerError() bool
- func (o *MassDeleteAnnotationsOK) IsSuccess() bool
- func (o *MassDeleteAnnotationsOK) String() string
- type MassDeleteAnnotationsParams
- func NewMassDeleteAnnotationsParams() *MassDeleteAnnotationsParams
- func NewMassDeleteAnnotationsParamsWithContext(ctx context.Context) *MassDeleteAnnotationsParams
- func NewMassDeleteAnnotationsParamsWithHTTPClient(client *http.Client) *MassDeleteAnnotationsParams
- func NewMassDeleteAnnotationsParamsWithTimeout(timeout time.Duration) *MassDeleteAnnotationsParams
- func (o *MassDeleteAnnotationsParams) SetBody(body *models.MassDeleteAnnotationsCmd)
- func (o *MassDeleteAnnotationsParams) SetContext(ctx context.Context)
- func (o *MassDeleteAnnotationsParams) SetDefaults()
- func (o *MassDeleteAnnotationsParams) SetHTTPClient(client *http.Client)
- func (o *MassDeleteAnnotationsParams) SetTimeout(timeout time.Duration)
- func (o *MassDeleteAnnotationsParams) WithBody(body *models.MassDeleteAnnotationsCmd) *MassDeleteAnnotationsParams
- func (o *MassDeleteAnnotationsParams) WithContext(ctx context.Context) *MassDeleteAnnotationsParams
- func (o *MassDeleteAnnotationsParams) WithDefaults() *MassDeleteAnnotationsParams
- func (o *MassDeleteAnnotationsParams) WithHTTPClient(client *http.Client) *MassDeleteAnnotationsParams
- func (o *MassDeleteAnnotationsParams) WithTimeout(timeout time.Duration) *MassDeleteAnnotationsParams
- func (o *MassDeleteAnnotationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MassDeleteAnnotationsReader
- type MassDeleteAnnotationsUnauthorized
- func (o *MassDeleteAnnotationsUnauthorized) Code() int
- func (o *MassDeleteAnnotationsUnauthorized) Error() string
- func (o *MassDeleteAnnotationsUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *MassDeleteAnnotationsUnauthorized) IsClientError() bool
- func (o *MassDeleteAnnotationsUnauthorized) IsCode(code int) bool
- func (o *MassDeleteAnnotationsUnauthorized) IsRedirect() bool
- func (o *MassDeleteAnnotationsUnauthorized) IsServerError() bool
- func (o *MassDeleteAnnotationsUnauthorized) IsSuccess() bool
- func (o *MassDeleteAnnotationsUnauthorized) String() string
- type PatchAnnotationForbidden
- func (o *PatchAnnotationForbidden) Code() int
- func (o *PatchAnnotationForbidden) Error() string
- func (o *PatchAnnotationForbidden) GetPayload() *models.ErrorResponseBody
- func (o *PatchAnnotationForbidden) IsClientError() bool
- func (o *PatchAnnotationForbidden) IsCode(code int) bool
- func (o *PatchAnnotationForbidden) IsRedirect() bool
- func (o *PatchAnnotationForbidden) IsServerError() bool
- func (o *PatchAnnotationForbidden) IsSuccess() bool
- func (o *PatchAnnotationForbidden) String() string
- type PatchAnnotationInternalServerError
- func (o *PatchAnnotationInternalServerError) Code() int
- func (o *PatchAnnotationInternalServerError) Error() string
- func (o *PatchAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *PatchAnnotationInternalServerError) IsClientError() bool
- func (o *PatchAnnotationInternalServerError) IsCode(code int) bool
- func (o *PatchAnnotationInternalServerError) IsRedirect() bool
- func (o *PatchAnnotationInternalServerError) IsServerError() bool
- func (o *PatchAnnotationInternalServerError) IsSuccess() bool
- func (o *PatchAnnotationInternalServerError) String() string
- type PatchAnnotationNotFound
- func (o *PatchAnnotationNotFound) Code() int
- func (o *PatchAnnotationNotFound) Error() string
- func (o *PatchAnnotationNotFound) GetPayload() *models.ErrorResponseBody
- func (o *PatchAnnotationNotFound) IsClientError() bool
- func (o *PatchAnnotationNotFound) IsCode(code int) bool
- func (o *PatchAnnotationNotFound) IsRedirect() bool
- func (o *PatchAnnotationNotFound) IsServerError() bool
- func (o *PatchAnnotationNotFound) IsSuccess() bool
- func (o *PatchAnnotationNotFound) String() string
- type PatchAnnotationOK
- func (o *PatchAnnotationOK) Code() int
- func (o *PatchAnnotationOK) Error() string
- func (o *PatchAnnotationOK) GetPayload() *models.SuccessResponseBody
- func (o *PatchAnnotationOK) IsClientError() bool
- func (o *PatchAnnotationOK) IsCode(code int) bool
- func (o *PatchAnnotationOK) IsRedirect() bool
- func (o *PatchAnnotationOK) IsServerError() bool
- func (o *PatchAnnotationOK) IsSuccess() bool
- func (o *PatchAnnotationOK) String() string
- type PatchAnnotationParams
- func NewPatchAnnotationParams() *PatchAnnotationParams
- func NewPatchAnnotationParamsWithContext(ctx context.Context) *PatchAnnotationParams
- func NewPatchAnnotationParamsWithHTTPClient(client *http.Client) *PatchAnnotationParams
- func NewPatchAnnotationParamsWithTimeout(timeout time.Duration) *PatchAnnotationParams
- func (o *PatchAnnotationParams) SetAnnotationID(annotationID string)
- func (o *PatchAnnotationParams) SetBody(body *models.PatchAnnotationsCmd)
- func (o *PatchAnnotationParams) SetContext(ctx context.Context)
- func (o *PatchAnnotationParams) SetDefaults()
- func (o *PatchAnnotationParams) SetHTTPClient(client *http.Client)
- func (o *PatchAnnotationParams) SetTimeout(timeout time.Duration)
- func (o *PatchAnnotationParams) WithAnnotationID(annotationID string) *PatchAnnotationParams
- func (o *PatchAnnotationParams) WithBody(body *models.PatchAnnotationsCmd) *PatchAnnotationParams
- func (o *PatchAnnotationParams) WithContext(ctx context.Context) *PatchAnnotationParams
- func (o *PatchAnnotationParams) WithDefaults() *PatchAnnotationParams
- func (o *PatchAnnotationParams) WithHTTPClient(client *http.Client) *PatchAnnotationParams
- func (o *PatchAnnotationParams) WithTimeout(timeout time.Duration) *PatchAnnotationParams
- func (o *PatchAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAnnotationReader
- type PatchAnnotationUnauthorized
- func (o *PatchAnnotationUnauthorized) Code() int
- func (o *PatchAnnotationUnauthorized) Error() string
- func (o *PatchAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *PatchAnnotationUnauthorized) IsClientError() bool
- func (o *PatchAnnotationUnauthorized) IsCode(code int) bool
- func (o *PatchAnnotationUnauthorized) IsRedirect() bool
- func (o *PatchAnnotationUnauthorized) IsServerError() bool
- func (o *PatchAnnotationUnauthorized) IsSuccess() bool
- func (o *PatchAnnotationUnauthorized) String() string
- type PostAnnotationBadRequest
- func (o *PostAnnotationBadRequest) Code() int
- func (o *PostAnnotationBadRequest) Error() string
- func (o *PostAnnotationBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *PostAnnotationBadRequest) IsClientError() bool
- func (o *PostAnnotationBadRequest) IsCode(code int) bool
- func (o *PostAnnotationBadRequest) IsRedirect() bool
- func (o *PostAnnotationBadRequest) IsServerError() bool
- func (o *PostAnnotationBadRequest) IsSuccess() bool
- func (o *PostAnnotationBadRequest) String() string
- type PostAnnotationForbidden
- func (o *PostAnnotationForbidden) Code() int
- func (o *PostAnnotationForbidden) Error() string
- func (o *PostAnnotationForbidden) GetPayload() *models.ErrorResponseBody
- func (o *PostAnnotationForbidden) IsClientError() bool
- func (o *PostAnnotationForbidden) IsCode(code int) bool
- func (o *PostAnnotationForbidden) IsRedirect() bool
- func (o *PostAnnotationForbidden) IsServerError() bool
- func (o *PostAnnotationForbidden) IsSuccess() bool
- func (o *PostAnnotationForbidden) String() string
- type PostAnnotationInternalServerError
- func (o *PostAnnotationInternalServerError) Code() int
- func (o *PostAnnotationInternalServerError) Error() string
- func (o *PostAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *PostAnnotationInternalServerError) IsClientError() bool
- func (o *PostAnnotationInternalServerError) IsCode(code int) bool
- func (o *PostAnnotationInternalServerError) IsRedirect() bool
- func (o *PostAnnotationInternalServerError) IsServerError() bool
- func (o *PostAnnotationInternalServerError) IsSuccess() bool
- func (o *PostAnnotationInternalServerError) String() string
- type PostAnnotationOK
- func (o *PostAnnotationOK) Code() int
- func (o *PostAnnotationOK) Error() string
- func (o *PostAnnotationOK) GetPayload() *models.PostAnnotationOKBody
- func (o *PostAnnotationOK) IsClientError() bool
- func (o *PostAnnotationOK) IsCode(code int) bool
- func (o *PostAnnotationOK) IsRedirect() bool
- func (o *PostAnnotationOK) IsServerError() bool
- func (o *PostAnnotationOK) IsSuccess() bool
- func (o *PostAnnotationOK) String() string
- type PostAnnotationParams
- func NewPostAnnotationParams() *PostAnnotationParams
- func NewPostAnnotationParamsWithContext(ctx context.Context) *PostAnnotationParams
- func NewPostAnnotationParamsWithHTTPClient(client *http.Client) *PostAnnotationParams
- func NewPostAnnotationParamsWithTimeout(timeout time.Duration) *PostAnnotationParams
- func (o *PostAnnotationParams) SetBody(body *models.PostAnnotationsCmd)
- func (o *PostAnnotationParams) SetContext(ctx context.Context)
- func (o *PostAnnotationParams) SetDefaults()
- func (o *PostAnnotationParams) SetHTTPClient(client *http.Client)
- func (o *PostAnnotationParams) SetTimeout(timeout time.Duration)
- func (o *PostAnnotationParams) WithBody(body *models.PostAnnotationsCmd) *PostAnnotationParams
- func (o *PostAnnotationParams) WithContext(ctx context.Context) *PostAnnotationParams
- func (o *PostAnnotationParams) WithDefaults() *PostAnnotationParams
- func (o *PostAnnotationParams) WithHTTPClient(client *http.Client) *PostAnnotationParams
- func (o *PostAnnotationParams) WithTimeout(timeout time.Duration) *PostAnnotationParams
- func (o *PostAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAnnotationReader
- type PostAnnotationUnauthorized
- func (o *PostAnnotationUnauthorized) Code() int
- func (o *PostAnnotationUnauthorized) Error() string
- func (o *PostAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *PostAnnotationUnauthorized) IsClientError() bool
- func (o *PostAnnotationUnauthorized) IsCode(code int) bool
- func (o *PostAnnotationUnauthorized) IsRedirect() bool
- func (o *PostAnnotationUnauthorized) IsServerError() bool
- func (o *PostAnnotationUnauthorized) IsSuccess() bool
- func (o *PostAnnotationUnauthorized) String() string
- type PostGraphiteAnnotationBadRequest
- func (o *PostGraphiteAnnotationBadRequest) Code() int
- func (o *PostGraphiteAnnotationBadRequest) Error() string
- func (o *PostGraphiteAnnotationBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *PostGraphiteAnnotationBadRequest) IsClientError() bool
- func (o *PostGraphiteAnnotationBadRequest) IsCode(code int) bool
- func (o *PostGraphiteAnnotationBadRequest) IsRedirect() bool
- func (o *PostGraphiteAnnotationBadRequest) IsServerError() bool
- func (o *PostGraphiteAnnotationBadRequest) IsSuccess() bool
- func (o *PostGraphiteAnnotationBadRequest) String() string
- type PostGraphiteAnnotationForbidden
- func (o *PostGraphiteAnnotationForbidden) Code() int
- func (o *PostGraphiteAnnotationForbidden) Error() string
- func (o *PostGraphiteAnnotationForbidden) GetPayload() *models.ErrorResponseBody
- func (o *PostGraphiteAnnotationForbidden) IsClientError() bool
- func (o *PostGraphiteAnnotationForbidden) IsCode(code int) bool
- func (o *PostGraphiteAnnotationForbidden) IsRedirect() bool
- func (o *PostGraphiteAnnotationForbidden) IsServerError() bool
- func (o *PostGraphiteAnnotationForbidden) IsSuccess() bool
- func (o *PostGraphiteAnnotationForbidden) String() string
- type PostGraphiteAnnotationInternalServerError
- func (o *PostGraphiteAnnotationInternalServerError) Code() int
- func (o *PostGraphiteAnnotationInternalServerError) Error() string
- func (o *PostGraphiteAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *PostGraphiteAnnotationInternalServerError) IsClientError() bool
- func (o *PostGraphiteAnnotationInternalServerError) IsCode(code int) bool
- func (o *PostGraphiteAnnotationInternalServerError) IsRedirect() bool
- func (o *PostGraphiteAnnotationInternalServerError) IsServerError() bool
- func (o *PostGraphiteAnnotationInternalServerError) IsSuccess() bool
- func (o *PostGraphiteAnnotationInternalServerError) String() string
- type PostGraphiteAnnotationOK
- func (o *PostGraphiteAnnotationOK) Code() int
- func (o *PostGraphiteAnnotationOK) Error() string
- func (o *PostGraphiteAnnotationOK) GetPayload() *models.PostGraphiteAnnotationOKBody
- func (o *PostGraphiteAnnotationOK) IsClientError() bool
- func (o *PostGraphiteAnnotationOK) IsCode(code int) bool
- func (o *PostGraphiteAnnotationOK) IsRedirect() bool
- func (o *PostGraphiteAnnotationOK) IsServerError() bool
- func (o *PostGraphiteAnnotationOK) IsSuccess() bool
- func (o *PostGraphiteAnnotationOK) String() string
- type PostGraphiteAnnotationParams
- func NewPostGraphiteAnnotationParams() *PostGraphiteAnnotationParams
- func NewPostGraphiteAnnotationParamsWithContext(ctx context.Context) *PostGraphiteAnnotationParams
- func NewPostGraphiteAnnotationParamsWithHTTPClient(client *http.Client) *PostGraphiteAnnotationParams
- func NewPostGraphiteAnnotationParamsWithTimeout(timeout time.Duration) *PostGraphiteAnnotationParams
- func (o *PostGraphiteAnnotationParams) SetBody(body *models.PostGraphiteAnnotationsCmd)
- func (o *PostGraphiteAnnotationParams) SetContext(ctx context.Context)
- func (o *PostGraphiteAnnotationParams) SetDefaults()
- func (o *PostGraphiteAnnotationParams) SetHTTPClient(client *http.Client)
- func (o *PostGraphiteAnnotationParams) SetTimeout(timeout time.Duration)
- func (o *PostGraphiteAnnotationParams) WithBody(body *models.PostGraphiteAnnotationsCmd) *PostGraphiteAnnotationParams
- func (o *PostGraphiteAnnotationParams) WithContext(ctx context.Context) *PostGraphiteAnnotationParams
- func (o *PostGraphiteAnnotationParams) WithDefaults() *PostGraphiteAnnotationParams
- func (o *PostGraphiteAnnotationParams) WithHTTPClient(client *http.Client) *PostGraphiteAnnotationParams
- func (o *PostGraphiteAnnotationParams) WithTimeout(timeout time.Duration) *PostGraphiteAnnotationParams
- func (o *PostGraphiteAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostGraphiteAnnotationReader
- type PostGraphiteAnnotationUnauthorized
- func (o *PostGraphiteAnnotationUnauthorized) Code() int
- func (o *PostGraphiteAnnotationUnauthorized) Error() string
- func (o *PostGraphiteAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *PostGraphiteAnnotationUnauthorized) IsClientError() bool
- func (o *PostGraphiteAnnotationUnauthorized) IsCode(code int) bool
- func (o *PostGraphiteAnnotationUnauthorized) IsRedirect() bool
- func (o *PostGraphiteAnnotationUnauthorized) IsServerError() bool
- func (o *PostGraphiteAnnotationUnauthorized) IsSuccess() bool
- func (o *PostGraphiteAnnotationUnauthorized) String() string
- type UpdateAnnotationBadRequest
- func (o *UpdateAnnotationBadRequest) Code() int
- func (o *UpdateAnnotationBadRequest) Error() string
- func (o *UpdateAnnotationBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *UpdateAnnotationBadRequest) IsClientError() bool
- func (o *UpdateAnnotationBadRequest) IsCode(code int) bool
- func (o *UpdateAnnotationBadRequest) IsRedirect() bool
- func (o *UpdateAnnotationBadRequest) IsServerError() bool
- func (o *UpdateAnnotationBadRequest) IsSuccess() bool
- func (o *UpdateAnnotationBadRequest) String() string
- type UpdateAnnotationForbidden
- func (o *UpdateAnnotationForbidden) Code() int
- func (o *UpdateAnnotationForbidden) Error() string
- func (o *UpdateAnnotationForbidden) GetPayload() *models.ErrorResponseBody
- func (o *UpdateAnnotationForbidden) IsClientError() bool
- func (o *UpdateAnnotationForbidden) IsCode(code int) bool
- func (o *UpdateAnnotationForbidden) IsRedirect() bool
- func (o *UpdateAnnotationForbidden) IsServerError() bool
- func (o *UpdateAnnotationForbidden) IsSuccess() bool
- func (o *UpdateAnnotationForbidden) String() string
- type UpdateAnnotationInternalServerError
- func (o *UpdateAnnotationInternalServerError) Code() int
- func (o *UpdateAnnotationInternalServerError) Error() string
- func (o *UpdateAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *UpdateAnnotationInternalServerError) IsClientError() bool
- func (o *UpdateAnnotationInternalServerError) IsCode(code int) bool
- func (o *UpdateAnnotationInternalServerError) IsRedirect() bool
- func (o *UpdateAnnotationInternalServerError) IsServerError() bool
- func (o *UpdateAnnotationInternalServerError) IsSuccess() bool
- func (o *UpdateAnnotationInternalServerError) String() string
- type UpdateAnnotationOK
- func (o *UpdateAnnotationOK) Code() int
- func (o *UpdateAnnotationOK) Error() string
- func (o *UpdateAnnotationOK) GetPayload() *models.SuccessResponseBody
- func (o *UpdateAnnotationOK) IsClientError() bool
- func (o *UpdateAnnotationOK) IsCode(code int) bool
- func (o *UpdateAnnotationOK) IsRedirect() bool
- func (o *UpdateAnnotationOK) IsServerError() bool
- func (o *UpdateAnnotationOK) IsSuccess() bool
- func (o *UpdateAnnotationOK) String() string
- type UpdateAnnotationParams
- func NewUpdateAnnotationParams() *UpdateAnnotationParams
- func NewUpdateAnnotationParamsWithContext(ctx context.Context) *UpdateAnnotationParams
- func NewUpdateAnnotationParamsWithHTTPClient(client *http.Client) *UpdateAnnotationParams
- func NewUpdateAnnotationParamsWithTimeout(timeout time.Duration) *UpdateAnnotationParams
- func (o *UpdateAnnotationParams) SetAnnotationID(annotationID string)
- func (o *UpdateAnnotationParams) SetBody(body *models.UpdateAnnotationsCmd)
- func (o *UpdateAnnotationParams) SetContext(ctx context.Context)
- func (o *UpdateAnnotationParams) SetDefaults()
- func (o *UpdateAnnotationParams) SetHTTPClient(client *http.Client)
- func (o *UpdateAnnotationParams) SetTimeout(timeout time.Duration)
- func (o *UpdateAnnotationParams) WithAnnotationID(annotationID string) *UpdateAnnotationParams
- func (o *UpdateAnnotationParams) WithBody(body *models.UpdateAnnotationsCmd) *UpdateAnnotationParams
- func (o *UpdateAnnotationParams) WithContext(ctx context.Context) *UpdateAnnotationParams
- func (o *UpdateAnnotationParams) WithDefaults() *UpdateAnnotationParams
- func (o *UpdateAnnotationParams) WithHTTPClient(client *http.Client) *UpdateAnnotationParams
- func (o *UpdateAnnotationParams) WithTimeout(timeout time.Duration) *UpdateAnnotationParams
- func (o *UpdateAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateAnnotationReader
- type UpdateAnnotationUnauthorized
- func (o *UpdateAnnotationUnauthorized) Code() int
- func (o *UpdateAnnotationUnauthorized) Error() string
- func (o *UpdateAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *UpdateAnnotationUnauthorized) IsClientError() bool
- func (o *UpdateAnnotationUnauthorized) IsCode(code int) bool
- func (o *UpdateAnnotationUnauthorized) IsRedirect() bool
- func (o *UpdateAnnotationUnauthorized) IsServerError() bool
- func (o *UpdateAnnotationUnauthorized) IsSuccess() bool
- func (o *UpdateAnnotationUnauthorized) String() string
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 ¶
func (o *DeleteAnnotationByIDForbidden) Code() int
Code gets the status code for the delete annotation by Id forbidden response
func (*DeleteAnnotationByIDForbidden) Error ¶
func (o *DeleteAnnotationByIDForbidden) Error() string
func (*DeleteAnnotationByIDForbidden) GetPayload ¶
func (o *DeleteAnnotationByIDForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteAnnotationByIDForbidden) String() 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 ¶
func (o *DeleteAnnotationByIDInternalServerError) Code() int
Code gets the status code for the delete annotation by Id internal server error response
func (*DeleteAnnotationByIDInternalServerError) Error ¶
func (o *DeleteAnnotationByIDInternalServerError) Error() string
func (*DeleteAnnotationByIDInternalServerError) GetPayload ¶
func (o *DeleteAnnotationByIDInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteAnnotationByIDInternalServerError) IsCode(code int) bool
IsCode returns true when this delete annotation by Id internal server error response a status code equal to that given
func (*DeleteAnnotationByIDInternalServerError) IsRedirect ¶
func (o *DeleteAnnotationByIDInternalServerError) IsRedirect() bool
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 ¶
func (o *DeleteAnnotationByIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete annotation by Id internal server error response has a 2xx status code
func (*DeleteAnnotationByIDInternalServerError) String ¶
func (o *DeleteAnnotationByIDInternalServerError) String() 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 (o *DeleteAnnotationByIDOK) GetPayload() *models.SuccessResponseBody
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 ¶
func (o *DeleteAnnotationByIDParams) WithContext(ctx context.Context) *DeleteAnnotationByIDParams
WithContext adds the context to the delete annotation by ID params
func (*DeleteAnnotationByIDParams) WithDefaults ¶
func (o *DeleteAnnotationByIDParams) WithDefaults() *DeleteAnnotationByIDParams
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 ¶
func (o *DeleteAnnotationByIDParams) WithHTTPClient(client *http.Client) *DeleteAnnotationByIDParams
WithHTTPClient adds the HTTPClient to the delete annotation by ID params
func (*DeleteAnnotationByIDParams) WithTimeout ¶
func (o *DeleteAnnotationByIDParams) WithTimeout(timeout time.Duration) *DeleteAnnotationByIDParams
WithTimeout adds the timeout to the delete annotation by ID params
func (*DeleteAnnotationByIDParams) WriteToRequest ¶
func (o *DeleteAnnotationByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *DeleteAnnotationByIDUnauthorized) Code() int
Code gets the status code for the delete annotation by Id unauthorized response
func (*DeleteAnnotationByIDUnauthorized) Error ¶
func (o *DeleteAnnotationByIDUnauthorized) Error() string
func (*DeleteAnnotationByIDUnauthorized) GetPayload ¶
func (o *DeleteAnnotationByIDUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *DeleteAnnotationByIDUnauthorized) String() 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 ¶
func (o *GetAnnotationByIDInternalServerError) Code() int
Code gets the status code for the get annotation by Id internal server error response
func (*GetAnnotationByIDInternalServerError) Error ¶
func (o *GetAnnotationByIDInternalServerError) Error() string
func (*GetAnnotationByIDInternalServerError) GetPayload ¶
func (o *GetAnnotationByIDInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetAnnotationByIDInternalServerError) IsCode(code int) bool
IsCode returns true when this get annotation by Id internal server error response a status code equal to that given
func (*GetAnnotationByIDInternalServerError) IsRedirect ¶
func (o *GetAnnotationByIDInternalServerError) IsRedirect() bool
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 ¶
func (o *GetAnnotationByIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this get annotation by Id internal server error response has a 2xx status code
func (*GetAnnotationByIDInternalServerError) String ¶
func (o *GetAnnotationByIDInternalServerError) String() 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 ¶
func (o *GetAnnotationByIDParams) WithContext(ctx context.Context) *GetAnnotationByIDParams
WithContext adds the context to the get annotation by ID params
func (*GetAnnotationByIDParams) WithDefaults ¶
func (o *GetAnnotationByIDParams) WithDefaults() *GetAnnotationByIDParams
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 ¶
func (o *GetAnnotationByIDParams) WithTimeout(timeout time.Duration) *GetAnnotationByIDParams
WithTimeout adds the timeout to the get annotation by ID params
func (*GetAnnotationByIDParams) WriteToRequest ¶
func (o *GetAnnotationByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *GetAnnotationByIDUnauthorized) Code() int
Code gets the status code for the get annotation by Id unauthorized response
func (*GetAnnotationByIDUnauthorized) Error ¶
func (o *GetAnnotationByIDUnauthorized) Error() string
func (*GetAnnotationByIDUnauthorized) GetPayload ¶
func (o *GetAnnotationByIDUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetAnnotationByIDUnauthorized) String() 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 ¶
func (o *GetAnnotationTagsInternalServerError) Code() int
Code gets the status code for the get annotation tags internal server error response
func (*GetAnnotationTagsInternalServerError) Error ¶
func (o *GetAnnotationTagsInternalServerError) Error() string
func (*GetAnnotationTagsInternalServerError) GetPayload ¶
func (o *GetAnnotationTagsInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetAnnotationTagsInternalServerError) IsCode(code int) bool
IsCode returns true when this get annotation tags internal server error response a status code equal to that given
func (*GetAnnotationTagsInternalServerError) IsRedirect ¶
func (o *GetAnnotationTagsInternalServerError) IsRedirect() bool
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 ¶
func (o *GetAnnotationTagsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get annotation tags internal server error response has a 2xx status code
func (*GetAnnotationTagsInternalServerError) String ¶
func (o *GetAnnotationTagsInternalServerError) String() 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 (o *GetAnnotationTagsOK) GetPayload() *models.GetAnnotationTagsResponse
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 ¶
func (o *GetAnnotationTagsParams) WithContext(ctx context.Context) *GetAnnotationTagsParams
WithContext adds the context to the get annotation tags params
func (*GetAnnotationTagsParams) WithDefaults ¶
func (o *GetAnnotationTagsParams) WithDefaults() *GetAnnotationTagsParams
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 ¶
func (o *GetAnnotationTagsParams) WithLimit(limit *string) *GetAnnotationTagsParams
WithLimit adds the limit to the get annotation tags params
func (*GetAnnotationTagsParams) WithTag ¶
func (o *GetAnnotationTagsParams) WithTag(tag *string) *GetAnnotationTagsParams
WithTag adds the tag to the get annotation tags params
func (*GetAnnotationTagsParams) WithTimeout ¶
func (o *GetAnnotationTagsParams) WithTimeout(timeout time.Duration) *GetAnnotationTagsParams
WithTimeout adds the timeout to the get annotation tags params
func (*GetAnnotationTagsParams) WriteToRequest ¶
func (o *GetAnnotationTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *GetAnnotationTagsUnauthorized) Code() int
Code gets the status code for the get annotation tags unauthorized response
func (*GetAnnotationTagsUnauthorized) Error ¶
func (o *GetAnnotationTagsUnauthorized) Error() string
func (*GetAnnotationTagsUnauthorized) GetPayload ¶
func (o *GetAnnotationTagsUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetAnnotationTagsUnauthorized) String() 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 ¶
func (o *GetAnnotationsInternalServerError) Code() int
Code gets the status code for the get annotations internal server error response
func (*GetAnnotationsInternalServerError) Error ¶
func (o *GetAnnotationsInternalServerError) Error() string
func (*GetAnnotationsInternalServerError) GetPayload ¶
func (o *GetAnnotationsInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetAnnotationsInternalServerError) String() 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 ¶
func (o *GetAnnotationsParams) WithContext(ctx context.Context) *GetAnnotationsParams
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 ¶
func (o *GetAnnotationsParams) WithTo(to *int64) *GetAnnotationsParams
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 {
}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 (o *GetAnnotationsUnauthorized) Error() string
func (*GetAnnotationsUnauthorized) GetPayload ¶
func (o *GetAnnotationsUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *MassDeleteAnnotationsInternalServerError) Code() int
Code gets the status code for the mass delete annotations internal server error response
func (*MassDeleteAnnotationsInternalServerError) Error ¶
func (o *MassDeleteAnnotationsInternalServerError) Error() string
func (*MassDeleteAnnotationsInternalServerError) GetPayload ¶
func (o *MassDeleteAnnotationsInternalServerError) GetPayload() *models.ErrorResponseBody
func (*MassDeleteAnnotationsInternalServerError) IsClientError ¶
func (o *MassDeleteAnnotationsInternalServerError) IsClientError() bool
IsClientError returns true when this mass delete annotations internal server error response has a 4xx status code
func (*MassDeleteAnnotationsInternalServerError) IsCode ¶
func (o *MassDeleteAnnotationsInternalServerError) IsCode(code int) bool
IsCode returns true when this mass delete annotations internal server error response a status code equal to that given
func (*MassDeleteAnnotationsInternalServerError) IsRedirect ¶
func (o *MassDeleteAnnotationsInternalServerError) IsRedirect() bool
IsRedirect returns true when this mass delete annotations internal server error response has a 3xx status code
func (*MassDeleteAnnotationsInternalServerError) IsServerError ¶
func (o *MassDeleteAnnotationsInternalServerError) IsServerError() bool
IsServerError returns true when this mass delete annotations internal server error response has a 5xx status code
func (*MassDeleteAnnotationsInternalServerError) IsSuccess ¶
func (o *MassDeleteAnnotationsInternalServerError) IsSuccess() bool
IsSuccess returns true when this mass delete annotations internal server error response has a 2xx status code
func (*MassDeleteAnnotationsInternalServerError) String ¶
func (o *MassDeleteAnnotationsInternalServerError) String() 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 (o *MassDeleteAnnotationsOK) GetPayload() *models.SuccessResponseBody
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 ¶
func (o *MassDeleteAnnotationsParams) SetBody(body *models.MassDeleteAnnotationsCmd)
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 ¶
func (o *MassDeleteAnnotationsParams) WithBody(body *models.MassDeleteAnnotationsCmd) *MassDeleteAnnotationsParams
WithBody adds the body to the mass delete annotations params
func (*MassDeleteAnnotationsParams) WithContext ¶
func (o *MassDeleteAnnotationsParams) WithContext(ctx context.Context) *MassDeleteAnnotationsParams
WithContext adds the context to the mass delete annotations params
func (*MassDeleteAnnotationsParams) WithDefaults ¶
func (o *MassDeleteAnnotationsParams) WithDefaults() *MassDeleteAnnotationsParams
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 ¶
func (o *MassDeleteAnnotationsParams) WithHTTPClient(client *http.Client) *MassDeleteAnnotationsParams
WithHTTPClient adds the HTTPClient to the mass delete annotations params
func (*MassDeleteAnnotationsParams) WithTimeout ¶
func (o *MassDeleteAnnotationsParams) WithTimeout(timeout time.Duration) *MassDeleteAnnotationsParams
WithTimeout adds the timeout to the mass delete annotations params
func (*MassDeleteAnnotationsParams) WriteToRequest ¶
func (o *MassDeleteAnnotationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *MassDeleteAnnotationsUnauthorized) Code() int
Code gets the status code for the mass delete annotations unauthorized response
func (*MassDeleteAnnotationsUnauthorized) Error ¶
func (o *MassDeleteAnnotationsUnauthorized) Error() string
func (*MassDeleteAnnotationsUnauthorized) GetPayload ¶
func (o *MassDeleteAnnotationsUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *MassDeleteAnnotationsUnauthorized) String() 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 (o *PatchAnnotationForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PatchAnnotationInternalServerError) Code() int
Code gets the status code for the patch annotation internal server error response
func (*PatchAnnotationInternalServerError) Error ¶
func (o *PatchAnnotationInternalServerError) Error() string
func (*PatchAnnotationInternalServerError) GetPayload ¶
func (o *PatchAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PatchAnnotationInternalServerError) IsCode(code int) bool
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 ¶
func (o *PatchAnnotationInternalServerError) IsSuccess() bool
IsSuccess returns true when this patch annotation internal server error response has a 2xx status code
func (*PatchAnnotationInternalServerError) String ¶
func (o *PatchAnnotationInternalServerError) String() 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 (o *PatchAnnotationNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PatchAnnotationParams) SetBody(body *models.PatchAnnotationsCmd)
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 ¶
func (o *PatchAnnotationParams) WithBody(body *models.PatchAnnotationsCmd) *PatchAnnotationParams
WithBody adds the body to the patch annotation params
func (*PatchAnnotationParams) WithContext ¶
func (o *PatchAnnotationParams) WithContext(ctx context.Context) *PatchAnnotationParams
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 {
}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 (o *PatchAnnotationUnauthorized) Error() string
func (*PatchAnnotationUnauthorized) GetPayload ¶
func (o *PatchAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
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 (o *PostAnnotationBadRequest) GetPayload() *models.ErrorResponseBody
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 (o *PostAnnotationForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PostAnnotationInternalServerError) Code() int
Code gets the status code for the post annotation internal server error response
func (*PostAnnotationInternalServerError) Error ¶
func (o *PostAnnotationInternalServerError) Error() string
func (*PostAnnotationInternalServerError) GetPayload ¶
func (o *PostAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PostAnnotationInternalServerError) String() 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 ¶
func (o *PostAnnotationParams) SetBody(body *models.PostAnnotationsCmd)
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 ¶
func (o *PostAnnotationParams) WithBody(body *models.PostAnnotationsCmd) *PostAnnotationParams
WithBody adds the body to the post annotation params
func (*PostAnnotationParams) WithContext ¶
func (o *PostAnnotationParams) WithContext(ctx context.Context) *PostAnnotationParams
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 {
}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 (o *PostAnnotationUnauthorized) Error() string
func (*PostAnnotationUnauthorized) GetPayload ¶
func (o *PostAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PostGraphiteAnnotationBadRequest) Code() int
Code gets the status code for the post graphite annotation bad request response
func (*PostGraphiteAnnotationBadRequest) Error ¶
func (o *PostGraphiteAnnotationBadRequest) Error() string
func (*PostGraphiteAnnotationBadRequest) GetPayload ¶
func (o *PostGraphiteAnnotationBadRequest) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PostGraphiteAnnotationBadRequest) String() 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 ¶
func (o *PostGraphiteAnnotationForbidden) Code() int
Code gets the status code for the post graphite annotation forbidden response
func (*PostGraphiteAnnotationForbidden) Error ¶
func (o *PostGraphiteAnnotationForbidden) Error() string
func (*PostGraphiteAnnotationForbidden) GetPayload ¶
func (o *PostGraphiteAnnotationForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PostGraphiteAnnotationForbidden) String() 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 ¶
func (o *PostGraphiteAnnotationInternalServerError) Code() int
Code gets the status code for the post graphite annotation internal server error response
func (*PostGraphiteAnnotationInternalServerError) Error ¶
func (o *PostGraphiteAnnotationInternalServerError) Error() string
func (*PostGraphiteAnnotationInternalServerError) GetPayload ¶
func (o *PostGraphiteAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
func (*PostGraphiteAnnotationInternalServerError) IsClientError ¶
func (o *PostGraphiteAnnotationInternalServerError) IsClientError() bool
IsClientError returns true when this post graphite annotation internal server error response has a 4xx status code
func (*PostGraphiteAnnotationInternalServerError) IsCode ¶
func (o *PostGraphiteAnnotationInternalServerError) IsCode(code int) bool
IsCode returns true when this post graphite annotation internal server error response a status code equal to that given
func (*PostGraphiteAnnotationInternalServerError) IsRedirect ¶
func (o *PostGraphiteAnnotationInternalServerError) IsRedirect() bool
IsRedirect returns true when this post graphite annotation internal server error response has a 3xx status code
func (*PostGraphiteAnnotationInternalServerError) IsServerError ¶
func (o *PostGraphiteAnnotationInternalServerError) IsServerError() bool
IsServerError returns true when this post graphite annotation internal server error response has a 5xx status code
func (*PostGraphiteAnnotationInternalServerError) IsSuccess ¶
func (o *PostGraphiteAnnotationInternalServerError) IsSuccess() bool
IsSuccess returns true when this post graphite annotation internal server error response has a 2xx status code
func (*PostGraphiteAnnotationInternalServerError) String ¶
func (o *PostGraphiteAnnotationInternalServerError) String() 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 (o *PostGraphiteAnnotationOK) GetPayload() *models.PostGraphiteAnnotationOKBody
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 ¶
func (o *PostGraphiteAnnotationParams) SetBody(body *models.PostGraphiteAnnotationsCmd)
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 ¶
func (o *PostGraphiteAnnotationParams) WithBody(body *models.PostGraphiteAnnotationsCmd) *PostGraphiteAnnotationParams
WithBody adds the body to the post graphite annotation params
func (*PostGraphiteAnnotationParams) WithContext ¶
func (o *PostGraphiteAnnotationParams) WithContext(ctx context.Context) *PostGraphiteAnnotationParams
WithContext adds the context to the post graphite annotation params
func (*PostGraphiteAnnotationParams) WithDefaults ¶
func (o *PostGraphiteAnnotationParams) WithDefaults() *PostGraphiteAnnotationParams
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 ¶
func (o *PostGraphiteAnnotationParams) WithHTTPClient(client *http.Client) *PostGraphiteAnnotationParams
WithHTTPClient adds the HTTPClient to the post graphite annotation params
func (*PostGraphiteAnnotationParams) WithTimeout ¶
func (o *PostGraphiteAnnotationParams) WithTimeout(timeout time.Duration) *PostGraphiteAnnotationParams
WithTimeout adds the timeout to the post graphite annotation params
func (*PostGraphiteAnnotationParams) WriteToRequest ¶
func (o *PostGraphiteAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *PostGraphiteAnnotationUnauthorized) Code() int
Code gets the status code for the post graphite annotation unauthorized response
func (*PostGraphiteAnnotationUnauthorized) Error ¶
func (o *PostGraphiteAnnotationUnauthorized) Error() string
func (*PostGraphiteAnnotationUnauthorized) GetPayload ¶
func (o *PostGraphiteAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *PostGraphiteAnnotationUnauthorized) IsCode(code int) bool
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 ¶
func (o *PostGraphiteAnnotationUnauthorized) IsSuccess() bool
IsSuccess returns true when this post graphite annotation unauthorized response has a 2xx status code
func (*PostGraphiteAnnotationUnauthorized) String ¶
func (o *PostGraphiteAnnotationUnauthorized) String() 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 (o *UpdateAnnotationBadRequest) Error() string
func (*UpdateAnnotationBadRequest) GetPayload ¶
func (o *UpdateAnnotationBadRequest) GetPayload() *models.ErrorResponseBody
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 (o *UpdateAnnotationForbidden) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateAnnotationInternalServerError) Code() int
Code gets the status code for the update annotation internal server error response
func (*UpdateAnnotationInternalServerError) Error ¶
func (o *UpdateAnnotationInternalServerError) Error() string
func (*UpdateAnnotationInternalServerError) GetPayload ¶
func (o *UpdateAnnotationInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateAnnotationInternalServerError) IsCode(code int) bool
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 ¶
func (o *UpdateAnnotationInternalServerError) IsSuccess() bool
IsSuccess returns true when this update annotation internal server error response has a 2xx status code
func (*UpdateAnnotationInternalServerError) String ¶
func (o *UpdateAnnotationInternalServerError) String() 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 (o *UpdateAnnotationOK) GetPayload() *models.SuccessResponseBody
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 ¶
func (o *UpdateAnnotationParams) SetBody(body *models.UpdateAnnotationsCmd)
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 ¶
func (o *UpdateAnnotationParams) WithBody(body *models.UpdateAnnotationsCmd) *UpdateAnnotationParams
WithBody adds the body to the update annotation params
func (*UpdateAnnotationParams) WithContext ¶
func (o *UpdateAnnotationParams) WithContext(ctx context.Context) *UpdateAnnotationParams
WithContext adds the context to the update annotation params
func (*UpdateAnnotationParams) WithDefaults ¶
func (o *UpdateAnnotationParams) WithDefaults() *UpdateAnnotationParams
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 ¶
func (o *UpdateAnnotationParams) WithTimeout(timeout time.Duration) *UpdateAnnotationParams
WithTimeout adds the timeout to the update annotation params
func (*UpdateAnnotationParams) WriteToRequest ¶
func (o *UpdateAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *UpdateAnnotationUnauthorized) Code() int
Code gets the status code for the update annotation unauthorized response
func (*UpdateAnnotationUnauthorized) Error ¶
func (o *UpdateAnnotationUnauthorized) Error() string
func (*UpdateAnnotationUnauthorized) GetPayload ¶
func (o *UpdateAnnotationUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateAnnotationUnauthorized) String() string
Source Files ¶
- annotations_client.go
- delete_annotation_by_id_parameters.go
- delete_annotation_by_id_responses.go
- get_annotation_by_id_parameters.go
- get_annotation_by_id_responses.go
- get_annotation_tags_parameters.go
- get_annotation_tags_responses.go
- get_annotations_parameters.go
- get_annotations_responses.go
- mass_delete_annotations_parameters.go
- mass_delete_annotations_responses.go
- patch_annotation_parameters.go
- patch_annotation_responses.go
- post_annotation_parameters.go
- post_annotation_responses.go
- post_graphite_annotation_parameters.go
- post_graphite_annotation_responses.go
- update_annotation_parameters.go
- update_annotation_responses.go