folder_permissions

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for folder permissions API

func (*Client) GetFolderPermissionList

func (a *Client) GetFolderPermissionList(params *GetFolderPermissionListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderPermissionListOK, error)

GetFolderPermissionList gets all existing permissions for the folder with the given uid

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateFolderPermissions

func (a *Client) UpdateFolderPermissions(params *UpdateFolderPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateFolderPermissionsOK, error)

UpdateFolderPermissions updates permissions for a folder this operation will remove existing permissions if they re not included in the request

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetFolderPermissionList(params *GetFolderPermissionListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFolderPermissionListOK, error)

	UpdateFolderPermissions(params *UpdateFolderPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateFolderPermissionsOK, 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 folder permissions API client.

type GetFolderPermissionListForbidden

type GetFolderPermissionListForbidden struct {
	Payload *models.ErrorResponseBody
}

GetFolderPermissionListForbidden 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 NewGetFolderPermissionListForbidden

func NewGetFolderPermissionListForbidden() *GetFolderPermissionListForbidden

NewGetFolderPermissionListForbidden creates a GetFolderPermissionListForbidden with default headers values

func (*GetFolderPermissionListForbidden) Error

func (*GetFolderPermissionListForbidden) GetPayload

type GetFolderPermissionListInternalServerError

type GetFolderPermissionListInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetFolderPermissionListInternalServerError

func NewGetFolderPermissionListInternalServerError() *GetFolderPermissionListInternalServerError

NewGetFolderPermissionListInternalServerError creates a GetFolderPermissionListInternalServerError with default headers values

func (*GetFolderPermissionListInternalServerError) Error

func (*GetFolderPermissionListInternalServerError) GetPayload

type GetFolderPermissionListNotFound

type GetFolderPermissionListNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetFolderPermissionListNotFound

func NewGetFolderPermissionListNotFound() *GetFolderPermissionListNotFound

NewGetFolderPermissionListNotFound creates a GetFolderPermissionListNotFound with default headers values

func (*GetFolderPermissionListNotFound) Error

func (*GetFolderPermissionListNotFound) GetPayload

type GetFolderPermissionListOK

type GetFolderPermissionListOK struct {
	Payload []*models.DashboardACLInfoDTO
}

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

(empty)

func NewGetFolderPermissionListOK

func NewGetFolderPermissionListOK() *GetFolderPermissionListOK

NewGetFolderPermissionListOK creates a GetFolderPermissionListOK with default headers values

func (*GetFolderPermissionListOK) Error

func (o *GetFolderPermissionListOK) Error() string

func (*GetFolderPermissionListOK) GetPayload

type GetFolderPermissionListParams

type GetFolderPermissionListParams struct {

	// FolderUID.
	FolderUID string

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

GetFolderPermissionListParams contains all the parameters to send to the API endpoint

for the get folder permission list operation.

Typically these are written to a http.Request.

func NewGetFolderPermissionListParams

func NewGetFolderPermissionListParams() *GetFolderPermissionListParams

NewGetFolderPermissionListParams creates a new GetFolderPermissionListParams 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 NewGetFolderPermissionListParamsWithContext

func NewGetFolderPermissionListParamsWithContext(ctx context.Context) *GetFolderPermissionListParams

NewGetFolderPermissionListParamsWithContext creates a new GetFolderPermissionListParams object with the ability to set a context for a request.

func NewGetFolderPermissionListParamsWithHTTPClient

func NewGetFolderPermissionListParamsWithHTTPClient(client *http.Client) *GetFolderPermissionListParams

NewGetFolderPermissionListParamsWithHTTPClient creates a new GetFolderPermissionListParams object with the ability to set a custom HTTPClient for a request.

func NewGetFolderPermissionListParamsWithTimeout

func NewGetFolderPermissionListParamsWithTimeout(timeout time.Duration) *GetFolderPermissionListParams

NewGetFolderPermissionListParamsWithTimeout creates a new GetFolderPermissionListParams object with the ability to set a timeout on a request.

func (*GetFolderPermissionListParams) SetContext

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

SetContext adds the context to the get folder permission list params

func (*GetFolderPermissionListParams) SetDefaults

func (o *GetFolderPermissionListParams) SetDefaults()

SetDefaults hydrates default values in the get folder permission list params (not the query body).

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

func (*GetFolderPermissionListParams) SetFolderUID

func (o *GetFolderPermissionListParams) SetFolderUID(folderUID string)

SetFolderUID adds the folderUid to the get folder permission list params

func (*GetFolderPermissionListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get folder permission list params

func (*GetFolderPermissionListParams) SetTimeout

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

SetTimeout adds the timeout to the get folder permission list params

func (*GetFolderPermissionListParams) WithContext

WithContext adds the context to the get folder permission list params

func (*GetFolderPermissionListParams) WithDefaults

WithDefaults hydrates default values in the get folder permission list params (not the query body).

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

func (*GetFolderPermissionListParams) WithFolderUID

WithFolderUID adds the folderUID to the get folder permission list params

func (*GetFolderPermissionListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get folder permission list params

func (*GetFolderPermissionListParams) WithTimeout

WithTimeout adds the timeout to the get folder permission list params

func (*GetFolderPermissionListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFolderPermissionListReader

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

GetFolderPermissionListReader is a Reader for the GetFolderPermissionList structure.

func (*GetFolderPermissionListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFolderPermissionListUnauthorized

type GetFolderPermissionListUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetFolderPermissionListUnauthorized

func NewGetFolderPermissionListUnauthorized() *GetFolderPermissionListUnauthorized

NewGetFolderPermissionListUnauthorized creates a GetFolderPermissionListUnauthorized with default headers values

func (*GetFolderPermissionListUnauthorized) Error

func (*GetFolderPermissionListUnauthorized) GetPayload

type UpdateFolderPermissionsForbidden

type UpdateFolderPermissionsForbidden struct {
	Payload *models.ErrorResponseBody
}

UpdateFolderPermissionsForbidden 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 NewUpdateFolderPermissionsForbidden

func NewUpdateFolderPermissionsForbidden() *UpdateFolderPermissionsForbidden

NewUpdateFolderPermissionsForbidden creates a UpdateFolderPermissionsForbidden with default headers values

func (*UpdateFolderPermissionsForbidden) Error

func (*UpdateFolderPermissionsForbidden) GetPayload

type UpdateFolderPermissionsInternalServerError

type UpdateFolderPermissionsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateFolderPermissionsInternalServerError

func NewUpdateFolderPermissionsInternalServerError() *UpdateFolderPermissionsInternalServerError

NewUpdateFolderPermissionsInternalServerError creates a UpdateFolderPermissionsInternalServerError with default headers values

func (*UpdateFolderPermissionsInternalServerError) Error

func (*UpdateFolderPermissionsInternalServerError) GetPayload

type UpdateFolderPermissionsNotFound

type UpdateFolderPermissionsNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewUpdateFolderPermissionsNotFound

func NewUpdateFolderPermissionsNotFound() *UpdateFolderPermissionsNotFound

NewUpdateFolderPermissionsNotFound creates a UpdateFolderPermissionsNotFound with default headers values

func (*UpdateFolderPermissionsNotFound) Error

func (*UpdateFolderPermissionsNotFound) GetPayload

type UpdateFolderPermissionsOK

type UpdateFolderPermissionsOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewUpdateFolderPermissionsOK

func NewUpdateFolderPermissionsOK() *UpdateFolderPermissionsOK

NewUpdateFolderPermissionsOK creates a UpdateFolderPermissionsOK with default headers values

func (*UpdateFolderPermissionsOK) Error

func (o *UpdateFolderPermissionsOK) Error() string

func (*UpdateFolderPermissionsOK) GetPayload

type UpdateFolderPermissionsParams

type UpdateFolderPermissionsParams struct {

	// Body.
	Body *models.UpdateDashboardACLCommand

	// FolderUID.
	FolderUID string

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

UpdateFolderPermissionsParams contains all the parameters to send to the API endpoint

for the update folder permissions operation.

Typically these are written to a http.Request.

func NewUpdateFolderPermissionsParams

func NewUpdateFolderPermissionsParams() *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParams creates a new UpdateFolderPermissionsParams 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 NewUpdateFolderPermissionsParamsWithContext

func NewUpdateFolderPermissionsParamsWithContext(ctx context.Context) *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParamsWithContext creates a new UpdateFolderPermissionsParams object with the ability to set a context for a request.

func NewUpdateFolderPermissionsParamsWithHTTPClient

func NewUpdateFolderPermissionsParamsWithHTTPClient(client *http.Client) *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParamsWithHTTPClient creates a new UpdateFolderPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateFolderPermissionsParamsWithTimeout

func NewUpdateFolderPermissionsParamsWithTimeout(timeout time.Duration) *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParamsWithTimeout creates a new UpdateFolderPermissionsParams object with the ability to set a timeout on a request.

func (*UpdateFolderPermissionsParams) SetBody

SetBody adds the body to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetContext

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

SetContext adds the context to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetDefaults

func (o *UpdateFolderPermissionsParams) SetDefaults()

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

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

func (*UpdateFolderPermissionsParams) SetFolderUID

func (o *UpdateFolderPermissionsParams) SetFolderUID(folderUID string)

SetFolderUID adds the folderUid to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithBody

WithBody adds the body to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithContext

WithContext adds the context to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithDefaults

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

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

func (*UpdateFolderPermissionsParams) WithFolderUID

WithFolderUID adds the folderUID to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithTimeout

WithTimeout adds the timeout to the update folder permissions params

func (*UpdateFolderPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateFolderPermissionsReader

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

UpdateFolderPermissionsReader is a Reader for the UpdateFolderPermissions structure.

func (*UpdateFolderPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateFolderPermissionsUnauthorized

type UpdateFolderPermissionsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateFolderPermissionsUnauthorized

func NewUpdateFolderPermissionsUnauthorized() *UpdateFolderPermissionsUnauthorized

NewUpdateFolderPermissionsUnauthorized creates a UpdateFolderPermissionsUnauthorized with default headers values

func (*UpdateFolderPermissionsUnauthorized) Error

func (*UpdateFolderPermissionsUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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