@leaflow/sdk 0.0.0-dev.25.g6c5751f → 0.0.0-dev.250.g6df166c
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/README.md +22 -1
- package/dist/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +33 -22
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +307 -89
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +71 -40
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +1204 -139
- package/dist/billing/account/v1/client.d.ts +4 -0
- package/dist/billing/account/v1/client.js +7 -0
- package/dist/billing/account/v1/index.d.ts +169 -0
- package/dist/billing/account/v1/index.js +5 -0
- package/dist/billing/account/v1/schema.d.ts +4385 -0
- package/dist/billing/account/v1/schema.js +5 -0
- package/dist/billing/catalog/v1/client.d.ts +4 -0
- package/dist/billing/catalog/v1/client.js +7 -0
- package/dist/billing/catalog/v1/index.d.ts +33 -0
- package/dist/billing/catalog/v1/index.js +5 -0
- package/dist/billing/catalog/v1/schema.d.ts +915 -0
- package/dist/billing/catalog/v1/schema.js +5 -0
- package/dist/billing/index.d.ts +3 -0
- package/dist/billing/index.js +6 -0
- package/dist/billing/project/v1/client.d.ts +4 -0
- package/dist/billing/project/v1/client.js +7 -0
- package/dist/billing/project/v1/index.d.ts +59 -0
- package/dist/billing/project/v1/index.js +5 -0
- package/dist/billing/project/v1/schema.d.ts +1892 -0
- package/dist/billing/project/v1/schema.js +5 -0
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +207 -134
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +1945 -553
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +43 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +887 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +55 -32
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +521 -88
- package/dist/index.d.ts +11 -7
- package/dist/index.js +19 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +130 -49
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +81 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2048 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/routes.d.ts +3234 -0
- package/dist/routes.js +3639 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +51 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1082 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +8 -7
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +40 -34
- package/package.json +34 -10
|
@@ -1,232 +1,305 @@
|
|
|
1
1
|
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
|
+
export { client } from "./client.js";
|
|
2
3
|
import type { operations } from "./schema.js";
|
|
3
|
-
/** `GET /api/v1/backups
|
|
4
|
+
/** The success response body of `GET /api/v1/backups`. */
|
|
4
5
|
export type ListBackupsResult = operations["list-backups"]["responses"][200]["content"]["application/json"];
|
|
5
|
-
/** `GET /api/v1/backups
|
|
6
|
+
/** The query parameters of `GET /api/v1/backups`. */
|
|
6
7
|
export type ListBackupsQuery = operations["list-backups"]["parameters"]["query"];
|
|
7
|
-
/** `POST /api/v1/backups
|
|
8
|
+
/** The success response body of `POST /api/v1/backups`. */
|
|
8
9
|
export type CreateBackupResult = operations["create-backup"]["responses"][201]["content"]["application/json"];
|
|
9
|
-
/** `POST /api/v1/backups
|
|
10
|
+
/** The request body of `POST /api/v1/backups`. */
|
|
10
11
|
export type CreateBackupBody = NonNullable<operations["create-backup"]["requestBody"]>["content"]["application/json"];
|
|
11
|
-
/** `
|
|
12
|
+
/** The success response body of `POST /api/v1/backups/quote`. */
|
|
13
|
+
export type CreateBackupQuoteResult = operations["create-backup-quote"]["responses"][200]["content"]["application/json"];
|
|
14
|
+
/** The request body of `POST /api/v1/backups/quote`. */
|
|
15
|
+
export type CreateBackupQuoteBody = NonNullable<operations["create-backup-quote"]["requestBody"]>["content"]["application/json"];
|
|
16
|
+
/** The success response body of `GET /api/v1/backups/{backupId}`. */
|
|
12
17
|
export type GetBackupResult = operations["get-backup"]["responses"][200]["content"]["application/json"];
|
|
13
|
-
/** `PATCH /api/v1/backups/{backupId}
|
|
18
|
+
/** The success response body of `PATCH /api/v1/backups/{backupId}`. */
|
|
14
19
|
export type RenameBackupResult = operations["rename-backup"]["responses"][200]["content"]["application/json"];
|
|
15
|
-
/** `PATCH /api/v1/backups/{backupId}
|
|
20
|
+
/** The request body of `PATCH /api/v1/backups/{backupId}`. */
|
|
16
21
|
export type RenameBackupBody = NonNullable<operations["rename-backup"]["requestBody"]>["content"]["application/json"];
|
|
17
|
-
/** `
|
|
22
|
+
/** The success response body of `DELETE /api/v1/backups/{backupId}`. */
|
|
23
|
+
export type DeleteBackupResult = operations["delete-backup"]["responses"][202]["content"]["application/json"];
|
|
24
|
+
/** The success response body of `POST /api/v1/backups/{backupId}/restore`. */
|
|
18
25
|
export type RestoreBackupResult = operations["restore-backup"]["responses"][201]["content"]["application/json"];
|
|
19
|
-
/** `POST /api/v1/backups/{backupId}/restore
|
|
26
|
+
/** The request body of `POST /api/v1/backups/{backupId}/restore`. */
|
|
20
27
|
export type RestoreBackupBody = NonNullable<operations["restore-backup"]["requestBody"]>["content"]["application/json"];
|
|
21
|
-
/** `GET /api/v1/disk-types
|
|
28
|
+
/** The success response body of `GET /api/v1/disk-types`. */
|
|
22
29
|
export type ListDiskTypesResult = operations["list-disk-types"]["responses"][200]["content"]["application/json"];
|
|
23
|
-
/** `GET /api/v1/disk-types
|
|
30
|
+
/** The query parameters of `GET /api/v1/disk-types`. */
|
|
24
31
|
export type ListDiskTypesQuery = operations["list-disk-types"]["parameters"]["query"];
|
|
25
|
-
/** `GET /api/v1/
|
|
32
|
+
/** The success response body of `GET /api/v1/disk-types/{diskTypeId}`. */
|
|
33
|
+
export type GetDiskTypeResult = operations["get-disk-type"]["responses"][200]["content"]["application/json"];
|
|
34
|
+
/** The success response body of `GET /api/v1/images`. */
|
|
26
35
|
export type ListImagesResult = operations["list-images"]["responses"][200]["content"]["application/json"];
|
|
27
|
-
/** `GET /api/v1/images
|
|
36
|
+
/** The query parameters of `GET /api/v1/images`. */
|
|
28
37
|
export type ListImagesQuery = operations["list-images"]["parameters"]["query"];
|
|
29
|
-
/** `
|
|
38
|
+
/** The success response body of `POST /api/v1/images`. */
|
|
39
|
+
export type CreateImageResult = operations["create-image"]["responses"][201]["content"]["application/json"];
|
|
40
|
+
/** The request body of `POST /api/v1/images`. */
|
|
41
|
+
export type CreateImageBody = NonNullable<operations["create-image"]["requestBody"]>["content"]["application/json"];
|
|
42
|
+
/** The success response body of `POST /api/v1/images/quote`. */
|
|
43
|
+
export type CreateImageQuoteResult = operations["create-image-quote"]["responses"][200]["content"]["application/json"];
|
|
44
|
+
/** The request body of `POST /api/v1/images/quote`. */
|
|
45
|
+
export type CreateImageQuoteBody = NonNullable<operations["create-image-quote"]["requestBody"]>["content"]["application/json"];
|
|
46
|
+
/** The success response body of `GET /api/v1/images/{imageId}`. */
|
|
47
|
+
export type GetImageResult = operations["get-image"]["responses"][200]["content"]["application/json"];
|
|
48
|
+
/** The success response body of `PATCH /api/v1/images/{imageId}`. */
|
|
49
|
+
export type RenameImageResult = operations["rename-image"]["responses"][200]["content"]["application/json"];
|
|
50
|
+
/** The request body of `PATCH /api/v1/images/{imageId}`. */
|
|
51
|
+
export type RenameImageBody = NonNullable<operations["rename-image"]["requestBody"]>["content"]["application/json"];
|
|
52
|
+
/** The success response body of `DELETE /api/v1/images/{imageId}`. */
|
|
53
|
+
export type DeleteImageResult = operations["delete-image"]["responses"][202]["content"]["application/json"];
|
|
54
|
+
/** The success response body of `GET /api/v1/instance-types`. */
|
|
30
55
|
export type ListInstanceTypesResult = operations["list-instance-types"]["responses"][200]["content"]["application/json"];
|
|
31
|
-
/** `GET /api/v1/instance-types
|
|
56
|
+
/** The query parameters of `GET /api/v1/instance-types`. */
|
|
32
57
|
export type ListInstanceTypesQuery = operations["list-instance-types"]["parameters"]["query"];
|
|
33
|
-
/** `GET /api/v1/regions
|
|
58
|
+
/** The success response body of `GET /api/v1/regions`. */
|
|
34
59
|
export type ListRegionsResult = operations["list-regions"]["responses"][200]["content"]["application/json"];
|
|
35
|
-
/** `GET /api/v1/regions
|
|
60
|
+
/** The query parameters of `GET /api/v1/regions`. */
|
|
61
|
+
export type ListRegionsQuery = operations["list-regions"]["parameters"]["query"];
|
|
62
|
+
/** The success response body of `GET /api/v1/regions/{regionId}/availability-zones`. */
|
|
36
63
|
export type ListAvailabilityZonesResult = operations["list-availability-zones"]["responses"][200]["content"]["application/json"];
|
|
37
|
-
/** `GET /api/v1/
|
|
64
|
+
/** The query parameters of `GET /api/v1/regions/{regionId}/availability-zones`. */
|
|
65
|
+
export type ListAvailabilityZonesQuery = operations["list-availability-zones"]["parameters"]["query"];
|
|
66
|
+
/** The success response body of `GET /api/v1/disks`. */
|
|
38
67
|
export type ListDisksResult = operations["list-disks"]["responses"][200]["content"]["application/json"];
|
|
39
|
-
/** `GET /api/v1/disks
|
|
68
|
+
/** The query parameters of `GET /api/v1/disks`. */
|
|
40
69
|
export type ListDisksQuery = operations["list-disks"]["parameters"]["query"];
|
|
41
|
-
/** `POST /api/v1/disks
|
|
70
|
+
/** The success response body of `POST /api/v1/disks`. */
|
|
42
71
|
export type CreateDiskResult = operations["create-disk"]["responses"][201]["content"]["application/json"];
|
|
43
|
-
/** `POST /api/v1/disks
|
|
72
|
+
/** The request body of `POST /api/v1/disks`. */
|
|
44
73
|
export type CreateDiskBody = NonNullable<operations["create-disk"]["requestBody"]>["content"]["application/json"];
|
|
45
|
-
/** `GET /api/v1/disks/{diskId}
|
|
74
|
+
/** The success response body of `GET /api/v1/disks/{diskId}`. */
|
|
46
75
|
export type GetDiskResult = operations["get-disk"]["responses"][200]["content"]["application/json"];
|
|
47
|
-
/** `PATCH /api/v1/disks/{diskId}
|
|
76
|
+
/** The success response body of `PATCH /api/v1/disks/{diskId}`. */
|
|
48
77
|
export type RenameDiskResult = operations["rename-disk"]["responses"][200]["content"]["application/json"];
|
|
49
|
-
/** `PATCH /api/v1/disks/{diskId}
|
|
78
|
+
/** The request body of `PATCH /api/v1/disks/{diskId}`. */
|
|
50
79
|
export type RenameDiskBody = NonNullable<operations["rename-disk"]["requestBody"]>["content"]["application/json"];
|
|
51
|
-
/** `
|
|
80
|
+
/** The success response body of `DELETE /api/v1/disks/{diskId}`. */
|
|
81
|
+
export type DeleteDiskResult = operations["delete-disk"]["responses"][202]["content"]["application/json"];
|
|
82
|
+
/** The success response body of `POST /api/v1/disks/{diskId}/resize`. */
|
|
52
83
|
export type ResizeDiskResult = operations["resize-disk"]["responses"][200]["content"]["application/json"];
|
|
53
|
-
/** `POST /api/v1/disks/{diskId}/resize
|
|
84
|
+
/** The request body of `POST /api/v1/disks/{diskId}/resize`. */
|
|
54
85
|
export type ResizeDiskBody = NonNullable<operations["resize-disk"]["requestBody"]>["content"]["application/json"];
|
|
55
|
-
/** `POST /api/v1/disks/{diskId}/revert
|
|
56
|
-
export type RevertDiskResult = operations["revert-disk"]["responses"][
|
|
57
|
-
/** `POST /api/v1/disks/{diskId}/revert
|
|
86
|
+
/** The success response body of `POST /api/v1/disks/{diskId}/revert`. */
|
|
87
|
+
export type RevertDiskResult = operations["revert-disk"]["responses"][202]["content"]["application/json"];
|
|
88
|
+
/** The request body of `POST /api/v1/disks/{diskId}/revert`. */
|
|
58
89
|
export type RevertDiskBody = NonNullable<operations["revert-disk"]["requestBody"]>["content"]["application/json"];
|
|
59
|
-
/** `GET /api/v1/floating-ips
|
|
90
|
+
/** The success response body of `GET /api/v1/floating-ips`. */
|
|
60
91
|
export type ListFloatingIpsResult = operations["list-floating-ips"]["responses"][200]["content"]["application/json"];
|
|
61
|
-
/** `
|
|
92
|
+
/** The query parameters of `GET /api/v1/floating-ips`. */
|
|
93
|
+
export type ListFloatingIpsQuery = operations["list-floating-ips"]["parameters"]["query"];
|
|
94
|
+
/** The success response body of `POST /api/v1/floating-ips`. */
|
|
62
95
|
export type AllocateFloatingIpResult = operations["allocate-floating-ip"]["responses"][201]["content"]["application/json"];
|
|
63
|
-
/** `POST /api/v1/floating-ips
|
|
96
|
+
/** The request body of `POST /api/v1/floating-ips`. */
|
|
64
97
|
export type AllocateFloatingIpBody = NonNullable<operations["allocate-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
65
|
-
/** `GET /api/v1/floating-ips/{floatingIpId}
|
|
98
|
+
/** The success response body of `GET /api/v1/floating-ips/{floatingIpId}`. */
|
|
66
99
|
export type GetFloatingIpResult = operations["get-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
67
|
-
/** `
|
|
100
|
+
/** The success response body of `DELETE /api/v1/floating-ips/{floatingIpId}`. */
|
|
101
|
+
export type ReleaseFloatingIpResult = operations["release-floating-ip"]["responses"][202]["content"]["application/json"];
|
|
102
|
+
/** The success response body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
|
|
68
103
|
export type SetFloatingIpBandwidthResult = operations["set-floating-ip-bandwidth"]["responses"][200]["content"]["application/json"];
|
|
69
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth
|
|
104
|
+
/** The request body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
|
|
70
105
|
export type SetFloatingIpBandwidthBody = NonNullable<operations["set-floating-ip-bandwidth"]["requestBody"]>["content"]["application/json"];
|
|
71
|
-
/** `
|
|
72
|
-
export type UnbindFloatingIpResult = operations["unbind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
73
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/binding` 成功时的响应体。 */
|
|
106
|
+
/** The success response body of `PUT /api/v1/floating-ips/{floatingIpId}/binding`. */
|
|
74
107
|
export type BindFloatingIpResult = operations["bind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
75
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/binding
|
|
108
|
+
/** The request body of `PUT /api/v1/floating-ips/{floatingIpId}/binding`. */
|
|
76
109
|
export type BindFloatingIpBody = NonNullable<operations["bind-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
77
|
-
/** `
|
|
110
|
+
/** The success response body of `DELETE /api/v1/floating-ips/{floatingIpId}/binding`. */
|
|
111
|
+
export type UnbindFloatingIpResult = operations["unbind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
112
|
+
/** The success response body of `GET /api/v1/instances`. */
|
|
78
113
|
export type ListInstancesResult = operations["list-instances"]["responses"][200]["content"]["application/json"];
|
|
79
|
-
/** `
|
|
80
|
-
export type
|
|
81
|
-
/** `POST /api/v1/instances
|
|
114
|
+
/** The query parameters of `GET /api/v1/instances`. */
|
|
115
|
+
export type ListInstancesQuery = operations["list-instances"]["parameters"]["query"];
|
|
116
|
+
/** The success response body of `POST /api/v1/instances`. */
|
|
117
|
+
export type LaunchInstanceResult = operations["launch-instance"]["responses"][202]["content"]["application/json"];
|
|
118
|
+
/** The request body of `POST /api/v1/instances`. */
|
|
82
119
|
export type LaunchInstanceBody = NonNullable<operations["launch-instance"]["requestBody"]>["content"]["application/json"];
|
|
83
|
-
/** `GET /api/v1/instances/{instanceId}
|
|
120
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}`. */
|
|
84
121
|
export type GetInstanceResult = operations["get-instance"]["responses"][200]["content"]["application/json"];
|
|
85
|
-
/** `PATCH /api/v1/instances/{instanceId}
|
|
122
|
+
/** The success response body of `PATCH /api/v1/instances/{instanceId}`. */
|
|
86
123
|
export type RenameInstanceResult = operations["rename-instance"]["responses"][200]["content"]["application/json"];
|
|
87
|
-
/** `PATCH /api/v1/instances/{instanceId}
|
|
124
|
+
/** The request body of `PATCH /api/v1/instances/{instanceId}`. */
|
|
88
125
|
export type RenameInstanceBody = NonNullable<operations["rename-instance"]["requestBody"]>["content"]["application/json"];
|
|
89
|
-
/** `
|
|
90
|
-
export type
|
|
91
|
-
/** `POST /api/v1/instances/{instanceId}/
|
|
92
|
-
export type ActOnInstanceBody = NonNullable<operations["act-on-instance"]["requestBody"]>["content"]["application/json"];
|
|
93
|
-
/** `POST /api/v1/instances/{instanceId}/commands` 成功时的响应体。 */
|
|
126
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}`. */
|
|
127
|
+
export type DeleteInstanceResult = operations["delete-instance"]["responses"][202]["content"]["application/json"];
|
|
128
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/commands`. */
|
|
94
129
|
export type RunInstanceCommandResult = operations["run-instance-command"]["responses"][200]["content"]["application/json"];
|
|
95
|
-
/** `POST /api/v1/instances/{instanceId}/commands
|
|
130
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/commands`. */
|
|
96
131
|
export type RunInstanceCommandBody = NonNullable<operations["run-instance-command"]["requestBody"]>["content"]["application/json"];
|
|
97
|
-
/** `POST /api/v1/instances/{instanceId}/console
|
|
132
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/console`. */
|
|
98
133
|
export type OpenInstanceConsoleResult = operations["open-instance-console"]["responses"][200]["content"]["application/json"];
|
|
99
|
-
/** `GET /api/v1/instances/{instanceId}/console-output
|
|
134
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/console-output`. */
|
|
100
135
|
export type GetInstanceConsoleOutputResult = operations["get-instance-console-output"]["responses"][200]["content"]["application/json"];
|
|
101
|
-
/** `GET /api/v1/instances/{instanceId}/console-output
|
|
136
|
+
/** The query parameters of `GET /api/v1/instances/{instanceId}/console-output`. */
|
|
102
137
|
export type GetInstanceConsoleOutputQuery = operations["get-instance-console-output"]["parameters"]["query"];
|
|
103
|
-
/** `
|
|
138
|
+
/** The success response body of `PUT /api/v1/instances/{instanceId}/labels`. */
|
|
139
|
+
export type SetInstanceLabelsResult = operations["set-instance-labels"]["responses"][200]["content"]["application/json"];
|
|
140
|
+
/** The request body of `PUT /api/v1/instances/{instanceId}/labels`. */
|
|
141
|
+
export type SetInstanceLabelsBody = NonNullable<operations["set-instance-labels"]["requestBody"]>["content"]["application/json"];
|
|
142
|
+
/** The success response body of `PUT /api/v1/instances/{instanceId}/notes`. */
|
|
143
|
+
export type SetInstanceNotesResult = operations["set-instance-notes"]["responses"][200]["content"]["application/json"];
|
|
144
|
+
/** The request body of `PUT /api/v1/instances/{instanceId}/notes`. */
|
|
145
|
+
export type SetInstanceNotesBody = NonNullable<operations["set-instance-notes"]["requestBody"]>["content"]["application/json"];
|
|
146
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/password`. */
|
|
104
147
|
export type ResetInstancePasswordResult = operations["reset-instance-password"]["responses"][200]["content"]["application/json"];
|
|
105
|
-
/** `POST /api/v1/instances/{instanceId}/password
|
|
148
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/password`. */
|
|
106
149
|
export type ResetInstancePasswordBody = NonNullable<operations["reset-instance-password"]["requestBody"]>["content"]["application/json"];
|
|
107
|
-
/** `POST /api/v1/instances/{instanceId}/
|
|
150
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/reboot`. */
|
|
151
|
+
export type RebootInstanceResult = operations["reboot-instance"]["responses"][202]["content"]["application/json"];
|
|
152
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/reboot`. */
|
|
153
|
+
export type RebootInstanceBody = NonNullable<operations["reboot-instance"]["requestBody"]>["content"]["application/json"];
|
|
154
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/rebuild`. */
|
|
108
155
|
export type RebuildInstanceResult = operations["rebuild-instance"]["responses"][200]["content"]["application/json"];
|
|
109
|
-
/** `POST /api/v1/instances/{instanceId}/rebuild
|
|
156
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/rebuild`. */
|
|
110
157
|
export type RebuildInstanceBody = NonNullable<operations["rebuild-instance"]["requestBody"]>["content"]["application/json"];
|
|
111
|
-
/** `POST /api/v1/instances/{instanceId}/resize
|
|
112
|
-
export type ResizeInstanceResult = operations["resize-instance"]["responses"][
|
|
113
|
-
/** `POST /api/v1/instances/{instanceId}/resize
|
|
158
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/resize`. */
|
|
159
|
+
export type ResizeInstanceResult = operations["resize-instance"]["responses"][202]["content"]["application/json"];
|
|
160
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/resize`. */
|
|
114
161
|
export type ResizeInstanceBody = NonNullable<operations["resize-instance"]["requestBody"]>["content"]["application/json"];
|
|
115
|
-
/** `POST /api/v1/instances/{instanceId}/
|
|
116
|
-
export type
|
|
117
|
-
/** `POST /api/v1/instances/{instanceId}/
|
|
118
|
-
export type
|
|
119
|
-
/** `
|
|
162
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/start`. */
|
|
163
|
+
export type StartInstanceResult = operations["start-instance"]["responses"][202]["content"]["application/json"];
|
|
164
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/start`. */
|
|
165
|
+
export type StartInstanceBody = NonNullable<operations["start-instance"]["requestBody"]>["content"]["application/json"];
|
|
166
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/stop`. */
|
|
167
|
+
export type StopInstanceResult = operations["stop-instance"]["responses"][202]["content"]["application/json"];
|
|
168
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/stop`. */
|
|
169
|
+
export type StopInstanceBody = NonNullable<operations["stop-instance"]["requestBody"]>["content"]["application/json"];
|
|
170
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/disks`. */
|
|
120
171
|
export type ListInstanceDisksResult = operations["list-instance-disks"]["responses"][200]["content"]["application/json"];
|
|
121
|
-
/** `
|
|
122
|
-
export type
|
|
123
|
-
/** `POST /api/v1/instances/{instanceId}/disks
|
|
172
|
+
/** The query parameters of `GET /api/v1/instances/{instanceId}/disks`. */
|
|
173
|
+
export type ListInstanceDisksQuery = operations["list-instance-disks"]["parameters"]["query"];
|
|
174
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/disks`. */
|
|
175
|
+
export type AttachDiskResult = operations["attach-disk"]["responses"][202]["content"]["application/json"];
|
|
176
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/disks`. */
|
|
124
177
|
export type AttachDiskBody = NonNullable<operations["attach-disk"]["requestBody"]>["content"]["application/json"];
|
|
125
|
-
/** `DELETE /api/v1/instances/{instanceId}/disks/{diskId}
|
|
126
|
-
export type DetachDiskResult = operations["detach-disk"]["responses"][
|
|
127
|
-
/** `POST /api/v1/instances/{instanceId}/floating-ips
|
|
178
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/disks/{diskId}`. */
|
|
179
|
+
export type DetachDiskResult = operations["detach-disk"]["responses"][202]["content"]["application/json"];
|
|
180
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
|
|
128
181
|
export type AttachInstanceFloatingIpResult = operations["attach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
129
|
-
/** `POST /api/v1/instances/{instanceId}/floating-ips
|
|
182
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
|
|
130
183
|
export type AttachInstanceFloatingIpBody = NonNullable<operations["attach-instance-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
131
|
-
/** `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}
|
|
184
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}`. */
|
|
132
185
|
export type DetachInstanceFloatingIpResult = operations["detach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
133
|
-
/** `GET /api/v1/instances/{instanceId}/ports
|
|
186
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/ports`. */
|
|
134
187
|
export type ListInstancePortsResult = operations["list-instance-ports"]["responses"][200]["content"]["application/json"];
|
|
135
|
-
/** `
|
|
136
|
-
export type
|
|
137
|
-
/** `POST /api/v1/instances/{instanceId}/ports
|
|
188
|
+
/** The query parameters of `GET /api/v1/instances/{instanceId}/ports`. */
|
|
189
|
+
export type ListInstancePortsQuery = operations["list-instance-ports"]["parameters"]["query"];
|
|
190
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/ports`. */
|
|
191
|
+
export type AttachPortResult = operations["attach-port"]["responses"][202]["content"]["application/json"];
|
|
192
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/ports`. */
|
|
138
193
|
export type AttachPortBody = NonNullable<operations["attach-port"]["requestBody"]>["content"]["application/json"];
|
|
139
|
-
/** `DELETE /api/v1/instances/{instanceId}/ports/{portId}
|
|
140
|
-
export type DetachPortResult = operations["detach-port"]["responses"][
|
|
141
|
-
/** `GET /api/v1/operation-logs
|
|
194
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/ports/{portId}`. */
|
|
195
|
+
export type DetachPortResult = operations["detach-port"]["responses"][202]["content"]["application/json"];
|
|
196
|
+
/** The success response body of `GET /api/v1/operation-logs`. */
|
|
142
197
|
export type ListOperationLogsResult = operations["list-operation-logs"]["responses"][200]["content"]["application/json"];
|
|
143
|
-
/** `GET /api/v1/operation-logs
|
|
198
|
+
/** The query parameters of `GET /api/v1/operation-logs`. */
|
|
144
199
|
export type ListOperationLogsQuery = operations["list-operation-logs"]["parameters"]["query"];
|
|
145
|
-
/** `GET /api/v1/ports
|
|
200
|
+
/** The success response body of `GET /api/v1/ports`. */
|
|
146
201
|
export type ListPortsResult = operations["list-ports"]["responses"][200]["content"]["application/json"];
|
|
147
|
-
/** `
|
|
202
|
+
/** The query parameters of `GET /api/v1/ports`. */
|
|
203
|
+
export type ListPortsQuery = operations["list-ports"]["parameters"]["query"];
|
|
204
|
+
/** The success response body of `POST /api/v1/ports`. */
|
|
148
205
|
export type CreatePortResult = operations["create-port"]["responses"][201]["content"]["application/json"];
|
|
149
|
-
/** `POST /api/v1/ports
|
|
206
|
+
/** The request body of `POST /api/v1/ports`. */
|
|
150
207
|
export type CreatePortBody = NonNullable<operations["create-port"]["requestBody"]>["content"]["application/json"];
|
|
151
|
-
/** `GET /api/v1/private-
|
|
152
|
-
export type ListPrivateImagesResult = operations["list-private-images"]["responses"][200]["content"]["application/json"];
|
|
153
|
-
/** `GET /api/v1/private-images` 的查询参数。 */
|
|
154
|
-
export type ListPrivateImagesQuery = operations["list-private-images"]["parameters"]["query"];
|
|
155
|
-
/** `POST /api/v1/private-images` 成功时的响应体。 */
|
|
156
|
-
export type CreatePrivateImageResult = operations["create-private-image"]["responses"][201]["content"]["application/json"];
|
|
157
|
-
/** `POST /api/v1/private-images` 的请求体。 */
|
|
158
|
-
export type CreatePrivateImageBody = NonNullable<operations["create-private-image"]["requestBody"]>["content"]["application/json"];
|
|
159
|
-
/** `GET /api/v1/private-images/{privateImageId}` 成功时的响应体。 */
|
|
160
|
-
export type GetPrivateImageResult = operations["get-private-image"]["responses"][200]["content"]["application/json"];
|
|
161
|
-
/** `PATCH /api/v1/private-images/{privateImageId}` 成功时的响应体。 */
|
|
162
|
-
export type RenamePrivateImageResult = operations["rename-private-image"]["responses"][200]["content"]["application/json"];
|
|
163
|
-
/** `PATCH /api/v1/private-images/{privateImageId}` 的请求体。 */
|
|
164
|
-
export type RenamePrivateImageBody = NonNullable<operations["rename-private-image"]["requestBody"]>["content"]["application/json"];
|
|
165
|
-
/** `GET /api/v1/private-networks` 成功时的响应体。 */
|
|
208
|
+
/** The success response body of `GET /api/v1/private-networks`. */
|
|
166
209
|
export type ListPrivateNetworksResult = operations["list-private-networks"]["responses"][200]["content"]["application/json"];
|
|
167
|
-
/** `GET /api/v1/private-networks
|
|
210
|
+
/** The query parameters of `GET /api/v1/private-networks`. */
|
|
168
211
|
export type ListPrivateNetworksQuery = operations["list-private-networks"]["parameters"]["query"];
|
|
169
|
-
/** `POST /api/v1/private-networks
|
|
212
|
+
/** The success response body of `POST /api/v1/private-networks`. */
|
|
170
213
|
export type CreatePrivateNetworkResult = operations["create-private-network"]["responses"][201]["content"]["application/json"];
|
|
171
|
-
/** `POST /api/v1/private-networks
|
|
214
|
+
/** The request body of `POST /api/v1/private-networks`. */
|
|
172
215
|
export type CreatePrivateNetworkBody = NonNullable<operations["create-private-network"]["requestBody"]>["content"]["application/json"];
|
|
173
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}
|
|
216
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}`. */
|
|
174
217
|
export type GetPrivateNetworkResult = operations["get-private-network"]["responses"][200]["content"]["application/json"];
|
|
175
|
-
/** `PATCH /api/v1/private-networks/{privateNetworkId}
|
|
218
|
+
/** The success response body of `PATCH /api/v1/private-networks/{privateNetworkId}`. */
|
|
176
219
|
export type RenamePrivateNetworkResult = operations["rename-private-network"]["responses"][200]["content"]["application/json"];
|
|
177
|
-
/** `PATCH /api/v1/private-networks/{privateNetworkId}
|
|
220
|
+
/** The request body of `PATCH /api/v1/private-networks/{privateNetworkId}`. */
|
|
178
221
|
export type RenamePrivateNetworkBody = NonNullable<operations["rename-private-network"]["requestBody"]>["content"]["application/json"];
|
|
179
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/ipv6
|
|
222
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/ipv6`. */
|
|
180
223
|
export type GetPrivateNetworkIpv6Result = operations["get-private-network-ipv6"]["responses"][200]["content"]["application/json"];
|
|
181
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/ipv6
|
|
224
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/ipv6`. */
|
|
182
225
|
export type EnablePrivateNetworkIpv6Result = operations["enable-private-network-ipv6"]["responses"][200]["content"]["application/json"];
|
|
183
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/routes
|
|
226
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
184
227
|
export type ListRoutesResult = operations["list-routes"]["responses"][200]["content"]["application/json"];
|
|
185
|
-
/** `
|
|
228
|
+
/** The query parameters of `GET /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
229
|
+
export type ListRoutesQuery = operations["list-routes"]["parameters"]["query"];
|
|
230
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
186
231
|
export type CreateRouteResult = operations["create-route"]["responses"][201]["content"]["application/json"];
|
|
187
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/routes
|
|
232
|
+
/** The request body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
188
233
|
export type CreateRouteBody = NonNullable<operations["create-route"]["requestBody"]>["content"]["application/json"];
|
|
189
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/subnets
|
|
234
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
190
235
|
export type ListSubnetsResult = operations["list-subnets"]["responses"][200]["content"]["application/json"];
|
|
191
|
-
/** `
|
|
236
|
+
/** The query parameters of `GET /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
237
|
+
export type ListSubnetsQuery = operations["list-subnets"]["parameters"]["query"];
|
|
238
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
192
239
|
export type CreateSubnetResult = operations["create-subnet"]["responses"][201]["content"]["application/json"];
|
|
193
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/subnets
|
|
240
|
+
/** The request body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
194
241
|
export type CreateSubnetBody = NonNullable<operations["create-subnet"]["requestBody"]>["content"]["application/json"];
|
|
195
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr
|
|
242
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr`. */
|
|
196
243
|
export type SuggestSubnetCidrResult = operations["suggest-subnet-cidr"]["responses"][200]["content"]["application/json"];
|
|
197
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr
|
|
244
|
+
/** The query parameters of `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr`. */
|
|
198
245
|
export type SuggestSubnetCidrQuery = operations["suggest-subnet-cidr"]["parameters"]["query"];
|
|
199
|
-
/** `GET /api/v1/security-groups
|
|
246
|
+
/** The success response body of `GET /api/v1/security-groups`. */
|
|
200
247
|
export type ListSecurityGroupsResult = operations["list-security-groups"]["responses"][200]["content"]["application/json"];
|
|
201
|
-
/** `GET /api/v1/security-groups
|
|
248
|
+
/** The query parameters of `GET /api/v1/security-groups`. */
|
|
202
249
|
export type ListSecurityGroupsQuery = operations["list-security-groups"]["parameters"]["query"];
|
|
203
|
-
/** `POST /api/v1/security-groups
|
|
250
|
+
/** The success response body of `POST /api/v1/security-groups`. */
|
|
204
251
|
export type CreateSecurityGroupResult = operations["create-security-group"]["responses"][201]["content"]["application/json"];
|
|
205
|
-
/** `POST /api/v1/security-groups
|
|
252
|
+
/** The request body of `POST /api/v1/security-groups`. */
|
|
206
253
|
export type CreateSecurityGroupBody = NonNullable<operations["create-security-group"]["requestBody"]>["content"]["application/json"];
|
|
207
|
-
/** `GET /api/v1/security-groups/{securityGroupId}
|
|
254
|
+
/** The success response body of `GET /api/v1/security-groups/{securityGroupId}`. */
|
|
208
255
|
export type GetSecurityGroupResult = operations["get-security-group"]["responses"][200]["content"]["application/json"];
|
|
209
|
-
/** `PATCH /api/v1/security-groups/{securityGroupId}
|
|
256
|
+
/** The success response body of `PATCH /api/v1/security-groups/{securityGroupId}`. */
|
|
210
257
|
export type RenameSecurityGroupResult = operations["rename-security-group"]["responses"][200]["content"]["application/json"];
|
|
211
|
-
/** `PATCH /api/v1/security-groups/{securityGroupId}
|
|
258
|
+
/** The request body of `PATCH /api/v1/security-groups/{securityGroupId}`. */
|
|
212
259
|
export type RenameSecurityGroupBody = NonNullable<operations["rename-security-group"]["requestBody"]>["content"]["application/json"];
|
|
213
|
-
/** `GET /api/v1/security-groups/{securityGroupId}/rules
|
|
260
|
+
/** The success response body of `GET /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
214
261
|
export type ListSecurityGroupRulesResult = operations["list-security-group-rules"]["responses"][200]["content"]["application/json"];
|
|
215
|
-
/** `
|
|
262
|
+
/** The query parameters of `GET /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
263
|
+
export type ListSecurityGroupRulesQuery = operations["list-security-group-rules"]["parameters"]["query"];
|
|
264
|
+
/** The success response body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
216
265
|
export type CreateSecurityGroupRuleResult = operations["create-security-group-rule"]["responses"][201]["content"]["application/json"];
|
|
217
|
-
/** `POST /api/v1/security-groups/{securityGroupId}/rules
|
|
266
|
+
/** The request body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
218
267
|
export type CreateSecurityGroupRuleBody = NonNullable<operations["create-security-group-rule"]["requestBody"]>["content"]["application/json"];
|
|
219
|
-
/** `GET /api/v1/snapshots
|
|
268
|
+
/** The success response body of `GET /api/v1/snapshots`. */
|
|
220
269
|
export type ListSnapshotsResult = operations["list-snapshots"]["responses"][200]["content"]["application/json"];
|
|
221
|
-
/** `GET /api/v1/snapshots
|
|
270
|
+
/** The query parameters of `GET /api/v1/snapshots`. */
|
|
222
271
|
export type ListSnapshotsQuery = operations["list-snapshots"]["parameters"]["query"];
|
|
223
|
-
/** `POST /api/v1/snapshots
|
|
272
|
+
/** The success response body of `POST /api/v1/snapshots`. */
|
|
224
273
|
export type CreateSnapshotResult = operations["create-snapshot"]["responses"][201]["content"]["application/json"];
|
|
225
|
-
/** `POST /api/v1/snapshots
|
|
274
|
+
/** The request body of `POST /api/v1/snapshots`. */
|
|
226
275
|
export type CreateSnapshotBody = NonNullable<operations["create-snapshot"]["requestBody"]>["content"]["application/json"];
|
|
227
|
-
/** `GET /api/v1/snapshots/{snapshotId}
|
|
276
|
+
/** The success response body of `GET /api/v1/snapshots/{snapshotId}`. */
|
|
228
277
|
export type GetSnapshotResult = operations["get-snapshot"]["responses"][200]["content"]["application/json"];
|
|
229
|
-
/** `PATCH /api/v1/snapshots/{snapshotId}
|
|
278
|
+
/** The success response body of `PATCH /api/v1/snapshots/{snapshotId}`. */
|
|
230
279
|
export type RenameSnapshotResult = operations["rename-snapshot"]["responses"][200]["content"]["application/json"];
|
|
231
|
-
/** `PATCH /api/v1/snapshots/{snapshotId}
|
|
280
|
+
/** The request body of `PATCH /api/v1/snapshots/{snapshotId}`. */
|
|
232
281
|
export type RenameSnapshotBody = NonNullable<operations["rename-snapshot"]["requestBody"]>["content"]["application/json"];
|
|
282
|
+
/** The success response body of `DELETE /api/v1/snapshots/{snapshotId}`. */
|
|
283
|
+
export type DeleteSnapshotResult = operations["delete-snapshot"]["responses"][202]["content"]["application/json"];
|
|
284
|
+
/** The success response body of `GET /api/v1/tasks/{taskId}`. */
|
|
285
|
+
export type GetTaskResult = operations["get-task"]["responses"][200]["content"]["application/json"];
|
|
286
|
+
/** The success response body of `GET /api/v1/ipv4-pools`. */
|
|
287
|
+
export type ListIpv4PoolsResult = operations["list-ipv4-pools"]["responses"][200]["content"]["application/json"];
|
|
288
|
+
/** The query parameters of `GET /api/v1/ipv4-pools`. */
|
|
289
|
+
export type ListIpv4PoolsQuery = operations["list-ipv4-pools"]["parameters"]["query"];
|
|
290
|
+
/** The success response body of `GET /api/v1/peerings`. */
|
|
291
|
+
export type ListPeeringsResult = operations["list-peerings"]["responses"][200]["content"]["application/json"];
|
|
292
|
+
/** The query parameters of `GET /api/v1/peerings`. */
|
|
293
|
+
export type ListPeeringsQuery = operations["list-peerings"]["parameters"]["query"];
|
|
294
|
+
/** The success response body of `POST /api/v1/peerings`. */
|
|
295
|
+
export type CreatePeeringResult = operations["create-peering"]["responses"][201]["content"]["application/json"];
|
|
296
|
+
/** The request body of `POST /api/v1/peerings`. */
|
|
297
|
+
export type CreatePeeringBody = NonNullable<operations["create-peering"]["requestBody"]>["content"]["application/json"];
|
|
298
|
+
/** The success response body of `GET /api/v1/peerings/{peeringId}`. */
|
|
299
|
+
export type GetPeeringResult = operations["get-peering"]["responses"][200]["content"]["application/json"];
|
|
300
|
+
/** The success response body of `DELETE /api/v1/peerings/{peeringId}`. */
|
|
301
|
+
export type DeletePeeringResult = operations["delete-peering"]["responses"][202]["content"]["application/json"];
|
|
302
|
+
/** The success response body of `POST /api/v1/peerings/{peeringId}/accept`. */
|
|
303
|
+
export type AcceptPeeringResult = operations["accept-peering"]["responses"][202]["content"]["application/json"];
|
|
304
|
+
/** The success response body of `POST /api/v1/peerings/{peeringId}/reject`. */
|
|
305
|
+
export type RejectPeeringResult = operations["reject-peering"]["responses"][200]["content"]["application/json"];
|
package/dist/compute/v1/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by scripts/generate.mjs. DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
export {};
|
|
3
|
+
// The aliases replace the operations[...] subscript chain with a name. The raw paths /
|
|
4
|
+
// components / operations are exported as well: paths is what createClient<paths>() takes.
|
|
5
|
+
export { client } from "./client.js";
|