folders

package
v0.0.0-...-4958bdd Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

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(body *models.CreateFolderCommand, opts ...ClientOption) (*CreateFolderOK, error)

CreateFolder creates folder

If nested folders are enabled then it additionally expects the parent folder UID.

func (*Client) CreateFolderWithParams

func (a *Client) CreateFolderWithParams(params *CreateFolderParams, opts ...ClientOption) (*CreateFolderOK, error)

func (*Client) DeleteFolder

func (a *Client) DeleteFolder(params *DeleteFolderParams, opts ...ClientOption) (*DeleteFolderOK, error)

func (*Client) GetFolderByID

func (a *Client) GetFolderByID(folderID int64, 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) GetFolderByIDWithParams

func (a *Client) GetFolderByIDWithParams(params *GetFolderByIDParams, opts ...ClientOption) (*GetFolderByIDOK, error)

func (*Client) GetFolderByUID

func (a *Client) GetFolderByUID(folderUID string, opts ...ClientOption) (*GetFolderByUIDOK, error)

GetFolderByUID gets folder by uid

func (*Client) GetFolderByUIDWithParams

func (a *Client) GetFolderByUIDWithParams(params *GetFolderByUIDParams, opts ...ClientOption) (*GetFolderByUIDOK, error)

func (*Client) GetFolderDescendantCounts

func (a *Client) GetFolderDescendantCounts(folderUID string, opts ...ClientOption) (*GetFolderDescendantCountsOK, error)

GetFolderDescendantCounts gets the count of each descendant of a folder by kind the folder is identified by UID

func (*Client) GetFolderDescendantCountsWithParams

func (a *Client) GetFolderDescendantCountsWithParams(params *GetFolderDescendantCountsParams, opts ...ClientOption) (*GetFolderDescendantCountsOK, error)

func (*Client) GetFolders

func (a *Client) GetFolders(params *GetFoldersParams, opts ...ClientOption) (*GetFoldersOK, error)

func (*Client) MoveFolder

func (a *Client) MoveFolder(folderUID string, body *models.MoveFolderCommand, opts ...ClientOption) (*MoveFolderOK, error)

MoveFolder moves folder

func (*Client) MoveFolderWithParams

func (a *Client) MoveFolderWithParams(params *MoveFolderParams, opts ...ClientOption) (*MoveFolderOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateFolder

func (a *Client) UpdateFolder(folderUID string, body *models.UpdateFolderCommand, opts ...ClientOption) (*UpdateFolderOK, error)

UpdateFolder updates folder

func (*Client) UpdateFolderWithParams

func (a *Client) UpdateFolderWithParams(params *UpdateFolderParams, opts ...ClientOption) (*UpdateFolderOK, error)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	CreateFolder(body *models.CreateFolderCommand, opts ...ClientOption) (*CreateFolderOK, error)
	CreateFolderWithParams(params *CreateFolderParams, opts ...ClientOption) (*CreateFolderOK, error)

	DeleteFolder(params *DeleteFolderParams, opts ...ClientOption) (*DeleteFolderOK, error)

	GetFolderByID(folderID int64, opts ...ClientOption) (*GetFolderByIDOK, error)
	GetFolderByIDWithParams(params *GetFolderByIDParams, opts ...ClientOption) (*GetFolderByIDOK, error)

	GetFolderByUID(folderUID string, opts ...ClientOption) (*GetFolderByUIDOK, error)
	GetFolderByUIDWithParams(params *GetFolderByUIDParams, opts ...ClientOption) (*GetFolderByUIDOK, error)

	GetFolderDescendantCounts(folderUID string, opts ...ClientOption) (*GetFolderDescendantCountsOK, error)
	GetFolderDescendantCountsWithParams(params *GetFolderDescendantCountsParams, opts ...ClientOption) (*GetFolderDescendantCountsOK, error)

	GetFolders(params *GetFoldersParams, opts ...ClientOption) (*GetFoldersOK, error)

	MoveFolder(folderUID string, body *models.MoveFolderCommand, opts ...ClientOption) (*MoveFolderOK, error)
	MoveFolderWithParams(params *MoveFolderParams, opts ...ClientOption) (*MoveFolderOK, error)

	UpdateFolder(folderUID string, body *models.UpdateFolderCommand, opts ...ClientOption) (*UpdateFolderOK, error)
	UpdateFolderWithParams(params *UpdateFolderParams, 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) Code

func (o *CreateFolderBadRequest) Code() int

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

func (*CreateFolderBadRequest) Error

func (o *CreateFolderBadRequest) Error() string

func (*CreateFolderBadRequest) GetPayload

func (*CreateFolderBadRequest) IsClientError

func (o *CreateFolderBadRequest) IsClientError() bool

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

func (*CreateFolderBadRequest) IsCode

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

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

func (*CreateFolderBadRequest) IsRedirect

func (o *CreateFolderBadRequest) IsRedirect() bool

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

func (*CreateFolderBadRequest) IsServerError

func (o *CreateFolderBadRequest) IsServerError() bool

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

func (*CreateFolderBadRequest) IsSuccess

func (o *CreateFolderBadRequest) IsSuccess() bool

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

func (*CreateFolderBadRequest) String

func (o *CreateFolderBadRequest) String() string

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) Code

func (o *CreateFolderConflict) Code() int

Code gets the status code for the create folder conflict response

func (*CreateFolderConflict) Error

func (o *CreateFolderConflict) Error() string

func (*CreateFolderConflict) GetPayload

func (*CreateFolderConflict) IsClientError

func (o *CreateFolderConflict) IsClientError() bool

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

func (*CreateFolderConflict) IsCode

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

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

func (*CreateFolderConflict) IsRedirect

func (o *CreateFolderConflict) IsRedirect() bool

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

func (*CreateFolderConflict) IsServerError

func (o *CreateFolderConflict) IsServerError() bool

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

func (*CreateFolderConflict) IsSuccess

func (o *CreateFolderConflict) IsSuccess() bool

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

func (*CreateFolderConflict) String

func (o *CreateFolderConflict) String() string

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) Code

func (o *CreateFolderForbidden) Code() int

Code gets the status code for the create folder forbidden response

func (*CreateFolderForbidden) Error

func (o *CreateFolderForbidden) Error() string

func (*CreateFolderForbidden) GetPayload

func (*CreateFolderForbidden) IsClientError

func (o *CreateFolderForbidden) IsClientError() bool

IsClientError returns true when this create folder forbidden response has a 4xx status code

func (*CreateFolderForbidden) IsCode

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

IsCode returns true when this create folder forbidden response a status code equal to that given

func (*CreateFolderForbidden) IsRedirect

func (o *CreateFolderForbidden) IsRedirect() bool

IsRedirect returns true when this create folder forbidden response has a 3xx status code

func (*CreateFolderForbidden) IsServerError

func (o *CreateFolderForbidden) IsServerError() bool

IsServerError returns true when this create folder forbidden response has a 5xx status code

func (*CreateFolderForbidden) IsSuccess

func (o *CreateFolderForbidden) IsSuccess() bool

IsSuccess returns true when this create folder forbidden response has a 2xx status code

func (*CreateFolderForbidden) String

func (o *CreateFolderForbidden) String() string

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) Code

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

func (*CreateFolderInternalServerError) Error

func (*CreateFolderInternalServerError) GetPayload

func (*CreateFolderInternalServerError) IsClientError

func (o *CreateFolderInternalServerError) IsClientError() bool

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

func (*CreateFolderInternalServerError) IsCode

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

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

func (*CreateFolderInternalServerError) IsRedirect

func (o *CreateFolderInternalServerError) IsRedirect() bool

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

func (*CreateFolderInternalServerError) IsServerError

func (o *CreateFolderInternalServerError) IsServerError() bool

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

func (*CreateFolderInternalServerError) IsSuccess

func (o *CreateFolderInternalServerError) IsSuccess() bool

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

func (*CreateFolderInternalServerError) String

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) Code

func (o *CreateFolderOK) Code() int

Code gets the status code for the create folder Ok response

func (*CreateFolderOK) Error

func (o *CreateFolderOK) Error() string

func (*CreateFolderOK) GetPayload

func (o *CreateFolderOK) GetPayload() *models.Folder

func (*CreateFolderOK) IsClientError

func (o *CreateFolderOK) IsClientError() bool

IsClientError returns true when this create folder Ok response has a 4xx status code

func (*CreateFolderOK) IsCode

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

IsCode returns true when this create folder Ok response a status code equal to that given

func (*CreateFolderOK) IsRedirect

func (o *CreateFolderOK) IsRedirect() bool

IsRedirect returns true when this create folder Ok response has a 3xx status code

func (*CreateFolderOK) IsServerError

func (o *CreateFolderOK) IsServerError() bool

IsServerError returns true when this create folder Ok response has a 5xx status code

func (*CreateFolderOK) IsSuccess

func (o *CreateFolderOK) IsSuccess() bool

IsSuccess returns true when this create folder Ok response has a 2xx status code

func (*CreateFolderOK) String

func (o *CreateFolderOK) String() string

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) Code

func (o *CreateFolderUnauthorized) Code() int

Code gets the status code for the create folder unauthorized response

func (*CreateFolderUnauthorized) Error

func (o *CreateFolderUnauthorized) Error() string

func (*CreateFolderUnauthorized) GetPayload

func (*CreateFolderUnauthorized) IsClientError

func (o *CreateFolderUnauthorized) IsClientError() bool

IsClientError returns true when this create folder unauthorized response has a 4xx status code

func (*CreateFolderUnauthorized) IsCode

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

IsCode returns true when this create folder unauthorized response a status code equal to that given

func (*CreateFolderUnauthorized) IsRedirect

func (o *CreateFolderUnauthorized) IsRedirect() bool

IsRedirect returns true when this create folder unauthorized response has a 3xx status code

func (*CreateFolderUnauthorized) IsServerError

func (o *CreateFolderUnauthorized) IsServerError() bool

IsServerError returns true when this create folder unauthorized response has a 5xx status code

func (*CreateFolderUnauthorized) IsSuccess

func (o *CreateFolderUnauthorized) IsSuccess() bool

IsSuccess returns true when this create folder unauthorized response has a 2xx status code

func (*CreateFolderUnauthorized) String

func (o *CreateFolderUnauthorized) String() string

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) Code

func (o *DeleteFolderBadRequest) Code() int

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

func (*DeleteFolderBadRequest) Error

func (o *DeleteFolderBadRequest) Error() string

func (*DeleteFolderBadRequest) GetPayload

func (*DeleteFolderBadRequest) IsClientError

func (o *DeleteFolderBadRequest) IsClientError() bool

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

func (*DeleteFolderBadRequest) IsCode

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

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

func (*DeleteFolderBadRequest) IsRedirect

func (o *DeleteFolderBadRequest) IsRedirect() bool

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

func (*DeleteFolderBadRequest) IsServerError

func (o *DeleteFolderBadRequest) IsServerError() bool

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

func (*DeleteFolderBadRequest) IsSuccess

func (o *DeleteFolderBadRequest) IsSuccess() bool

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

func (*DeleteFolderBadRequest) String

func (o *DeleteFolderBadRequest) String() string

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) Code

func (o *DeleteFolderForbidden) Code() int

Code gets the status code for the delete folder forbidden response

func (*DeleteFolderForbidden) Error

func (o *DeleteFolderForbidden) Error() string

func (*DeleteFolderForbidden) GetPayload

func (*DeleteFolderForbidden) IsClientError

func (o *DeleteFolderForbidden) IsClientError() bool

IsClientError returns true when this delete folder forbidden response has a 4xx status code

func (*DeleteFolderForbidden) IsCode

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

IsCode returns true when this delete folder forbidden response a status code equal to that given

func (*DeleteFolderForbidden) IsRedirect

func (o *DeleteFolderForbidden) IsRedirect() bool

IsRedirect returns true when this delete folder forbidden response has a 3xx status code

func (*DeleteFolderForbidden) IsServerError

func (o *DeleteFolderForbidden) IsServerError() bool

IsServerError returns true when this delete folder forbidden response has a 5xx status code

func (*DeleteFolderForbidden) IsSuccess

func (o *DeleteFolderForbidden) IsSuccess() bool

IsSuccess returns true when this delete folder forbidden response has a 2xx status code

func (*DeleteFolderForbidden) String

func (o *DeleteFolderForbidden) String() string

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) Code

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

func (*DeleteFolderInternalServerError) Error

func (*DeleteFolderInternalServerError) GetPayload

func (*DeleteFolderInternalServerError) IsClientError

func (o *DeleteFolderInternalServerError) IsClientError() bool

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

func (*DeleteFolderInternalServerError) IsCode

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

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

func (*DeleteFolderInternalServerError) IsRedirect

func (o *DeleteFolderInternalServerError) IsRedirect() bool

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

func (*DeleteFolderInternalServerError) IsServerError

func (o *DeleteFolderInternalServerError) IsServerError() bool

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

func (*DeleteFolderInternalServerError) IsSuccess

func (o *DeleteFolderInternalServerError) IsSuccess() bool

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

func (*DeleteFolderInternalServerError) String

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) Code

func (o *DeleteFolderNotFound) Code() int

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

func (*DeleteFolderNotFound) Error

func (o *DeleteFolderNotFound) Error() string

func (*DeleteFolderNotFound) GetPayload

func (*DeleteFolderNotFound) IsClientError

func (o *DeleteFolderNotFound) IsClientError() bool

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

func (*DeleteFolderNotFound) IsCode

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

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

func (*DeleteFolderNotFound) IsRedirect

func (o *DeleteFolderNotFound) IsRedirect() bool

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

func (*DeleteFolderNotFound) IsServerError

func (o *DeleteFolderNotFound) IsServerError() bool

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

func (*DeleteFolderNotFound) IsSuccess

func (o *DeleteFolderNotFound) IsSuccess() bool

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

func (*DeleteFolderNotFound) String

func (o *DeleteFolderNotFound) String() string

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) Code

func (o *DeleteFolderOK) Code() int

Code gets the status code for the delete folder Ok response

func (*DeleteFolderOK) Error

func (o *DeleteFolderOK) Error() string

func (*DeleteFolderOK) GetPayload

func (o *DeleteFolderOK) GetPayload() *models.DeleteFolderOKBody

func (*DeleteFolderOK) IsClientError

func (o *DeleteFolderOK) IsClientError() bool

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

func (*DeleteFolderOK) IsCode

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

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

func (*DeleteFolderOK) IsRedirect

func (o *DeleteFolderOK) IsRedirect() bool

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

func (*DeleteFolderOK) IsServerError

func (o *DeleteFolderOK) IsServerError() bool

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

func (*DeleteFolderOK) IsSuccess

func (o *DeleteFolderOK) IsSuccess() bool

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

func (*DeleteFolderOK) String

func (o *DeleteFolderOK) String() string

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) Code

func (o *DeleteFolderUnauthorized) Code() int

Code gets the status code for the delete folder unauthorized response

func (*DeleteFolderUnauthorized) Error

func (o *DeleteFolderUnauthorized) Error() string

func (*DeleteFolderUnauthorized) GetPayload

func (*DeleteFolderUnauthorized) IsClientError

func (o *DeleteFolderUnauthorized) IsClientError() bool

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

func (*DeleteFolderUnauthorized) IsCode

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

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

func (*DeleteFolderUnauthorized) IsRedirect

func (o *DeleteFolderUnauthorized) IsRedirect() bool

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

func (*DeleteFolderUnauthorized) IsServerError

func (o *DeleteFolderUnauthorized) IsServerError() bool

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

func (*DeleteFolderUnauthorized) IsSuccess

func (o *DeleteFolderUnauthorized) IsSuccess() bool

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

func (*DeleteFolderUnauthorized) String

func (o *DeleteFolderUnauthorized) String() string

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) Code

func (o *GetFolderByIDForbidden) Code() int

Code gets the status code for the get folder by Id forbidden response

func (*GetFolderByIDForbidden) Error

func (o *GetFolderByIDForbidden) Error() string

func (*GetFolderByIDForbidden) GetPayload

func (*GetFolderByIDForbidden) IsClientError

func (o *GetFolderByIDForbidden) IsClientError() bool

IsClientError returns true when this get folder by Id forbidden response has a 4xx status code

func (*GetFolderByIDForbidden) IsCode

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

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

func (*GetFolderByIDForbidden) IsRedirect

func (o *GetFolderByIDForbidden) IsRedirect() bool

IsRedirect returns true when this get folder by Id forbidden response has a 3xx status code

func (*GetFolderByIDForbidden) IsServerError

func (o *GetFolderByIDForbidden) IsServerError() bool

IsServerError returns true when this get folder by Id forbidden response has a 5xx status code

func (*GetFolderByIDForbidden) IsSuccess

func (o *GetFolderByIDForbidden) IsSuccess() bool

IsSuccess returns true when this get folder by Id forbidden response has a 2xx status code

func (*GetFolderByIDForbidden) String

func (o *GetFolderByIDForbidden) String() string

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) Code

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

func (*GetFolderByIDInternalServerError) Error

func (*GetFolderByIDInternalServerError) GetPayload

func (*GetFolderByIDInternalServerError) IsClientError

func (o *GetFolderByIDInternalServerError) IsClientError() bool

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

func (*GetFolderByIDInternalServerError) IsCode

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

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

func (*GetFolderByIDInternalServerError) IsRedirect

func (o *GetFolderByIDInternalServerError) IsRedirect() bool

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

func (*GetFolderByIDInternalServerError) IsServerError

func (o *GetFolderByIDInternalServerError) IsServerError() bool

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

func (*GetFolderByIDInternalServerError) IsSuccess

func (o *GetFolderByIDInternalServerError) IsSuccess() bool

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

func (*GetFolderByIDInternalServerError) String

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) Code

func (o *GetFolderByIDNotFound) Code() int

Code gets the status code for the get folder by Id not found response

func (*GetFolderByIDNotFound) Error

func (o *GetFolderByIDNotFound) Error() string

func (*GetFolderByIDNotFound) GetPayload

func (*GetFolderByIDNotFound) IsClientError

func (o *GetFolderByIDNotFound) IsClientError() bool

IsClientError returns true when this get folder by Id not found response has a 4xx status code

func (*GetFolderByIDNotFound) IsCode

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

IsCode returns true when this get folder by Id not found response a status code equal to that given

func (*GetFolderByIDNotFound) IsRedirect

func (o *GetFolderByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get folder by Id not found response has a 3xx status code

func (*GetFolderByIDNotFound) IsServerError

func (o *GetFolderByIDNotFound) IsServerError() bool

IsServerError returns true when this get folder by Id not found response has a 5xx status code

func (*GetFolderByIDNotFound) IsSuccess

func (o *GetFolderByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get folder by Id not found response has a 2xx status code

func (*GetFolderByIDNotFound) String

func (o *GetFolderByIDNotFound) String() string

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) Code

func (o *GetFolderByIDOK) Code() int

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

func (*GetFolderByIDOK) Error

func (o *GetFolderByIDOK) Error() string

func (*GetFolderByIDOK) GetPayload

func (o *GetFolderByIDOK) GetPayload() *models.Folder

func (*GetFolderByIDOK) IsClientError

func (o *GetFolderByIDOK) IsClientError() bool

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

func (*GetFolderByIDOK) IsCode

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

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

func (*GetFolderByIDOK) IsRedirect

func (o *GetFolderByIDOK) IsRedirect() bool

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

func (*GetFolderByIDOK) IsServerError

func (o *GetFolderByIDOK) IsServerError() bool

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

func (*GetFolderByIDOK) IsSuccess

func (o *GetFolderByIDOK) IsSuccess() bool

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

func (*GetFolderByIDOK) String

func (o *GetFolderByIDOK) String() string

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) Code

func (o *GetFolderByIDUnauthorized) Code() int

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

func (*GetFolderByIDUnauthorized) Error

func (o *GetFolderByIDUnauthorized) Error() string

func (*GetFolderByIDUnauthorized) GetPayload

func (*GetFolderByIDUnauthorized) IsClientError

func (o *GetFolderByIDUnauthorized) IsClientError() bool

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

func (*GetFolderByIDUnauthorized) IsCode

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

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

func (*GetFolderByIDUnauthorized) IsRedirect

func (o *GetFolderByIDUnauthorized) IsRedirect() bool

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

func (*GetFolderByIDUnauthorized) IsServerError

func (o *GetFolderByIDUnauthorized) IsServerError() bool

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

func (*GetFolderByIDUnauthorized) IsSuccess

func (o *GetFolderByIDUnauthorized) IsSuccess() bool

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

func (*GetFolderByIDUnauthorized) String

func (o *GetFolderByIDUnauthorized) String() string

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) Code

func (o *GetFolderByUIDForbidden) Code() int

Code gets the status code for the get folder by Uid forbidden response

func (*GetFolderByUIDForbidden) Error

func (o *GetFolderByUIDForbidden) Error() string

func (*GetFolderByUIDForbidden) GetPayload

func (*GetFolderByUIDForbidden) IsClientError

func (o *GetFolderByUIDForbidden) IsClientError() bool

IsClientError returns true when this get folder by Uid forbidden response has a 4xx status code

func (*GetFolderByUIDForbidden) IsCode

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

IsCode returns true when this get folder by Uid forbidden response a status code equal to that given

func (*GetFolderByUIDForbidden) IsRedirect

func (o *GetFolderByUIDForbidden) IsRedirect() bool

IsRedirect returns true when this get folder by Uid forbidden response has a 3xx status code

func (*GetFolderByUIDForbidden) IsServerError

func (o *GetFolderByUIDForbidden) IsServerError() bool

IsServerError returns true when this get folder by Uid forbidden response has a 5xx status code

func (*GetFolderByUIDForbidden) IsSuccess

func (o *GetFolderByUIDForbidden) IsSuccess() bool

IsSuccess returns true when this get folder by Uid forbidden response has a 2xx status code

func (*GetFolderByUIDForbidden) String

func (o *GetFolderByUIDForbidden) String() string

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) Code

Code gets the status code for the get folder by Uid internal server error response

func (*GetFolderByUIDInternalServerError) Error

func (*GetFolderByUIDInternalServerError) GetPayload

func (*GetFolderByUIDInternalServerError) IsClientError

func (o *GetFolderByUIDInternalServerError) IsClientError() bool

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

func (*GetFolderByUIDInternalServerError) IsCode

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

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

func (*GetFolderByUIDInternalServerError) IsRedirect

func (o *GetFolderByUIDInternalServerError) IsRedirect() bool

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

func (*GetFolderByUIDInternalServerError) IsServerError

func (o *GetFolderByUIDInternalServerError) IsServerError() bool

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

func (*GetFolderByUIDInternalServerError) IsSuccess

func (o *GetFolderByUIDInternalServerError) IsSuccess() bool

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

func (*GetFolderByUIDInternalServerError) String

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) Code

func (o *GetFolderByUIDNotFound) Code() int

Code gets the status code for the get folder by Uid not found response

func (*GetFolderByUIDNotFound) Error

func (o *GetFolderByUIDNotFound) Error() string

func (*GetFolderByUIDNotFound) GetPayload

func (*GetFolderByUIDNotFound) IsClientError

func (o *GetFolderByUIDNotFound) IsClientError() bool

IsClientError returns true when this get folder by Uid not found response has a 4xx status code

func (*GetFolderByUIDNotFound) IsCode

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

IsCode returns true when this get folder by Uid not found response a status code equal to that given

func (*GetFolderByUIDNotFound) IsRedirect

func (o *GetFolderByUIDNotFound) IsRedirect() bool

IsRedirect returns true when this get folder by Uid not found response has a 3xx status code

func (*GetFolderByUIDNotFound) IsServerError

func (o *GetFolderByUIDNotFound) IsServerError() bool

IsServerError returns true when this get folder by Uid not found response has a 5xx status code

func (*GetFolderByUIDNotFound) IsSuccess

func (o *GetFolderByUIDNotFound) IsSuccess() bool

IsSuccess returns true when this get folder by Uid not found response has a 2xx status code

func (*GetFolderByUIDNotFound) String

func (o *GetFolderByUIDNotFound) String() string

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) Code

func (o *GetFolderByUIDOK) Code() int

Code gets the status code for the get folder by Uid Ok response

func (*GetFolderByUIDOK) Error

func (o *GetFolderByUIDOK) Error() string

func (*GetFolderByUIDOK) GetPayload

func (o *GetFolderByUIDOK) GetPayload() *models.Folder

func (*GetFolderByUIDOK) IsClientError

func (o *GetFolderByUIDOK) IsClientError() bool

IsClientError returns true when this get folder by Uid Ok response has a 4xx status code

func (*GetFolderByUIDOK) IsCode

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

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

func (*GetFolderByUIDOK) IsRedirect

func (o *GetFolderByUIDOK) IsRedirect() bool

IsRedirect returns true when this get folder by Uid Ok response has a 3xx status code

func (*GetFolderByUIDOK) IsServerError

func (o *GetFolderByUIDOK) IsServerError() bool

IsServerError returns true when this get folder by Uid Ok response has a 5xx status code

func (*GetFolderByUIDOK) IsSuccess

func (o *GetFolderByUIDOK) IsSuccess() bool

IsSuccess returns true when this get folder by Uid Ok response has a 2xx status code

func (*GetFolderByUIDOK) String

func (o *GetFolderByUIDOK) String() string

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) Code

func (o *GetFolderByUIDUnauthorized) Code() int

Code gets the status code for the get folder by Uid unauthorized response

func (*GetFolderByUIDUnauthorized) Error

func (*GetFolderByUIDUnauthorized) GetPayload

func (*GetFolderByUIDUnauthorized) IsClientError

func (o *GetFolderByUIDUnauthorized) IsClientError() bool

IsClientError returns true when this get folder by Uid unauthorized response has a 4xx status code

func (*GetFolderByUIDUnauthorized) IsCode

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

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

func (*GetFolderByUIDUnauthorized) IsRedirect

func (o *GetFolderByUIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this get folder by Uid unauthorized response has a 3xx status code

func (*GetFolderByUIDUnauthorized) IsServerError

func (o *GetFolderByUIDUnauthorized) IsServerError() bool

IsServerError returns true when this get folder by Uid unauthorized response has a 5xx status code

func (*GetFolderByUIDUnauthorized) IsSuccess

func (o *GetFolderByUIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this get folder by Uid unauthorized response has a 2xx status code

func (*GetFolderByUIDUnauthorized) String

func (o *GetFolderByUIDUnauthorized) String() string

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) Code

Code gets the status code for the get folder descendant counts forbidden response

func (*GetFolderDescendantCountsForbidden) Error

func (*GetFolderDescendantCountsForbidden) GetPayload

func (*GetFolderDescendantCountsForbidden) IsClientError

func (o *GetFolderDescendantCountsForbidden) IsClientError() bool

IsClientError returns true when this get folder descendant counts forbidden response has a 4xx status code

func (*GetFolderDescendantCountsForbidden) IsCode

IsCode returns true when this get folder descendant counts forbidden response a status code equal to that given

func (*GetFolderDescendantCountsForbidden) IsRedirect

func (o *GetFolderDescendantCountsForbidden) IsRedirect() bool

IsRedirect returns true when this get folder descendant counts forbidden response has a 3xx status code

func (*GetFolderDescendantCountsForbidden) IsServerError

func (o *GetFolderDescendantCountsForbidden) IsServerError() bool

IsServerError returns true when this get folder descendant counts forbidden response has a 5xx status code

func (*GetFolderDescendantCountsForbidden) IsSuccess

IsSuccess returns true when this get folder descendant counts forbidden response has a 2xx status code

func (*GetFolderDescendantCountsForbidden) String

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) Code

Code gets the status code for the get folder descendant counts internal server error response

func (*GetFolderDescendantCountsInternalServerError) Error

func (*GetFolderDescendantCountsInternalServerError) GetPayload

func (*GetFolderDescendantCountsInternalServerError) IsClientError

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

func (*GetFolderDescendantCountsInternalServerError) IsCode

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

func (*GetFolderDescendantCountsInternalServerError) IsRedirect

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

func (*GetFolderDescendantCountsInternalServerError) IsServerError

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

func (*GetFolderDescendantCountsInternalServerError) IsSuccess

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

func (*GetFolderDescendantCountsInternalServerError) String

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) Code

Code gets the status code for the get folder descendant counts not found response

func (*GetFolderDescendantCountsNotFound) Error

func (*GetFolderDescendantCountsNotFound) GetPayload

func (*GetFolderDescendantCountsNotFound) IsClientError

func (o *GetFolderDescendantCountsNotFound) IsClientError() bool

IsClientError returns true when this get folder descendant counts not found response has a 4xx status code

func (*GetFolderDescendantCountsNotFound) IsCode

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

IsCode returns true when this get folder descendant counts not found response a status code equal to that given

func (*GetFolderDescendantCountsNotFound) IsRedirect

func (o *GetFolderDescendantCountsNotFound) IsRedirect() bool

IsRedirect returns true when this get folder descendant counts not found response has a 3xx status code

func (*GetFolderDescendantCountsNotFound) IsServerError

func (o *GetFolderDescendantCountsNotFound) IsServerError() bool

IsServerError returns true when this get folder descendant counts not found response has a 5xx status code

func (*GetFolderDescendantCountsNotFound) IsSuccess

func (o *GetFolderDescendantCountsNotFound) IsSuccess() bool

IsSuccess returns true when this get folder descendant counts not found response has a 2xx status code

func (*GetFolderDescendantCountsNotFound) String

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) Code

func (o *GetFolderDescendantCountsOK) Code() int

Code gets the status code for the get folder descendant counts Ok response

func (*GetFolderDescendantCountsOK) Error

func (*GetFolderDescendantCountsOK) GetPayload

func (*GetFolderDescendantCountsOK) IsClientError

func (o *GetFolderDescendantCountsOK) IsClientError() bool

IsClientError returns true when this get folder descendant counts Ok response has a 4xx status code

func (*GetFolderDescendantCountsOK) IsCode

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

IsCode returns true when this get folder descendant counts Ok response a status code equal to that given

func (*GetFolderDescendantCountsOK) IsRedirect

func (o *GetFolderDescendantCountsOK) IsRedirect() bool

IsRedirect returns true when this get folder descendant counts Ok response has a 3xx status code

func (*GetFolderDescendantCountsOK) IsServerError

func (o *GetFolderDescendantCountsOK) IsServerError() bool

IsServerError returns true when this get folder descendant counts Ok response has a 5xx status code

func (*GetFolderDescendantCountsOK) IsSuccess

func (o *GetFolderDescendantCountsOK) IsSuccess() bool

IsSuccess returns true when this get folder descendant counts Ok response has a 2xx status code

func (*GetFolderDescendantCountsOK) String

func (o *GetFolderDescendantCountsOK) String() string

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) Code

Code gets the status code for the get folder descendant counts unauthorized response

func (*GetFolderDescendantCountsUnauthorized) Error

func (*GetFolderDescendantCountsUnauthorized) GetPayload

func (*GetFolderDescendantCountsUnauthorized) IsClientError

func (o *GetFolderDescendantCountsUnauthorized) IsClientError() bool

IsClientError returns true when this get folder descendant counts unauthorized response has a 4xx status code

func (*GetFolderDescendantCountsUnauthorized) IsCode

IsCode returns true when this get folder descendant counts unauthorized response a status code equal to that given

func (*GetFolderDescendantCountsUnauthorized) IsRedirect

IsRedirect returns true when this get folder descendant counts unauthorized response has a 3xx status code

func (*GetFolderDescendantCountsUnauthorized) IsServerError

func (o *GetFolderDescendantCountsUnauthorized) IsServerError() bool

IsServerError returns true when this get folder descendant counts unauthorized response has a 5xx status code

func (*GetFolderDescendantCountsUnauthorized) IsSuccess

IsSuccess returns true when this get folder descendant counts unauthorized response has a 2xx status code

func (*GetFolderDescendantCountsUnauthorized) String

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) Code

func (o *GetFoldersForbidden) Code() int

Code gets the status code for the get folders forbidden response

func (*GetFoldersForbidden) Error

func (o *GetFoldersForbidden) Error() string

func (*GetFoldersForbidden) GetPayload

func (o *GetFoldersForbidden) GetPayload() *models.ErrorResponseBody

func (*GetFoldersForbidden) IsClientError

func (o *GetFoldersForbidden) IsClientError() bool

IsClientError returns true when this get folders forbidden response has a 4xx status code

func (*GetFoldersForbidden) IsCode

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

IsCode returns true when this get folders forbidden response a status code equal to that given

func (*GetFoldersForbidden) IsRedirect

func (o *GetFoldersForbidden) IsRedirect() bool

IsRedirect returns true when this get folders forbidden response has a 3xx status code

func (*GetFoldersForbidden) IsServerError

func (o *GetFoldersForbidden) IsServerError() bool

IsServerError returns true when this get folders forbidden response has a 5xx status code

func (*GetFoldersForbidden) IsSuccess

func (o *GetFoldersForbidden) IsSuccess() bool

IsSuccess returns true when this get folders forbidden response has a 2xx status code

func (*GetFoldersForbidden) String

func (o *GetFoldersForbidden) String() string

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) Code

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

func (*GetFoldersInternalServerError) Error

func (*GetFoldersInternalServerError) GetPayload

func (*GetFoldersInternalServerError) IsClientError

func (o *GetFoldersInternalServerError) IsClientError() bool

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

func (*GetFoldersInternalServerError) IsCode

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

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

func (*GetFoldersInternalServerError) IsRedirect

func (o *GetFoldersInternalServerError) IsRedirect() bool

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

func (*GetFoldersInternalServerError) IsServerError

func (o *GetFoldersInternalServerError) IsServerError() bool

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

func (*GetFoldersInternalServerError) IsSuccess

func (o *GetFoldersInternalServerError) IsSuccess() bool

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

func (*GetFoldersInternalServerError) String

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) Code

func (o *GetFoldersOK) Code() int

Code gets the status code for the get folders Ok response

func (*GetFoldersOK) Error

func (o *GetFoldersOK) Error() string

func (*GetFoldersOK) GetPayload

func (o *GetFoldersOK) GetPayload() []*models.FolderSearchHit

func (*GetFoldersOK) IsClientError

func (o *GetFoldersOK) IsClientError() bool

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

func (*GetFoldersOK) IsCode

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

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

func (*GetFoldersOK) IsRedirect

func (o *GetFoldersOK) IsRedirect() bool

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

func (*GetFoldersOK) IsServerError

func (o *GetFoldersOK) IsServerError() bool

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

func (*GetFoldersOK) IsSuccess

func (o *GetFoldersOK) IsSuccess() bool

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

func (*GetFoldersOK) String

func (o *GetFoldersOK) String() string

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

	/* Permission.

	   Set to `Edit` to return folders that the user can edit

	   Default: "View"
	*/
	Permission *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) SetPermission

func (o *GetFoldersParams) SetPermission(permission *string)

SetPermission adds the permission 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) WithPermission

func (o *GetFoldersParams) WithPermission(permission *string) *GetFoldersParams

WithPermission adds the permission 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) Code

func (o *GetFoldersUnauthorized) Code() int

Code gets the status code for the get folders unauthorized response

func (*GetFoldersUnauthorized) Error

func (o *GetFoldersUnauthorized) Error() string

func (*GetFoldersUnauthorized) GetPayload

func (*GetFoldersUnauthorized) IsClientError

func (o *GetFoldersUnauthorized) IsClientError() bool

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

func (*GetFoldersUnauthorized) IsCode

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

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

func (*GetFoldersUnauthorized) IsRedirect

func (o *GetFoldersUnauthorized) IsRedirect() bool

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

func (*GetFoldersUnauthorized) IsServerError

func (o *GetFoldersUnauthorized) IsServerError() bool

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

func (*GetFoldersUnauthorized) IsSuccess

func (o *GetFoldersUnauthorized) IsSuccess() bool

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

func (*GetFoldersUnauthorized) String

func (o *GetFoldersUnauthorized) String() string

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) Code

func (o *MoveFolderForbidden) Code() int

Code gets the status code for the move folder forbidden response

func (*MoveFolderForbidden) Error

func (o *MoveFolderForbidden) Error() string

func (*MoveFolderForbidden) GetPayload

func (o *MoveFolderForbidden) GetPayload() *models.ErrorResponseBody

func (*MoveFolderForbidden) IsClientError

func (o *MoveFolderForbidden) IsClientError() bool

IsClientError returns true when this move folder forbidden response has a 4xx status code

func (*MoveFolderForbidden) IsCode

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

IsCode returns true when this move folder forbidden response a status code equal to that given

func (*MoveFolderForbidden) IsRedirect

func (o *MoveFolderForbidden) IsRedirect() bool

IsRedirect returns true when this move folder forbidden response has a 3xx status code

func (*MoveFolderForbidden) IsServerError

func (o *MoveFolderForbidden) IsServerError() bool

IsServerError returns true when this move folder forbidden response has a 5xx status code

func (*MoveFolderForbidden) IsSuccess

func (o *MoveFolderForbidden) IsSuccess() bool

IsSuccess returns true when this move folder forbidden response has a 2xx status code

func (*MoveFolderForbidden) String

func (o *MoveFolderForbidden) String() string

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) Code

Code gets the status code for the move folder internal server error response

func (*MoveFolderInternalServerError) Error

func (*MoveFolderInternalServerError) GetPayload

func (*MoveFolderInternalServerError) IsClientError

func (o *MoveFolderInternalServerError) IsClientError() bool

IsClientError returns true when this move folder internal server error response has a 4xx status code

func (*MoveFolderInternalServerError) IsCode

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

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

func (*MoveFolderInternalServerError) IsRedirect

func (o *MoveFolderInternalServerError) IsRedirect() bool

IsRedirect returns true when this move folder internal server error response has a 3xx status code

func (*MoveFolderInternalServerError) IsServerError

func (o *MoveFolderInternalServerError) IsServerError() bool

IsServerError returns true when this move folder internal server error response has a 5xx status code

func (*MoveFolderInternalServerError) IsSuccess

func (o *MoveFolderInternalServerError) IsSuccess() bool

IsSuccess returns true when this move folder internal server error response has a 2xx status code

func (*MoveFolderInternalServerError) String

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) Code

func (o *MoveFolderNotFound) Code() int

Code gets the status code for the move folder not found response

func (*MoveFolderNotFound) Error

func (o *MoveFolderNotFound) Error() string

func (*MoveFolderNotFound) GetPayload

func (o *MoveFolderNotFound) GetPayload() *models.ErrorResponseBody

func (*MoveFolderNotFound) IsClientError

func (o *MoveFolderNotFound) IsClientError() bool

IsClientError returns true when this move folder not found response has a 4xx status code

func (*MoveFolderNotFound) IsCode

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

IsCode returns true when this move folder not found response a status code equal to that given

func (*MoveFolderNotFound) IsRedirect

func (o *MoveFolderNotFound) IsRedirect() bool

IsRedirect returns true when this move folder not found response has a 3xx status code

func (*MoveFolderNotFound) IsServerError

func (o *MoveFolderNotFound) IsServerError() bool

IsServerError returns true when this move folder not found response has a 5xx status code

func (*MoveFolderNotFound) IsSuccess

func (o *MoveFolderNotFound) IsSuccess() bool

IsSuccess returns true when this move folder not found response has a 2xx status code

func (*MoveFolderNotFound) String

func (o *MoveFolderNotFound) String() string

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) Code

func (o *MoveFolderOK) Code() int

Code gets the status code for the move folder Ok response

func (*MoveFolderOK) Error

func (o *MoveFolderOK) Error() string

func (*MoveFolderOK) GetPayload

func (o *MoveFolderOK) GetPayload() *models.Folder

func (*MoveFolderOK) IsClientError

func (o *MoveFolderOK) IsClientError() bool

IsClientError returns true when this move folder Ok response has a 4xx status code

func (*MoveFolderOK) IsCode

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

IsCode returns true when this move folder Ok response a status code equal to that given

func (*MoveFolderOK) IsRedirect

func (o *MoveFolderOK) IsRedirect() bool

IsRedirect returns true when this move folder Ok response has a 3xx status code

func (*MoveFolderOK) IsServerError

func (o *MoveFolderOK) IsServerError() bool

IsServerError returns true when this move folder Ok response has a 5xx status code

func (*MoveFolderOK) IsSuccess

func (o *MoveFolderOK) IsSuccess() bool

IsSuccess returns true when this move folder Ok response has a 2xx status code

func (*MoveFolderOK) String

func (o *MoveFolderOK) String() string

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) Code

func (o *MoveFolderUnauthorized) Code() int

Code gets the status code for the move folder unauthorized response

func (*MoveFolderUnauthorized) Error

func (o *MoveFolderUnauthorized) Error() string

func (*MoveFolderUnauthorized) GetPayload

func (*MoveFolderUnauthorized) IsClientError

func (o *MoveFolderUnauthorized) IsClientError() bool

IsClientError returns true when this move folder unauthorized response has a 4xx status code

func (*MoveFolderUnauthorized) IsCode

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

IsCode returns true when this move folder unauthorized response a status code equal to that given

func (*MoveFolderUnauthorized) IsRedirect

func (o *MoveFolderUnauthorized) IsRedirect() bool

IsRedirect returns true when this move folder unauthorized response has a 3xx status code

func (*MoveFolderUnauthorized) IsServerError

func (o *MoveFolderUnauthorized) IsServerError() bool

IsServerError returns true when this move folder unauthorized response has a 5xx status code

func (*MoveFolderUnauthorized) IsSuccess

func (o *MoveFolderUnauthorized) IsSuccess() bool

IsSuccess returns true when this move folder unauthorized response has a 2xx status code

func (*MoveFolderUnauthorized) String

func (o *MoveFolderUnauthorized) String() string

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) Code

func (o *UpdateFolderBadRequest) Code() int

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

func (*UpdateFolderBadRequest) Error

func (o *UpdateFolderBadRequest) Error() string

func (*UpdateFolderBadRequest) GetPayload

func (*UpdateFolderBadRequest) IsClientError

func (o *UpdateFolderBadRequest) IsClientError() bool

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

func (*UpdateFolderBadRequest) IsCode

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

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

func (*UpdateFolderBadRequest) IsRedirect

func (o *UpdateFolderBadRequest) IsRedirect() bool

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

func (*UpdateFolderBadRequest) IsServerError

func (o *UpdateFolderBadRequest) IsServerError() bool

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

func (*UpdateFolderBadRequest) IsSuccess

func (o *UpdateFolderBadRequest) IsSuccess() bool

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

func (*UpdateFolderBadRequest) String

func (o *UpdateFolderBadRequest) String() string

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) Code

func (o *UpdateFolderConflict) Code() int

Code gets the status code for the update folder conflict response

func (*UpdateFolderConflict) Error

func (o *UpdateFolderConflict) Error() string

func (*UpdateFolderConflict) GetPayload

func (*UpdateFolderConflict) IsClientError

func (o *UpdateFolderConflict) IsClientError() bool

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

func (*UpdateFolderConflict) IsCode

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

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

func (*UpdateFolderConflict) IsRedirect

func (o *UpdateFolderConflict) IsRedirect() bool

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

func (*UpdateFolderConflict) IsServerError

func (o *UpdateFolderConflict) IsServerError() bool

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

func (*UpdateFolderConflict) IsSuccess

func (o *UpdateFolderConflict) IsSuccess() bool

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

func (*UpdateFolderConflict) String

func (o *UpdateFolderConflict) String() string

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) Code

func (o *UpdateFolderForbidden) Code() int

Code gets the status code for the update folder forbidden response

func (*UpdateFolderForbidden) Error

func (o *UpdateFolderForbidden) Error() string

func (*UpdateFolderForbidden) GetPayload

func (*UpdateFolderForbidden) IsClientError

func (o *UpdateFolderForbidden) IsClientError() bool

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

func (*UpdateFolderForbidden) IsCode

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

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

func (*UpdateFolderForbidden) IsRedirect

func (o *UpdateFolderForbidden) IsRedirect() bool

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

func (*UpdateFolderForbidden) IsServerError

func (o *UpdateFolderForbidden) IsServerError() bool

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

func (*UpdateFolderForbidden) IsSuccess

func (o *UpdateFolderForbidden) IsSuccess() bool

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

func (*UpdateFolderForbidden) String

func (o *UpdateFolderForbidden) String() string

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) Code

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

func (*UpdateFolderInternalServerError) Error

func (*UpdateFolderInternalServerError) GetPayload

func (*UpdateFolderInternalServerError) IsClientError

func (o *UpdateFolderInternalServerError) IsClientError() bool

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

func (*UpdateFolderInternalServerError) IsCode

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

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

func (*UpdateFolderInternalServerError) IsRedirect

func (o *UpdateFolderInternalServerError) IsRedirect() bool

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

func (*UpdateFolderInternalServerError) IsServerError

func (o *UpdateFolderInternalServerError) IsServerError() bool

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

func (*UpdateFolderInternalServerError) IsSuccess

func (o *UpdateFolderInternalServerError) IsSuccess() bool

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

func (*UpdateFolderInternalServerError) String

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) Code

func (o *UpdateFolderNotFound) Code() int

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

func (*UpdateFolderNotFound) Error

func (o *UpdateFolderNotFound) Error() string

func (*UpdateFolderNotFound) GetPayload

func (*UpdateFolderNotFound) IsClientError

func (o *UpdateFolderNotFound) IsClientError() bool

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

func (*UpdateFolderNotFound) IsCode

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

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

func (*UpdateFolderNotFound) IsRedirect

func (o *UpdateFolderNotFound) IsRedirect() bool

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

func (*UpdateFolderNotFound) IsServerError

func (o *UpdateFolderNotFound) IsServerError() bool

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

func (*UpdateFolderNotFound) IsSuccess

func (o *UpdateFolderNotFound) IsSuccess() bool

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

func (*UpdateFolderNotFound) String

func (o *UpdateFolderNotFound) String() string

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) Code

func (o *UpdateFolderOK) Code() int

Code gets the status code for the update folder Ok response

func (*UpdateFolderOK) Error

func (o *UpdateFolderOK) Error() string

func (*UpdateFolderOK) GetPayload

func (o *UpdateFolderOK) GetPayload() *models.Folder

func (*UpdateFolderOK) IsClientError

func (o *UpdateFolderOK) IsClientError() bool

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

func (*UpdateFolderOK) IsCode

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

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

func (*UpdateFolderOK) IsRedirect

func (o *UpdateFolderOK) IsRedirect() bool

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

func (*UpdateFolderOK) IsServerError

func (o *UpdateFolderOK) IsServerError() bool

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

func (*UpdateFolderOK) IsSuccess

func (o *UpdateFolderOK) IsSuccess() bool

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

func (*UpdateFolderOK) String

func (o *UpdateFolderOK) String() string

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) Code

func (o *UpdateFolderUnauthorized) Code() int

Code gets the status code for the update folder unauthorized response

func (*UpdateFolderUnauthorized) Error

func (o *UpdateFolderUnauthorized) Error() string

func (*UpdateFolderUnauthorized) GetPayload

func (*UpdateFolderUnauthorized) IsClientError

func (o *UpdateFolderUnauthorized) IsClientError() bool

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

func (*UpdateFolderUnauthorized) IsCode

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

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

func (*UpdateFolderUnauthorized) IsRedirect

func (o *UpdateFolderUnauthorized) IsRedirect() bool

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

func (*UpdateFolderUnauthorized) IsServerError

func (o *UpdateFolderUnauthorized) IsServerError() bool

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

func (*UpdateFolderUnauthorized) IsSuccess

func (o *UpdateFolderUnauthorized) IsSuccess() bool

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

func (*UpdateFolderUnauthorized) String

func (o *UpdateFolderUnauthorized) String() string

Jump to

Keyboard shortcuts

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