kepler.api.permission module

The module contains the functionality for the REST API calls related to permissions.

class kepler.api.permission.AddPermissionParams

Bases: kepler.api.api_util.ApiParamsBase

The parameter class for REST API call add_permission.

permission_id_list = A list of the IDs of the permissions that are to be added.
role_id = The ID of the role that gets the permission(s) added.
class kepler.api.permission.DeletePermissionParams

Bases: kepler.api.api_util.ApiParamsBase

The parameter class for REST API call delete_permission.

permission_id_list = A list of the IDs of the permissions that are removed.
role_id = The ID of the role that gets the permission(s) removed.
kepler.api.permission.add_permission(request)

The function implements the REST API call add_permission.

kepler.api.permission.delete_permission(request)

The function implements the REST API call delete_permission.

kepler.api.permission.get_permission_roles(request)

The function implements the REST API call get_permission_roles.