@leaflow/sdk 0.70.0 → 0.72.0

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.
@@ -71,6 +71,8 @@ export type AllocateFloatingIpResult = operations["allocate-floating-ip"]["respo
71
71
  export type AllocateFloatingIpBody = NonNullable<operations["allocate-floating-ip"]["requestBody"]>["content"]["application/json"];
72
72
  /** The success response body of `GET /api/v1/floating-ips/{floatingIpId}`. */
73
73
  export type GetFloatingIpResult = operations["get-floating-ip"]["responses"][200]["content"]["application/json"];
74
+ /** The success response body of `DELETE /api/v1/floating-ips/{floatingIpId}`. */
75
+ export type ReleaseFloatingIpResult = operations["release-floating-ip"]["responses"][202]["content"]["application/json"];
74
76
  /** The success response body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
75
77
  export type SetFloatingIpBandwidthResult = operations["set-floating-ip-bandwidth"]["responses"][200]["content"]["application/json"];
76
78
  /** The request body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
@@ -154,11 +156,11 @@ export type AttachDiskBody = NonNullable<operations["attach-disk"]["requestBody"
154
156
  /** The success response body of `DELETE /api/v1/instances/{instanceId}/disks/{diskId}`. */
155
157
  export type DetachDiskResult = operations["detach-disk"]["responses"][202]["content"]["application/json"];
156
158
  /** The success response body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
157
- export type AttachInstanceFloatingIpResult = operations["attach-instance-floating-ip"]["responses"][202]["content"]["application/json"];
159
+ export type AttachInstanceFloatingIpResult = operations["attach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
158
160
  /** The request body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
159
161
  export type AttachInstanceFloatingIpBody = NonNullable<operations["attach-instance-floating-ip"]["requestBody"]>["content"]["application/json"];
160
162
  /** The success response body of `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}`. */
161
- export type DetachInstanceFloatingIpResult = operations["detach-instance-floating-ip"]["responses"][202]["content"]["application/json"];
163
+ export type DetachInstanceFloatingIpResult = operations["detach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
162
164
  /** The success response body of `GET /api/v1/instances/{instanceId}/ports`. */
163
165
  export type ListInstancePortsResult = operations["list-instance-ports"]["responses"][200]["content"]["application/json"];
164
166
  /** The query parameters of `GET /api/v1/instances/{instanceId}/ports`. */
@@ -334,7 +334,7 @@ export interface paths {
334
334
  post?: never;
335
335
  /**
336
336
  * Release a floating IP
337
- * @description A released address enters a cooldown period before it is allocated again, so that DNS records and allow-lists still pointing at it do not break immediately. **The same address therefore cannot be re-allocated** for some time after release. Proceed with care.
337
+ * @description Releases the floating IP after unbinding it. Completion is reported by the returned task.
338
338
  */
339
339
  delete: operations["release-floating-ip"];
340
340
  options?: never;
@@ -1337,11 +1337,6 @@ export interface components {
1337
1337
  status: number;
1338
1338
  };
1339
1339
  BackupResource: {
1340
- /**
1341
- * Format: uuid
1342
- * @description Availability zone of the source disk. A restore may target another zone in the same region
1343
- */
1344
- availability_zone_id: string;
1345
1340
  /** Format: date-time */
1346
1341
  created_at: string;
1347
1342
  /** Format: uuid */
@@ -1362,14 +1357,23 @@ export interface components {
1362
1357
  /** @enum {string} */
1363
1358
  status: "provisioning" | "available" | "restoring" | "deleting" | "error";
1364
1359
  /** Format: uuid */
1365
- order_id?: string | null;
1360
+ order_id: string | null;
1366
1361
  /** Format: uuid */
1367
- price_id?: string | null;
1362
+ price_id: string | null;
1368
1363
  /** Format: uuid */
1369
- subscription_item_id?: string | null;
1364
+ subscription_item_id: string | null;
1370
1365
  /** @enum {string|null} */
1371
- access_state?: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1372
- task?: components["schemas"]["Task"] | null;
1366
+ access_state: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1367
+ task: components["schemas"]["Task"] | null;
1368
+ /** Format: int64 */
1369
+ generation: number;
1370
+ /** Format: date-time */
1371
+ observed_at: string | null;
1372
+ /**
1373
+ * Format: uuid
1374
+ * @description Availability zone of the source disk. A restore may target another zone in the same region
1375
+ */
1376
+ source_availability_zone_id: string;
1373
1377
  };
1374
1378
  BackupListResponseBody: {
1375
1379
  items: components["schemas"]["BackupResource"][] | null;
@@ -1432,27 +1436,20 @@ export interface components {
1432
1436
  throughput_bytes_per_sec: number | null;
1433
1437
  /** @enum {string} */
1434
1438
  status: "provisioning" | "available" | "attaching" | "in_use" | "detaching" | "resizing" | "reverting" | "restoring" | "releasing" | "deleting" | "error";
1435
- /**
1436
- * @description How this disk is paid for. `postpaid` is billed by the hour for as long as it exists;
1437
- * `prepaid` was bought outright for a term.
1438
- *
1439
- * **Not the term.** How long it was bought for belongs to the order, not to the disk:
1440
- * renewing can change it, and a machine bought for a year and then renewed for a month is
1441
- * still a prepaid machine. Ask billing for the term and the expiry — they live there, and
1442
- * they are the only two values a renewal moves.
1443
- * @enum {string}
1444
- */
1445
- charge_type: "postpaid" | "prepaid";
1446
1439
  /** Format: uuid */
1447
- order_id?: string | null;
1440
+ order_id: string | null;
1448
1441
  /** Format: uuid */
1449
- price_id?: string | null;
1442
+ price_id: string | null;
1450
1443
  /** Format: uuid */
1451
- subscription_item_id?: string | null;
1444
+ subscription_item_id: string | null;
1452
1445
  /** @enum {string|null} */
1453
- access_state?: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1454
- task?: components["schemas"]["Task"] | null;
1446
+ access_state: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1447
+ task: components["schemas"]["Task"] | null;
1455
1448
  attachment?: components["schemas"]["DiskAttachment"] | null;
1449
+ /** Format: int64 */
1450
+ generation: number;
1451
+ /** Format: date-time */
1452
+ observed_at: string | null;
1456
1453
  };
1457
1454
  DiskTypeResource: {
1458
1455
  /** Format: uuid */
@@ -1498,53 +1495,20 @@ export interface components {
1498
1495
  * @description Throughput a disk of `max_size_gb` gets, in bytes per second. Null when this type is not rate-limited
1499
1496
  */
1500
1497
  throughput_at_max_size: number | null;
1501
- /**
1502
- * @description Whether any capacity is left in this type's pool.
1503
- *
1504
- * The same shape as on an instance type, but it answers less here: a disk is sold by the
1505
- * GiB, so "not sold out" does not mean the size being asked for fits. `remaining` is the
1506
- * field that decides that, and this one only says whether the pool is empty outright.
1507
- *
1508
- * It reflects a limit set by operations, not what the storage backend physically has —
1509
- * raising the limit does not create capacity, and a type that is not sold out can still fail
1510
- * to create if the backend is full.
1511
- *
1512
- * Advisory: it is read when the list is built, and capacity can be taken between that read
1513
- * and the order. The order is what actually refuses.
1514
- */
1515
- sold_out: boolean;
1516
- /**
1517
- * Format: int64
1518
- * @description How much capacity is left, **in GiB**. Absent when this type is not limited at all.
1519
- *
1520
- * Unlike an instance type, where this is a count of machines, here it is an amount of
1521
- * storage — and it is the number that bounds the size a customer may ask for. A picker that
1522
- * offers sizes above it produces orders that are refused after the customer has chosen
1523
- * everything else.
1524
- *
1525
- * Absent is not zero and not "unknown": a type with no limit simply has no number to show.
1526
- * Reporting it as a number would need a sentinel, and any sentinel eventually gets compared
1527
- * against a real size.
1528
- */
1529
- remaining?: number;
1530
- /**
1531
- * @description What buying this type outright costs, per term. Empty means this type is only sold by the
1532
- * hour.
1533
- *
1534
- * **The amount is per GiB for the whole term**, not the price of one disk: a disk's size is
1535
- * chosen by the customer, so the total is this figure times the size. That differs from an
1536
- * instance type, where the same field is the price of one machine — the unit follows what
1537
- * the product is sold by, and the order is priced the same way.
1538
- *
1539
- * Advisory, like `sold_out`: it is read when the list is built. The order is what fixes the
1540
- * price, and it refuses rather than falling back to hourly if the term is not sold.
1541
- */
1542
- prepaid_prices?: components["schemas"]["PrepaidPrice"][];
1543
1498
  /** Format: uuid */
1544
- product_id?: string | null;
1499
+ product_id: string | null;
1545
1500
  /** Format: uuid */
1546
- plan_id?: string | null;
1547
- lookup_key?: string;
1501
+ plan_id: string | null;
1502
+ lookup_key: string;
1503
+ name_translations: {
1504
+ [key: string]: string;
1505
+ };
1506
+ /** Format: uuid */
1507
+ snapshot_plan_id: string | null;
1508
+ /** Format: uuid */
1509
+ backup_plan_id: string | null;
1510
+ /** Format: uuid */
1511
+ private_image_plan_id: string | null;
1548
1512
  };
1549
1513
  DiskTypeListResponseBody: {
1550
1514
  items: components["schemas"]["DiskTypeResource"][] | null;
@@ -1577,19 +1541,6 @@ export interface components {
1577
1541
  /** Format: int64 */
1578
1542
  total_count?: number;
1579
1543
  };
1580
- PrepaidPrice: {
1581
- /**
1582
- * @description An ISO 8601 duration (P1M, P1Y). A duration rather than a number of months: months are not
1583
- * the same length, and storing a number leaves whoever reads it to decide what it means.
1584
- */
1585
- term: string;
1586
- /**
1587
- * @description A decimal string, not a float. Money that survives a round trip through binary floating
1588
- * point is money that stops adding up.
1589
- */
1590
- amount: string;
1591
- currency: string;
1592
- };
1593
1544
  InstanceTypeResource: {
1594
1545
  /** Format: uuid */
1595
1546
  availability_zone_id: string;
@@ -1630,10 +1581,13 @@ export interface components {
1630
1581
  /** Format: int64 */
1631
1582
  vcpus: number;
1632
1583
  /** Format: uuid */
1633
- product_id?: string | null;
1584
+ product_id: string | null;
1634
1585
  /** Format: uuid */
1635
1586
  plan_id: string | null;
1636
- lookup_key?: string;
1587
+ lookup_key: string;
1588
+ name_translations: {
1589
+ [key: string]: string;
1590
+ };
1637
1591
  };
1638
1592
  InstanceTypeListResponseBody: {
1639
1593
  items: components["schemas"]["InstanceTypeResource"][];
@@ -1704,14 +1658,10 @@ export interface components {
1704
1658
  };
1705
1659
  FloatingIPResource: {
1706
1660
  address: string;
1707
- attached_fixed_ip: string | null;
1708
- attached_port_id: string | null;
1709
1661
  /** Format: int64 */
1710
1662
  bandwidth_mbps: number | null;
1711
1663
  /** Format: date-time */
1712
1664
  created_at: string;
1713
- /** Format: date-time */
1714
- detached_at: string | null;
1715
1665
  /** Format: uuid */
1716
1666
  id: string;
1717
1667
  /** Format: uuid */
@@ -1719,22 +1669,27 @@ export interface components {
1719
1669
  /** @enum {string} */
1720
1670
  status: "pending" | "available" | "deleting" | "error" | "unknown";
1721
1671
  /** Format: uuid */
1722
- order_id?: string | null;
1672
+ order_id: string | null;
1723
1673
  /** Format: uuid */
1724
- price_id?: string | null;
1674
+ price_id: string | null;
1725
1675
  /** Format: uuid */
1726
- subscription_item_id?: string | null;
1676
+ subscription_item_id: string | null;
1727
1677
  /** @enum {string|null} */
1728
- access_state?: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1729
- task?: components["schemas"]["Task"] | null;
1678
+ access_state: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1679
+ task: components["schemas"]["Task"] | null;
1730
1680
  /** Format: uuid */
1731
- bandwidth_order_id?: string | null;
1681
+ bandwidth_order_id: string | null;
1732
1682
  /** Format: uuid */
1733
- bandwidth_price_id?: string | null;
1683
+ bandwidth_price_id: string | null;
1734
1684
  /** Format: uuid */
1735
- bandwidth_subscription_item_id?: string | null;
1685
+ bandwidth_subscription_item_id: string | null;
1736
1686
  /** @enum {string|null} */
1737
- bandwidth_access_state?: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1687
+ bandwidth_access_state: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1688
+ /** Format: int64 */
1689
+ generation: number;
1690
+ /** Format: date-time */
1691
+ observed_at: string | null;
1692
+ binding: components["schemas"]["IPv4Binding"] | null;
1738
1693
  };
1739
1694
  FloatingIPListResponseBody: {
1740
1695
  items: components["schemas"]["FloatingIPResource"][] | null;
@@ -1812,7 +1767,7 @@ export interface components {
1812
1767
  private_image_id: string | null;
1813
1768
  /** @description Private address of the instance */
1814
1769
  private_ip: string | null;
1815
- /** @description Private network of the primary network interface */
1770
+ /** Format: uuid */
1816
1771
  private_network_id: string | null;
1817
1772
  /** @description Floating IPv4 addresses bound to the primary network interface; an empty array when none are bound */
1818
1773
  public_ips: string[] | null;
@@ -1820,7 +1775,7 @@ export interface components {
1820
1775
  region_id: string;
1821
1776
  /** @enum {string} */
1822
1777
  status: "pending" | "building" | "active" | "stopped" | "paused" | "suspended" | "shelved" | "shelved_offloaded" | "rescued" | "resized" | "deleting" | "deleted" | "error" | "unknown";
1823
- /** @description Subnet of the primary network interface */
1778
+ /** Format: uuid */
1824
1779
  subnet_id: string | null;
1825
1780
  /** Format: date-time */
1826
1781
  updated_at: string;
@@ -1832,21 +1787,18 @@ export interface components {
1832
1787
  task_state: string;
1833
1788
  /** Format: int64 */
1834
1789
  generation: number;
1835
- /**
1836
- * Format: date-time
1837
- * @description Timestamp of the last successful provider observation. An unreachable provider does not erase the last observation or prove deletion.
1838
- */
1839
- observed_at?: string;
1790
+ /** Format: date-time */
1791
+ observed_at: string | null;
1840
1792
  restrictions: components["schemas"]["InstanceRestriction"][];
1841
- task?: components["schemas"]["Task"] | null;
1793
+ task: components["schemas"]["Task"] | null;
1842
1794
  /** Format: uuid */
1843
1795
  order_id: string | null;
1844
1796
  /** Format: uuid */
1845
- price_id?: string | null;
1797
+ price_id: string | null;
1846
1798
  /** Format: uuid */
1847
- subscription_item_id?: string | null;
1799
+ subscription_item_id: string | null;
1848
1800
  /** @enum {string|null} */
1849
- access_state?: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1801
+ access_state: "pending" | "enabled" | "suspended" | "reclaimed" | null;
1850
1802
  /**
1851
1803
  * Format: uuid
1852
1804
  * @description Non-empty when the instance was created from a disk you already had, instead of from an image
@@ -2032,6 +1984,12 @@ export interface components {
2032
1984
  public_ips: string[] | null;
2033
1985
  addresses?: components["schemas"]["PortAddress"][];
2034
1986
  attachment?: components["schemas"]["PortAttachment"] | null;
1987
+ /** @enum {string} */
1988
+ status: "pending" | "available" | "deleting" | "error" | "unknown";
1989
+ /** Format: int64 */
1990
+ generation: number;
1991
+ /** Format: date-time */
1992
+ observed_at: string | null;
2035
1993
  };
2036
1994
  PortListResponseBody: {
2037
1995
  items: components["schemas"]["PortResource"][] | null;
@@ -2128,14 +2086,18 @@ export interface components {
2128
2086
  /** @description False means a new password can only be set by rebuilding an instance created from this image */
2129
2087
  supports_password_reset: boolean;
2130
2088
  /** Format: uuid */
2131
- order_id?: string | null;
2089
+ order_id: string | null;
2132
2090
  /** Format: uuid */
2133
- price_id?: string | null;
2091
+ price_id: string | null;
2134
2092
  /** Format: uuid */
2135
- subscription_item_id?: string | null;
2093
+ subscription_item_id: string | null;
2136
2094
  /** @enum {string|null} */
2137
- access_state?: "pending" | "enabled" | "suspended" | "reclaimed" | null;
2138
- task?: components["schemas"]["Task"] | null;
2095
+ access_state: "pending" | "enabled" | "suspended" | "reclaimed" | null;
2096
+ task: components["schemas"]["Task"] | null;
2097
+ /** Format: int64 */
2098
+ generation: number;
2099
+ /** Format: date-time */
2100
+ observed_at: string | null;
2139
2101
  };
2140
2102
  PrivateImageListResponseBody: {
2141
2103
  items: components["schemas"]["PrivateImageResource"][];
@@ -2333,14 +2295,18 @@ export interface components {
2333
2295
  /** @enum {string} */
2334
2296
  status: "provisioning" | "available" | "restoring" | "deleting" | "error";
2335
2297
  /** Format: uuid */
2336
- order_id?: string | null;
2298
+ order_id: string | null;
2337
2299
  /** Format: uuid */
2338
- price_id?: string | null;
2300
+ price_id: string | null;
2339
2301
  /** Format: uuid */
2340
- subscription_item_id?: string | null;
2302
+ subscription_item_id: string | null;
2341
2303
  /** @enum {string|null} */
2342
- access_state?: "pending" | "enabled" | "suspended" | "reclaimed" | null;
2343
- task?: components["schemas"]["Task"] | null;
2304
+ access_state: "pending" | "enabled" | "suspended" | "reclaimed" | null;
2305
+ task: components["schemas"]["Task"] | null;
2306
+ /** Format: int64 */
2307
+ generation: number;
2308
+ /** Format: date-time */
2309
+ observed_at: string | null;
2344
2310
  };
2345
2311
  SnapshotListResponseBody: {
2346
2312
  items: components["schemas"]["SnapshotResource"][] | null;
@@ -2473,6 +2439,7 @@ export interface components {
2473
2439
  detached_at: string | null;
2474
2440
  /** Format: date-time */
2475
2441
  released_at: string | null;
2442
+ device: string | null;
2476
2443
  };
2477
2444
  DiskAttachmentList: {
2478
2445
  items: components["schemas"]["DiskAttachment"][];
@@ -2537,6 +2504,24 @@ export interface components {
2537
2504
  /** Format: int64 */
2538
2505
  total_count?: number;
2539
2506
  };
2507
+ IPv4Binding: {
2508
+ /** Format: uuid */
2509
+ id: string;
2510
+ /** Format: uuid */
2511
+ ipv4_allocation_id: string;
2512
+ /** Format: uuid */
2513
+ port_address_id: string;
2514
+ address: string;
2515
+ fixed_ip: string;
2516
+ /** @enum {string} */
2517
+ state: "binding" | "bound" | "unbinding" | "released" | "unknown";
2518
+ /** Format: date-time */
2519
+ bound_at: string | null;
2520
+ /** Format: date-time */
2521
+ unbound_at: string | null;
2522
+ /** Format: date-time */
2523
+ released_at: string | null;
2524
+ };
2540
2525
  /** @description Requested funding split. This does not select a card or payment provider; complete payment through Billing. */
2541
2526
  PaymentPlan: {
2542
2527
  balance_amount: string;
@@ -2684,10 +2669,7 @@ export interface operations {
2684
2669
  "rename-backup": {
2685
2670
  parameters: {
2686
2671
  query?: never;
2687
- header: {
2688
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
2689
- "Idempotency-Key": string;
2690
- };
2672
+ header?: never;
2691
2673
  path: {
2692
2674
  backupId: string;
2693
2675
  };
@@ -3103,10 +3085,7 @@ export interface operations {
3103
3085
  "rename-disk": {
3104
3086
  parameters: {
3105
3087
  query?: never;
3106
- header: {
3107
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3108
- "Idempotency-Key": string;
3109
- };
3088
+ header?: never;
3110
3089
  path: {
3111
3090
  diskId: string;
3112
3091
  };
@@ -3318,12 +3297,14 @@ export interface operations {
3318
3297
  };
3319
3298
  requestBody?: never;
3320
3299
  responses: {
3321
- /** @description No Content */
3322
- 204: {
3300
+ /** @description The release has been accepted. */
3301
+ 202: {
3323
3302
  headers: {
3324
3303
  [name: string]: unknown;
3325
3304
  };
3326
- content?: never;
3305
+ content: {
3306
+ "application/json": components["schemas"]["Task"];
3307
+ };
3327
3308
  };
3328
3309
  /** @description Error */
3329
3310
  default: {
@@ -3374,10 +3355,7 @@ export interface operations {
3374
3355
  "bind-floating-ip": {
3375
3356
  parameters: {
3376
3357
  query?: never;
3377
- header: {
3378
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3379
- "Idempotency-Key": string;
3380
- };
3358
+ header?: never;
3381
3359
  path: {
3382
3360
  floatingIpId: string;
3383
3361
  };
@@ -3412,10 +3390,7 @@ export interface operations {
3412
3390
  "unbind-floating-ip": {
3413
3391
  parameters: {
3414
3392
  query?: never;
3415
- header: {
3416
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3417
- "Idempotency-Key": string;
3418
- };
3393
+ header?: never;
3419
3394
  path: {
3420
3395
  floatingIpId: string;
3421
3396
  };
@@ -3578,10 +3553,7 @@ export interface operations {
3578
3553
  "rename-instance": {
3579
3554
  parameters: {
3580
3555
  query?: never;
3581
- header: {
3582
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3583
- "Idempotency-Key": string;
3584
- };
3556
+ header?: never;
3585
3557
  path: {
3586
3558
  instanceId: string;
3587
3559
  };
@@ -3616,10 +3588,7 @@ export interface operations {
3616
3588
  "run-instance-command": {
3617
3589
  parameters: {
3618
3590
  query?: never;
3619
- header: {
3620
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3621
- "Idempotency-Key": string;
3622
- };
3591
+ header?: never;
3623
3592
  path: {
3624
3593
  instanceId: string;
3625
3594
  };
@@ -3654,10 +3623,7 @@ export interface operations {
3654
3623
  "open-instance-console": {
3655
3624
  parameters: {
3656
3625
  query?: never;
3657
- header: {
3658
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3659
- "Idempotency-Key": string;
3660
- };
3626
+ header?: never;
3661
3627
  path: {
3662
3628
  instanceId: string;
3663
3629
  };
@@ -3722,10 +3688,7 @@ export interface operations {
3722
3688
  "set-instance-labels": {
3723
3689
  parameters: {
3724
3690
  query?: never;
3725
- header: {
3726
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3727
- "Idempotency-Key": string;
3728
- };
3691
+ header?: never;
3729
3692
  path: {
3730
3693
  instanceId: string;
3731
3694
  };
@@ -3760,10 +3723,7 @@ export interface operations {
3760
3723
  "set-instance-notes": {
3761
3724
  parameters: {
3762
3725
  query?: never;
3763
- header: {
3764
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3765
- "Idempotency-Key": string;
3766
- };
3726
+ header?: never;
3767
3727
  path: {
3768
3728
  instanceId: string;
3769
3729
  };
@@ -3798,10 +3758,7 @@ export interface operations {
3798
3758
  "reset-instance-password": {
3799
3759
  parameters: {
3800
3760
  query?: never;
3801
- header: {
3802
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3803
- "Idempotency-Key": string;
3804
- };
3761
+ header?: never;
3805
3762
  path: {
3806
3763
  instanceId: string;
3807
3764
  };
@@ -3874,10 +3831,7 @@ export interface operations {
3874
3831
  "rebuild-instance": {
3875
3832
  parameters: {
3876
3833
  query?: never;
3877
- header: {
3878
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3879
- "Idempotency-Key": string;
3880
- };
3834
+ header?: never;
3881
3835
  path: {
3882
3836
  instanceId: string;
3883
3837
  };
@@ -4198,10 +4152,7 @@ export interface operations {
4198
4152
  "attach-instance-floating-ip": {
4199
4153
  parameters: {
4200
4154
  query?: never;
4201
- header: {
4202
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4203
- "Idempotency-Key": string;
4204
- };
4155
+ header?: never;
4205
4156
  path: {
4206
4157
  instanceId: string;
4207
4158
  };
@@ -4213,13 +4164,13 @@ export interface operations {
4213
4164
  };
4214
4165
  };
4215
4166
  responses: {
4216
- /** @description Accepted */
4217
- 202: {
4167
+ /** @description The current floating IP binding */
4168
+ 200: {
4218
4169
  headers: {
4219
4170
  [name: string]: unknown;
4220
4171
  };
4221
4172
  content: {
4222
- "application/json": components["schemas"]["Task"];
4173
+ "application/json": components["schemas"]["FloatingIPResource"];
4223
4174
  };
4224
4175
  };
4225
4176
  /** @description Error */
@@ -4236,10 +4187,7 @@ export interface operations {
4236
4187
  "detach-instance-floating-ip": {
4237
4188
  parameters: {
4238
4189
  query?: never;
4239
- header: {
4240
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4241
- "Idempotency-Key": string;
4242
- };
4190
+ header?: never;
4243
4191
  path: {
4244
4192
  instanceId: string;
4245
4193
  floatingIpId: string;
@@ -4248,13 +4196,13 @@ export interface operations {
4248
4196
  };
4249
4197
  requestBody?: never;
4250
4198
  responses: {
4251
- /** @description Accepted */
4252
- 202: {
4199
+ /** @description The current floating IP binding */
4200
+ 200: {
4253
4201
  headers: {
4254
4202
  [name: string]: unknown;
4255
4203
  };
4256
4204
  content: {
4257
- "application/json": components["schemas"]["Task"];
4205
+ "application/json": components["schemas"]["FloatingIPResource"];
4258
4206
  };
4259
4207
  };
4260
4208
  /** @description Error */
@@ -4441,10 +4389,7 @@ export interface operations {
4441
4389
  "create-port": {
4442
4390
  parameters: {
4443
4391
  query?: never;
4444
- header: {
4445
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4446
- "Idempotency-Key": string;
4447
- };
4392
+ header?: never;
4448
4393
  path?: never;
4449
4394
  cookie?: never;
4450
4395
  };
@@ -4477,10 +4422,7 @@ export interface operations {
4477
4422
  "delete-port": {
4478
4423
  parameters: {
4479
4424
  query?: never;
4480
- header: {
4481
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4482
- "Idempotency-Key": string;
4483
- };
4425
+ header?: never;
4484
4426
  path: {
4485
4427
  portId: string;
4486
4428
  };
@@ -4641,10 +4583,7 @@ export interface operations {
4641
4583
  "rename-private-image": {
4642
4584
  parameters: {
4643
4585
  query?: never;
4644
- header: {
4645
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4646
- "Idempotency-Key": string;
4647
- };
4586
+ header?: never;
4648
4587
  path: {
4649
4588
  privateImageId: string;
4650
4589
  };
@@ -4711,10 +4650,7 @@ export interface operations {
4711
4650
  "create-private-network": {
4712
4651
  parameters: {
4713
4652
  query?: never;
4714
- header: {
4715
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4716
- "Idempotency-Key": string;
4717
- };
4653
+ header?: never;
4718
4654
  path?: never;
4719
4655
  cookie?: never;
4720
4656
  };
@@ -4778,10 +4714,7 @@ export interface operations {
4778
4714
  "delete-private-network": {
4779
4715
  parameters: {
4780
4716
  query?: never;
4781
- header: {
4782
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4783
- "Idempotency-Key": string;
4784
- };
4717
+ header?: never;
4785
4718
  path: {
4786
4719
  privateNetworkId: string;
4787
4720
  };
@@ -4810,10 +4743,7 @@ export interface operations {
4810
4743
  "rename-private-network": {
4811
4744
  parameters: {
4812
4745
  query?: never;
4813
- header: {
4814
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4815
- "Idempotency-Key": string;
4816
- };
4746
+ header?: never;
4817
4747
  path: {
4818
4748
  privateNetworkId: string;
4819
4749
  };
@@ -4879,10 +4809,7 @@ export interface operations {
4879
4809
  "enable-private-network-ipv6": {
4880
4810
  parameters: {
4881
4811
  query?: never;
4882
- header: {
4883
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4884
- "Idempotency-Key": string;
4885
- };
4812
+ header?: never;
4886
4813
  path: {
4887
4814
  privateNetworkId: string;
4888
4815
  };
@@ -4913,10 +4840,7 @@ export interface operations {
4913
4840
  "disable-private-network-ipv6": {
4914
4841
  parameters: {
4915
4842
  query?: never;
4916
- header: {
4917
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4918
- "Idempotency-Key": string;
4919
- };
4843
+ header?: never;
4920
4844
  path: {
4921
4845
  privateNetworkId: string;
4922
4846
  };
@@ -4976,10 +4900,7 @@ export interface operations {
4976
4900
  "create-route": {
4977
4901
  parameters: {
4978
4902
  query?: never;
4979
- header: {
4980
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4981
- "Idempotency-Key": string;
4982
- };
4903
+ header?: never;
4983
4904
  path: {
4984
4905
  privateNetworkId: string;
4985
4906
  };
@@ -5014,10 +4935,7 @@ export interface operations {
5014
4935
  "delete-route": {
5015
4936
  parameters: {
5016
4937
  query?: never;
5017
- header: {
5018
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5019
- "Idempotency-Key": string;
5020
- };
4938
+ header?: never;
5021
4939
  path: {
5022
4940
  privateNetworkId: string;
5023
4941
  routeId: string;
@@ -5078,10 +4996,7 @@ export interface operations {
5078
4996
  "create-subnet": {
5079
4997
  parameters: {
5080
4998
  query?: never;
5081
- header: {
5082
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5083
- "Idempotency-Key": string;
5084
- };
4999
+ header?: never;
5085
5000
  path: {
5086
5001
  privateNetworkId: string;
5087
5002
  };
@@ -5149,10 +5064,7 @@ export interface operations {
5149
5064
  "delete-subnet": {
5150
5065
  parameters: {
5151
5066
  query?: never;
5152
- header: {
5153
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5154
- "Idempotency-Key": string;
5155
- };
5067
+ header?: never;
5156
5068
  path: {
5157
5069
  privateNetworkId: string;
5158
5070
  subnetId: string;
@@ -5215,10 +5127,7 @@ export interface operations {
5215
5127
  "create-security-group": {
5216
5128
  parameters: {
5217
5129
  query?: never;
5218
- header: {
5219
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5220
- "Idempotency-Key": string;
5221
- };
5130
+ header?: never;
5222
5131
  path?: never;
5223
5132
  cookie?: never;
5224
5133
  };
@@ -5282,10 +5191,7 @@ export interface operations {
5282
5191
  "delete-security-group": {
5283
5192
  parameters: {
5284
5193
  query?: never;
5285
- header: {
5286
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5287
- "Idempotency-Key": string;
5288
- };
5194
+ header?: never;
5289
5195
  path: {
5290
5196
  securityGroupId: string;
5291
5197
  };
@@ -5314,10 +5220,7 @@ export interface operations {
5314
5220
  "rename-security-group": {
5315
5221
  parameters: {
5316
5222
  query?: never;
5317
- header: {
5318
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5319
- "Idempotency-Key": string;
5320
- };
5223
+ header?: never;
5321
5224
  path: {
5322
5225
  securityGroupId: string;
5323
5226
  };
@@ -5383,10 +5286,7 @@ export interface operations {
5383
5286
  "create-security-group-rule": {
5384
5287
  parameters: {
5385
5288
  query?: never;
5386
- header: {
5387
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5388
- "Idempotency-Key": string;
5389
- };
5289
+ header?: never;
5390
5290
  path: {
5391
5291
  securityGroupId: string;
5392
5292
  };
@@ -5421,10 +5321,7 @@ export interface operations {
5421
5321
  "delete-security-group-rule": {
5422
5322
  parameters: {
5423
5323
  query?: never;
5424
- header: {
5425
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5426
- "Idempotency-Key": string;
5427
- };
5324
+ header?: never;
5428
5325
  path: {
5429
5326
  securityGroupId: string;
5430
5327
  ruleId: string;
@@ -5584,10 +5481,7 @@ export interface operations {
5584
5481
  "rename-snapshot": {
5585
5482
  parameters: {
5586
5483
  query?: never;
5587
- header: {
5588
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5589
- "Idempotency-Key": string;
5590
- };
5484
+ header?: never;
5591
5485
  path: {
5592
5486
  snapshotId: string;
5593
5487
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.70.0",
3
+ "version": "0.72.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {