@leaflow/sdk 0.13.1 → 0.14.1
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 +161 -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,34 @@ 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
|
+
* A forced reboot is accepted while the instance is already `rebooting`, which is the way out of a soft reboot the instance never carried out. Every other endpoint refuses an instance in a transient state, and a second soft reboot is refused as well.
|
|
527
|
+
*
|
|
528
|
+
* An instance suspended by the platform must be unsuspended first.
|
|
529
|
+
*
|
|
530
|
+
* This endpoint returns immediately and the `status` it returns is the transient `rebooting`. Poll the instance until it settles at `running`.
|
|
531
|
+
*/
|
|
532
|
+
post: operations["reboot-instance"];
|
|
533
|
+
delete?: never;
|
|
534
|
+
options?: never;
|
|
535
|
+
head?: never;
|
|
536
|
+
patch?: never;
|
|
537
|
+
trace?: never;
|
|
538
|
+
};
|
|
537
539
|
"/api/v1/instances/{instanceId}/rebuild": {
|
|
538
540
|
parameters: {
|
|
539
541
|
query?: never;
|
|
@@ -618,6 +620,52 @@ export interface paths {
|
|
|
618
620
|
patch?: never;
|
|
619
621
|
trace?: never;
|
|
620
622
|
};
|
|
623
|
+
"/api/v1/instances/{instanceId}/start": {
|
|
624
|
+
parameters: {
|
|
625
|
+
query?: never;
|
|
626
|
+
header?: never;
|
|
627
|
+
path?: never;
|
|
628
|
+
cookie?: never;
|
|
629
|
+
};
|
|
630
|
+
get?: never;
|
|
631
|
+
put?: never;
|
|
632
|
+
/**
|
|
633
|
+
* Start an instance
|
|
634
|
+
* @description An instance suspended by the platform must be unsuspended first.
|
|
635
|
+
*
|
|
636
|
+
* This endpoint returns immediately and the `status` it returns is the transient `starting`. Poll the instance until it settles at `running`.
|
|
637
|
+
*/
|
|
638
|
+
post: operations["start-instance"];
|
|
639
|
+
delete?: never;
|
|
640
|
+
options?: never;
|
|
641
|
+
head?: never;
|
|
642
|
+
patch?: never;
|
|
643
|
+
trace?: never;
|
|
644
|
+
};
|
|
645
|
+
"/api/v1/instances/{instanceId}/stop": {
|
|
646
|
+
parameters: {
|
|
647
|
+
query?: never;
|
|
648
|
+
header?: never;
|
|
649
|
+
path?: never;
|
|
650
|
+
cookie?: never;
|
|
651
|
+
};
|
|
652
|
+
get?: never;
|
|
653
|
+
put?: never;
|
|
654
|
+
/**
|
|
655
|
+
* Stop an instance
|
|
656
|
+
* @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.
|
|
657
|
+
*
|
|
658
|
+
* An instance suspended by the platform must be unsuspended first.
|
|
659
|
+
*
|
|
660
|
+
* This endpoint returns immediately and the `status` it returns is the transient `stopping`. Poll the instance until it settles at `stopped`.
|
|
661
|
+
*/
|
|
662
|
+
post: operations["stop-instance"];
|
|
663
|
+
delete?: never;
|
|
664
|
+
options?: never;
|
|
665
|
+
head?: never;
|
|
666
|
+
patch?: never;
|
|
667
|
+
trace?: never;
|
|
668
|
+
};
|
|
621
669
|
"/api/v1/instances/{instanceId}/disks": {
|
|
622
670
|
parameters: {
|
|
623
671
|
query?: never;
|
|
@@ -1493,10 +1541,8 @@ export interface components {
|
|
|
1493
1541
|
RenameInstanceRequestBody: {
|
|
1494
1542
|
name: string;
|
|
1495
1543
|
};
|
|
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 */
|
|
1544
|
+
RebootInstanceRequestBody: {
|
|
1545
|
+
/** @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
1546
|
force?: boolean;
|
|
1501
1547
|
};
|
|
1502
1548
|
RunCommandRequestBody: {
|
|
@@ -2841,7 +2887,7 @@ export interface operations {
|
|
|
2841
2887
|
};
|
|
2842
2888
|
};
|
|
2843
2889
|
};
|
|
2844
|
-
"
|
|
2890
|
+
"run-instance-command": {
|
|
2845
2891
|
parameters: {
|
|
2846
2892
|
query?: never;
|
|
2847
2893
|
header?: never;
|
|
@@ -2852,7 +2898,7 @@ export interface operations {
|
|
|
2852
2898
|
};
|
|
2853
2899
|
requestBody: {
|
|
2854
2900
|
content: {
|
|
2855
|
-
"application/json": components["schemas"]["
|
|
2901
|
+
"application/json": components["schemas"]["RunCommandRequestBody"];
|
|
2856
2902
|
};
|
|
2857
2903
|
};
|
|
2858
2904
|
responses: {
|
|
@@ -2862,7 +2908,7 @@ export interface operations {
|
|
|
2862
2908
|
[name: string]: unknown;
|
|
2863
2909
|
};
|
|
2864
2910
|
content: {
|
|
2865
|
-
"application/json": components["schemas"]["
|
|
2911
|
+
"application/json": components["schemas"]["CommandResultResponseBody"];
|
|
2866
2912
|
};
|
|
2867
2913
|
};
|
|
2868
2914
|
/** @description Error */
|
|
@@ -2876,7 +2922,7 @@ export interface operations {
|
|
|
2876
2922
|
};
|
|
2877
2923
|
};
|
|
2878
2924
|
};
|
|
2879
|
-
"
|
|
2925
|
+
"open-instance-console": {
|
|
2880
2926
|
parameters: {
|
|
2881
2927
|
query?: never;
|
|
2882
2928
|
header?: never;
|
|
@@ -2885,11 +2931,7 @@ export interface operations {
|
|
|
2885
2931
|
};
|
|
2886
2932
|
cookie?: never;
|
|
2887
2933
|
};
|
|
2888
|
-
requestBody
|
|
2889
|
-
content: {
|
|
2890
|
-
"application/json": components["schemas"]["RunCommandRequestBody"];
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2934
|
+
requestBody?: never;
|
|
2893
2935
|
responses: {
|
|
2894
2936
|
/** @description OK */
|
|
2895
2937
|
200: {
|
|
@@ -2897,7 +2939,7 @@ export interface operations {
|
|
|
2897
2939
|
[name: string]: unknown;
|
|
2898
2940
|
};
|
|
2899
2941
|
content: {
|
|
2900
|
-
"application/json": components["schemas"]["
|
|
2942
|
+
"application/json": components["schemas"]["ConsoleResponseBody"];
|
|
2901
2943
|
};
|
|
2902
2944
|
};
|
|
2903
2945
|
/** @description Error */
|
|
@@ -2911,9 +2953,12 @@ export interface operations {
|
|
|
2911
2953
|
};
|
|
2912
2954
|
};
|
|
2913
2955
|
};
|
|
2914
|
-
"
|
|
2956
|
+
"get-instance-console-output": {
|
|
2915
2957
|
parameters: {
|
|
2916
|
-
query?:
|
|
2958
|
+
query?: {
|
|
2959
|
+
/** @description Number of trailing lines to return; 0 returns the entire output */
|
|
2960
|
+
lines?: number;
|
|
2961
|
+
};
|
|
2917
2962
|
header?: never;
|
|
2918
2963
|
path: {
|
|
2919
2964
|
instanceId: string;
|
|
@@ -2928,7 +2973,7 @@ export interface operations {
|
|
|
2928
2973
|
[name: string]: unknown;
|
|
2929
2974
|
};
|
|
2930
2975
|
content: {
|
|
2931
|
-
"application/json": components["schemas"]["
|
|
2976
|
+
"application/json": components["schemas"]["ConsoleOutputResponseBody"];
|
|
2932
2977
|
};
|
|
2933
2978
|
};
|
|
2934
2979
|
/** @description Error */
|
|
@@ -2942,19 +2987,20 @@ export interface operations {
|
|
|
2942
2987
|
};
|
|
2943
2988
|
};
|
|
2944
2989
|
};
|
|
2945
|
-
"
|
|
2990
|
+
"reset-instance-password": {
|
|
2946
2991
|
parameters: {
|
|
2947
|
-
query?:
|
|
2948
|
-
/** @description Number of trailing lines to return; 0 returns the entire output */
|
|
2949
|
-
lines?: number;
|
|
2950
|
-
};
|
|
2992
|
+
query?: never;
|
|
2951
2993
|
header?: never;
|
|
2952
2994
|
path: {
|
|
2953
2995
|
instanceId: string;
|
|
2954
2996
|
};
|
|
2955
2997
|
cookie?: never;
|
|
2956
2998
|
};
|
|
2957
|
-
requestBody
|
|
2999
|
+
requestBody: {
|
|
3000
|
+
content: {
|
|
3001
|
+
"application/json": components["schemas"]["ResetPasswordRequestBody"];
|
|
3002
|
+
};
|
|
3003
|
+
};
|
|
2958
3004
|
responses: {
|
|
2959
3005
|
/** @description OK */
|
|
2960
3006
|
200: {
|
|
@@ -2962,7 +3008,7 @@ export interface operations {
|
|
|
2962
3008
|
[name: string]: unknown;
|
|
2963
3009
|
};
|
|
2964
3010
|
content: {
|
|
2965
|
-
"application/json": components["schemas"]["
|
|
3011
|
+
"application/json": components["schemas"]["ResetPasswordResponseBody"];
|
|
2966
3012
|
};
|
|
2967
3013
|
};
|
|
2968
3014
|
/** @description Error */
|
|
@@ -2976,7 +3022,7 @@ export interface operations {
|
|
|
2976
3022
|
};
|
|
2977
3023
|
};
|
|
2978
3024
|
};
|
|
2979
|
-
"
|
|
3025
|
+
"reboot-instance": {
|
|
2980
3026
|
parameters: {
|
|
2981
3027
|
query?: never;
|
|
2982
3028
|
header?: never;
|
|
@@ -2987,7 +3033,7 @@ export interface operations {
|
|
|
2987
3033
|
};
|
|
2988
3034
|
requestBody: {
|
|
2989
3035
|
content: {
|
|
2990
|
-
"application/json": components["schemas"]["
|
|
3036
|
+
"application/json": components["schemas"]["RebootInstanceRequestBody"];
|
|
2991
3037
|
};
|
|
2992
3038
|
};
|
|
2993
3039
|
responses: {
|
|
@@ -2997,7 +3043,7 @@ export interface operations {
|
|
|
2997
3043
|
[name: string]: unknown;
|
|
2998
3044
|
};
|
|
2999
3045
|
content: {
|
|
3000
|
-
"application/json": components["schemas"]["
|
|
3046
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3001
3047
|
};
|
|
3002
3048
|
};
|
|
3003
3049
|
/** @description Error */
|
|
@@ -3143,6 +3189,68 @@ export interface operations {
|
|
|
3143
3189
|
};
|
|
3144
3190
|
};
|
|
3145
3191
|
};
|
|
3192
|
+
"start-instance": {
|
|
3193
|
+
parameters: {
|
|
3194
|
+
query?: never;
|
|
3195
|
+
header?: never;
|
|
3196
|
+
path: {
|
|
3197
|
+
instanceId: string;
|
|
3198
|
+
};
|
|
3199
|
+
cookie?: never;
|
|
3200
|
+
};
|
|
3201
|
+
requestBody?: never;
|
|
3202
|
+
responses: {
|
|
3203
|
+
/** @description OK */
|
|
3204
|
+
200: {
|
|
3205
|
+
headers: {
|
|
3206
|
+
[name: string]: unknown;
|
|
3207
|
+
};
|
|
3208
|
+
content: {
|
|
3209
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3210
|
+
};
|
|
3211
|
+
};
|
|
3212
|
+
/** @description Error */
|
|
3213
|
+
default: {
|
|
3214
|
+
headers: {
|
|
3215
|
+
[name: string]: unknown;
|
|
3216
|
+
};
|
|
3217
|
+
content: {
|
|
3218
|
+
"application/json": components["schemas"]["Error"];
|
|
3219
|
+
};
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
"stop-instance": {
|
|
3224
|
+
parameters: {
|
|
3225
|
+
query?: never;
|
|
3226
|
+
header?: never;
|
|
3227
|
+
path: {
|
|
3228
|
+
instanceId: string;
|
|
3229
|
+
};
|
|
3230
|
+
cookie?: never;
|
|
3231
|
+
};
|
|
3232
|
+
requestBody?: never;
|
|
3233
|
+
responses: {
|
|
3234
|
+
/** @description OK */
|
|
3235
|
+
200: {
|
|
3236
|
+
headers: {
|
|
3237
|
+
[name: string]: unknown;
|
|
3238
|
+
};
|
|
3239
|
+
content: {
|
|
3240
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3241
|
+
};
|
|
3242
|
+
};
|
|
3243
|
+
/** @description Error */
|
|
3244
|
+
default: {
|
|
3245
|
+
headers: {
|
|
3246
|
+
[name: string]: unknown;
|
|
3247
|
+
};
|
|
3248
|
+
content: {
|
|
3249
|
+
"application/json": components["schemas"]["Error"];
|
|
3250
|
+
};
|
|
3251
|
+
};
|
|
3252
|
+
};
|
|
3253
|
+
};
|
|
3146
3254
|
"list-instance-disks": {
|
|
3147
3255
|
parameters: {
|
|
3148
3256
|
query?: never;
|