@leaflow/sdk 0.0.0-dev.206.g149c5cc → 0.0.0-dev.208.g336fdb8

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.
@@ -90,7 +90,7 @@ export interface paths {
90
90
  };
91
91
  /**
92
92
  * List disk types on sale
93
- * @description Only disk types currently on sale are listed. A withdrawn one disappears from here and can no longer be bought, while the disks already on it keep working and can still be resized.
93
+ * @description Only disk types currently on sale are listed, both system disk types and data disk types; `for_system` narrows the list to one of the two. A withdrawn one disappears from here and can no longer be bought, while the disks already on it keep working and can still be resized.
94
94
  */
95
95
  get: operations["list-disk-types"];
96
96
  put?: never;
@@ -1556,7 +1556,7 @@ export interface components {
1556
1556
  RestoreBackupRequestBody: {
1557
1557
  /**
1558
1558
  * Format: uuid
1559
- * @description May differ from the availability zone of the source disk, but must be in the same region. It has to be on sale — restoring creates a new disk, so a withdrawn type is rejected here as well
1559
+ * @description May differ from the availability zone of the source disk, but must be in the same region. It has to be a data disk type on sale — restoring creates a new data disk, so a withdrawn type or a system disk type is rejected here as well
1560
1560
  */
1561
1561
  disk_type_id: string;
1562
1562
  name: string;
@@ -1622,6 +1622,8 @@ export interface components {
1622
1622
  availability_zone_id: string;
1623
1623
  /** Format: uuid */
1624
1624
  id: string;
1625
+ /** @description True for a system disk type, the one chosen as `boot_disk.disk_type_id` when creating an instance from an image. A system disk type cannot be used to create a data disk, and a data disk type cannot be used for a system disk. */
1626
+ for_system: boolean;
1625
1627
  /**
1626
1628
  * Format: int64
1627
1629
  * @description IOPS a disk of `min_size_gb` gets. Null when this type is not rate-limited.
@@ -1785,7 +1787,7 @@ export interface components {
1785
1787
  CreateDiskRequestBody: {
1786
1788
  /**
1787
1789
  * Format: uuid
1788
- * @description A disk type currently on sale. A withdrawn one is rejected even though its identifier still resolves
1790
+ * @description A data disk type currently on sale, one whose `for_system` is false. A withdrawn one is rejected even though its identifier still resolves
1789
1791
  */
1790
1792
  disk_type_id: string;
1791
1793
  name: string;
@@ -2536,7 +2538,10 @@ export interface components {
2536
2538
  };
2537
2539
  /** @description A system disk purchased in the same order. Required when booting from an image; mutually exclusive with boot_disk_id. */
2538
2540
  NewBootDisk: {
2539
- /** Format: uuid */
2541
+ /**
2542
+ * Format: uuid
2543
+ * @description A system disk type on sale in the availability zone of the instance, one whose `for_system` is true
2544
+ */
2540
2545
  disk_type_id: string;
2541
2546
  /** Format: int64 */
2542
2547
  size_gb: number;
@@ -2949,6 +2954,8 @@ export interface operations {
2949
2954
  parameters: {
2950
2955
  query: {
2951
2956
  region_id: string;
2957
+ /** @description `true` lists only system disk types and `false` only data disk types. Both are listed when omitted. */
2958
+ for_system?: boolean;
2952
2959
  };
2953
2960
  header?: never;
2954
2961
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.0.0-dev.206.g149c5cc",
3
+ "version": "0.0.0-dev.208.g336fdb8",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {