Constructors
constructor
- new Privileges(api: Api): Privileges
Properties
api
Methods
addSecurityGroupUsers
- addSecurityGroupUsers(
groupId: string,
users: { id: string }[],
): Promise<ApiResponse<void, void>> Parameters
- groupId: string
- users: { id: string }[]
Returns Promise<ApiResponse<void, void>>
deleteSecurityGroup
- deleteSecurityGroup(groupId: string): Promise<ApiResponse<void, void>>
Returns Promise<ApiResponse<void, void>>
deleteSecurityGroupUser
- deleteSecurityGroupUser(
groupId: string,
userId: string,
): Promise<ApiResponse<void, void>> Parameters
- groupId: string
- userId: string
Returns Promise<ApiResponse<void, void>>
getSecurityGroupUsers
- getSecurityGroupUsers(
groupId: string,
page?: number,
perPage?: number,
): Promise<ApiResponse<UsersResponse, UsersResponse>> Parameters
- groupId: string
- page: number = 1
- perPage: number = 100
getTypePrivileges
- getTypePrivileges(
groupId: string,
type: string,
page?: number,
perPage?: number,
): Promise<ApiResponse<TypePrivilegesResponse, TypePrivilegesResponse>> Parameters
- groupId: string
- type: string
- page: number = 1
- perPage: number = 1
setAttributePrivileges
- setAttributePrivileges(
groupId: string,
privileges: AttributePrivilege[],
): Promise<ApiResponse<void, void>> Returns Promise<ApiResponse<void, void>>
updateTypePrivileges
- updateTypePrivileges(
groupId: string,
privilegeId: string,
privileges: Privilege[],
): Promise<ApiResponse<void, void>> Parameters
- groupId: string
- privilegeId: string
- privileges: Privilege[]
Returns Promise<ApiResponse<void, void>>