bunactyl
Version:
TypeScript SDK for Pterodactyl
28 lines • 969 B
TypeScript
import { BunactylClient } from '../client';
import type { AllocationsResponse, CreateAllocationRequest, AllocationInclude } from '../interfaces/allocations';
export declare class AllocationsResource {
private client;
constructor(client: BunactylClient);
/**
* List allocations for a node
*
* @param nodeId Node ID
* @param include Optional resources to include
*/
list(nodeId: number | string, include?: AllocationInclude): Promise<AllocationsResponse>;
/**
* Create allocations for a node
*
* @param nodeId Node ID
* @param allocationData Allocation data
*/
create(nodeId: number | string, allocationData: CreateAllocationRequest): Promise<void>;
/**
* Delete an allocation
*
* @param nodeId Node ID
* @param allocationId Allocation ID
*/
delete(nodeId: number | string, allocationId: number | string): Promise<void>;
}
//# sourceMappingURL=allocations.d.ts.map