This commit is contained in:
10
dist/services/PermissionService.js
vendored
10
dist/services/PermissionService.js
vendored
@@ -5,7 +5,7 @@ const request_1 = require("../core/request");
|
||||
class PermissionService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all permissions.
|
||||
* Lists all permissions for all users and groups.
|
||||
* @returns ResponsePermission
|
||||
* @throws ApiError
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ class PermissionService {
|
||||
}
|
||||
/**
|
||||
* Post
|
||||
* Create a new runnerTeam object (id will be generated automagicly).
|
||||
* Create a new permission for a existing principal(user/group). <br> If a permission with this target, action and prinicpal already exists that permission will be returned instead of creating a new one.
|
||||
* @param requestBody CreatePermission
|
||||
* @returns ResponsePermission
|
||||
* @throws ApiError
|
||||
@@ -33,7 +33,7 @@ class PermissionService {
|
||||
}
|
||||
/**
|
||||
* Get one
|
||||
* Returns a permissions of a specified id (if it exists)
|
||||
* Lists all information about the permission whose id got provided.
|
||||
* @param id
|
||||
* @returns ResponsePermission
|
||||
* @throws ApiError
|
||||
@@ -47,7 +47,7 @@ class PermissionService {
|
||||
}
|
||||
/**
|
||||
* Put
|
||||
* Update a permission object (id can't be changed).
|
||||
* Update a permission object. <br> If updateing the permission object would result in duplicate permission (same target, action and principal) this permission will get deleted and the existing permission will be returned. <br> Please remember that ids can't be changed.
|
||||
* @param id
|
||||
* @param requestBody UpdatePermission
|
||||
* @returns ResponsePrincipal
|
||||
@@ -63,7 +63,7 @@ class PermissionService {
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified permission (if it exists).
|
||||
* Deletes the permission whose id you provide. <br> If no permission with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponsePermission
|
||||
|
||||
Reference in New Issue
Block a user