Documentation ¶
Index ¶
- type Client
- func (a *Client) GetFolderPermissionList(params *GetFolderPermissionListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetFolderPermissionListOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateFolderPermissions(params *UpdateFolderPermissionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateFolderPermissionsOK, error)
- type ClientOption
- type ClientService
- type GetFolderPermissionListForbidden
- type GetFolderPermissionListInternalServerError
- type GetFolderPermissionListNotFound
- type GetFolderPermissionListOK
- type GetFolderPermissionListParams
- func NewGetFolderPermissionListParams() *GetFolderPermissionListParams
- func NewGetFolderPermissionListParamsWithContext(ctx context.Context) *GetFolderPermissionListParams
- func NewGetFolderPermissionListParamsWithHTTPClient(client *http.Client) *GetFolderPermissionListParams
- func NewGetFolderPermissionListParamsWithTimeout(timeout time.Duration) *GetFolderPermissionListParams
- func (o *GetFolderPermissionListParams) SetContext(ctx context.Context)
- func (o *GetFolderPermissionListParams) SetDefaults()
- func (o *GetFolderPermissionListParams) SetFolderUID(folderUID string)
- func (o *GetFolderPermissionListParams) SetHTTPClient(client *http.Client)
- func (o *GetFolderPermissionListParams) SetTimeout(timeout time.Duration)
- func (o *GetFolderPermissionListParams) WithContext(ctx context.Context) *GetFolderPermissionListParams
- func (o *GetFolderPermissionListParams) WithDefaults() *GetFolderPermissionListParams
- func (o *GetFolderPermissionListParams) WithFolderUID(folderUID string) *GetFolderPermissionListParams
- func (o *GetFolderPermissionListParams) WithHTTPClient(client *http.Client) *GetFolderPermissionListParams
- func (o *GetFolderPermissionListParams) WithTimeout(timeout time.Duration) *GetFolderPermissionListParams
- func (o *GetFolderPermissionListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFolderPermissionListReader
- type GetFolderPermissionListUnauthorized
- type UpdateFolderPermissionsForbidden
- type UpdateFolderPermissionsInternalServerError
- type UpdateFolderPermissionsNotFound
- type UpdateFolderPermissionsOK
- type UpdateFolderPermissionsParams
- func NewUpdateFolderPermissionsParams() *UpdateFolderPermissionsParams
- func NewUpdateFolderPermissionsParamsWithContext(ctx context.Context) *UpdateFolderPermissionsParams
- func NewUpdateFolderPermissionsParamsWithHTTPClient(client *http.Client) *UpdateFolderPermissionsParams
- func NewUpdateFolderPermissionsParamsWithTimeout(timeout time.Duration) *UpdateFolderPermissionsParams
- func (o *UpdateFolderPermissionsParams) SetBody(body *models.UpdateDashboardACLCommand)
- func (o *UpdateFolderPermissionsParams) SetContext(ctx context.Context)
- func (o *UpdateFolderPermissionsParams) SetDefaults()
- func (o *UpdateFolderPermissionsParams) SetFolderUID(folderUID string)
- func (o *UpdateFolderPermissionsParams) SetHTTPClient(client *http.Client)
- func (o *UpdateFolderPermissionsParams) SetTimeout(timeout time.Duration)
- func (o *UpdateFolderPermissionsParams) WithBody(body *models.UpdateDashboardACLCommand) *UpdateFolderPermissionsParams
- func (o *UpdateFolderPermissionsParams) WithContext(ctx context.Context) *UpdateFolderPermissionsParams
- func (o *UpdateFolderPermissionsParams) WithDefaults() *UpdateFolderPermissionsParams
- func (o *UpdateFolderPermissionsParams) WithFolderUID(folderUID string) *UpdateFolderPermissionsParams
- func (o *UpdateFolderPermissionsParams) WithHTTPClient(client *http.Client) *UpdateFolderPermissionsParams
- func (o *UpdateFolderPermissionsParams) WithTimeout(timeout time.Duration) *UpdateFolderPermissionsParams
- func (o *UpdateFolderPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateFolderPermissionsReader
- type UpdateFolderPermissionsUnauthorized
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 (o *GetFolderPermissionListForbidden) Error() string
func (*GetFolderPermissionListForbidden) GetPayload ¶
func (o *GetFolderPermissionListForbidden) GetPayload() *models.ErrorResponseBody
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 (o *GetFolderPermissionListInternalServerError) Error() string
func (*GetFolderPermissionListInternalServerError) GetPayload ¶
func (o *GetFolderPermissionListInternalServerError) GetPayload() *models.ErrorResponseBody
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 (o *GetFolderPermissionListNotFound) Error() string
func (*GetFolderPermissionListNotFound) GetPayload ¶
func (o *GetFolderPermissionListNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetFolderPermissionListOK) GetPayload() []*models.DashboardACLInfoDTO
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 ¶
func (o *GetFolderPermissionListParams) WithContext(ctx context.Context) *GetFolderPermissionListParams
WithContext adds the context to the get folder permission list params
func (*GetFolderPermissionListParams) WithDefaults ¶
func (o *GetFolderPermissionListParams) WithDefaults() *GetFolderPermissionListParams
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 ¶
func (o *GetFolderPermissionListParams) WithFolderUID(folderUID string) *GetFolderPermissionListParams
WithFolderUID adds the folderUID to the get folder permission list params
func (*GetFolderPermissionListParams) WithHTTPClient ¶
func (o *GetFolderPermissionListParams) WithHTTPClient(client *http.Client) *GetFolderPermissionListParams
WithHTTPClient adds the HTTPClient to the get folder permission list params
func (*GetFolderPermissionListParams) WithTimeout ¶
func (o *GetFolderPermissionListParams) WithTimeout(timeout time.Duration) *GetFolderPermissionListParams
WithTimeout adds the timeout to the get folder permission list params
func (*GetFolderPermissionListParams) WriteToRequest ¶
func (o *GetFolderPermissionListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *GetFolderPermissionListUnauthorized) Error() string
func (*GetFolderPermissionListUnauthorized) GetPayload ¶
func (o *GetFolderPermissionListUnauthorized) GetPayload() *models.ErrorResponseBody
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 (o *UpdateFolderPermissionsForbidden) Error() string
func (*UpdateFolderPermissionsForbidden) GetPayload ¶
func (o *UpdateFolderPermissionsForbidden) GetPayload() *models.ErrorResponseBody
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 (o *UpdateFolderPermissionsInternalServerError) Error() string
func (*UpdateFolderPermissionsInternalServerError) GetPayload ¶
func (o *UpdateFolderPermissionsInternalServerError) GetPayload() *models.ErrorResponseBody
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 (o *UpdateFolderPermissionsNotFound) Error() string
func (*UpdateFolderPermissionsNotFound) GetPayload ¶
func (o *UpdateFolderPermissionsNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateFolderPermissionsOK) GetPayload() *models.SuccessResponseBody
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 ¶
func (o *UpdateFolderPermissionsParams) SetBody(body *models.UpdateDashboardACLCommand)
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 ¶
func (o *UpdateFolderPermissionsParams) WithBody(body *models.UpdateDashboardACLCommand) *UpdateFolderPermissionsParams
WithBody adds the body to the update folder permissions params
func (*UpdateFolderPermissionsParams) WithContext ¶
func (o *UpdateFolderPermissionsParams) WithContext(ctx context.Context) *UpdateFolderPermissionsParams
WithContext adds the context to the update folder permissions params
func (*UpdateFolderPermissionsParams) WithDefaults ¶
func (o *UpdateFolderPermissionsParams) WithDefaults() *UpdateFolderPermissionsParams
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 ¶
func (o *UpdateFolderPermissionsParams) WithFolderUID(folderUID string) *UpdateFolderPermissionsParams
WithFolderUID adds the folderUID to the update folder permissions params
func (*UpdateFolderPermissionsParams) WithHTTPClient ¶
func (o *UpdateFolderPermissionsParams) WithHTTPClient(client *http.Client) *UpdateFolderPermissionsParams
WithHTTPClient adds the HTTPClient to the update folder permissions params
func (*UpdateFolderPermissionsParams) WithTimeout ¶
func (o *UpdateFolderPermissionsParams) WithTimeout(timeout time.Duration) *UpdateFolderPermissionsParams
WithTimeout adds the timeout to the update folder permissions params
func (*UpdateFolderPermissionsParams) WriteToRequest ¶
func (o *UpdateFolderPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *UpdateFolderPermissionsUnauthorized) Error() string
func (*UpdateFolderPermissionsUnauthorized) GetPayload ¶
func (o *UpdateFolderPermissionsUnauthorized) GetPayload() *models.ErrorResponseBody