@leaflow/sdk 0.13.1 → 0.14.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.
- package/dist/compute/v1/index.d.ts +8 -4
- package/dist/compute/v1/schema.d.ts +159 -53
- package/package.json +1 -1
|
@@ -86,10 +86,6 @@ export type GetInstanceResult = operations["get-instance"]["responses"][200]["co
|
|
|
86
86
|
export type RenameInstanceResult = operations["rename-instance"]["responses"][200]["content"]["application/json"];
|
|
87
87
|
/** `PATCH /api/v1/instances/{instanceId}` 的请求体。 */
|
|
88
88
|
export type RenameInstanceBody = NonNullable<operations["rename-instance"]["requestBody"]>["content"]["application/json"];
|
|
89
|
-
/** `POST /api/v1/instances/{instanceId}/actions` 成功时的响应体。 */
|
|
90
|
-
export type ActOnInstanceResult = operations["act-on-instance"]["responses"][200]["content"]["application/json"];
|
|
91
|
-
/** `POST /api/v1/instances/{instanceId}/actions` 的请求体。 */
|
|
92
|
-
export type ActOnInstanceBody = NonNullable<operations["act-on-instance"]["requestBody"]>["content"]["application/json"];
|
|
93
89
|
/** `POST /api/v1/instances/{instanceId}/commands` 成功时的响应体。 */
|
|
94
90
|
export type RunInstanceCommandResult = operations["run-instance-command"]["responses"][200]["content"]["application/json"];
|
|
95
91
|
/** `POST /api/v1/instances/{instanceId}/commands` 的请求体。 */
|
|
@@ -104,6 +100,10 @@ export type GetInstanceConsoleOutputQuery = operations["get-instance-console-out
|
|
|
104
100
|
export type ResetInstancePasswordResult = operations["reset-instance-password"]["responses"][200]["content"]["application/json"];
|
|
105
101
|
/** `POST /api/v1/instances/{instanceId}/password` 的请求体。 */
|
|
106
102
|
export type ResetInstancePasswordBody = NonNullable<operations["reset-instance-password"]["requestBody"]>["content"]["application/json"];
|
|
103
|
+
/** `POST /api/v1/instances/{instanceId}/reboot` 成功时的响应体。 */
|
|
104
|
+
export type RebootInstanceResult = operations["reboot-instance"]["responses"][200]["content"]["application/json"];
|
|
105
|
+
/** `POST /api/v1/instances/{instanceId}/reboot` 的请求体。 */
|
|
106
|
+
export type RebootInstanceBody = NonNullable<operations["reboot-instance"]["requestBody"]>["content"]["application/json"];
|
|
107
107
|
/** `POST /api/v1/instances/{instanceId}/rebuild` 成功时的响应体。 */
|
|
108
108
|
export type RebuildInstanceResult = operations["rebuild-instance"]["responses"][200]["content"]["application/json"];
|
|
109
109
|
/** `POST /api/v1/instances/{instanceId}/rebuild` 的请求体。 */
|
|
@@ -116,6 +116,10 @@ export type ResizeInstanceBody = NonNullable<operations["resize-instance"]["requ
|
|
|
116
116
|
export type ConfirmInstanceResizeResult = operations["confirm-instance-resize"]["responses"][200]["content"]["application/json"];
|
|
117
117
|
/** `POST /api/v1/instances/{instanceId}/resize/revert` 成功时的响应体。 */
|
|
118
118
|
export type RevertInstanceResizeResult = operations["revert-instance-resize"]["responses"][200]["content"]["application/json"];
|
|
119
|
+
/** `POST /api/v1/instances/{instanceId}/start` 成功时的响应体。 */
|
|
120
|
+
export type StartInstanceResult = operations["start-instance"]["responses"][200]["content"]["application/json"];
|
|
121
|
+
/** `POST /api/v1/instances/{instanceId}/stop` 成功时的响应体。 */
|
|
122
|
+
export type StopInstanceResult = operations["stop-instance"]["responses"][200]["content"]["application/json"];
|
|
119
123
|
/** `GET /api/v1/instances/{instanceId}/disks` 成功时的响应体。 */
|
|
120
124
|
export type ListInstanceDisksResult = operations["list-instance-disks"]["responses"][200]["content"]["application/json"];
|
|
121
125
|
/** `POST /api/v1/instances/{instanceId}/disks` 成功时的响应体。 */
|
|
@@ -408,32 +408,6 @@ export interface paths {
|
|
|
408
408
|
patch: operations["rename-instance"];
|
|
409
409
|
trace?: never;
|
|
410
410
|
};
|
|
411
|
-
"/api/v1/instances/{instanceId}/actions": {
|
|
412
|
-
parameters: {
|
|
413
|
-
query?: never;
|
|
414
|
-
header?: never;
|
|
415
|
-
path?: never;
|
|
416
|
-
cookie?: never;
|
|
417
|
-
};
|
|
418
|
-
get?: never;
|
|
419
|
-
put?: never;
|
|
420
|
-
/**
|
|
421
|
-
* Start, stop or reboot an instance
|
|
422
|
-
* @description Reboot defaults to a soft reboot, in which the operating system shuts down normally before starting again.
|
|
423
|
-
*
|
|
424
|
-
* A soft reboot has no effect once the system is unresponsive. Set `force` to reboot forcibly: a forced reboot does not wait for the operating system to shut down, so **unwritten data is lost**. `force` applies to `reboot` only.
|
|
425
|
-
*
|
|
426
|
-
* An instance suspended by the platform must be unsuspended first.
|
|
427
|
-
*
|
|
428
|
-
* This endpoint returns immediately and the `status` it returns is a transient state: `starting` for start, `stopping` for stop, `rebooting` for reboot. Poll the instance until it settles at `running` or `stopped`.
|
|
429
|
-
*/
|
|
430
|
-
post: operations["act-on-instance"];
|
|
431
|
-
delete?: never;
|
|
432
|
-
options?: never;
|
|
433
|
-
head?: never;
|
|
434
|
-
patch?: never;
|
|
435
|
-
trace?: never;
|
|
436
|
-
};
|
|
437
411
|
"/api/v1/instances/{instanceId}/commands": {
|
|
438
412
|
parameters: {
|
|
439
413
|
query?: never;
|
|
@@ -534,6 +508,32 @@ export interface paths {
|
|
|
534
508
|
patch?: never;
|
|
535
509
|
trace?: never;
|
|
536
510
|
};
|
|
511
|
+
"/api/v1/instances/{instanceId}/reboot": {
|
|
512
|
+
parameters: {
|
|
513
|
+
query?: never;
|
|
514
|
+
header?: never;
|
|
515
|
+
path?: never;
|
|
516
|
+
cookie?: never;
|
|
517
|
+
};
|
|
518
|
+
get?: never;
|
|
519
|
+
put?: never;
|
|
520
|
+
/**
|
|
521
|
+
* Reboot an instance
|
|
522
|
+
* @description A reboot defaults to soft, in which the operating system shuts down normally before starting again.
|
|
523
|
+
*
|
|
524
|
+
* A soft reboot has no effect once the system is unresponsive. Set `force` to reboot forcibly: a forced reboot does not wait for the operating system to shut down, so **unwritten data is lost**.
|
|
525
|
+
*
|
|
526
|
+
* An instance suspended by the platform must be unsuspended first.
|
|
527
|
+
*
|
|
528
|
+
* This endpoint returns immediately and the `status` it returns is the transient `rebooting`. Poll the instance until it settles at `running`.
|
|
529
|
+
*/
|
|
530
|
+
post: operations["reboot-instance"];
|
|
531
|
+
delete?: never;
|
|
532
|
+
options?: never;
|
|
533
|
+
head?: never;
|
|
534
|
+
patch?: never;
|
|
535
|
+
trace?: never;
|
|
536
|
+
};
|
|
537
537
|
"/api/v1/instances/{instanceId}/rebuild": {
|
|
538
538
|
parameters: {
|
|
539
539
|
query?: never;
|
|
@@ -618,6 +618,52 @@ export interface paths {
|
|
|
618
618
|
patch?: never;
|
|
619
619
|
trace?: never;
|
|
620
620
|
};
|
|
621
|
+
"/api/v1/instances/{instanceId}/start": {
|
|
622
|
+
parameters: {
|
|
623
|
+
query?: never;
|
|
624
|
+
header?: never;
|
|
625
|
+
path?: never;
|
|
626
|
+
cookie?: never;
|
|
627
|
+
};
|
|
628
|
+
get?: never;
|
|
629
|
+
put?: never;
|
|
630
|
+
/**
|
|
631
|
+
* Start an instance
|
|
632
|
+
* @description An instance suspended by the platform must be unsuspended first.
|
|
633
|
+
*
|
|
634
|
+
* This endpoint returns immediately and the `status` it returns is the transient `starting`. Poll the instance until it settles at `running`.
|
|
635
|
+
*/
|
|
636
|
+
post: operations["start-instance"];
|
|
637
|
+
delete?: never;
|
|
638
|
+
options?: never;
|
|
639
|
+
head?: never;
|
|
640
|
+
patch?: never;
|
|
641
|
+
trace?: never;
|
|
642
|
+
};
|
|
643
|
+
"/api/v1/instances/{instanceId}/stop": {
|
|
644
|
+
parameters: {
|
|
645
|
+
query?: never;
|
|
646
|
+
header?: never;
|
|
647
|
+
path?: never;
|
|
648
|
+
cookie?: never;
|
|
649
|
+
};
|
|
650
|
+
get?: never;
|
|
651
|
+
put?: never;
|
|
652
|
+
/**
|
|
653
|
+
* Stop an instance
|
|
654
|
+
* @description The operating system is asked to shut down and is powered off once it does, or once it stops responding for long enough. Stopping does not release the instance: it keeps its disks, its addresses and its name, and starts again where it left off.
|
|
655
|
+
*
|
|
656
|
+
* An instance suspended by the platform must be unsuspended first.
|
|
657
|
+
*
|
|
658
|
+
* This endpoint returns immediately and the `status` it returns is the transient `stopping`. Poll the instance until it settles at `stopped`.
|
|
659
|
+
*/
|
|
660
|
+
post: operations["stop-instance"];
|
|
661
|
+
delete?: never;
|
|
662
|
+
options?: never;
|
|
663
|
+
head?: never;
|
|
664
|
+
patch?: never;
|
|
665
|
+
trace?: never;
|
|
666
|
+
};
|
|
621
667
|
"/api/v1/instances/{instanceId}/disks": {
|
|
622
668
|
parameters: {
|
|
623
669
|
query?: never;
|
|
@@ -1493,10 +1539,8 @@ export interface components {
|
|
|
1493
1539
|
RenameInstanceRequestBody: {
|
|
1494
1540
|
name: string;
|
|
1495
1541
|
};
|
|
1496
|
-
|
|
1497
|
-
/** @
|
|
1498
|
-
action: "start" | "stop" | "reboot";
|
|
1499
|
-
/** @description Applies to `reboot` only. A forced reboot does not wait for the operating system to shut down and unwritten data is lost; use it when the system is unresponsive */
|
|
1542
|
+
RebootInstanceRequestBody: {
|
|
1543
|
+
/** @description A forced reboot does not wait for the operating system to shut down and unwritten data is lost; use it when the system is unresponsive. False when omitted */
|
|
1500
1544
|
force?: boolean;
|
|
1501
1545
|
};
|
|
1502
1546
|
RunCommandRequestBody: {
|
|
@@ -2841,7 +2885,7 @@ export interface operations {
|
|
|
2841
2885
|
};
|
|
2842
2886
|
};
|
|
2843
2887
|
};
|
|
2844
|
-
"
|
|
2888
|
+
"run-instance-command": {
|
|
2845
2889
|
parameters: {
|
|
2846
2890
|
query?: never;
|
|
2847
2891
|
header?: never;
|
|
@@ -2852,7 +2896,7 @@ export interface operations {
|
|
|
2852
2896
|
};
|
|
2853
2897
|
requestBody: {
|
|
2854
2898
|
content: {
|
|
2855
|
-
"application/json": components["schemas"]["
|
|
2899
|
+
"application/json": components["schemas"]["RunCommandRequestBody"];
|
|
2856
2900
|
};
|
|
2857
2901
|
};
|
|
2858
2902
|
responses: {
|
|
@@ -2862,7 +2906,7 @@ export interface operations {
|
|
|
2862
2906
|
[name: string]: unknown;
|
|
2863
2907
|
};
|
|
2864
2908
|
content: {
|
|
2865
|
-
"application/json": components["schemas"]["
|
|
2909
|
+
"application/json": components["schemas"]["CommandResultResponseBody"];
|
|
2866
2910
|
};
|
|
2867
2911
|
};
|
|
2868
2912
|
/** @description Error */
|
|
@@ -2876,7 +2920,7 @@ export interface operations {
|
|
|
2876
2920
|
};
|
|
2877
2921
|
};
|
|
2878
2922
|
};
|
|
2879
|
-
"
|
|
2923
|
+
"open-instance-console": {
|
|
2880
2924
|
parameters: {
|
|
2881
2925
|
query?: never;
|
|
2882
2926
|
header?: never;
|
|
@@ -2885,11 +2929,7 @@ export interface operations {
|
|
|
2885
2929
|
};
|
|
2886
2930
|
cookie?: never;
|
|
2887
2931
|
};
|
|
2888
|
-
requestBody
|
|
2889
|
-
content: {
|
|
2890
|
-
"application/json": components["schemas"]["RunCommandRequestBody"];
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2932
|
+
requestBody?: never;
|
|
2893
2933
|
responses: {
|
|
2894
2934
|
/** @description OK */
|
|
2895
2935
|
200: {
|
|
@@ -2897,7 +2937,7 @@ export interface operations {
|
|
|
2897
2937
|
[name: string]: unknown;
|
|
2898
2938
|
};
|
|
2899
2939
|
content: {
|
|
2900
|
-
"application/json": components["schemas"]["
|
|
2940
|
+
"application/json": components["schemas"]["ConsoleResponseBody"];
|
|
2901
2941
|
};
|
|
2902
2942
|
};
|
|
2903
2943
|
/** @description Error */
|
|
@@ -2911,9 +2951,12 @@ export interface operations {
|
|
|
2911
2951
|
};
|
|
2912
2952
|
};
|
|
2913
2953
|
};
|
|
2914
|
-
"
|
|
2954
|
+
"get-instance-console-output": {
|
|
2915
2955
|
parameters: {
|
|
2916
|
-
query?:
|
|
2956
|
+
query?: {
|
|
2957
|
+
/** @description Number of trailing lines to return; 0 returns the entire output */
|
|
2958
|
+
lines?: number;
|
|
2959
|
+
};
|
|
2917
2960
|
header?: never;
|
|
2918
2961
|
path: {
|
|
2919
2962
|
instanceId: string;
|
|
@@ -2928,7 +2971,7 @@ export interface operations {
|
|
|
2928
2971
|
[name: string]: unknown;
|
|
2929
2972
|
};
|
|
2930
2973
|
content: {
|
|
2931
|
-
"application/json": components["schemas"]["
|
|
2974
|
+
"application/json": components["schemas"]["ConsoleOutputResponseBody"];
|
|
2932
2975
|
};
|
|
2933
2976
|
};
|
|
2934
2977
|
/** @description Error */
|
|
@@ -2942,19 +2985,20 @@ export interface operations {
|
|
|
2942
2985
|
};
|
|
2943
2986
|
};
|
|
2944
2987
|
};
|
|
2945
|
-
"
|
|
2988
|
+
"reset-instance-password": {
|
|
2946
2989
|
parameters: {
|
|
2947
|
-
query?:
|
|
2948
|
-
/** @description Number of trailing lines to return; 0 returns the entire output */
|
|
2949
|
-
lines?: number;
|
|
2950
|
-
};
|
|
2990
|
+
query?: never;
|
|
2951
2991
|
header?: never;
|
|
2952
2992
|
path: {
|
|
2953
2993
|
instanceId: string;
|
|
2954
2994
|
};
|
|
2955
2995
|
cookie?: never;
|
|
2956
2996
|
};
|
|
2957
|
-
requestBody
|
|
2997
|
+
requestBody: {
|
|
2998
|
+
content: {
|
|
2999
|
+
"application/json": components["schemas"]["ResetPasswordRequestBody"];
|
|
3000
|
+
};
|
|
3001
|
+
};
|
|
2958
3002
|
responses: {
|
|
2959
3003
|
/** @description OK */
|
|
2960
3004
|
200: {
|
|
@@ -2962,7 +3006,7 @@ export interface operations {
|
|
|
2962
3006
|
[name: string]: unknown;
|
|
2963
3007
|
};
|
|
2964
3008
|
content: {
|
|
2965
|
-
"application/json": components["schemas"]["
|
|
3009
|
+
"application/json": components["schemas"]["ResetPasswordResponseBody"];
|
|
2966
3010
|
};
|
|
2967
3011
|
};
|
|
2968
3012
|
/** @description Error */
|
|
@@ -2976,7 +3020,7 @@ export interface operations {
|
|
|
2976
3020
|
};
|
|
2977
3021
|
};
|
|
2978
3022
|
};
|
|
2979
|
-
"
|
|
3023
|
+
"reboot-instance": {
|
|
2980
3024
|
parameters: {
|
|
2981
3025
|
query?: never;
|
|
2982
3026
|
header?: never;
|
|
@@ -2987,7 +3031,7 @@ export interface operations {
|
|
|
2987
3031
|
};
|
|
2988
3032
|
requestBody: {
|
|
2989
3033
|
content: {
|
|
2990
|
-
"application/json": components["schemas"]["
|
|
3034
|
+
"application/json": components["schemas"]["RebootInstanceRequestBody"];
|
|
2991
3035
|
};
|
|
2992
3036
|
};
|
|
2993
3037
|
responses: {
|
|
@@ -2997,7 +3041,7 @@ export interface operations {
|
|
|
2997
3041
|
[name: string]: unknown;
|
|
2998
3042
|
};
|
|
2999
3043
|
content: {
|
|
3000
|
-
"application/json": components["schemas"]["
|
|
3044
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3001
3045
|
};
|
|
3002
3046
|
};
|
|
3003
3047
|
/** @description Error */
|
|
@@ -3143,6 +3187,68 @@ export interface operations {
|
|
|
3143
3187
|
};
|
|
3144
3188
|
};
|
|
3145
3189
|
};
|
|
3190
|
+
"start-instance": {
|
|
3191
|
+
parameters: {
|
|
3192
|
+
query?: never;
|
|
3193
|
+
header?: never;
|
|
3194
|
+
path: {
|
|
3195
|
+
instanceId: string;
|
|
3196
|
+
};
|
|
3197
|
+
cookie?: never;
|
|
3198
|
+
};
|
|
3199
|
+
requestBody?: never;
|
|
3200
|
+
responses: {
|
|
3201
|
+
/** @description OK */
|
|
3202
|
+
200: {
|
|
3203
|
+
headers: {
|
|
3204
|
+
[name: string]: unknown;
|
|
3205
|
+
};
|
|
3206
|
+
content: {
|
|
3207
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3208
|
+
};
|
|
3209
|
+
};
|
|
3210
|
+
/** @description Error */
|
|
3211
|
+
default: {
|
|
3212
|
+
headers: {
|
|
3213
|
+
[name: string]: unknown;
|
|
3214
|
+
};
|
|
3215
|
+
content: {
|
|
3216
|
+
"application/json": components["schemas"]["Error"];
|
|
3217
|
+
};
|
|
3218
|
+
};
|
|
3219
|
+
};
|
|
3220
|
+
};
|
|
3221
|
+
"stop-instance": {
|
|
3222
|
+
parameters: {
|
|
3223
|
+
query?: never;
|
|
3224
|
+
header?: never;
|
|
3225
|
+
path: {
|
|
3226
|
+
instanceId: string;
|
|
3227
|
+
};
|
|
3228
|
+
cookie?: never;
|
|
3229
|
+
};
|
|
3230
|
+
requestBody?: never;
|
|
3231
|
+
responses: {
|
|
3232
|
+
/** @description OK */
|
|
3233
|
+
200: {
|
|
3234
|
+
headers: {
|
|
3235
|
+
[name: string]: unknown;
|
|
3236
|
+
};
|
|
3237
|
+
content: {
|
|
3238
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3239
|
+
};
|
|
3240
|
+
};
|
|
3241
|
+
/** @description Error */
|
|
3242
|
+
default: {
|
|
3243
|
+
headers: {
|
|
3244
|
+
[name: string]: unknown;
|
|
3245
|
+
};
|
|
3246
|
+
content: {
|
|
3247
|
+
"application/json": components["schemas"]["Error"];
|
|
3248
|
+
};
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
};
|
|
3146
3252
|
"list-instance-disks": {
|
|
3147
3253
|
parameters: {
|
|
3148
3254
|
query?: never;
|