interface Role {
    description?: string;
    name: string;
    permissions: {
        ContentDelivery: string | string[];
        ContentModel: string[];
        EnvironmentAliases: string | string[];
        Environments: string | string[];
        Settings: string | string[];
        Tags: string | string[];
    };
    policies: {
        actions: "all" | ActionType[];
        constraint: ConstraintType;
        effect: string;
    }[];
    sys: BasicMetaSysProps & {
        space: SysLink;
    };
    delete(): Promise<void>;
    toPlainObject(): RoleProps;
    update(): Promise<Role>;
}

Hierarchy (view full)

Properties

description?: string
name: string
permissions: {
    ContentDelivery: string | string[];
    ContentModel: string[];
    EnvironmentAliases: string | string[];
    Environments: string | string[];
    Settings: string | string[];
    Tags: string | string[];
}

Permissions for application sections

policies: {
    actions: "all" | ActionType[];
    constraint: ConstraintType;
    effect: string;
}[]
sys: BasicMetaSysProps & {
    space: SysLink;
}

Methods

  • Deletes this object on the server.

    Returns Promise<void>

    Promise for the deletion. It contains no data, but the Promise error case should be handled.

    Role

    delete

  • Sends an update to the server with any changes made to the object's properties

    Returns Promise<Role>

    Object returned from the server with updated changes.