Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateFolder(params *CreateFolderParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateFolderOK, error)
- func (a *Client) DeleteFolder(params *DeleteFolderParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteFolderOK, error)
- func (a *Client) GetFolderByID(params *GetFolderByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetFolderByIDOK, error)
- func (a *Client) GetFolderByUID(params *GetFolderByUIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetFolderByUIDOK, error)
- func (a *Client) GetFolderDescendantCounts(params *GetFolderDescendantCountsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetFolderDescendantCountsOK, error)
- func (a *Client) GetFolders(params *GetFoldersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetFoldersOK, error)
- func (a *Client) MoveFolder(params *MoveFolderParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MoveFolderOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateFolder(params *UpdateFolderParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateFolderOK, error)
- type ClientOption
- type ClientService
- type CreateFolderBadRequest
- type CreateFolderConflict
- type CreateFolderForbidden
- type CreateFolderInternalServerError
- type CreateFolderOK
- type CreateFolderParams
- func (o *CreateFolderParams) SetBody(body *models.CreateFolderCommand)
- func (o *CreateFolderParams) SetContext(ctx context.Context)
- func (o *CreateFolderParams) SetDefaults()
- func (o *CreateFolderParams) SetHTTPClient(client *http.Client)
- func (o *CreateFolderParams) SetTimeout(timeout time.Duration)
- func (o *CreateFolderParams) WithBody(body *models.CreateFolderCommand) *CreateFolderParams
- func (o *CreateFolderParams) WithContext(ctx context.Context) *CreateFolderParams
- func (o *CreateFolderParams) WithDefaults() *CreateFolderParams
- func (o *CreateFolderParams) WithHTTPClient(client *http.Client) *CreateFolderParams
- func (o *CreateFolderParams) WithTimeout(timeout time.Duration) *CreateFolderParams
- func (o *CreateFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateFolderReader
- type CreateFolderUnauthorized
- type DeleteFolderBadRequest
- type DeleteFolderForbidden
- type DeleteFolderInternalServerError
- type DeleteFolderNotFound
- type DeleteFolderOK
- type DeleteFolderParams
- func (o *DeleteFolderParams) SetContext(ctx context.Context)
- func (o *DeleteFolderParams) SetDefaults()
- func (o *DeleteFolderParams) SetFolderUID(folderUID string)
- func (o *DeleteFolderParams) SetForceDeleteRules(forceDeleteRules *bool)
- func (o *DeleteFolderParams) SetHTTPClient(client *http.Client)
- func (o *DeleteFolderParams) SetTimeout(timeout time.Duration)
- func (o *DeleteFolderParams) WithContext(ctx context.Context) *DeleteFolderParams
- func (o *DeleteFolderParams) WithDefaults() *DeleteFolderParams
- func (o *DeleteFolderParams) WithFolderUID(folderUID string) *DeleteFolderParams
- func (o *DeleteFolderParams) WithForceDeleteRules(forceDeleteRules *bool) *DeleteFolderParams
- func (o *DeleteFolderParams) WithHTTPClient(client *http.Client) *DeleteFolderParams
- func (o *DeleteFolderParams) WithTimeout(timeout time.Duration) *DeleteFolderParams
- func (o *DeleteFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteFolderReader
- type DeleteFolderUnauthorized
- type GetFolderByIDForbidden
- type GetFolderByIDInternalServerError
- type GetFolderByIDNotFound
- type GetFolderByIDOK
- type GetFolderByIDParams
- func (o *GetFolderByIDParams) SetContext(ctx context.Context)
- func (o *GetFolderByIDParams) SetDefaults()
- func (o *GetFolderByIDParams) SetFolderID(folderID int64)
- func (o *GetFolderByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetFolderByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetFolderByIDParams) WithContext(ctx context.Context) *GetFolderByIDParams
- func (o *GetFolderByIDParams) WithDefaults() *GetFolderByIDParams
- func (o *GetFolderByIDParams) WithFolderID(folderID int64) *GetFolderByIDParams
- func (o *GetFolderByIDParams) WithHTTPClient(client *http.Client) *GetFolderByIDParams
- func (o *GetFolderByIDParams) WithTimeout(timeout time.Duration) *GetFolderByIDParams
- func (o *GetFolderByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFolderByIDReader
- type GetFolderByIDUnauthorized
- type GetFolderByUIDForbidden
- type GetFolderByUIDInternalServerError
- type GetFolderByUIDNotFound
- type GetFolderByUIDOK
- type GetFolderByUIDParams
- func NewGetFolderByUIDParams() *GetFolderByUIDParams
- func NewGetFolderByUIDParamsWithContext(ctx context.Context) *GetFolderByUIDParams
- func NewGetFolderByUIDParamsWithHTTPClient(client *http.Client) *GetFolderByUIDParams
- func NewGetFolderByUIDParamsWithTimeout(timeout time.Duration) *GetFolderByUIDParams
- func (o *GetFolderByUIDParams) SetContext(ctx context.Context)
- func (o *GetFolderByUIDParams) SetDefaults()
- func (o *GetFolderByUIDParams) SetFolderUID(folderUID string)
- func (o *GetFolderByUIDParams) SetHTTPClient(client *http.Client)
- func (o *GetFolderByUIDParams) SetTimeout(timeout time.Duration)
- func (o *GetFolderByUIDParams) WithContext(ctx context.Context) *GetFolderByUIDParams
- func (o *GetFolderByUIDParams) WithDefaults() *GetFolderByUIDParams
- func (o *GetFolderByUIDParams) WithFolderUID(folderUID string) *GetFolderByUIDParams
- func (o *GetFolderByUIDParams) WithHTTPClient(client *http.Client) *GetFolderByUIDParams
- func (o *GetFolderByUIDParams) WithTimeout(timeout time.Duration) *GetFolderByUIDParams
- func (o *GetFolderByUIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFolderByUIDReader
- type GetFolderByUIDUnauthorized
- type GetFolderDescendantCountsForbidden
- type GetFolderDescendantCountsInternalServerError
- type GetFolderDescendantCountsNotFound
- type GetFolderDescendantCountsOK
- type GetFolderDescendantCountsParams
- func NewGetFolderDescendantCountsParams() *GetFolderDescendantCountsParams
- func NewGetFolderDescendantCountsParamsWithContext(ctx context.Context) *GetFolderDescendantCountsParams
- func NewGetFolderDescendantCountsParamsWithHTTPClient(client *http.Client) *GetFolderDescendantCountsParams
- func NewGetFolderDescendantCountsParamsWithTimeout(timeout time.Duration) *GetFolderDescendantCountsParams
- func (o *GetFolderDescendantCountsParams) SetContext(ctx context.Context)
- func (o *GetFolderDescendantCountsParams) SetDefaults()
- func (o *GetFolderDescendantCountsParams) SetFolderUID(folderUID string)
- func (o *GetFolderDescendantCountsParams) SetHTTPClient(client *http.Client)
- func (o *GetFolderDescendantCountsParams) SetTimeout(timeout time.Duration)
- func (o *GetFolderDescendantCountsParams) WithContext(ctx context.Context) *GetFolderDescendantCountsParams
- func (o *GetFolderDescendantCountsParams) WithDefaults() *GetFolderDescendantCountsParams
- func (o *GetFolderDescendantCountsParams) WithFolderUID(folderUID string) *GetFolderDescendantCountsParams
- func (o *GetFolderDescendantCountsParams) WithHTTPClient(client *http.Client) *GetFolderDescendantCountsParams
- func (o *GetFolderDescendantCountsParams) WithTimeout(timeout time.Duration) *GetFolderDescendantCountsParams
- func (o *GetFolderDescendantCountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFolderDescendantCountsReader
- type GetFolderDescendantCountsUnauthorized
- type GetFoldersForbidden
- type GetFoldersInternalServerError
- type GetFoldersOK
- type GetFoldersParams
- func (o *GetFoldersParams) SetContext(ctx context.Context)
- func (o *GetFoldersParams) SetDefaults()
- func (o *GetFoldersParams) SetHTTPClient(client *http.Client)
- func (o *GetFoldersParams) SetLimit(limit *int64)
- func (o *GetFoldersParams) SetPage(page *int64)
- func (o *GetFoldersParams) SetParentUID(parentUID *string)
- func (o *GetFoldersParams) SetTimeout(timeout time.Duration)
- func (o *GetFoldersParams) WithContext(ctx context.Context) *GetFoldersParams
- func (o *GetFoldersParams) WithDefaults() *GetFoldersParams
- func (o *GetFoldersParams) WithHTTPClient(client *http.Client) *GetFoldersParams
- func (o *GetFoldersParams) WithLimit(limit *int64) *GetFoldersParams
- func (o *GetFoldersParams) WithPage(page *int64) *GetFoldersParams
- func (o *GetFoldersParams) WithParentUID(parentUID *string) *GetFoldersParams
- func (o *GetFoldersParams) WithTimeout(timeout time.Duration) *GetFoldersParams
- func (o *GetFoldersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFoldersReader
- type GetFoldersUnauthorized
- type MoveFolderForbidden
- type MoveFolderInternalServerError
- type MoveFolderNotFound
- type MoveFolderOK
- type MoveFolderParams
- func (o *MoveFolderParams) SetBody(body *models.MoveFolderCommand)
- func (o *MoveFolderParams) SetContext(ctx context.Context)
- func (o *MoveFolderParams) SetDefaults()
- func (o *MoveFolderParams) SetFolderUID(folderUID string)
- func (o *MoveFolderParams) SetHTTPClient(client *http.Client)
- func (o *MoveFolderParams) SetTimeout(timeout time.Duration)
- func (o *MoveFolderParams) WithBody(body *models.MoveFolderCommand) *MoveFolderParams
- func (o *MoveFolderParams) WithContext(ctx context.Context) *MoveFolderParams
- func (o *MoveFolderParams) WithDefaults() *MoveFolderParams
- func (o *MoveFolderParams) WithFolderUID(folderUID string) *MoveFolderParams
- func (o *MoveFolderParams) WithHTTPClient(client *http.Client) *MoveFolderParams
- func (o *MoveFolderParams) WithTimeout(timeout time.Duration) *MoveFolderParams
- func (o *MoveFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MoveFolderReader
- type MoveFolderUnauthorized
- type UpdateFolderBadRequest
- type UpdateFolderConflict
- type UpdateFolderForbidden
- type UpdateFolderInternalServerError
- type UpdateFolderNotFound
- type UpdateFolderOK
- type UpdateFolderParams
- func (o *UpdateFolderParams) SetBody(body *models.UpdateFolderCommand)
- func (o *UpdateFolderParams) SetContext(ctx context.Context)
- func (o *UpdateFolderParams) SetDefaults()
- func (o *UpdateFolderParams) SetFolderUID(folderUID string)
- func (o *UpdateFolderParams) SetHTTPClient(client *http.Client)
- func (o *UpdateFolderParams) SetTimeout(timeout time.Duration)
- func (o *UpdateFolderParams) WithBody(body *models.UpdateFolderCommand) *UpdateFolderParams
- func (o *UpdateFolderParams) WithContext(ctx context.Context) *UpdateFolderParams
- func (o *UpdateFolderParams) WithDefaults() *UpdateFolderParams
- func (o *UpdateFolderParams) WithFolderUID(folderUID string) *UpdateFolderParams
- func (o *UpdateFolderParams) WithHTTPClient(client *http.Client) *UpdateFolderParams
- func (o *UpdateFolderParams) WithTimeout(timeout time.Duration) *UpdateFolderParams
- func (o *UpdateFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateFolderReader
- type UpdateFolderUnauthorized
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 folders API
func (*Client) CreateFolder ¶
func (a *Client) CreateFolder(params *CreateFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateFolderOK, error)
CreateFolder creates folder
If nested folders are enabled then it additionally expects the parent folder UID.
func (*Client) DeleteFolder ¶
func (a *Client) DeleteFolder(params *DeleteFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteFolderOK, error)
DeleteFolder deletes folder Deletes an existing folder identified by UID along with all dashboards (and their alerts) stored in the folder. This operation cannot be reverted.
If nested folders are enabled then it also deletes all the subfolders.
func (*Client) GetFolderByID ¶
func (a *Client) GetFolderByID(params *GetFolderByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderByIDOK, error)
GetFolderByID gets folder by id Returns the folder identified by id. This is deprecated.
Please refer to [updated API](#/folders/getFolderByUID) instead
func (*Client) GetFolderByUID ¶
func (a *Client) GetFolderByUID(params *GetFolderByUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderByUIDOK, error)
GetFolderByUID gets folder by uid
func (*Client) GetFolderDescendantCounts ¶
func (a *Client) GetFolderDescendantCounts(params *GetFolderDescendantCountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderDescendantCountsOK, error)
GetFolderDescendantCounts gets the count of each descendant of a folder by kind the folder is identified by UID
func (*Client) GetFolders ¶
func (a *Client) GetFolders(params *GetFoldersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFoldersOK, error)
GetFolders gets all folders Returns all folders that the authenticated user has permission to view.
If nested folders are enabled, it expects an additional query parameter with the parent folder UID and returns the immediate subfolders that the authenticated user has permission to view. If the parameter is not supplied then it returns immediate subfolders under the root that the authenticated user has permission to view.
func (*Client) MoveFolder ¶
func (a *Client) MoveFolder(params *MoveFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MoveFolderOK, error)
MoveFolder moves folder
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateFolder ¶
func (a *Client) UpdateFolder(params *UpdateFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateFolderOK, error)
UpdateFolder updates folder
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateFolder(params *CreateFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateFolderOK, error) DeleteFolder(params *DeleteFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteFolderOK, error) GetFolderByID(params *GetFolderByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderByIDOK, error) GetFolderByUID(params *GetFolderByUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderByUIDOK, error) GetFolderDescendantCounts(params *GetFolderDescendantCountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderDescendantCountsOK, error) GetFolders(params *GetFoldersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFoldersOK, error) MoveFolder(params *MoveFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MoveFolderOK, error) UpdateFolder(params *UpdateFolderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateFolderOK, 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 folders API client.
type CreateFolderBadRequest ¶
type CreateFolderBadRequest struct {
Payload *models.ErrorResponseBody
}
CreateFolderBadRequest 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 NewCreateFolderBadRequest ¶
func NewCreateFolderBadRequest() *CreateFolderBadRequest
NewCreateFolderBadRequest creates a CreateFolderBadRequest with default headers values
func (*CreateFolderBadRequest) Error ¶
func (o *CreateFolderBadRequest) Error() string
func (*CreateFolderBadRequest) GetPayload ¶
func (o *CreateFolderBadRequest) GetPayload() *models.ErrorResponseBody
type CreateFolderConflict ¶
type CreateFolderConflict struct {
Payload *models.ErrorResponseBody
}
CreateFolderConflict describes a response with status code 409, with default header values.
ConflictError
func NewCreateFolderConflict ¶
func NewCreateFolderConflict() *CreateFolderConflict
NewCreateFolderConflict creates a CreateFolderConflict with default headers values
func (*CreateFolderConflict) Error ¶
func (o *CreateFolderConflict) Error() string
func (*CreateFolderConflict) GetPayload ¶
func (o *CreateFolderConflict) GetPayload() *models.ErrorResponseBody
type CreateFolderForbidden ¶
type CreateFolderForbidden struct {
Payload *models.ErrorResponseBody
}
CreateFolderForbidden 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 NewCreateFolderForbidden ¶
func NewCreateFolderForbidden() *CreateFolderForbidden
NewCreateFolderForbidden creates a CreateFolderForbidden with default headers values
func (*CreateFolderForbidden) Error ¶
func (o *CreateFolderForbidden) Error() string
func (*CreateFolderForbidden) GetPayload ¶
func (o *CreateFolderForbidden) GetPayload() *models.ErrorResponseBody
type CreateFolderInternalServerError ¶
type CreateFolderInternalServerError struct {
Payload *models.ErrorResponseBody
}
CreateFolderInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewCreateFolderInternalServerError ¶
func NewCreateFolderInternalServerError() *CreateFolderInternalServerError
NewCreateFolderInternalServerError creates a CreateFolderInternalServerError with default headers values
func (*CreateFolderInternalServerError) Error ¶
func (o *CreateFolderInternalServerError) Error() string
func (*CreateFolderInternalServerError) GetPayload ¶
func (o *CreateFolderInternalServerError) GetPayload() *models.ErrorResponseBody
type CreateFolderOK ¶
CreateFolderOK describes a response with status code 200, with default header values.
(empty)
func NewCreateFolderOK ¶
func NewCreateFolderOK() *CreateFolderOK
NewCreateFolderOK creates a CreateFolderOK with default headers values
func (*CreateFolderOK) Error ¶
func (o *CreateFolderOK) Error() string
func (*CreateFolderOK) GetPayload ¶
func (o *CreateFolderOK) GetPayload() *models.Folder
type CreateFolderParams ¶
type CreateFolderParams struct { // Body. Body *models.CreateFolderCommand Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateFolderParams contains all the parameters to send to the API endpoint
for the create folder operation. Typically these are written to a http.Request.
func NewCreateFolderParams ¶
func NewCreateFolderParams() *CreateFolderParams
NewCreateFolderParams creates a new CreateFolderParams 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 NewCreateFolderParamsWithContext ¶
func NewCreateFolderParamsWithContext(ctx context.Context) *CreateFolderParams
NewCreateFolderParamsWithContext creates a new CreateFolderParams object with the ability to set a context for a request.
func NewCreateFolderParamsWithHTTPClient ¶
func NewCreateFolderParamsWithHTTPClient(client *http.Client) *CreateFolderParams
NewCreateFolderParamsWithHTTPClient creates a new CreateFolderParams object with the ability to set a custom HTTPClient for a request.
func NewCreateFolderParamsWithTimeout ¶
func NewCreateFolderParamsWithTimeout(timeout time.Duration) *CreateFolderParams
NewCreateFolderParamsWithTimeout creates a new CreateFolderParams object with the ability to set a timeout on a request.
func (*CreateFolderParams) SetBody ¶
func (o *CreateFolderParams) SetBody(body *models.CreateFolderCommand)
SetBody adds the body to the create folder params
func (*CreateFolderParams) SetContext ¶
func (o *CreateFolderParams) SetContext(ctx context.Context)
SetContext adds the context to the create folder params
func (*CreateFolderParams) SetDefaults ¶
func (o *CreateFolderParams) SetDefaults()
SetDefaults hydrates default values in the create folder params (not the query body).
All values with no default are reset to their zero value.
func (*CreateFolderParams) SetHTTPClient ¶
func (o *CreateFolderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create folder params
func (*CreateFolderParams) SetTimeout ¶
func (o *CreateFolderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create folder params
func (*CreateFolderParams) WithBody ¶
func (o *CreateFolderParams) WithBody(body *models.CreateFolderCommand) *CreateFolderParams
WithBody adds the body to the create folder params
func (*CreateFolderParams) WithContext ¶
func (o *CreateFolderParams) WithContext(ctx context.Context) *CreateFolderParams
WithContext adds the context to the create folder params
func (*CreateFolderParams) WithDefaults ¶
func (o *CreateFolderParams) WithDefaults() *CreateFolderParams
WithDefaults hydrates default values in the create folder params (not the query body).
All values with no default are reset to their zero value.
func (*CreateFolderParams) WithHTTPClient ¶
func (o *CreateFolderParams) WithHTTPClient(client *http.Client) *CreateFolderParams
WithHTTPClient adds the HTTPClient to the create folder params
func (*CreateFolderParams) WithTimeout ¶
func (o *CreateFolderParams) WithTimeout(timeout time.Duration) *CreateFolderParams
WithTimeout adds the timeout to the create folder params
func (*CreateFolderParams) WriteToRequest ¶
func (o *CreateFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateFolderReader ¶
type CreateFolderReader struct {
// contains filtered or unexported fields
}
CreateFolderReader is a Reader for the CreateFolder structure.
func (*CreateFolderReader) ReadResponse ¶
func (o *CreateFolderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateFolderUnauthorized ¶
type CreateFolderUnauthorized struct {
}CreateFolderUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewCreateFolderUnauthorized ¶
func NewCreateFolderUnauthorized() *CreateFolderUnauthorized
NewCreateFolderUnauthorized creates a CreateFolderUnauthorized with default headers values
func (*CreateFolderUnauthorized) Error ¶
func (o *CreateFolderUnauthorized) Error() string
func (*CreateFolderUnauthorized) GetPayload ¶
func (o *CreateFolderUnauthorized) GetPayload() *models.ErrorResponseBody
type DeleteFolderBadRequest ¶
type DeleteFolderBadRequest struct {
Payload *models.ErrorResponseBody
}
DeleteFolderBadRequest 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 NewDeleteFolderBadRequest ¶
func NewDeleteFolderBadRequest() *DeleteFolderBadRequest
NewDeleteFolderBadRequest creates a DeleteFolderBadRequest with default headers values
func (*DeleteFolderBadRequest) Error ¶
func (o *DeleteFolderBadRequest) Error() string
func (*DeleteFolderBadRequest) GetPayload ¶
func (o *DeleteFolderBadRequest) GetPayload() *models.ErrorResponseBody
type DeleteFolderForbidden ¶
type DeleteFolderForbidden struct {
Payload *models.ErrorResponseBody
}
DeleteFolderForbidden 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 NewDeleteFolderForbidden ¶
func NewDeleteFolderForbidden() *DeleteFolderForbidden
NewDeleteFolderForbidden creates a DeleteFolderForbidden with default headers values
func (*DeleteFolderForbidden) Error ¶
func (o *DeleteFolderForbidden) Error() string
func (*DeleteFolderForbidden) GetPayload ¶
func (o *DeleteFolderForbidden) GetPayload() *models.ErrorResponseBody
type DeleteFolderInternalServerError ¶
type DeleteFolderInternalServerError struct {
Payload *models.ErrorResponseBody
}
DeleteFolderInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewDeleteFolderInternalServerError ¶
func NewDeleteFolderInternalServerError() *DeleteFolderInternalServerError
NewDeleteFolderInternalServerError creates a DeleteFolderInternalServerError with default headers values
func (*DeleteFolderInternalServerError) Error ¶
func (o *DeleteFolderInternalServerError) Error() string
func (*DeleteFolderInternalServerError) GetPayload ¶
func (o *DeleteFolderInternalServerError) GetPayload() *models.ErrorResponseBody
type DeleteFolderNotFound ¶
type DeleteFolderNotFound struct {
Payload *models.ErrorResponseBody
}
DeleteFolderNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewDeleteFolderNotFound ¶
func NewDeleteFolderNotFound() *DeleteFolderNotFound
NewDeleteFolderNotFound creates a DeleteFolderNotFound with default headers values
func (*DeleteFolderNotFound) Error ¶
func (o *DeleteFolderNotFound) Error() string
func (*DeleteFolderNotFound) GetPayload ¶
func (o *DeleteFolderNotFound) GetPayload() *models.ErrorResponseBody
type DeleteFolderOK ¶
type DeleteFolderOK struct {
Payload *models.DeleteFolderOKBody
}
DeleteFolderOK describes a response with status code 200, with default header values.
(empty)
func NewDeleteFolderOK ¶
func NewDeleteFolderOK() *DeleteFolderOK
NewDeleteFolderOK creates a DeleteFolderOK with default headers values
func (*DeleteFolderOK) Error ¶
func (o *DeleteFolderOK) Error() string
func (*DeleteFolderOK) GetPayload ¶
func (o *DeleteFolderOK) GetPayload() *models.DeleteFolderOKBody
type DeleteFolderParams ¶
type DeleteFolderParams struct { // FolderUID. FolderUID string /* ForceDeleteRules. If `true` any Grafana 8 Alerts under this folder will be deleted. Set to `false` so that the request will fail if the folder contains any Grafana 8 Alerts. */ ForceDeleteRules *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteFolderParams contains all the parameters to send to the API endpoint
for the delete folder operation. Typically these are written to a http.Request.
func NewDeleteFolderParams ¶
func NewDeleteFolderParams() *DeleteFolderParams
NewDeleteFolderParams creates a new DeleteFolderParams 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 NewDeleteFolderParamsWithContext ¶
func NewDeleteFolderParamsWithContext(ctx context.Context) *DeleteFolderParams
NewDeleteFolderParamsWithContext creates a new DeleteFolderParams object with the ability to set a context for a request.
func NewDeleteFolderParamsWithHTTPClient ¶
func NewDeleteFolderParamsWithHTTPClient(client *http.Client) *DeleteFolderParams
NewDeleteFolderParamsWithHTTPClient creates a new DeleteFolderParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteFolderParamsWithTimeout ¶
func NewDeleteFolderParamsWithTimeout(timeout time.Duration) *DeleteFolderParams
NewDeleteFolderParamsWithTimeout creates a new DeleteFolderParams object with the ability to set a timeout on a request.
func (*DeleteFolderParams) SetContext ¶
func (o *DeleteFolderParams) SetContext(ctx context.Context)
SetContext adds the context to the delete folder params
func (*DeleteFolderParams) SetDefaults ¶
func (o *DeleteFolderParams) SetDefaults()
SetDefaults hydrates default values in the delete folder params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteFolderParams) SetFolderUID ¶
func (o *DeleteFolderParams) SetFolderUID(folderUID string)
SetFolderUID adds the folderUid to the delete folder params
func (*DeleteFolderParams) SetForceDeleteRules ¶
func (o *DeleteFolderParams) SetForceDeleteRules(forceDeleteRules *bool)
SetForceDeleteRules adds the forceDeleteRules to the delete folder params
func (*DeleteFolderParams) SetHTTPClient ¶
func (o *DeleteFolderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete folder params
func (*DeleteFolderParams) SetTimeout ¶
func (o *DeleteFolderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete folder params
func (*DeleteFolderParams) WithContext ¶
func (o *DeleteFolderParams) WithContext(ctx context.Context) *DeleteFolderParams
WithContext adds the context to the delete folder params
func (*DeleteFolderParams) WithDefaults ¶
func (o *DeleteFolderParams) WithDefaults() *DeleteFolderParams
WithDefaults hydrates default values in the delete folder params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteFolderParams) WithFolderUID ¶
func (o *DeleteFolderParams) WithFolderUID(folderUID string) *DeleteFolderParams
WithFolderUID adds the folderUID to the delete folder params
func (*DeleteFolderParams) WithForceDeleteRules ¶
func (o *DeleteFolderParams) WithForceDeleteRules(forceDeleteRules *bool) *DeleteFolderParams
WithForceDeleteRules adds the forceDeleteRules to the delete folder params
func (*DeleteFolderParams) WithHTTPClient ¶
func (o *DeleteFolderParams) WithHTTPClient(client *http.Client) *DeleteFolderParams
WithHTTPClient adds the HTTPClient to the delete folder params
func (*DeleteFolderParams) WithTimeout ¶
func (o *DeleteFolderParams) WithTimeout(timeout time.Duration) *DeleteFolderParams
WithTimeout adds the timeout to the delete folder params
func (*DeleteFolderParams) WriteToRequest ¶
func (o *DeleteFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteFolderReader ¶
type DeleteFolderReader struct {
// contains filtered or unexported fields
}
DeleteFolderReader is a Reader for the DeleteFolder structure.
func (*DeleteFolderReader) ReadResponse ¶
func (o *DeleteFolderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteFolderUnauthorized ¶
type DeleteFolderUnauthorized struct {
}DeleteFolderUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewDeleteFolderUnauthorized ¶
func NewDeleteFolderUnauthorized() *DeleteFolderUnauthorized
NewDeleteFolderUnauthorized creates a DeleteFolderUnauthorized with default headers values
func (*DeleteFolderUnauthorized) Error ¶
func (o *DeleteFolderUnauthorized) Error() string
func (*DeleteFolderUnauthorized) GetPayload ¶
func (o *DeleteFolderUnauthorized) GetPayload() *models.ErrorResponseBody
type GetFolderByIDForbidden ¶
type GetFolderByIDForbidden struct {
Payload *models.ErrorResponseBody
}
GetFolderByIDForbidden 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 NewGetFolderByIDForbidden ¶
func NewGetFolderByIDForbidden() *GetFolderByIDForbidden
NewGetFolderByIDForbidden creates a GetFolderByIDForbidden with default headers values
func (*GetFolderByIDForbidden) Error ¶
func (o *GetFolderByIDForbidden) Error() string
func (*GetFolderByIDForbidden) GetPayload ¶
func (o *GetFolderByIDForbidden) GetPayload() *models.ErrorResponseBody
type GetFolderByIDInternalServerError ¶
type GetFolderByIDInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetFolderByIDInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetFolderByIDInternalServerError ¶
func NewGetFolderByIDInternalServerError() *GetFolderByIDInternalServerError
NewGetFolderByIDInternalServerError creates a GetFolderByIDInternalServerError with default headers values
func (*GetFolderByIDInternalServerError) Error ¶
func (o *GetFolderByIDInternalServerError) Error() string
func (*GetFolderByIDInternalServerError) GetPayload ¶
func (o *GetFolderByIDInternalServerError) GetPayload() *models.ErrorResponseBody
type GetFolderByIDNotFound ¶
type GetFolderByIDNotFound struct {
Payload *models.ErrorResponseBody
}
GetFolderByIDNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetFolderByIDNotFound ¶
func NewGetFolderByIDNotFound() *GetFolderByIDNotFound
NewGetFolderByIDNotFound creates a GetFolderByIDNotFound with default headers values
func (*GetFolderByIDNotFound) Error ¶
func (o *GetFolderByIDNotFound) Error() string
func (*GetFolderByIDNotFound) GetPayload ¶
func (o *GetFolderByIDNotFound) GetPayload() *models.ErrorResponseBody
type GetFolderByIDOK ¶
GetFolderByIDOK describes a response with status code 200, with default header values.
(empty)
func NewGetFolderByIDOK ¶
func NewGetFolderByIDOK() *GetFolderByIDOK
NewGetFolderByIDOK creates a GetFolderByIDOK with default headers values
func (*GetFolderByIDOK) Error ¶
func (o *GetFolderByIDOK) Error() string
func (*GetFolderByIDOK) GetPayload ¶
func (o *GetFolderByIDOK) GetPayload() *models.Folder
type GetFolderByIDParams ¶
type GetFolderByIDParams struct { // FolderID. // // Format: int64 FolderID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFolderByIDParams contains all the parameters to send to the API endpoint
for the get folder by ID operation. Typically these are written to a http.Request.
func NewGetFolderByIDParams ¶
func NewGetFolderByIDParams() *GetFolderByIDParams
NewGetFolderByIDParams creates a new GetFolderByIDParams 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 NewGetFolderByIDParamsWithContext ¶
func NewGetFolderByIDParamsWithContext(ctx context.Context) *GetFolderByIDParams
NewGetFolderByIDParamsWithContext creates a new GetFolderByIDParams object with the ability to set a context for a request.
func NewGetFolderByIDParamsWithHTTPClient ¶
func NewGetFolderByIDParamsWithHTTPClient(client *http.Client) *GetFolderByIDParams
NewGetFolderByIDParamsWithHTTPClient creates a new GetFolderByIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetFolderByIDParamsWithTimeout ¶
func NewGetFolderByIDParamsWithTimeout(timeout time.Duration) *GetFolderByIDParams
NewGetFolderByIDParamsWithTimeout creates a new GetFolderByIDParams object with the ability to set a timeout on a request.
func (*GetFolderByIDParams) SetContext ¶
func (o *GetFolderByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get folder by ID params
func (*GetFolderByIDParams) SetDefaults ¶
func (o *GetFolderByIDParams) SetDefaults()
SetDefaults hydrates default values in the get folder by ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetFolderByIDParams) SetFolderID ¶
func (o *GetFolderByIDParams) SetFolderID(folderID int64)
SetFolderID adds the folderId to the get folder by ID params
func (*GetFolderByIDParams) SetHTTPClient ¶
func (o *GetFolderByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get folder by ID params
func (*GetFolderByIDParams) SetTimeout ¶
func (o *GetFolderByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get folder by ID params
func (*GetFolderByIDParams) WithContext ¶
func (o *GetFolderByIDParams) WithContext(ctx context.Context) *GetFolderByIDParams
WithContext adds the context to the get folder by ID params
func (*GetFolderByIDParams) WithDefaults ¶
func (o *GetFolderByIDParams) WithDefaults() *GetFolderByIDParams
WithDefaults hydrates default values in the get folder by ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetFolderByIDParams) WithFolderID ¶
func (o *GetFolderByIDParams) WithFolderID(folderID int64) *GetFolderByIDParams
WithFolderID adds the folderID to the get folder by ID params
func (*GetFolderByIDParams) WithHTTPClient ¶
func (o *GetFolderByIDParams) WithHTTPClient(client *http.Client) *GetFolderByIDParams
WithHTTPClient adds the HTTPClient to the get folder by ID params
func (*GetFolderByIDParams) WithTimeout ¶
func (o *GetFolderByIDParams) WithTimeout(timeout time.Duration) *GetFolderByIDParams
WithTimeout adds the timeout to the get folder by ID params
func (*GetFolderByIDParams) WriteToRequest ¶
func (o *GetFolderByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFolderByIDReader ¶
type GetFolderByIDReader struct {
// contains filtered or unexported fields
}
GetFolderByIDReader is a Reader for the GetFolderByID structure.
func (*GetFolderByIDReader) ReadResponse ¶
func (o *GetFolderByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetFolderByIDUnauthorized ¶
type GetFolderByIDUnauthorized struct {
}GetFolderByIDUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetFolderByIDUnauthorized ¶
func NewGetFolderByIDUnauthorized() *GetFolderByIDUnauthorized
NewGetFolderByIDUnauthorized creates a GetFolderByIDUnauthorized with default headers values
func (*GetFolderByIDUnauthorized) Error ¶
func (o *GetFolderByIDUnauthorized) Error() string
func (*GetFolderByIDUnauthorized) GetPayload ¶
func (o *GetFolderByIDUnauthorized) GetPayload() *models.ErrorResponseBody
type GetFolderByUIDForbidden ¶
type GetFolderByUIDForbidden struct {
Payload *models.ErrorResponseBody
}
GetFolderByUIDForbidden 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 NewGetFolderByUIDForbidden ¶
func NewGetFolderByUIDForbidden() *GetFolderByUIDForbidden
NewGetFolderByUIDForbidden creates a GetFolderByUIDForbidden with default headers values
func (*GetFolderByUIDForbidden) Error ¶
func (o *GetFolderByUIDForbidden) Error() string
func (*GetFolderByUIDForbidden) GetPayload ¶
func (o *GetFolderByUIDForbidden) GetPayload() *models.ErrorResponseBody
type GetFolderByUIDInternalServerError ¶
type GetFolderByUIDInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetFolderByUIDInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetFolderByUIDInternalServerError ¶
func NewGetFolderByUIDInternalServerError() *GetFolderByUIDInternalServerError
NewGetFolderByUIDInternalServerError creates a GetFolderByUIDInternalServerError with default headers values
func (*GetFolderByUIDInternalServerError) Error ¶
func (o *GetFolderByUIDInternalServerError) Error() string
func (*GetFolderByUIDInternalServerError) GetPayload ¶
func (o *GetFolderByUIDInternalServerError) GetPayload() *models.ErrorResponseBody
type GetFolderByUIDNotFound ¶
type GetFolderByUIDNotFound struct {
Payload *models.ErrorResponseBody
}
GetFolderByUIDNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetFolderByUIDNotFound ¶
func NewGetFolderByUIDNotFound() *GetFolderByUIDNotFound
NewGetFolderByUIDNotFound creates a GetFolderByUIDNotFound with default headers values
func (*GetFolderByUIDNotFound) Error ¶
func (o *GetFolderByUIDNotFound) Error() string
func (*GetFolderByUIDNotFound) GetPayload ¶
func (o *GetFolderByUIDNotFound) GetPayload() *models.ErrorResponseBody
type GetFolderByUIDOK ¶
GetFolderByUIDOK describes a response with status code 200, with default header values.
(empty)
func NewGetFolderByUIDOK ¶
func NewGetFolderByUIDOK() *GetFolderByUIDOK
NewGetFolderByUIDOK creates a GetFolderByUIDOK with default headers values
func (*GetFolderByUIDOK) Error ¶
func (o *GetFolderByUIDOK) Error() string
func (*GetFolderByUIDOK) GetPayload ¶
func (o *GetFolderByUIDOK) GetPayload() *models.Folder
type GetFolderByUIDParams ¶
type GetFolderByUIDParams struct { // FolderUID. FolderUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFolderByUIDParams contains all the parameters to send to the API endpoint
for the get folder by UID operation. Typically these are written to a http.Request.
func NewGetFolderByUIDParams ¶
func NewGetFolderByUIDParams() *GetFolderByUIDParams
NewGetFolderByUIDParams creates a new GetFolderByUIDParams 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 NewGetFolderByUIDParamsWithContext ¶
func NewGetFolderByUIDParamsWithContext(ctx context.Context) *GetFolderByUIDParams
NewGetFolderByUIDParamsWithContext creates a new GetFolderByUIDParams object with the ability to set a context for a request.
func NewGetFolderByUIDParamsWithHTTPClient ¶
func NewGetFolderByUIDParamsWithHTTPClient(client *http.Client) *GetFolderByUIDParams
NewGetFolderByUIDParamsWithHTTPClient creates a new GetFolderByUIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetFolderByUIDParamsWithTimeout ¶
func NewGetFolderByUIDParamsWithTimeout(timeout time.Duration) *GetFolderByUIDParams
NewGetFolderByUIDParamsWithTimeout creates a new GetFolderByUIDParams object with the ability to set a timeout on a request.
func (*GetFolderByUIDParams) SetContext ¶
func (o *GetFolderByUIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get folder by UID params
func (*GetFolderByUIDParams) SetDefaults ¶
func (o *GetFolderByUIDParams) SetDefaults()
SetDefaults hydrates default values in the get folder by UID params (not the query body).
All values with no default are reset to their zero value.
func (*GetFolderByUIDParams) SetFolderUID ¶
func (o *GetFolderByUIDParams) SetFolderUID(folderUID string)
SetFolderUID adds the folderUid to the get folder by UID params
func (*GetFolderByUIDParams) SetHTTPClient ¶
func (o *GetFolderByUIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get folder by UID params
func (*GetFolderByUIDParams) SetTimeout ¶
func (o *GetFolderByUIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get folder by UID params
func (*GetFolderByUIDParams) WithContext ¶
func (o *GetFolderByUIDParams) WithContext(ctx context.Context) *GetFolderByUIDParams
WithContext adds the context to the get folder by UID params
func (*GetFolderByUIDParams) WithDefaults ¶
func (o *GetFolderByUIDParams) WithDefaults() *GetFolderByUIDParams
WithDefaults hydrates default values in the get folder by UID params (not the query body).
All values with no default are reset to their zero value.
func (*GetFolderByUIDParams) WithFolderUID ¶
func (o *GetFolderByUIDParams) WithFolderUID(folderUID string) *GetFolderByUIDParams
WithFolderUID adds the folderUID to the get folder by UID params
func (*GetFolderByUIDParams) WithHTTPClient ¶
func (o *GetFolderByUIDParams) WithHTTPClient(client *http.Client) *GetFolderByUIDParams
WithHTTPClient adds the HTTPClient to the get folder by UID params
func (*GetFolderByUIDParams) WithTimeout ¶
func (o *GetFolderByUIDParams) WithTimeout(timeout time.Duration) *GetFolderByUIDParams
WithTimeout adds the timeout to the get folder by UID params
func (*GetFolderByUIDParams) WriteToRequest ¶
func (o *GetFolderByUIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFolderByUIDReader ¶
type GetFolderByUIDReader struct {
// contains filtered or unexported fields
}
GetFolderByUIDReader is a Reader for the GetFolderByUID structure.
func (*GetFolderByUIDReader) ReadResponse ¶
func (o *GetFolderByUIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetFolderByUIDUnauthorized ¶
type GetFolderByUIDUnauthorized struct {
}GetFolderByUIDUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetFolderByUIDUnauthorized ¶
func NewGetFolderByUIDUnauthorized() *GetFolderByUIDUnauthorized
NewGetFolderByUIDUnauthorized creates a GetFolderByUIDUnauthorized with default headers values
func (*GetFolderByUIDUnauthorized) Error ¶
func (o *GetFolderByUIDUnauthorized) Error() string
func (*GetFolderByUIDUnauthorized) GetPayload ¶
func (o *GetFolderByUIDUnauthorized) GetPayload() *models.ErrorResponseBody
type GetFolderDescendantCountsForbidden ¶
type GetFolderDescendantCountsForbidden struct {
Payload *models.ErrorResponseBody
}
GetFolderDescendantCountsForbidden 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 NewGetFolderDescendantCountsForbidden ¶
func NewGetFolderDescendantCountsForbidden() *GetFolderDescendantCountsForbidden
NewGetFolderDescendantCountsForbidden creates a GetFolderDescendantCountsForbidden with default headers values
func (*GetFolderDescendantCountsForbidden) Error ¶
func (o *GetFolderDescendantCountsForbidden) Error() string
func (*GetFolderDescendantCountsForbidden) GetPayload ¶
func (o *GetFolderDescendantCountsForbidden) GetPayload() *models.ErrorResponseBody
type GetFolderDescendantCountsInternalServerError ¶
type GetFolderDescendantCountsInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetFolderDescendantCountsInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetFolderDescendantCountsInternalServerError ¶
func NewGetFolderDescendantCountsInternalServerError() *GetFolderDescendantCountsInternalServerError
NewGetFolderDescendantCountsInternalServerError creates a GetFolderDescendantCountsInternalServerError with default headers values
func (*GetFolderDescendantCountsInternalServerError) Error ¶
func (o *GetFolderDescendantCountsInternalServerError) Error() string
func (*GetFolderDescendantCountsInternalServerError) GetPayload ¶
func (o *GetFolderDescendantCountsInternalServerError) GetPayload() *models.ErrorResponseBody
type GetFolderDescendantCountsNotFound ¶
type GetFolderDescendantCountsNotFound struct {
Payload *models.ErrorResponseBody
}
GetFolderDescendantCountsNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetFolderDescendantCountsNotFound ¶
func NewGetFolderDescendantCountsNotFound() *GetFolderDescendantCountsNotFound
NewGetFolderDescendantCountsNotFound creates a GetFolderDescendantCountsNotFound with default headers values
func (*GetFolderDescendantCountsNotFound) Error ¶
func (o *GetFolderDescendantCountsNotFound) Error() string
func (*GetFolderDescendantCountsNotFound) GetPayload ¶
func (o *GetFolderDescendantCountsNotFound) GetPayload() *models.ErrorResponseBody
type GetFolderDescendantCountsOK ¶
type GetFolderDescendantCountsOK struct {
Payload models.DescendantCounts
}
GetFolderDescendantCountsOK describes a response with status code 200, with default header values.
(empty)
func NewGetFolderDescendantCountsOK ¶
func NewGetFolderDescendantCountsOK() *GetFolderDescendantCountsOK
NewGetFolderDescendantCountsOK creates a GetFolderDescendantCountsOK with default headers values
func (*GetFolderDescendantCountsOK) Error ¶
func (o *GetFolderDescendantCountsOK) Error() string
func (*GetFolderDescendantCountsOK) GetPayload ¶
func (o *GetFolderDescendantCountsOK) GetPayload() models.DescendantCounts
type GetFolderDescendantCountsParams ¶
type GetFolderDescendantCountsParams struct { // FolderUID. FolderUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFolderDescendantCountsParams contains all the parameters to send to the API endpoint
for the get folder descendant counts operation. Typically these are written to a http.Request.
func NewGetFolderDescendantCountsParams ¶
func NewGetFolderDescendantCountsParams() *GetFolderDescendantCountsParams
NewGetFolderDescendantCountsParams creates a new GetFolderDescendantCountsParams 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 NewGetFolderDescendantCountsParamsWithContext ¶
func NewGetFolderDescendantCountsParamsWithContext(ctx context.Context) *GetFolderDescendantCountsParams
NewGetFolderDescendantCountsParamsWithContext creates a new GetFolderDescendantCountsParams object with the ability to set a context for a request.
func NewGetFolderDescendantCountsParamsWithHTTPClient ¶
func NewGetFolderDescendantCountsParamsWithHTTPClient(client *http.Client) *GetFolderDescendantCountsParams
NewGetFolderDescendantCountsParamsWithHTTPClient creates a new GetFolderDescendantCountsParams object with the ability to set a custom HTTPClient for a request.
func NewGetFolderDescendantCountsParamsWithTimeout ¶
func NewGetFolderDescendantCountsParamsWithTimeout(timeout time.Duration) *GetFolderDescendantCountsParams
NewGetFolderDescendantCountsParamsWithTimeout creates a new GetFolderDescendantCountsParams object with the ability to set a timeout on a request.
func (*GetFolderDescendantCountsParams) SetContext ¶
func (o *GetFolderDescendantCountsParams) SetContext(ctx context.Context)
SetContext adds the context to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) SetDefaults ¶
func (o *GetFolderDescendantCountsParams) SetDefaults()
SetDefaults hydrates default values in the get folder descendant counts params (not the query body).
All values with no default are reset to their zero value.
func (*GetFolderDescendantCountsParams) SetFolderUID ¶
func (o *GetFolderDescendantCountsParams) SetFolderUID(folderUID string)
SetFolderUID adds the folderUid to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) SetHTTPClient ¶
func (o *GetFolderDescendantCountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) SetTimeout ¶
func (o *GetFolderDescendantCountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) WithContext ¶
func (o *GetFolderDescendantCountsParams) WithContext(ctx context.Context) *GetFolderDescendantCountsParams
WithContext adds the context to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) WithDefaults ¶
func (o *GetFolderDescendantCountsParams) WithDefaults() *GetFolderDescendantCountsParams
WithDefaults hydrates default values in the get folder descendant counts params (not the query body).
All values with no default are reset to their zero value.
func (*GetFolderDescendantCountsParams) WithFolderUID ¶
func (o *GetFolderDescendantCountsParams) WithFolderUID(folderUID string) *GetFolderDescendantCountsParams
WithFolderUID adds the folderUID to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) WithHTTPClient ¶
func (o *GetFolderDescendantCountsParams) WithHTTPClient(client *http.Client) *GetFolderDescendantCountsParams
WithHTTPClient adds the HTTPClient to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) WithTimeout ¶
func (o *GetFolderDescendantCountsParams) WithTimeout(timeout time.Duration) *GetFolderDescendantCountsParams
WithTimeout adds the timeout to the get folder descendant counts params
func (*GetFolderDescendantCountsParams) WriteToRequest ¶
func (o *GetFolderDescendantCountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFolderDescendantCountsReader ¶
type GetFolderDescendantCountsReader struct {
// contains filtered or unexported fields
}
GetFolderDescendantCountsReader is a Reader for the GetFolderDescendantCounts structure.
func (*GetFolderDescendantCountsReader) ReadResponse ¶
func (o *GetFolderDescendantCountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetFolderDescendantCountsUnauthorized ¶
type GetFolderDescendantCountsUnauthorized struct {
}GetFolderDescendantCountsUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetFolderDescendantCountsUnauthorized ¶
func NewGetFolderDescendantCountsUnauthorized() *GetFolderDescendantCountsUnauthorized
NewGetFolderDescendantCountsUnauthorized creates a GetFolderDescendantCountsUnauthorized with default headers values
func (*GetFolderDescendantCountsUnauthorized) Error ¶
func (o *GetFolderDescendantCountsUnauthorized) Error() string
func (*GetFolderDescendantCountsUnauthorized) GetPayload ¶
func (o *GetFolderDescendantCountsUnauthorized) GetPayload() *models.ErrorResponseBody
type GetFoldersForbidden ¶
type GetFoldersForbidden struct {
Payload *models.ErrorResponseBody
}
GetFoldersForbidden 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 NewGetFoldersForbidden ¶
func NewGetFoldersForbidden() *GetFoldersForbidden
NewGetFoldersForbidden creates a GetFoldersForbidden with default headers values
func (*GetFoldersForbidden) Error ¶
func (o *GetFoldersForbidden) Error() string
func (*GetFoldersForbidden) GetPayload ¶
func (o *GetFoldersForbidden) GetPayload() *models.ErrorResponseBody
type GetFoldersInternalServerError ¶
type GetFoldersInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetFoldersInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetFoldersInternalServerError ¶
func NewGetFoldersInternalServerError() *GetFoldersInternalServerError
NewGetFoldersInternalServerError creates a GetFoldersInternalServerError with default headers values
func (*GetFoldersInternalServerError) Error ¶
func (o *GetFoldersInternalServerError) Error() string
func (*GetFoldersInternalServerError) GetPayload ¶
func (o *GetFoldersInternalServerError) GetPayload() *models.ErrorResponseBody
type GetFoldersOK ¶
type GetFoldersOK struct {
Payload []*models.FolderSearchHit
}
GetFoldersOK describes a response with status code 200, with default header values.
(empty)
func NewGetFoldersOK ¶
func NewGetFoldersOK() *GetFoldersOK
NewGetFoldersOK creates a GetFoldersOK with default headers values
func (*GetFoldersOK) Error ¶
func (o *GetFoldersOK) Error() string
func (*GetFoldersOK) GetPayload ¶
func (o *GetFoldersOK) GetPayload() []*models.FolderSearchHit
type GetFoldersParams ¶
type GetFoldersParams struct { /* Limit. Limit the maximum number of folders to return Format: int64 Default: 1000 */ Limit *int64 /* Page. Page index for starting fetching folders Format: int64 Default: 1 */ Page *int64 /* ParentUID. The parent folder UID */ ParentUID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFoldersParams contains all the parameters to send to the API endpoint
for the get folders operation. Typically these are written to a http.Request.
func NewGetFoldersParams ¶
func NewGetFoldersParams() *GetFoldersParams
NewGetFoldersParams creates a new GetFoldersParams 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 NewGetFoldersParamsWithContext ¶
func NewGetFoldersParamsWithContext(ctx context.Context) *GetFoldersParams
NewGetFoldersParamsWithContext creates a new GetFoldersParams object with the ability to set a context for a request.
func NewGetFoldersParamsWithHTTPClient ¶
func NewGetFoldersParamsWithHTTPClient(client *http.Client) *GetFoldersParams
NewGetFoldersParamsWithHTTPClient creates a new GetFoldersParams object with the ability to set a custom HTTPClient for a request.
func NewGetFoldersParamsWithTimeout ¶
func NewGetFoldersParamsWithTimeout(timeout time.Duration) *GetFoldersParams
NewGetFoldersParamsWithTimeout creates a new GetFoldersParams object with the ability to set a timeout on a request.
func (*GetFoldersParams) SetContext ¶
func (o *GetFoldersParams) SetContext(ctx context.Context)
SetContext adds the context to the get folders params
func (*GetFoldersParams) SetDefaults ¶
func (o *GetFoldersParams) SetDefaults()
SetDefaults hydrates default values in the get folders params (not the query body).
All values with no default are reset to their zero value.
func (*GetFoldersParams) SetHTTPClient ¶
func (o *GetFoldersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get folders params
func (*GetFoldersParams) SetLimit ¶
func (o *GetFoldersParams) SetLimit(limit *int64)
SetLimit adds the limit to the get folders params
func (*GetFoldersParams) SetPage ¶
func (o *GetFoldersParams) SetPage(page *int64)
SetPage adds the page to the get folders params
func (*GetFoldersParams) SetParentUID ¶
func (o *GetFoldersParams) SetParentUID(parentUID *string)
SetParentUID adds the parentUid to the get folders params
func (*GetFoldersParams) SetTimeout ¶
func (o *GetFoldersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get folders params
func (*GetFoldersParams) WithContext ¶
func (o *GetFoldersParams) WithContext(ctx context.Context) *GetFoldersParams
WithContext adds the context to the get folders params
func (*GetFoldersParams) WithDefaults ¶
func (o *GetFoldersParams) WithDefaults() *GetFoldersParams
WithDefaults hydrates default values in the get folders params (not the query body).
All values with no default are reset to their zero value.
func (*GetFoldersParams) WithHTTPClient ¶
func (o *GetFoldersParams) WithHTTPClient(client *http.Client) *GetFoldersParams
WithHTTPClient adds the HTTPClient to the get folders params
func (*GetFoldersParams) WithLimit ¶
func (o *GetFoldersParams) WithLimit(limit *int64) *GetFoldersParams
WithLimit adds the limit to the get folders params
func (*GetFoldersParams) WithPage ¶
func (o *GetFoldersParams) WithPage(page *int64) *GetFoldersParams
WithPage adds the page to the get folders params
func (*GetFoldersParams) WithParentUID ¶
func (o *GetFoldersParams) WithParentUID(parentUID *string) *GetFoldersParams
WithParentUID adds the parentUID to the get folders params
func (*GetFoldersParams) WithTimeout ¶
func (o *GetFoldersParams) WithTimeout(timeout time.Duration) *GetFoldersParams
WithTimeout adds the timeout to the get folders params
func (*GetFoldersParams) WriteToRequest ¶
func (o *GetFoldersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFoldersReader ¶
type GetFoldersReader struct {
// contains filtered or unexported fields
}
GetFoldersReader is a Reader for the GetFolders structure.
func (*GetFoldersReader) ReadResponse ¶
func (o *GetFoldersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetFoldersUnauthorized ¶
type GetFoldersUnauthorized struct {
}GetFoldersUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetFoldersUnauthorized ¶
func NewGetFoldersUnauthorized() *GetFoldersUnauthorized
NewGetFoldersUnauthorized creates a GetFoldersUnauthorized with default headers values
func (*GetFoldersUnauthorized) Error ¶
func (o *GetFoldersUnauthorized) Error() string
func (*GetFoldersUnauthorized) GetPayload ¶
func (o *GetFoldersUnauthorized) GetPayload() *models.ErrorResponseBody
type MoveFolderForbidden ¶
type MoveFolderForbidden struct {
Payload *models.ErrorResponseBody
}
MoveFolderForbidden 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 NewMoveFolderForbidden ¶
func NewMoveFolderForbidden() *MoveFolderForbidden
NewMoveFolderForbidden creates a MoveFolderForbidden with default headers values
func (*MoveFolderForbidden) Error ¶
func (o *MoveFolderForbidden) Error() string
func (*MoveFolderForbidden) GetPayload ¶
func (o *MoveFolderForbidden) GetPayload() *models.ErrorResponseBody
type MoveFolderInternalServerError ¶
type MoveFolderInternalServerError struct {
Payload *models.ErrorResponseBody
}
MoveFolderInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewMoveFolderInternalServerError ¶
func NewMoveFolderInternalServerError() *MoveFolderInternalServerError
NewMoveFolderInternalServerError creates a MoveFolderInternalServerError with default headers values
func (*MoveFolderInternalServerError) Error ¶
func (o *MoveFolderInternalServerError) Error() string
func (*MoveFolderInternalServerError) GetPayload ¶
func (o *MoveFolderInternalServerError) GetPayload() *models.ErrorResponseBody
type MoveFolderNotFound ¶
type MoveFolderNotFound struct {
Payload *models.ErrorResponseBody
}
MoveFolderNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewMoveFolderNotFound ¶
func NewMoveFolderNotFound() *MoveFolderNotFound
NewMoveFolderNotFound creates a MoveFolderNotFound with default headers values
func (*MoveFolderNotFound) Error ¶
func (o *MoveFolderNotFound) Error() string
func (*MoveFolderNotFound) GetPayload ¶
func (o *MoveFolderNotFound) GetPayload() *models.ErrorResponseBody
type MoveFolderOK ¶
MoveFolderOK describes a response with status code 200, with default header values.
(empty)
func NewMoveFolderOK ¶
func NewMoveFolderOK() *MoveFolderOK
NewMoveFolderOK creates a MoveFolderOK with default headers values
func (*MoveFolderOK) Error ¶
func (o *MoveFolderOK) Error() string
func (*MoveFolderOK) GetPayload ¶
func (o *MoveFolderOK) GetPayload() *models.Folder
type MoveFolderParams ¶
type MoveFolderParams struct { // Body. Body *models.MoveFolderCommand // FolderUID. FolderUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MoveFolderParams contains all the parameters to send to the API endpoint
for the move folder operation. Typically these are written to a http.Request.
func NewMoveFolderParams ¶
func NewMoveFolderParams() *MoveFolderParams
NewMoveFolderParams creates a new MoveFolderParams 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 NewMoveFolderParamsWithContext ¶
func NewMoveFolderParamsWithContext(ctx context.Context) *MoveFolderParams
NewMoveFolderParamsWithContext creates a new MoveFolderParams object with the ability to set a context for a request.
func NewMoveFolderParamsWithHTTPClient ¶
func NewMoveFolderParamsWithHTTPClient(client *http.Client) *MoveFolderParams
NewMoveFolderParamsWithHTTPClient creates a new MoveFolderParams object with the ability to set a custom HTTPClient for a request.
func NewMoveFolderParamsWithTimeout ¶
func NewMoveFolderParamsWithTimeout(timeout time.Duration) *MoveFolderParams
NewMoveFolderParamsWithTimeout creates a new MoveFolderParams object with the ability to set a timeout on a request.
func (*MoveFolderParams) SetBody ¶
func (o *MoveFolderParams) SetBody(body *models.MoveFolderCommand)
SetBody adds the body to the move folder params
func (*MoveFolderParams) SetContext ¶
func (o *MoveFolderParams) SetContext(ctx context.Context)
SetContext adds the context to the move folder params
func (*MoveFolderParams) SetDefaults ¶
func (o *MoveFolderParams) SetDefaults()
SetDefaults hydrates default values in the move folder params (not the query body).
All values with no default are reset to their zero value.
func (*MoveFolderParams) SetFolderUID ¶
func (o *MoveFolderParams) SetFolderUID(folderUID string)
SetFolderUID adds the folderUid to the move folder params
func (*MoveFolderParams) SetHTTPClient ¶
func (o *MoveFolderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the move folder params
func (*MoveFolderParams) SetTimeout ¶
func (o *MoveFolderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the move folder params
func (*MoveFolderParams) WithBody ¶
func (o *MoveFolderParams) WithBody(body *models.MoveFolderCommand) *MoveFolderParams
WithBody adds the body to the move folder params
func (*MoveFolderParams) WithContext ¶
func (o *MoveFolderParams) WithContext(ctx context.Context) *MoveFolderParams
WithContext adds the context to the move folder params
func (*MoveFolderParams) WithDefaults ¶
func (o *MoveFolderParams) WithDefaults() *MoveFolderParams
WithDefaults hydrates default values in the move folder params (not the query body).
All values with no default are reset to their zero value.
func (*MoveFolderParams) WithFolderUID ¶
func (o *MoveFolderParams) WithFolderUID(folderUID string) *MoveFolderParams
WithFolderUID adds the folderUID to the move folder params
func (*MoveFolderParams) WithHTTPClient ¶
func (o *MoveFolderParams) WithHTTPClient(client *http.Client) *MoveFolderParams
WithHTTPClient adds the HTTPClient to the move folder params
func (*MoveFolderParams) WithTimeout ¶
func (o *MoveFolderParams) WithTimeout(timeout time.Duration) *MoveFolderParams
WithTimeout adds the timeout to the move folder params
func (*MoveFolderParams) WriteToRequest ¶
func (o *MoveFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MoveFolderReader ¶
type MoveFolderReader struct {
// contains filtered or unexported fields
}
MoveFolderReader is a Reader for the MoveFolder structure.
func (*MoveFolderReader) ReadResponse ¶
func (o *MoveFolderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MoveFolderUnauthorized ¶
type MoveFolderUnauthorized struct {
}MoveFolderUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewMoveFolderUnauthorized ¶
func NewMoveFolderUnauthorized() *MoveFolderUnauthorized
NewMoveFolderUnauthorized creates a MoveFolderUnauthorized with default headers values
func (*MoveFolderUnauthorized) Error ¶
func (o *MoveFolderUnauthorized) Error() string
func (*MoveFolderUnauthorized) GetPayload ¶
func (o *MoveFolderUnauthorized) GetPayload() *models.ErrorResponseBody
type UpdateFolderBadRequest ¶
type UpdateFolderBadRequest struct {
Payload *models.ErrorResponseBody
}
UpdateFolderBadRequest 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 NewUpdateFolderBadRequest ¶
func NewUpdateFolderBadRequest() *UpdateFolderBadRequest
NewUpdateFolderBadRequest creates a UpdateFolderBadRequest with default headers values
func (*UpdateFolderBadRequest) Error ¶
func (o *UpdateFolderBadRequest) Error() string
func (*UpdateFolderBadRequest) GetPayload ¶
func (o *UpdateFolderBadRequest) GetPayload() *models.ErrorResponseBody
type UpdateFolderConflict ¶
type UpdateFolderConflict struct {
Payload *models.ErrorResponseBody
}
UpdateFolderConflict describes a response with status code 409, with default header values.
ConflictError
func NewUpdateFolderConflict ¶
func NewUpdateFolderConflict() *UpdateFolderConflict
NewUpdateFolderConflict creates a UpdateFolderConflict with default headers values
func (*UpdateFolderConflict) Error ¶
func (o *UpdateFolderConflict) Error() string
func (*UpdateFolderConflict) GetPayload ¶
func (o *UpdateFolderConflict) GetPayload() *models.ErrorResponseBody
type UpdateFolderForbidden ¶
type UpdateFolderForbidden struct {
Payload *models.ErrorResponseBody
}
UpdateFolderForbidden 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 NewUpdateFolderForbidden ¶
func NewUpdateFolderForbidden() *UpdateFolderForbidden
NewUpdateFolderForbidden creates a UpdateFolderForbidden with default headers values
func (*UpdateFolderForbidden) Error ¶
func (o *UpdateFolderForbidden) Error() string
func (*UpdateFolderForbidden) GetPayload ¶
func (o *UpdateFolderForbidden) GetPayload() *models.ErrorResponseBody
type UpdateFolderInternalServerError ¶
type UpdateFolderInternalServerError struct {
Payload *models.ErrorResponseBody
}
UpdateFolderInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewUpdateFolderInternalServerError ¶
func NewUpdateFolderInternalServerError() *UpdateFolderInternalServerError
NewUpdateFolderInternalServerError creates a UpdateFolderInternalServerError with default headers values
func (*UpdateFolderInternalServerError) Error ¶
func (o *UpdateFolderInternalServerError) Error() string
func (*UpdateFolderInternalServerError) GetPayload ¶
func (o *UpdateFolderInternalServerError) GetPayload() *models.ErrorResponseBody
type UpdateFolderNotFound ¶
type UpdateFolderNotFound struct {
Payload *models.ErrorResponseBody
}
UpdateFolderNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewUpdateFolderNotFound ¶
func NewUpdateFolderNotFound() *UpdateFolderNotFound
NewUpdateFolderNotFound creates a UpdateFolderNotFound with default headers values
func (*UpdateFolderNotFound) Error ¶
func (o *UpdateFolderNotFound) Error() string
func (*UpdateFolderNotFound) GetPayload ¶
func (o *UpdateFolderNotFound) GetPayload() *models.ErrorResponseBody
type UpdateFolderOK ¶
UpdateFolderOK describes a response with status code 200, with default header values.
(empty)
func NewUpdateFolderOK ¶
func NewUpdateFolderOK() *UpdateFolderOK
NewUpdateFolderOK creates a UpdateFolderOK with default headers values
func (*UpdateFolderOK) Error ¶
func (o *UpdateFolderOK) Error() string
func (*UpdateFolderOK) GetPayload ¶
func (o *UpdateFolderOK) GetPayload() *models.Folder
type UpdateFolderParams ¶
type UpdateFolderParams struct { /* Body. To change the unique identifier (uid), provide another one. To overwrite an existing folder with newer version, set `overwrite` to `true`. Provide the current version to safelly update the folder: if the provided version differs from the stored one the request will fail, unless `overwrite` is `true`. */ Body *models.UpdateFolderCommand // FolderUID. FolderUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateFolderParams contains all the parameters to send to the API endpoint
for the update folder operation. Typically these are written to a http.Request.
func NewUpdateFolderParams ¶
func NewUpdateFolderParams() *UpdateFolderParams
NewUpdateFolderParams creates a new UpdateFolderParams 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 NewUpdateFolderParamsWithContext ¶
func NewUpdateFolderParamsWithContext(ctx context.Context) *UpdateFolderParams
NewUpdateFolderParamsWithContext creates a new UpdateFolderParams object with the ability to set a context for a request.
func NewUpdateFolderParamsWithHTTPClient ¶
func NewUpdateFolderParamsWithHTTPClient(client *http.Client) *UpdateFolderParams
NewUpdateFolderParamsWithHTTPClient creates a new UpdateFolderParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateFolderParamsWithTimeout ¶
func NewUpdateFolderParamsWithTimeout(timeout time.Duration) *UpdateFolderParams
NewUpdateFolderParamsWithTimeout creates a new UpdateFolderParams object with the ability to set a timeout on a request.
func (*UpdateFolderParams) SetBody ¶
func (o *UpdateFolderParams) SetBody(body *models.UpdateFolderCommand)
SetBody adds the body to the update folder params
func (*UpdateFolderParams) SetContext ¶
func (o *UpdateFolderParams) SetContext(ctx context.Context)
SetContext adds the context to the update folder params
func (*UpdateFolderParams) SetDefaults ¶
func (o *UpdateFolderParams) SetDefaults()
SetDefaults hydrates default values in the update folder params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateFolderParams) SetFolderUID ¶
func (o *UpdateFolderParams) SetFolderUID(folderUID string)
SetFolderUID adds the folderUid to the update folder params
func (*UpdateFolderParams) SetHTTPClient ¶
func (o *UpdateFolderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update folder params
func (*UpdateFolderParams) SetTimeout ¶
func (o *UpdateFolderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update folder params
func (*UpdateFolderParams) WithBody ¶
func (o *UpdateFolderParams) WithBody(body *models.UpdateFolderCommand) *UpdateFolderParams
WithBody adds the body to the update folder params
func (*UpdateFolderParams) WithContext ¶
func (o *UpdateFolderParams) WithContext(ctx context.Context) *UpdateFolderParams
WithContext adds the context to the update folder params
func (*UpdateFolderParams) WithDefaults ¶
func (o *UpdateFolderParams) WithDefaults() *UpdateFolderParams
WithDefaults hydrates default values in the update folder params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateFolderParams) WithFolderUID ¶
func (o *UpdateFolderParams) WithFolderUID(folderUID string) *UpdateFolderParams
WithFolderUID adds the folderUID to the update folder params
func (*UpdateFolderParams) WithHTTPClient ¶
func (o *UpdateFolderParams) WithHTTPClient(client *http.Client) *UpdateFolderParams
WithHTTPClient adds the HTTPClient to the update folder params
func (*UpdateFolderParams) WithTimeout ¶
func (o *UpdateFolderParams) WithTimeout(timeout time.Duration) *UpdateFolderParams
WithTimeout adds the timeout to the update folder params
func (*UpdateFolderParams) WriteToRequest ¶
func (o *UpdateFolderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateFolderReader ¶
type UpdateFolderReader struct {
// contains filtered or unexported fields
}
UpdateFolderReader is a Reader for the UpdateFolder structure.
func (*UpdateFolderReader) ReadResponse ¶
func (o *UpdateFolderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateFolderUnauthorized ¶
type UpdateFolderUnauthorized struct {
}UpdateFolderUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewUpdateFolderUnauthorized ¶
func NewUpdateFolderUnauthorized() *UpdateFolderUnauthorized
NewUpdateFolderUnauthorized creates a UpdateFolderUnauthorized with default headers values
func (*UpdateFolderUnauthorized) Error ¶
func (o *UpdateFolderUnauthorized) Error() string
func (*UpdateFolderUnauthorized) GetPayload ¶
func (o *UpdateFolderUnauthorized) GetPayload() *models.ErrorResponseBody
Source Files ¶
- create_folder_parameters.go
- create_folder_responses.go
- delete_folder_parameters.go
- delete_folder_responses.go
- folders_client.go
- get_folder_by_id_parameters.go
- get_folder_by_id_responses.go
- get_folder_by_uid_parameters.go
- get_folder_by_uid_responses.go
- get_folder_descendant_counts_parameters.go
- get_folder_descendant_counts_responses.go
- get_folders_parameters.go
- get_folders_responses.go
- move_folder_parameters.go
- move_folder_responses.go
- update_folder_parameters.go
- update_folder_responses.go