import basem = require('./ClientApiBases'); import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import SecurityRolesInterfaces = require("./interfaces/SecurityRolesInterfaces"); export interface ISecurityRolesApi extends basem.ClientApiBase { getRoleAssignments(scopeId: string, resourceId: string): Promise; removeRoleAssignment(scopeId: string, resourceId: string, identityId: string): Promise; removeRoleAssignments(identityIds: string[], scopeId: string, resourceId: string): Promise; setRoleAssignment(roleAssignment: SecurityRolesInterfaces.UserRoleAssignmentRef, scopeId: string, resourceId: string, identityId: string): Promise; setRoleAssignments(roleAssignments: SecurityRolesInterfaces.UserRoleAssignmentRef[], scopeId: string, resourceId: string): Promise; getRoleDefinitions(scopeId: string): Promise; } export declare class SecurityRolesApi extends basem.ClientApiBase implements ISecurityRolesApi { constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions); /** * @param {string} scopeId * @param {string} resourceId */ getRoleAssignments(scopeId: string, resourceId: string): Promise; /** * @param {string} scopeId * @param {string} resourceId * @param {string} identityId */ removeRoleAssignment(scopeId: string, resourceId: string, identityId: string): Promise; /** * @param {string[]} identityIds * @param {string} scopeId * @param {string} resourceId */ removeRoleAssignments(identityIds: string[], scopeId: string, resourceId: string): Promise; /** * @param {SecurityRolesInterfaces.UserRoleAssignmentRef} roleAssignment * @param {string} scopeId * @param {string} resourceId * @param {string} identityId */ setRoleAssignment(roleAssignment: SecurityRolesInterfaces.UserRoleAssignmentRef, scopeId: string, resourceId: string, identityId: string): Promise; /** * @param {SecurityRolesInterfaces.UserRoleAssignmentRef[]} roleAssignments * @param {string} scopeId * @param {string} resourceId */ setRoleAssignments(roleAssignments: SecurityRolesInterfaces.UserRoleAssignmentRef[], scopeId: string, resourceId: string): Promise; /** * @param {string} scopeId */ getRoleDefinitions(scopeId: string): Promise; }