folders

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

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

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

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 (*CreateFolderInternalServerError) GetPayload

type CreateFolderOK

type CreateFolderOK struct {
	Payload *models.Folder
}

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

WithBody adds the body to the create folder params

func (*CreateFolderParams) WithContext

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 {
	Payload *models.ErrorResponseBody
}

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

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

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

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 (*DeleteFolderInternalServerError) GetPayload

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

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

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 {
	Payload *models.ErrorResponseBody
}

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

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

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 (*GetFolderByIDInternalServerError) GetPayload

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

type GetFolderByIDOK

type GetFolderByIDOK struct {
	Payload *models.Folder
}

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

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 {
	Payload *models.ErrorResponseBody
}

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

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

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 (*GetFolderByUIDInternalServerError) GetPayload

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

type GetFolderByUIDOK

type GetFolderByUIDOK struct {
	Payload *models.Folder
}

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

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 {
	Payload *models.ErrorResponseBody
}

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 (*GetFolderByUIDUnauthorized) GetPayload

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 (*GetFolderDescendantCountsForbidden) GetPayload

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 (*GetFolderDescendantCountsInternalServerError) GetPayload

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 (*GetFolderDescendantCountsNotFound) GetPayload

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 (*GetFolderDescendantCountsOK) GetPayload

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

WithContext adds the context to the get folder descendant counts params

func (*GetFolderDescendantCountsParams) WithDefaults

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

WithFolderUID adds the folderUID to the get folder descendant counts params

func (*GetFolderDescendantCountsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get folder descendant counts params

func (*GetFolderDescendantCountsParams) WithTimeout

WithTimeout adds the timeout to the get folder descendant counts params

func (*GetFolderDescendantCountsParams) WriteToRequest

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 {
	Payload *models.ErrorResponseBody
}

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 (*GetFolderDescendantCountsUnauthorized) GetPayload

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 (*GetFoldersInternalServerError) GetPayload

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 {
	Payload *models.ErrorResponseBody
}

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

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 (*MoveFolderInternalServerError) GetPayload

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

type MoveFolderOK struct {
	Payload *models.Folder
}

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

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 {
	Payload *models.ErrorResponseBody
}

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

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

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

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

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 (*UpdateFolderInternalServerError) GetPayload

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

type UpdateFolderOK

type UpdateFolderOK struct {
	Payload *models.Folder
}

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

WithBody adds the body to the update folder params

func (*UpdateFolderParams) WithContext

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 {
	Payload *models.ErrorResponseBody
}

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

Jump to

Keyboard shortcuts

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