MacModelsService
Section titled “MacModelsService”The Mac model registry (GET /mac-models): the models reservations.create({ model })
accepts, with each model’s whole vCPUs, physical memory, physical SSD capacity and
sandbox disk room in MiB, and the layouts it offers. catalog() adds free Macs and prices.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MacModelsService(http: AxiosInstance): MacModelsService;Parameters:
httpAxiosInstance
Returns:
MacModelsService
Methods
Section titled “Methods”catalog()
Section titled “catalog()”catalog(options: { region?: string } = {}): Promise<MacCatalog>;Free Macs and prices per Mac model (GET /mac-catalog). available is advisory; price is null on a cell without billing.
Parameters:
options{ region?: string } = {}
Returns:
Promise<MacCatalog>
list()
Section titled “list()”list(): Promise<MacModel[]>;Every registered Mac model, ordered by id.
Returns:
Promise<MacModel[]>
MacModel
Section titled “MacModel”type MacModel = api.MacModelA registered Mac model (GET /mac-models), in wire field names: id, name, vcpus, memory_mib, disk_mib,
sandbox_disk_mib (the disk room sandboxes on one Mac share) and layouts (the layouts a reservation of it can take).
MacCatalog
Section titled “MacCatalog”type MacCatalog = api.MacCatalogGET /mac-catalog: per region, the default model and each model’s MacModel, free Macs (available) and price (null on a cell without billing).