@leaflow/sdk 0.0.0-dev.220.g26e832e → 0.0.0-dev.224.g2e0d1be

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.
@@ -48,6 +48,8 @@ export interface paths {
48
48
  * Delete a backup
49
49
  * @description Independent of the source disk: deletion succeeds whether or not that disk still exists.
50
50
  *
51
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the backup, including a pay-as-you-go subscription. `meta.resource_id` names the backup. It is released when its subscription ends.
52
+ *
51
53
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
52
54
  */
53
55
  delete: operations["delete-backup"];
@@ -246,6 +248,8 @@ export interface paths {
246
248
  * Delete a disk
247
249
  * @description Deletion is rejected while the disk is attached, or while snapshots created from it still exist.
248
250
  *
251
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the disk, including a pay-as-you-go subscription. `meta.resource_id` names the disk. It is released when its subscription ends.
252
+ *
249
253
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
250
254
  */
251
255
  delete: operations["delete-disk"];
@@ -328,6 +332,8 @@ export interface paths {
328
332
  *
329
333
  * IPv6 is not requested through this endpoint. IPv6 addresses are assigned to instances by the private network; enable IPv6 on that network instead.
330
334
  *
335
+ * Refused with `PRIVATE_NETWORK_UNAVAILABLE`, before any order is created, when the private network's `status` is not `available`. `meta.private_network_id` names it.
336
+ *
331
337
  * Replays return HTTP 201 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
332
338
  */
333
339
  post: operations["allocate-floating-ip"];
@@ -352,6 +358,8 @@ export interface paths {
352
358
  * Release a floating IP
353
359
  * @description Releases the floating IP after unbinding it. Completion is reported by the returned task.
354
360
  *
361
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the address or for its bandwidth, including a pay-as-you-go subscription. `meta.resource_id` names the floating IP. It is released when its subscriptions end.
362
+ *
355
363
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
356
364
  */
357
365
  delete: operations["release-floating-ip"];
@@ -426,6 +434,8 @@ export interface paths {
426
434
  *
427
435
  * A request for several instances is all or nothing: if any instance cannot be created, every instance of that request is released, the order fails, and any payment for it is refunded. Each instance is named after this request with a number appended, and each has its own task.
428
436
  *
437
+ * The network is checked before the order is created, and a request it refuses orders and charges nothing. It is refused with `PRIVATE_NETWORK_UNAVAILABLE` when the private network's `status` is not `available`, `SUBNET_UNAVAILABLE` or `SECURITY_GROUP_UNAVAILABLE` when the subnet or a security group is not ready, `SECURITY_GROUP_OTHER_PRIVATE_NETWORK` when a security group belongs to another private network, and `PORT_UNAVAILABLE` when the port's `status` is not `available`. `meta` names the resource.
438
+ *
429
439
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
430
440
  */
431
441
  post: operations["launch-instance"];
@@ -455,6 +465,8 @@ export interface paths {
455
465
  *
456
466
  * An instance being captured as a private image cannot be released. Wait for the capture to finish, or delete that image first.
457
467
  *
468
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the instance, or for a disk that is deleted with it, including a pay-as-you-go subscription. `meta.resource_id` names that resource. It is released when its subscription ends.
469
+ *
458
470
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
459
471
  */
460
472
  delete: operations["delete-instance"];
@@ -1028,6 +1040,8 @@ export interface paths {
1028
1040
  *
1029
1041
  * An image whose capture has not finished can be deleted; the capture is aborted.
1030
1042
  *
1043
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the image, including a pay-as-you-go subscription. `meta.resource_id` names the image. It is released when its subscription ends.
1044
+ *
1031
1045
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
1032
1046
  */
1033
1047
  delete: operations["delete-private-image"];
@@ -1331,7 +1345,9 @@ export interface paths {
1331
1345
  post?: never;
1332
1346
  /**
1333
1347
  * Delete a snapshot
1334
- * @description Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
1348
+ * @description Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the snapshot, including a pay-as-you-go subscription. `meta.resource_id` names the snapshot. It is released when its subscription ends.
1349
+ *
1350
+ * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
1335
1351
  */
1336
1352
  delete: operations["delete-snapshot"];
1337
1353
  options?: never;
@@ -2303,7 +2319,10 @@ export interface components {
2303
2319
  name: string;
2304
2320
  /** Format: uuid */
2305
2321
  region_id: string;
2306
- /** @enum {string} */
2322
+ /**
2323
+ * @description Only `available` accepts new instances, interfaces and floating IPs
2324
+ * @enum {string}
2325
+ */
2307
2326
  status: "pending" | "available" | "deleting" | "error" | "unknown";
2308
2327
  /** Format: date-time */
2309
2328
  updated_at: string;
@@ -2851,7 +2870,7 @@ export interface operations {
2851
2870
  "application/json": components["schemas"]["Task"];
2852
2871
  };
2853
2872
  };
2854
- /** @description The idempotency key was already used with different parameters in this scope. */
2873
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
2855
2874
  409: {
2856
2875
  headers: {
2857
2876
  [name: string]: unknown;
@@ -3269,7 +3288,7 @@ export interface operations {
3269
3288
  "application/json": components["schemas"]["Task"];
3270
3289
  };
3271
3290
  };
3272
- /** @description The idempotency key was already used with different parameters in this scope. */
3291
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
3273
3292
  409: {
3274
3293
  headers: {
3275
3294
  [name: string]: unknown;
@@ -3540,7 +3559,7 @@ export interface operations {
3540
3559
  "application/json": components["schemas"]["Task"];
3541
3560
  };
3542
3561
  };
3543
- /** @description The idempotency key was already used with different parameters in this scope. */
3562
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
3544
3563
  409: {
3545
3564
  headers: {
3546
3565
  [name: string]: unknown;
@@ -3800,7 +3819,7 @@ export interface operations {
3800
3819
  "application/json": components["schemas"]["Task"];
3801
3820
  };
3802
3821
  };
3803
- /** @description The idempotency key was already used with different parameters in this scope. */
3822
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
3804
3823
  409: {
3805
3824
  headers: {
3806
3825
  [name: string]: unknown;
@@ -4938,7 +4957,7 @@ export interface operations {
4938
4957
  "application/json": components["schemas"]["Task"];
4939
4958
  };
4940
4959
  };
4941
- /** @description The idempotency key was already used with different parameters in this scope. */
4960
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
4942
4961
  409: {
4943
4962
  headers: {
4944
4963
  [name: string]: unknown;
@@ -5854,7 +5873,7 @@ export interface operations {
5854
5873
  "application/json": components["schemas"]["Task"];
5855
5874
  };
5856
5875
  };
5857
- /** @description The idempotency key was already used with different parameters in this scope. */
5876
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
5858
5877
  409: {
5859
5878
  headers: {
5860
5879
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.0.0-dev.220.g26e832e",
3
+ "version": "0.0.0-dev.224.g2e0d1be",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {