@runblackcat/sdk 0.1.0-alpha.103 → 0.1.0-alpha.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sdk/dist/index.d.ts +9 -6
package/package.json
CHANGED
package/sdk/dist/index.d.ts
CHANGED
|
@@ -371,11 +371,14 @@ export type CreateCapacityReservationInput = ({
|
|
|
371
371
|
* within `ttl_secs`. Absent: as soon as it can be, at the lowest cost. */
|
|
372
372
|
needed_by?: number | string;
|
|
373
373
|
/** `shared` (default): any eligible node, free headroom first.
|
|
374
|
-
* `dedicated`:
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
*
|
|
374
|
+
* `dedicated`: as few new exclusive hosts as hold `count` (full hosts of
|
|
375
|
+
* the largest metal shape, the remainder on the smallest metal or nested
|
|
376
|
+
* shape that holds it), launched for this reservation alone, never shared
|
|
377
|
+
* with ordinary work or other reservations, a failed host replaced alone,
|
|
378
|
+
* and terminated when the reservation ends; a sandbox create naming it
|
|
379
|
+
* waits for one of its slots, filling one host before the next. A fleet
|
|
380
|
+
* with no metal shape a host of which holds one copy refuses it with 409
|
|
381
|
+
* `dedicated_metal_unavailable`
|
|
379
382
|
* (`dedicated_cpu_unsupported` when no metal shape restores the version's CPU). Warm
|
|
380
383
|
* reservations are always shared. */
|
|
381
384
|
placement?: "shared" | "dedicated";
|
|
@@ -905,7 +908,7 @@ declare class ReservationsResource {
|
|
|
905
908
|
release(id: string): Promise<CapacityReservation>;
|
|
906
909
|
/** Move an active, unoccupied, reusable dedicated reservation pinned to a
|
|
907
910
|
* version to a prepared template of the same `vcpus` and `memory_mib`,
|
|
908
|
-
* keeping its
|
|
911
|
+
* keeping its hosts and bindings. Retargeting to its current template is a
|
|
909
912
|
* no-op. 409 with a `code` and `hint` when it is shared
|
|
910
913
|
* (`retarget_requires_dedicated`), follows a template resource
|
|
911
914
|
* (`retarget_follows_resource`), its slots are occupied
|