Documentation ¶
Index ¶
- type Client
- func (a *Client) GetFolderPermissionList(folderUID string, opts ...ClientOption) (*GetFolderPermissionListOK, error)
- func (a *Client) GetFolderPermissionListWithParams(params *GetFolderPermissionListParams, opts ...ClientOption) (*GetFolderPermissionListOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateFolderPermissions(folderUID string, body *models.UpdateDashboardACLCommand, opts ...ClientOption) (*UpdateFolderPermissionsOK, error)
- func (a *Client) UpdateFolderPermissionsWithParams(params *UpdateFolderPermissionsParams, opts ...ClientOption) (*UpdateFolderPermissionsOK, error)
- type ClientOption
- type ClientService
- type GetFolderPermissionListForbidden
- func (o *GetFolderPermissionListForbidden) Code() int
- func (o *GetFolderPermissionListForbidden) Error() string
- func (o *GetFolderPermissionListForbidden) GetPayload() *models.ErrorResponseBody
- func (o *GetFolderPermissionListForbidden) IsClientError() bool
- func (o *GetFolderPermissionListForbidden) IsCode(code int) bool
- func (o *GetFolderPermissionListForbidden) IsRedirect() bool
- func (o *GetFolderPermissionListForbidden) IsServerError() bool
- func (o *GetFolderPermissionListForbidden) IsSuccess() bool
- func (o *GetFolderPermissionListForbidden) String() string
- type GetFolderPermissionListInternalServerError
- func (o *GetFolderPermissionListInternalServerError) Code() int
- func (o *GetFolderPermissionListInternalServerError) Error() string
- func (o *GetFolderPermissionListInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetFolderPermissionListInternalServerError) IsClientError() bool
- func (o *GetFolderPermissionListInternalServerError) IsCode(code int) bool
- func (o *GetFolderPermissionListInternalServerError) IsRedirect() bool
- func (o *GetFolderPermissionListInternalServerError) IsServerError() bool
- func (o *GetFolderPermissionListInternalServerError) IsSuccess() bool
- func (o *GetFolderPermissionListInternalServerError) String() string
- type GetFolderPermissionListNotFound
- func (o *GetFolderPermissionListNotFound) Code() int
- func (o *GetFolderPermissionListNotFound) Error() string
- func (o *GetFolderPermissionListNotFound) GetPayload() *models.ErrorResponseBody
- func (o *GetFolderPermissionListNotFound) IsClientError() bool
- func (o *GetFolderPermissionListNotFound) IsCode(code int) bool
- func (o *GetFolderPermissionListNotFound) IsRedirect() bool
- func (o *GetFolderPermissionListNotFound) IsServerError() bool
- func (o *GetFolderPermissionListNotFound) IsSuccess() bool
- func (o *GetFolderPermissionListNotFound) String() string
- type GetFolderPermissionListOK
- func (o *GetFolderPermissionListOK) Code() int
- func (o *GetFolderPermissionListOK) Error() string
- func (o *GetFolderPermissionListOK) GetPayload() []*models.DashboardACLInfoDTO
- func (o *GetFolderPermissionListOK) IsClientError() bool
- func (o *GetFolderPermissionListOK) IsCode(code int) bool
- func (o *GetFolderPermissionListOK) IsRedirect() bool
- func (o *GetFolderPermissionListOK) IsServerError() bool
- func (o *GetFolderPermissionListOK) IsSuccess() bool
- func (o *GetFolderPermissionListOK) String() string
- 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
- func (o *GetFolderPermissionListUnauthorized) Code() int
- func (o *GetFolderPermissionListUnauthorized) Error() string
- func (o *GetFolderPermissionListUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetFolderPermissionListUnauthorized) IsClientError() bool
- func (o *GetFolderPermissionListUnauthorized) IsCode(code int) bool
- func (o *GetFolderPermissionListUnauthorized) IsRedirect() bool
- func (o *GetFolderPermissionListUnauthorized) IsServerError() bool
- func (o *GetFolderPermissionListUnauthorized) IsSuccess() bool
- func (o *GetFolderPermissionListUnauthorized) String() string
- type UpdateFolderPermissionsForbidden
- func (o *UpdateFolderPermissionsForbidden) Code() int
- func (o *UpdateFolderPermissionsForbidden) Error() string
- func (o *UpdateFolderPermissionsForbidden) GetPayload() *models.ErrorResponseBody
- func (o *UpdateFolderPermissionsForbidden) IsClientError() bool
- func (o *UpdateFolderPermissionsForbidden) IsCode(code int) bool
- func (o *UpdateFolderPermissionsForbidden) IsRedirect() bool
- func (o *UpdateFolderPermissionsForbidden) IsServerError() bool
- func (o *UpdateFolderPermissionsForbidden) IsSuccess() bool
- func (o *UpdateFolderPermissionsForbidden) String() string
- type UpdateFolderPermissionsInternalServerError
- func (o *UpdateFolderPermissionsInternalServerError) Code() int
- func (o *UpdateFolderPermissionsInternalServerError) Error() string
- func (o *UpdateFolderPermissionsInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *UpdateFolderPermissionsInternalServerError) IsClientError() bool
- func (o *UpdateFolderPermissionsInternalServerError) IsCode(code int) bool
- func (o *UpdateFolderPermissionsInternalServerError) IsRedirect() bool
- func (o *UpdateFolderPermissionsInternalServerError) IsServerError() bool
- func (o *UpdateFolderPermissionsInternalServerError) IsSuccess() bool
- func (o *UpdateFolderPermissionsInternalServerError) String() string
- type UpdateFolderPermissionsNotFound
- func (o *UpdateFolderPermissionsNotFound) Code() int
- func (o *UpdateFolderPermissionsNotFound) Error() string
- func (o *UpdateFolderPermissionsNotFound) GetPayload() *models.ErrorResponseBody
- func (o *UpdateFolderPermissionsNotFound) IsClientError() bool
- func (o *UpdateFolderPermissionsNotFound) IsCode(code int) bool
- func (o *UpdateFolderPermissionsNotFound) IsRedirect() bool
- func (o *UpdateFolderPermissionsNotFound) IsServerError() bool
- func (o *UpdateFolderPermissionsNotFound) IsSuccess() bool
- func (o *UpdateFolderPermissionsNotFound) String() string
- type UpdateFolderPermissionsOK
- func (o *UpdateFolderPermissionsOK) Code() int
- func (o *UpdateFolderPermissionsOK) Error() string
- func (o *UpdateFolderPermissionsOK) GetPayload() *models.SuccessResponseBody
- func (o *UpdateFolderPermissionsOK) IsClientError() bool
- func (o *UpdateFolderPermissionsOK) IsCode(code int) bool
- func (o *UpdateFolderPermissionsOK) IsRedirect() bool
- func (o *UpdateFolderPermissionsOK) IsServerError() bool
- func (o *UpdateFolderPermissionsOK) IsSuccess() bool
- func (o *UpdateFolderPermissionsOK) String() string
- 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
- func (o *UpdateFolderPermissionsUnauthorized) Code() int
- func (o *UpdateFolderPermissionsUnauthorized) Error() string
- func (o *UpdateFolderPermissionsUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *UpdateFolderPermissionsUnauthorized) IsClientError() bool
- func (o *UpdateFolderPermissionsUnauthorized) IsCode(code int) bool
- func (o *UpdateFolderPermissionsUnauthorized) IsRedirect() bool
- func (o *UpdateFolderPermissionsUnauthorized) IsServerError() bool
- func (o *UpdateFolderPermissionsUnauthorized) IsSuccess() bool
- func (o *UpdateFolderPermissionsUnauthorized) String() string
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(folderUID string, opts ...ClientOption) (*GetFolderPermissionListOK, error)
GetFolderPermissionList gets all existing permissions for the folder with the given uid
func (*Client) GetFolderPermissionListWithParams ¶
func (a *Client) GetFolderPermissionListWithParams(params *GetFolderPermissionListParams, opts ...ClientOption) (*GetFolderPermissionListOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateFolderPermissions ¶
func (a *Client) UpdateFolderPermissions(folderUID string, body *models.UpdateDashboardACLCommand, opts ...ClientOption) (*UpdateFolderPermissionsOK, error)
UpdateFolderPermissions updates permissions for a folder this operation will remove existing permissions if they re not included in the request
func (*Client) UpdateFolderPermissionsWithParams ¶
func (a *Client) UpdateFolderPermissionsWithParams(params *UpdateFolderPermissionsParams, opts ...ClientOption) (*UpdateFolderPermissionsOK, 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 { GetFolderPermissionList(folderUID string, opts ...ClientOption) (*GetFolderPermissionListOK, error) GetFolderPermissionListWithParams(params *GetFolderPermissionListParams, opts ...ClientOption) (*GetFolderPermissionListOK, error) UpdateFolderPermissions(folderUID string, body *models.UpdateDashboardACLCommand, opts ...ClientOption) (*UpdateFolderPermissionsOK, error) UpdateFolderPermissionsWithParams(params *UpdateFolderPermissionsParams, 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) Code ¶
func (o *GetFolderPermissionListForbidden) Code() int
Code gets the status code for the get folder permission list forbidden response
func (*GetFolderPermissionListForbidden) Error ¶
func (o *GetFolderPermissionListForbidden) Error() string
func (*GetFolderPermissionListForbidden) GetPayload ¶
func (o *GetFolderPermissionListForbidden) GetPayload() *models.ErrorResponseBody
func (*GetFolderPermissionListForbidden) IsClientError ¶
func (o *GetFolderPermissionListForbidden) IsClientError() bool
IsClientError returns true when this get folder permission list forbidden response has a 4xx status code
func (*GetFolderPermissionListForbidden) IsCode ¶
func (o *GetFolderPermissionListForbidden) IsCode(code int) bool
IsCode returns true when this get folder permission list forbidden response a status code equal to that given
func (*GetFolderPermissionListForbidden) IsRedirect ¶
func (o *GetFolderPermissionListForbidden) IsRedirect() bool
IsRedirect returns true when this get folder permission list forbidden response has a 3xx status code
func (*GetFolderPermissionListForbidden) IsServerError ¶
func (o *GetFolderPermissionListForbidden) IsServerError() bool
IsServerError returns true when this get folder permission list forbidden response has a 5xx status code
func (*GetFolderPermissionListForbidden) IsSuccess ¶
func (o *GetFolderPermissionListForbidden) IsSuccess() bool
IsSuccess returns true when this get folder permission list forbidden response has a 2xx status code
func (*GetFolderPermissionListForbidden) String ¶
func (o *GetFolderPermissionListForbidden) String() string
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) Code ¶
func (o *GetFolderPermissionListInternalServerError) Code() int
Code gets the status code for the get folder permission list internal server error response
func (*GetFolderPermissionListInternalServerError) Error ¶
func (o *GetFolderPermissionListInternalServerError) Error() string
func (*GetFolderPermissionListInternalServerError) GetPayload ¶
func (o *GetFolderPermissionListInternalServerError) GetPayload() *models.ErrorResponseBody
func (*GetFolderPermissionListInternalServerError) IsClientError ¶
func (o *GetFolderPermissionListInternalServerError) IsClientError() bool
IsClientError returns true when this get folder permission list internal server error response has a 4xx status code
func (*GetFolderPermissionListInternalServerError) IsCode ¶
func (o *GetFolderPermissionListInternalServerError) IsCode(code int) bool
IsCode returns true when this get folder permission list internal server error response a status code equal to that given
func (*GetFolderPermissionListInternalServerError) IsRedirect ¶
func (o *GetFolderPermissionListInternalServerError) IsRedirect() bool
IsRedirect returns true when this get folder permission list internal server error response has a 3xx status code
func (*GetFolderPermissionListInternalServerError) IsServerError ¶
func (o *GetFolderPermissionListInternalServerError) IsServerError() bool
IsServerError returns true when this get folder permission list internal server error response has a 5xx status code
func (*GetFolderPermissionListInternalServerError) IsSuccess ¶
func (o *GetFolderPermissionListInternalServerError) IsSuccess() bool
IsSuccess returns true when this get folder permission list internal server error response has a 2xx status code
func (*GetFolderPermissionListInternalServerError) String ¶
func (o *GetFolderPermissionListInternalServerError) String() string
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) Code ¶
func (o *GetFolderPermissionListNotFound) Code() int
Code gets the status code for the get folder permission list not found response
func (*GetFolderPermissionListNotFound) Error ¶
func (o *GetFolderPermissionListNotFound) Error() string
func (*GetFolderPermissionListNotFound) GetPayload ¶
func (o *GetFolderPermissionListNotFound) GetPayload() *models.ErrorResponseBody
func (*GetFolderPermissionListNotFound) IsClientError ¶
func (o *GetFolderPermissionListNotFound) IsClientError() bool
IsClientError returns true when this get folder permission list not found response has a 4xx status code
func (*GetFolderPermissionListNotFound) IsCode ¶
func (o *GetFolderPermissionListNotFound) IsCode(code int) bool
IsCode returns true when this get folder permission list not found response a status code equal to that given
func (*GetFolderPermissionListNotFound) IsRedirect ¶
func (o *GetFolderPermissionListNotFound) IsRedirect() bool
IsRedirect returns true when this get folder permission list not found response has a 3xx status code
func (*GetFolderPermissionListNotFound) IsServerError ¶
func (o *GetFolderPermissionListNotFound) IsServerError() bool
IsServerError returns true when this get folder permission list not found response has a 5xx status code
func (*GetFolderPermissionListNotFound) IsSuccess ¶
func (o *GetFolderPermissionListNotFound) IsSuccess() bool
IsSuccess returns true when this get folder permission list not found response has a 2xx status code
func (*GetFolderPermissionListNotFound) String ¶
func (o *GetFolderPermissionListNotFound) String() string
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) Code ¶
func (o *GetFolderPermissionListOK) Code() int
Code gets the status code for the get folder permission list Ok response
func (*GetFolderPermissionListOK) Error ¶
func (o *GetFolderPermissionListOK) Error() string
func (*GetFolderPermissionListOK) GetPayload ¶
func (o *GetFolderPermissionListOK) GetPayload() []*models.DashboardACLInfoDTO
func (*GetFolderPermissionListOK) IsClientError ¶
func (o *GetFolderPermissionListOK) IsClientError() bool
IsClientError returns true when this get folder permission list Ok response has a 4xx status code
func (*GetFolderPermissionListOK) IsCode ¶
func (o *GetFolderPermissionListOK) IsCode(code int) bool
IsCode returns true when this get folder permission list Ok response a status code equal to that given
func (*GetFolderPermissionListOK) IsRedirect ¶
func (o *GetFolderPermissionListOK) IsRedirect() bool
IsRedirect returns true when this get folder permission list Ok response has a 3xx status code
func (*GetFolderPermissionListOK) IsServerError ¶
func (o *GetFolderPermissionListOK) IsServerError() bool
IsServerError returns true when this get folder permission list Ok response has a 5xx status code
func (*GetFolderPermissionListOK) IsSuccess ¶
func (o *GetFolderPermissionListOK) IsSuccess() bool
IsSuccess returns true when this get folder permission list Ok response has a 2xx status code
func (*GetFolderPermissionListOK) String ¶
func (o *GetFolderPermissionListOK) String() string
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) Code ¶
func (o *GetFolderPermissionListUnauthorized) Code() int
Code gets the status code for the get folder permission list unauthorized response
func (*GetFolderPermissionListUnauthorized) Error ¶
func (o *GetFolderPermissionListUnauthorized) Error() string
func (*GetFolderPermissionListUnauthorized) GetPayload ¶
func (o *GetFolderPermissionListUnauthorized) GetPayload() *models.ErrorResponseBody
func (*GetFolderPermissionListUnauthorized) IsClientError ¶
func (o *GetFolderPermissionListUnauthorized) IsClientError() bool
IsClientError returns true when this get folder permission list unauthorized response has a 4xx status code
func (*GetFolderPermissionListUnauthorized) IsCode ¶
func (o *GetFolderPermissionListUnauthorized) IsCode(code int) bool
IsCode returns true when this get folder permission list unauthorized response a status code equal to that given
func (*GetFolderPermissionListUnauthorized) IsRedirect ¶
func (o *GetFolderPermissionListUnauthorized) IsRedirect() bool
IsRedirect returns true when this get folder permission list unauthorized response has a 3xx status code
func (*GetFolderPermissionListUnauthorized) IsServerError ¶
func (o *GetFolderPermissionListUnauthorized) IsServerError() bool
IsServerError returns true when this get folder permission list unauthorized response has a 5xx status code
func (*GetFolderPermissionListUnauthorized) IsSuccess ¶
func (o *GetFolderPermissionListUnauthorized) IsSuccess() bool
IsSuccess returns true when this get folder permission list unauthorized response has a 2xx status code
func (*GetFolderPermissionListUnauthorized) String ¶
func (o *GetFolderPermissionListUnauthorized) String() string
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) Code ¶
func (o *UpdateFolderPermissionsForbidden) Code() int
Code gets the status code for the update folder permissions forbidden response
func (*UpdateFolderPermissionsForbidden) Error ¶
func (o *UpdateFolderPermissionsForbidden) Error() string
func (*UpdateFolderPermissionsForbidden) GetPayload ¶
func (o *UpdateFolderPermissionsForbidden) GetPayload() *models.ErrorResponseBody
func (*UpdateFolderPermissionsForbidden) IsClientError ¶
func (o *UpdateFolderPermissionsForbidden) IsClientError() bool
IsClientError returns true when this update folder permissions forbidden response has a 4xx status code
func (*UpdateFolderPermissionsForbidden) IsCode ¶
func (o *UpdateFolderPermissionsForbidden) IsCode(code int) bool
IsCode returns true when this update folder permissions forbidden response a status code equal to that given
func (*UpdateFolderPermissionsForbidden) IsRedirect ¶
func (o *UpdateFolderPermissionsForbidden) IsRedirect() bool
IsRedirect returns true when this update folder permissions forbidden response has a 3xx status code
func (*UpdateFolderPermissionsForbidden) IsServerError ¶
func (o *UpdateFolderPermissionsForbidden) IsServerError() bool
IsServerError returns true when this update folder permissions forbidden response has a 5xx status code
func (*UpdateFolderPermissionsForbidden) IsSuccess ¶
func (o *UpdateFolderPermissionsForbidden) IsSuccess() bool
IsSuccess returns true when this update folder permissions forbidden response has a 2xx status code
func (*UpdateFolderPermissionsForbidden) String ¶
func (o *UpdateFolderPermissionsForbidden) String() string
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) Code ¶
func (o *UpdateFolderPermissionsInternalServerError) Code() int
Code gets the status code for the update folder permissions internal server error response
func (*UpdateFolderPermissionsInternalServerError) Error ¶
func (o *UpdateFolderPermissionsInternalServerError) Error() string
func (*UpdateFolderPermissionsInternalServerError) GetPayload ¶
func (o *UpdateFolderPermissionsInternalServerError) GetPayload() *models.ErrorResponseBody
func (*UpdateFolderPermissionsInternalServerError) IsClientError ¶
func (o *UpdateFolderPermissionsInternalServerError) IsClientError() bool
IsClientError returns true when this update folder permissions internal server error response has a 4xx status code
func (*UpdateFolderPermissionsInternalServerError) IsCode ¶
func (o *UpdateFolderPermissionsInternalServerError) IsCode(code int) bool
IsCode returns true when this update folder permissions internal server error response a status code equal to that given
func (*UpdateFolderPermissionsInternalServerError) IsRedirect ¶
func (o *UpdateFolderPermissionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this update folder permissions internal server error response has a 3xx status code
func (*UpdateFolderPermissionsInternalServerError) IsServerError ¶
func (o *UpdateFolderPermissionsInternalServerError) IsServerError() bool
IsServerError returns true when this update folder permissions internal server error response has a 5xx status code
func (*UpdateFolderPermissionsInternalServerError) IsSuccess ¶
func (o *UpdateFolderPermissionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this update folder permissions internal server error response has a 2xx status code
func (*UpdateFolderPermissionsInternalServerError) String ¶
func (o *UpdateFolderPermissionsInternalServerError) String() string
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) Code ¶
func (o *UpdateFolderPermissionsNotFound) Code() int
Code gets the status code for the update folder permissions not found response
func (*UpdateFolderPermissionsNotFound) Error ¶
func (o *UpdateFolderPermissionsNotFound) Error() string
func (*UpdateFolderPermissionsNotFound) GetPayload ¶
func (o *UpdateFolderPermissionsNotFound) GetPayload() *models.ErrorResponseBody
func (*UpdateFolderPermissionsNotFound) IsClientError ¶
func (o *UpdateFolderPermissionsNotFound) IsClientError() bool
IsClientError returns true when this update folder permissions not found response has a 4xx status code
func (*UpdateFolderPermissionsNotFound) IsCode ¶
func (o *UpdateFolderPermissionsNotFound) IsCode(code int) bool
IsCode returns true when this update folder permissions not found response a status code equal to that given
func (*UpdateFolderPermissionsNotFound) IsRedirect ¶
func (o *UpdateFolderPermissionsNotFound) IsRedirect() bool
IsRedirect returns true when this update folder permissions not found response has a 3xx status code
func (*UpdateFolderPermissionsNotFound) IsServerError ¶
func (o *UpdateFolderPermissionsNotFound) IsServerError() bool
IsServerError returns true when this update folder permissions not found response has a 5xx status code
func (*UpdateFolderPermissionsNotFound) IsSuccess ¶
func (o *UpdateFolderPermissionsNotFound) IsSuccess() bool
IsSuccess returns true when this update folder permissions not found response has a 2xx status code
func (*UpdateFolderPermissionsNotFound) String ¶
func (o *UpdateFolderPermissionsNotFound) String() string
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) Code ¶
func (o *UpdateFolderPermissionsOK) Code() int
Code gets the status code for the update folder permissions Ok response
func (*UpdateFolderPermissionsOK) Error ¶
func (o *UpdateFolderPermissionsOK) Error() string
func (*UpdateFolderPermissionsOK) GetPayload ¶
func (o *UpdateFolderPermissionsOK) GetPayload() *models.SuccessResponseBody
func (*UpdateFolderPermissionsOK) IsClientError ¶
func (o *UpdateFolderPermissionsOK) IsClientError() bool
IsClientError returns true when this update folder permissions Ok response has a 4xx status code
func (*UpdateFolderPermissionsOK) IsCode ¶
func (o *UpdateFolderPermissionsOK) IsCode(code int) bool
IsCode returns true when this update folder permissions Ok response a status code equal to that given
func (*UpdateFolderPermissionsOK) IsRedirect ¶
func (o *UpdateFolderPermissionsOK) IsRedirect() bool
IsRedirect returns true when this update folder permissions Ok response has a 3xx status code
func (*UpdateFolderPermissionsOK) IsServerError ¶
func (o *UpdateFolderPermissionsOK) IsServerError() bool
IsServerError returns true when this update folder permissions Ok response has a 5xx status code
func (*UpdateFolderPermissionsOK) IsSuccess ¶
func (o *UpdateFolderPermissionsOK) IsSuccess() bool
IsSuccess returns true when this update folder permissions Ok response has a 2xx status code
func (*UpdateFolderPermissionsOK) String ¶
func (o *UpdateFolderPermissionsOK) String() string
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) Code ¶
func (o *UpdateFolderPermissionsUnauthorized) Code() int
Code gets the status code for the update folder permissions unauthorized response
func (*UpdateFolderPermissionsUnauthorized) Error ¶
func (o *UpdateFolderPermissionsUnauthorized) Error() string
func (*UpdateFolderPermissionsUnauthorized) GetPayload ¶
func (o *UpdateFolderPermissionsUnauthorized) GetPayload() *models.ErrorResponseBody
func (*UpdateFolderPermissionsUnauthorized) IsClientError ¶
func (o *UpdateFolderPermissionsUnauthorized) IsClientError() bool
IsClientError returns true when this update folder permissions unauthorized response has a 4xx status code
func (*UpdateFolderPermissionsUnauthorized) IsCode ¶
func (o *UpdateFolderPermissionsUnauthorized) IsCode(code int) bool
IsCode returns true when this update folder permissions unauthorized response a status code equal to that given
func (*UpdateFolderPermissionsUnauthorized) IsRedirect ¶
func (o *UpdateFolderPermissionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this update folder permissions unauthorized response has a 3xx status code
func (*UpdateFolderPermissionsUnauthorized) IsServerError ¶
func (o *UpdateFolderPermissionsUnauthorized) IsServerError() bool
IsServerError returns true when this update folder permissions unauthorized response has a 5xx status code
func (*UpdateFolderPermissionsUnauthorized) IsSuccess ¶
func (o *UpdateFolderPermissionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this update folder permissions unauthorized response has a 2xx status code
func (*UpdateFolderPermissionsUnauthorized) String ¶
func (o *UpdateFolderPermissionsUnauthorized) String() string