UNPKG

@linode/api-v4

Version:
48 lines 1.58 kB
import type { AccessType, IamAccountRoles, IamUserRoles } from './types'; /** * getUserRoles * * Returns the full permissions structure for this User. This includes all entities on * the Account alongside what level of access this User has to each of them. * * @param username { string } the username to look up. * */ export declare const getUserRoles: (username: string) => Promise<IamUserRoles>; /** * updateUserRoles * * Update the roles a User has. * * @param username { string } username of the user to be updated. * @param data { object } the Roles object to update. * */ export declare const updateUserRoles: (username: string, data: IamUserRoles) => Promise<IamUserRoles>; /** * getAccountRoles * * Return all roles for account. * */ export declare const getAccountRoles: () => Promise<IamAccountRoles>; /** * getUserAccountPermissions * * Returns the current permissions for this User on the account. * * @param username { string } the username to look up. * */ export declare const getUserAccountPermissions: (username: string) => Promise<import("./types").AccountAdmin[]>; /** * getUserEntityPermissions * * Returns the current permissions for this User on the entity. * * @param username { string } the username to look up. * @param entityType { AccessType } the entityType to look up. * @param entityId { number } the entityId to look up. */ export declare const getUserEntityPermissions: (username: string, entityType: AccessType, entityId: number) => Promise<import("./types").AccountAdmin[]>; //# sourceMappingURL=iam.d.ts.map