1 | import basem = require('./ClientApiBases');
|
2 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
3 | import SecurityRolesInterfaces = require("./interfaces/SecurityRolesInterfaces");
|
4 | export interface ISecurityRolesApi extends basem.ClientApiBase {
|
5 | getRoleAssignments(scopeId: string, resourceId: string): Promise<SecurityRolesInterfaces.RoleAssignment[]>;
|
6 | removeRoleAssignment(scopeId: string, resourceId: string, identityId: string): Promise<void>;
|
7 | removeRoleAssignments(identityIds: string[], scopeId: string, resourceId: string): Promise<void>;
|
8 | setRoleAssignment(roleAssignment: SecurityRolesInterfaces.UserRoleAssignmentRef, scopeId: string, resourceId: string, identityId: string): Promise<SecurityRolesInterfaces.RoleAssignment>;
|
9 | setRoleAssignments(roleAssignments: SecurityRolesInterfaces.UserRoleAssignmentRef[], scopeId: string, resourceId: string): Promise<SecurityRolesInterfaces.RoleAssignment[]>;
|
10 | getRoleDefinitions(scopeId: string): Promise<SecurityRolesInterfaces.SecurityRole[]>;
|
11 | }
|
12 | export declare class SecurityRolesApi extends basem.ClientApiBase implements ISecurityRolesApi {
|
13 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
|
14 | /**
|
15 | * @param {string} scopeId
|
16 | * @param {string} resourceId
|
17 | */
|
18 | getRoleAssignments(scopeId: string, resourceId: string): Promise<SecurityRolesInterfaces.RoleAssignment[]>;
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 | removeRoleAssignment(scopeId: string, resourceId: string, identityId: string): Promise<void>;
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 | removeRoleAssignments(identityIds: string[], scopeId: string, resourceId: string): Promise<void>;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | setRoleAssignment(roleAssignment: SecurityRolesInterfaces.UserRoleAssignmentRef, scopeId: string, resourceId: string, identityId: string): Promise<SecurityRolesInterfaces.RoleAssignment>;
|
38 | |
39 |
|
40 |
|
41 |
|
42 |
|
43 | setRoleAssignments(roleAssignments: SecurityRolesInterfaces.UserRoleAssignmentRef[], scopeId: string, resourceId: string): Promise<SecurityRolesInterfaces.RoleAssignment[]>;
|
44 | |
45 |
|
46 |
|
47 | getRoleDefinitions(scopeId: string): Promise<SecurityRolesInterfaces.SecurityRole[]>;
|
48 | }
|