wallee
Version:
TypeScript/JavaScript client for wallee
52 lines (51 loc) • 1.38 kB
TypeScript
import { Account } from "./Account";
import { Permission } from "./Permission";
import { RoleState } from "./RoleState";
declare class Role {
/**
* The account the role belongs to. The role can only be assigned within this account.
*/
'account'?: Account;
/**
* A unique identifier for the object.
*/
'id'?: number;
/**
* The name used to identify the role.
*/
'name'?: {
[key: string]: string;
};
/**
* The permissions granted to users with this role.
*/
'permissions'?: Array<Permission>;
/**
* The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
*/
'plannedPurgeDate'?: Date;
/**
* The object's current state.
*/
'state'?: RoleState;
/**
* Whether users with this role are required to use two-factor authentication.
*/
'twoFactorRequired'?: boolean;
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
*/
'version'?: number;
static discriminator: string | undefined;
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[];
}
export { Role };