@homeflare/distilled-proxmox-backup 0.2.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/LICENSE +201 -0
- package/README.md +102 -0
- package/dist/credentials.d.ts +50 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +105 -0
- package/dist/credentials.js.map +1 -0
- package/dist/errors.d.ts +100 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +73 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +19 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +158 -0
- package/dist/protocol.js.map +1 -0
- package/dist/protocol.test.d.ts +2 -0
- package/dist/protocol.test.d.ts.map +1 -0
- package/dist/protocol.test.js +75 -0
- package/dist/protocol.test.js.map +1 -0
- package/dist/retry.d.ts +53 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +46 -0
- package/dist/retry.js.map +1 -0
- package/dist/services/access.d.ts +587 -0
- package/dist/services/access.d.ts.map +1 -0
- package/dist/services/access.js +787 -0
- package/dist/services/access.js.map +1 -0
- package/dist/services/admin.d.ts +1110 -0
- package/dist/services/admin.d.ts.map +1 -0
- package/dist/services/admin.js +1428 -0
- package/dist/services/admin.js.map +1 -0
- package/dist/services/backup.d.ts +224 -0
- package/dist/services/backup.d.ts.map +1 -0
- package/dist/services/backup.js +325 -0
- package/dist/services/backup.js.map +1 -0
- package/dist/services/config.d.ts +3662 -0
- package/dist/services/config.d.ts.map +1 -0
- package/dist/services/config.js +4445 -0
- package/dist/services/config.js.map +1 -0
- package/dist/services/index.d.ts +14 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +15 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/nodes.d.ts +1441 -0
- package/dist/services/nodes.d.ts.map +1 -0
- package/dist/services/nodes.js +1829 -0
- package/dist/services/nodes.js.map +1 -0
- package/dist/services/ping.d.ts +15 -0
- package/dist/services/ping.d.ts.map +1 -0
- package/dist/services/ping.js +21 -0
- package/dist/services/ping.js.map +1 -0
- package/dist/services/pull.d.ts +54 -0
- package/dist/services/pull.d.ts.map +1 -0
- package/dist/services/pull.js +47 -0
- package/dist/services/pull.js.map +1 -0
- package/dist/services/push.d.ts +50 -0
- package/dist/services/push.d.ts.map +1 -0
- package/dist/services/push.js +45 -0
- package/dist/services/push.js.map +1 -0
- package/dist/services/reader.d.ts +68 -0
- package/dist/services/reader.d.ts.map +1 -0
- package/dist/services/reader.js +89 -0
- package/dist/services/reader.js.map +1 -0
- package/dist/services/root.d.ts +14 -0
- package/dist/services/root.d.ts.map +1 -0
- package/dist/services/root.js +19 -0
- package/dist/services/root.js.map +1 -0
- package/dist/services/status.d.ts +78 -0
- package/dist/services/status.d.ts.map +1 -0
- package/dist/services/status.js +97 -0
- package/dist/services/status.js.map +1 -0
- package/dist/services/tape.d.ts +711 -0
- package/dist/services/tape.d.ts.map +1 -0
- package/dist/services/tape.js +986 -0
- package/dist/services/tape.js.map +1 -0
- package/dist/services/version.d.ts +17 -0
- package/dist/services/version.d.ts.map +1 -0
- package/dist/services/version.js +25 -0
- package/dist/services/version.js.map +1 -0
- package/dist/task.d.ts +48 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +57 -0
- package/dist/task.js.map +1 -0
- package/dist/traits.d.ts +13 -0
- package/dist/traits.d.ts.map +1 -0
- package/dist/traits.js +15 -0
- package/dist/traits.js.map +1 -0
- package/package.json +81 -0
- package/src/credentials.ts +139 -0
- package/src/errors.ts +126 -0
- package/src/index.ts +36 -0
- package/src/protocol.test.ts +128 -0
- package/src/protocol.ts +196 -0
- package/src/retry.ts +79 -0
- package/src/services/access.ts +1787 -0
- package/src/services/admin.ts +3258 -0
- package/src/services/backup.ts +698 -0
- package/src/services/config.ts +10561 -0
- package/src/services/index.ts +14 -0
- package/src/services/nodes.ts +4313 -0
- package/src/services/ping.ts +43 -0
- package/src/services/pull.ts +118 -0
- package/src/services/push.ts +108 -0
- package/src/services/reader.ts +196 -0
- package/src/services/root.ts +39 -0
- package/src/services/status.ts +233 -0
- package/src/services/tape.ts +2257 -0
- package/src/services/version.ts +49 -0
- package/src/task.ts +84 -0
- package/src/traits.ts +46 -0
|
@@ -0,0 +1,1829 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (apidoc.js, via scripts/apidoc.ts — see its header). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { ProxmoxBackupProtocol, } from "../protocol.js";
|
|
6
|
+
import * as Retry from "../retry.js";
|
|
7
|
+
export const CreateNodeAptRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8
|
+
node: S.String.pipe(T.Label()),
|
|
9
|
+
digest: S.optional(S.String),
|
|
10
|
+
enabled: S.optional(S.String),
|
|
11
|
+
index: S.String,
|
|
12
|
+
path: S.String,
|
|
13
|
+
}).pipe(T.Http({
|
|
14
|
+
method: "POST",
|
|
15
|
+
uri: "/nodes/{node}/apt/repositories",
|
|
16
|
+
code: 200,
|
|
17
|
+
contentType: "form-urlencoded",
|
|
18
|
+
}))).annotate({
|
|
19
|
+
identifier: "CreateNodeAptRepositoryRequest",
|
|
20
|
+
});
|
|
21
|
+
export const CreateNodeAptRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
22
|
+
identifier: "CreateNodeAptRepositoryResponse",
|
|
23
|
+
});
|
|
24
|
+
export const CreateNodeCertificateAcmeCertificateRequest =
|
|
25
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
26
|
+
node: S.String.pipe(T.Label()),
|
|
27
|
+
force: S.optional(S.String),
|
|
28
|
+
}).pipe(T.Http({
|
|
29
|
+
method: "POST",
|
|
30
|
+
uri: "/nodes/{node}/certificates/acme/certificate",
|
|
31
|
+
code: 200,
|
|
32
|
+
contentType: "form-urlencoded",
|
|
33
|
+
}))).annotate({
|
|
34
|
+
identifier: "CreateNodeCertificateAcmeCertificateRequest",
|
|
35
|
+
});
|
|
36
|
+
export const CreateNodeCertificateAcmeCertificateResponse =
|
|
37
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
38
|
+
identifier: "CreateNodeCertificateAcmeCertificateResponse",
|
|
39
|
+
});
|
|
40
|
+
export const CreateNodeCertificateCustomRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
+
node: S.String.pipe(T.Label()),
|
|
42
|
+
certificates: S.String,
|
|
43
|
+
force: S.optional(S.String),
|
|
44
|
+
key: S.optional(S.String),
|
|
45
|
+
restart: S.optional(S.String),
|
|
46
|
+
}).pipe(T.Http({
|
|
47
|
+
method: "POST",
|
|
48
|
+
uri: "/nodes/{node}/certificates/custom",
|
|
49
|
+
code: 200,
|
|
50
|
+
contentType: "form-urlencoded",
|
|
51
|
+
}))).annotate({
|
|
52
|
+
identifier: "CreateNodeCertificateCustomRequest",
|
|
53
|
+
});
|
|
54
|
+
export const CreateNodeCertificateCustomResponseBodyItemSanList =
|
|
55
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
56
|
+
export const CreateNodeCertificateCustomResponseBodyItem =
|
|
57
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
filename: S.String,
|
|
59
|
+
fingerprint: S.optional(S.String),
|
|
60
|
+
issuer: S.String,
|
|
61
|
+
notafter: S.optional(S.Number),
|
|
62
|
+
notbefore: S.optional(S.Number),
|
|
63
|
+
pem: S.optional(S.String),
|
|
64
|
+
public_key_bits: S.optional(S.Number.pipe(T.Body("public-key-bits"))),
|
|
65
|
+
public_key_type: S.optional(S.String.pipe(T.Body("public-key-type"))),
|
|
66
|
+
san: CreateNodeCertificateCustomResponseBodyItemSanList,
|
|
67
|
+
subject: S.String,
|
|
68
|
+
})).annotate({
|
|
69
|
+
identifier: "CreateNodeCertificateCustomResponseBodyItem",
|
|
70
|
+
});
|
|
71
|
+
export const CreateNodeCertificateCustomResponseBodyList =
|
|
72
|
+
/*@__PURE__*/ S.Array(CreateNodeCertificateCustomResponseBodyItem);
|
|
73
|
+
export const CreateNodeCertificateCustomResponse = /*@__PURE__*/ S.suspend(() => CreateNodeCertificateCustomResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
74
|
+
identifier: "CreateNodeCertificateCustomResponse",
|
|
75
|
+
});
|
|
76
|
+
export const CreateNodeDiskDirectoryRequestFilesystem = S.String;
|
|
77
|
+
export const CreateNodeDiskDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
78
|
+
node: S.String.pipe(T.Label()),
|
|
79
|
+
add_datastore: S.optional(S.String.pipe(T.Body("add-datastore"))),
|
|
80
|
+
disk: S.String,
|
|
81
|
+
filesystem: S.optional(CreateNodeDiskDirectoryRequestFilesystem),
|
|
82
|
+
name: S.String,
|
|
83
|
+
removable_datastore: S.optional(S.String.pipe(T.Body("removable-datastore"))),
|
|
84
|
+
}).pipe(T.Http({
|
|
85
|
+
method: "POST",
|
|
86
|
+
uri: "/nodes/{node}/disks/directory",
|
|
87
|
+
code: 200,
|
|
88
|
+
contentType: "form-urlencoded",
|
|
89
|
+
}))).annotate({
|
|
90
|
+
identifier: "CreateNodeDiskDirectoryRequest",
|
|
91
|
+
});
|
|
92
|
+
export const CreateNodeDiskDirectoryResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
93
|
+
identifier: "CreateNodeDiskDirectoryResponse",
|
|
94
|
+
});
|
|
95
|
+
export const CreateNodeDiskInitgptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
96
|
+
node: S.String.pipe(T.Label()),
|
|
97
|
+
disk: S.String,
|
|
98
|
+
uuid: S.optional(S.String),
|
|
99
|
+
}).pipe(T.Http({
|
|
100
|
+
method: "POST",
|
|
101
|
+
uri: "/nodes/{node}/disks/initgpt",
|
|
102
|
+
code: 200,
|
|
103
|
+
contentType: "form-urlencoded",
|
|
104
|
+
}))).annotate({
|
|
105
|
+
identifier: "CreateNodeDiskInitgptRequest",
|
|
106
|
+
});
|
|
107
|
+
export const CreateNodeDiskInitgptResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
108
|
+
identifier: "CreateNodeDiskInitgptResponse",
|
|
109
|
+
});
|
|
110
|
+
export const CreateNodeDiskZfsRequestCompression = S.String;
|
|
111
|
+
export const CreateNodeDiskZfsRequestRaidlevel = S.String;
|
|
112
|
+
export const CreateNodeDiskZfsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
113
|
+
node: S.String.pipe(T.Label()),
|
|
114
|
+
add_datastore: S.optional(S.String.pipe(T.Body("add-datastore"))),
|
|
115
|
+
ashift: S.optional(S.String),
|
|
116
|
+
compression: S.optional(CreateNodeDiskZfsRequestCompression),
|
|
117
|
+
devices: S.String,
|
|
118
|
+
name: S.String,
|
|
119
|
+
raidlevel: CreateNodeDiskZfsRequestRaidlevel,
|
|
120
|
+
}).pipe(T.Http({
|
|
121
|
+
method: "POST",
|
|
122
|
+
uri: "/nodes/{node}/disks/zfs",
|
|
123
|
+
code: 200,
|
|
124
|
+
contentType: "form-urlencoded",
|
|
125
|
+
}))).annotate({
|
|
126
|
+
identifier: "CreateNodeDiskZfsRequest",
|
|
127
|
+
});
|
|
128
|
+
export const CreateNodeDiskZfsResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
129
|
+
identifier: "CreateNodeDiskZfsResponse",
|
|
130
|
+
});
|
|
131
|
+
export const CreateNodeNetworkRequestBondMode = S.String;
|
|
132
|
+
export const CreateNodeNetworkRequestBondXmitHashPolicy = S.String;
|
|
133
|
+
export const CreateNodeNetworkRequestMethod = S.String;
|
|
134
|
+
export const CreateNodeNetworkRequestMethod6 = S.String;
|
|
135
|
+
export const CreateNodeNetworkRequestType = S.String;
|
|
136
|
+
export const CreateNodeNetworkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
+
node: S.String.pipe(T.Label()),
|
|
138
|
+
autostart: S.optional(S.String),
|
|
139
|
+
bond_primary: S.optional(S.String.pipe(T.Body("bond-primary"))),
|
|
140
|
+
bond_mode: S.optional(CreateNodeNetworkRequestBondMode),
|
|
141
|
+
bond_xmit_hash_policy: S.optional(CreateNodeNetworkRequestBondXmitHashPolicy),
|
|
142
|
+
bridge_ports: S.optional(S.String),
|
|
143
|
+
bridge_vlan_aware: S.optional(S.String),
|
|
144
|
+
cidr: S.optional(S.String),
|
|
145
|
+
cidr6: S.optional(S.String),
|
|
146
|
+
comments: S.optional(S.String),
|
|
147
|
+
comments6: S.optional(S.String),
|
|
148
|
+
gateway: S.optional(S.String),
|
|
149
|
+
gateway6: S.optional(S.String),
|
|
150
|
+
iface: S.String,
|
|
151
|
+
method: S.optional(CreateNodeNetworkRequestMethod),
|
|
152
|
+
method6: S.optional(CreateNodeNetworkRequestMethod6),
|
|
153
|
+
mtu: S.optional(S.String),
|
|
154
|
+
slaves: S.optional(S.String),
|
|
155
|
+
type: S.optional(CreateNodeNetworkRequestType),
|
|
156
|
+
vlan_id: S.optional(S.String.pipe(T.Body("vlan-id"))),
|
|
157
|
+
vlan_raw_device: S.optional(S.String.pipe(T.Body("vlan-raw-device"))),
|
|
158
|
+
}).pipe(T.Http({
|
|
159
|
+
method: "POST",
|
|
160
|
+
uri: "/nodes/{node}/network",
|
|
161
|
+
code: 200,
|
|
162
|
+
contentType: "form-urlencoded",
|
|
163
|
+
}))).annotate({
|
|
164
|
+
identifier: "CreateNodeNetworkRequest",
|
|
165
|
+
});
|
|
166
|
+
export const CreateNodeNetworkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
167
|
+
identifier: "CreateNodeNetworkResponse",
|
|
168
|
+
});
|
|
169
|
+
export const CreateNodeServiceReloadRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
+
node: S.String.pipe(T.Label()),
|
|
171
|
+
service: S.String.pipe(T.Label()),
|
|
172
|
+
}).pipe(T.Http({
|
|
173
|
+
method: "POST",
|
|
174
|
+
uri: "/nodes/{node}/services/{service}/reload",
|
|
175
|
+
code: 200,
|
|
176
|
+
}))).annotate({
|
|
177
|
+
identifier: "CreateNodeServiceReloadRequest",
|
|
178
|
+
});
|
|
179
|
+
export const CreateNodeServiceReloadResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
180
|
+
identifier: "CreateNodeServiceReloadResponse",
|
|
181
|
+
});
|
|
182
|
+
export const CreateNodeStatusRequestCommand = S.String;
|
|
183
|
+
export const CreateNodeStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
184
|
+
node: S.String.pipe(T.Label()),
|
|
185
|
+
command: CreateNodeStatusRequestCommand,
|
|
186
|
+
}).pipe(T.Http({
|
|
187
|
+
method: "POST",
|
|
188
|
+
uri: "/nodes/{node}/status",
|
|
189
|
+
code: 200,
|
|
190
|
+
contentType: "form-urlencoded",
|
|
191
|
+
}))).annotate({
|
|
192
|
+
identifier: "CreateNodeStatusRequest",
|
|
193
|
+
});
|
|
194
|
+
export const CreateNodeStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
195
|
+
identifier: "CreateNodeStatusResponse",
|
|
196
|
+
});
|
|
197
|
+
export const CreateNodeSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
+
node: S.String.pipe(T.Label()),
|
|
199
|
+
force: S.optional(S.String),
|
|
200
|
+
}).pipe(T.Http({
|
|
201
|
+
method: "POST",
|
|
202
|
+
uri: "/nodes/{node}/subscription",
|
|
203
|
+
code: 200,
|
|
204
|
+
contentType: "form-urlencoded",
|
|
205
|
+
}))).annotate({
|
|
206
|
+
identifier: "CreateNodeSubscriptionRequest",
|
|
207
|
+
});
|
|
208
|
+
export const CreateNodeSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
209
|
+
identifier: "CreateNodeSubscriptionResponse",
|
|
210
|
+
});
|
|
211
|
+
export const CreateNodeTermproxyRequestCmd = S.String;
|
|
212
|
+
export const CreateNodeTermproxyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
+
node: S.String.pipe(T.Label()),
|
|
214
|
+
cmd: S.optional(CreateNodeTermproxyRequestCmd),
|
|
215
|
+
}).pipe(T.Http({
|
|
216
|
+
method: "POST",
|
|
217
|
+
uri: "/nodes/{node}/termproxy",
|
|
218
|
+
code: 200,
|
|
219
|
+
contentType: "form-urlencoded",
|
|
220
|
+
}))).annotate({
|
|
221
|
+
identifier: "CreateNodeTermproxyRequest",
|
|
222
|
+
});
|
|
223
|
+
export const CreateNodeTermproxyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
224
|
+
port: S.Number,
|
|
225
|
+
ticket: S.String,
|
|
226
|
+
upid: S.String,
|
|
227
|
+
user: S.String,
|
|
228
|
+
})).annotate({
|
|
229
|
+
identifier: "CreateNodeTermproxyResponse",
|
|
230
|
+
});
|
|
231
|
+
export const DeleteNodeCertificateCustomRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
+
node: S.String.pipe(T.Label()),
|
|
233
|
+
restart: S.optional(S.String),
|
|
234
|
+
}).pipe(T.Http({
|
|
235
|
+
method: "DELETE",
|
|
236
|
+
uri: "/nodes/{node}/certificates/custom",
|
|
237
|
+
code: 200,
|
|
238
|
+
contentType: "form-urlencoded",
|
|
239
|
+
}))).annotate({
|
|
240
|
+
identifier: "DeleteNodeCertificateCustomRequest",
|
|
241
|
+
});
|
|
242
|
+
export const DeleteNodeCertificateCustomResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
243
|
+
identifier: "DeleteNodeCertificateCustomResponse",
|
|
244
|
+
});
|
|
245
|
+
export const DeleteNodeDiskDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
246
|
+
node: S.String.pipe(T.Label()),
|
|
247
|
+
name: S.String.pipe(T.Label()),
|
|
248
|
+
}).pipe(T.Http({
|
|
249
|
+
method: "DELETE",
|
|
250
|
+
uri: "/nodes/{node}/disks/directory/{name}",
|
|
251
|
+
code: 200,
|
|
252
|
+
}))).annotate({
|
|
253
|
+
identifier: "DeleteNodeDiskDirectoryRequest",
|
|
254
|
+
});
|
|
255
|
+
export const DeleteNodeDiskDirectoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
256
|
+
identifier: "DeleteNodeDiskDirectoryResponse",
|
|
257
|
+
});
|
|
258
|
+
export const DeleteNodeNetworkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
259
|
+
node: S.String.pipe(T.Label()),
|
|
260
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/nodes/{node}/network", code: 200 }))).annotate({
|
|
261
|
+
identifier: "DeleteNodeNetworkRequest",
|
|
262
|
+
});
|
|
263
|
+
export const DeleteNodeNetworkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
264
|
+
identifier: "DeleteNodeNetworkResponse",
|
|
265
|
+
});
|
|
266
|
+
export const DeleteNodeNetwork2Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
267
|
+
node: S.String.pipe(T.Label()),
|
|
268
|
+
iface: S.String.pipe(T.Label()),
|
|
269
|
+
digest: S.optional(S.String),
|
|
270
|
+
}).pipe(T.Http({
|
|
271
|
+
method: "DELETE",
|
|
272
|
+
uri: "/nodes/{node}/network/{iface}",
|
|
273
|
+
code: 200,
|
|
274
|
+
contentType: "form-urlencoded",
|
|
275
|
+
}))).annotate({
|
|
276
|
+
identifier: "DeleteNodeNetwork2Request",
|
|
277
|
+
});
|
|
278
|
+
export const DeleteNodeNetwork2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
279
|
+
identifier: "DeleteNodeNetwork2Response",
|
|
280
|
+
});
|
|
281
|
+
export const DeleteNodeSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
|
+
node: S.String.pipe(T.Label()),
|
|
283
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/nodes/{node}/subscription", code: 200 }))).annotate({
|
|
284
|
+
identifier: "DeleteNodeSubscriptionRequest",
|
|
285
|
+
});
|
|
286
|
+
export const DeleteNodeSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
287
|
+
identifier: "DeleteNodeSubscriptionResponse",
|
|
288
|
+
});
|
|
289
|
+
export const DeleteNodeTaskRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
290
|
+
node: S.String.pipe(T.Label()),
|
|
291
|
+
upid: S.String.pipe(T.Label()),
|
|
292
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/nodes/{node}/tasks/{upid}", code: 200 }))).annotate({
|
|
293
|
+
identifier: "DeleteNodeTaskRequest",
|
|
294
|
+
});
|
|
295
|
+
export const DeleteNodeTaskResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
296
|
+
identifier: "DeleteNodeTaskResponse",
|
|
297
|
+
});
|
|
298
|
+
export const GetNodeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
|
+
node: S.String.pipe(T.Label()),
|
|
300
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}", code: 200 }))).annotate({ identifier: "GetNodeRequest" });
|
|
301
|
+
export const GetNodeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
302
|
+
identifier: "GetNodeResponse",
|
|
303
|
+
});
|
|
304
|
+
export const GetNodeAptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
305
|
+
node: S.String.pipe(T.Label()),
|
|
306
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/apt", code: 200 }))).annotate({
|
|
307
|
+
identifier: "GetNodeAptRequest",
|
|
308
|
+
});
|
|
309
|
+
export const GetNodeAptResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
310
|
+
identifier: "GetNodeAptResponse",
|
|
311
|
+
});
|
|
312
|
+
export const GetNodeAptChangelogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
313
|
+
node: S.String.pipe(T.Label()),
|
|
314
|
+
name: S.String.pipe(T.Query()),
|
|
315
|
+
version: S.optional(S.String.pipe(T.Query())),
|
|
316
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/apt/changelog", code: 200 }))).annotate({
|
|
317
|
+
identifier: "GetNodeAptChangelogRequest",
|
|
318
|
+
});
|
|
319
|
+
export const GetNodeAptChangelogResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
320
|
+
identifier: "GetNodeAptChangelogResponse",
|
|
321
|
+
});
|
|
322
|
+
export const GetNodeAptRepositoriesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
+
node: S.String.pipe(T.Label()),
|
|
324
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/apt/repositories", code: 200 }))).annotate({
|
|
325
|
+
identifier: "GetNodeAptRepositoriesRequest",
|
|
326
|
+
});
|
|
327
|
+
export const GetNodeAptRepositoriesResponseErrorsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
328
|
+
error: S.String,
|
|
329
|
+
path: S.String,
|
|
330
|
+
})).annotate({
|
|
331
|
+
identifier: "GetNodeAptRepositoriesResponseErrorsItem",
|
|
332
|
+
});
|
|
333
|
+
export const GetNodeAptRepositoriesResponseErrorsList = /*@__PURE__*/ S.Array(GetNodeAptRepositoriesResponseErrorsItem);
|
|
334
|
+
export const GetNodeAptRepositoriesResponseFilesItemFileType = S.String;
|
|
335
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemComponentsList =
|
|
336
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
337
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemFileType = S.String;
|
|
338
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemOptionsItemValuesList =
|
|
339
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
340
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemOptionsItem =
|
|
341
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
342
|
+
Key: S.String,
|
|
343
|
+
Values: GetNodeAptRepositoriesResponseFilesItemRepositoriesItemOptionsItemValuesList,
|
|
344
|
+
})).annotate({
|
|
345
|
+
identifier: "GetNodeAptRepositoriesResponseFilesItemRepositoriesItemOptionsItem",
|
|
346
|
+
});
|
|
347
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemOptionsList =
|
|
348
|
+
/*@__PURE__*/ S.Array(GetNodeAptRepositoriesResponseFilesItemRepositoriesItemOptionsItem);
|
|
349
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemSuitesList =
|
|
350
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
351
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemTypesItem = S.String;
|
|
352
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemTypesList =
|
|
353
|
+
/*@__PURE__*/ S.Array(GetNodeAptRepositoriesResponseFilesItemRepositoriesItemTypesItem);
|
|
354
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItemURIsList =
|
|
355
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
356
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesItem =
|
|
357
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
358
|
+
Comment: S.optional(S.String),
|
|
359
|
+
Components: GetNodeAptRepositoriesResponseFilesItemRepositoriesItemComponentsList,
|
|
360
|
+
Enabled: S.Unknown,
|
|
361
|
+
FileType: GetNodeAptRepositoriesResponseFilesItemRepositoriesItemFileType,
|
|
362
|
+
Options: S.optional(GetNodeAptRepositoriesResponseFilesItemRepositoriesItemOptionsList),
|
|
363
|
+
Suites: GetNodeAptRepositoriesResponseFilesItemRepositoriesItemSuitesList,
|
|
364
|
+
Types: GetNodeAptRepositoriesResponseFilesItemRepositoriesItemTypesList,
|
|
365
|
+
URIs: GetNodeAptRepositoriesResponseFilesItemRepositoriesItemURIsList,
|
|
366
|
+
})).annotate({
|
|
367
|
+
identifier: "GetNodeAptRepositoriesResponseFilesItemRepositoriesItem",
|
|
368
|
+
});
|
|
369
|
+
export const GetNodeAptRepositoriesResponseFilesItemRepositoriesList =
|
|
370
|
+
/*@__PURE__*/ S.Array(GetNodeAptRepositoriesResponseFilesItemRepositoriesItem);
|
|
371
|
+
export const GetNodeAptRepositoriesResponseFilesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
372
|
+
content: S.optional(S.String),
|
|
373
|
+
digest: S.optional(S.String),
|
|
374
|
+
file_type: S.optional(GetNodeAptRepositoriesResponseFilesItemFileType.pipe(T.Body("file-type"))),
|
|
375
|
+
path: S.optional(S.String),
|
|
376
|
+
repositories: GetNodeAptRepositoriesResponseFilesItemRepositoriesList,
|
|
377
|
+
})).annotate({
|
|
378
|
+
identifier: "GetNodeAptRepositoriesResponseFilesItem",
|
|
379
|
+
});
|
|
380
|
+
export const GetNodeAptRepositoriesResponseFilesList = /*@__PURE__*/ S.Array(GetNodeAptRepositoriesResponseFilesItem);
|
|
381
|
+
export const GetNodeAptRepositoriesResponseInfosItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
382
|
+
index: S.Number,
|
|
383
|
+
kind: S.String,
|
|
384
|
+
message: S.String,
|
|
385
|
+
path: S.String,
|
|
386
|
+
property: S.optional(S.String),
|
|
387
|
+
})).annotate({
|
|
388
|
+
identifier: "GetNodeAptRepositoriesResponseInfosItem",
|
|
389
|
+
});
|
|
390
|
+
export const GetNodeAptRepositoriesResponseInfosList = /*@__PURE__*/ S.Array(GetNodeAptRepositoriesResponseInfosItem);
|
|
391
|
+
export const GetNodeAptRepositoriesResponseStandardReposItem =
|
|
392
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
393
|
+
description: S.String,
|
|
394
|
+
handle: S.String,
|
|
395
|
+
name: S.String,
|
|
396
|
+
status: S.optional(S.Unknown),
|
|
397
|
+
})).annotate({
|
|
398
|
+
identifier: "GetNodeAptRepositoriesResponseStandardReposItem",
|
|
399
|
+
});
|
|
400
|
+
export const GetNodeAptRepositoriesResponseStandardReposList =
|
|
401
|
+
/*@__PURE__*/ S.Array(GetNodeAptRepositoriesResponseStandardReposItem);
|
|
402
|
+
export const GetNodeAptRepositoriesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
403
|
+
digest: S.String,
|
|
404
|
+
errors: GetNodeAptRepositoriesResponseErrorsList,
|
|
405
|
+
files: GetNodeAptRepositoriesResponseFilesList,
|
|
406
|
+
infos: GetNodeAptRepositoriesResponseInfosList,
|
|
407
|
+
standard_repos: S.optional(GetNodeAptRepositoriesResponseStandardReposList.pipe(T.Body("standard-repos"))),
|
|
408
|
+
})).annotate({
|
|
409
|
+
identifier: "GetNodeAptRepositoriesResponse",
|
|
410
|
+
});
|
|
411
|
+
export const GetNodeCertificateAcmeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
412
|
+
node: S.String.pipe(T.Label()),
|
|
413
|
+
}).pipe(T.Http({
|
|
414
|
+
method: "GET",
|
|
415
|
+
uri: "/nodes/{node}/certificates/acme",
|
|
416
|
+
code: 200,
|
|
417
|
+
}))).annotate({
|
|
418
|
+
identifier: "GetNodeCertificateAcmeRequest",
|
|
419
|
+
});
|
|
420
|
+
export const GetNodeCertificateAcmeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
421
|
+
identifier: "GetNodeCertificateAcmeResponse",
|
|
422
|
+
});
|
|
423
|
+
export const GetNodeCertificatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
424
|
+
node: S.String.pipe(T.Label()),
|
|
425
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/certificates", code: 200 }))).annotate({
|
|
426
|
+
identifier: "GetNodeCertificatesRequest",
|
|
427
|
+
});
|
|
428
|
+
export const GetNodeCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
429
|
+
identifier: "GetNodeCertificatesResponse",
|
|
430
|
+
});
|
|
431
|
+
export const GetNodeConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
432
|
+
node: S.String.pipe(T.Label()),
|
|
433
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/config", code: 200 }))).annotate({
|
|
434
|
+
identifier: "GetNodeConfigRequest",
|
|
435
|
+
});
|
|
436
|
+
export const GetNodeConfigResponseDefaultLang = S.String;
|
|
437
|
+
export const GetNodeConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
438
|
+
acme: S.optional(S.String),
|
|
439
|
+
acmedomain0: S.optional(S.String),
|
|
440
|
+
acmedomain1: S.optional(S.String),
|
|
441
|
+
acmedomain2: S.optional(S.String),
|
|
442
|
+
acmedomain3: S.optional(S.String),
|
|
443
|
+
acmedomain4: S.optional(S.String),
|
|
444
|
+
ciphers_tls_1_2: S.optional(S.String.pipe(T.Body("ciphers-tls-1.2"))),
|
|
445
|
+
ciphers_tls_1_3: S.optional(S.String.pipe(T.Body("ciphers-tls-1.3"))),
|
|
446
|
+
consent_text: S.optional(S.String.pipe(T.Body("consent-text"))),
|
|
447
|
+
default_lang: S.optional(GetNodeConfigResponseDefaultLang.pipe(T.Body("default-lang"))),
|
|
448
|
+
description: S.optional(S.String),
|
|
449
|
+
email_from: S.optional(S.String.pipe(T.Body("email-from"))),
|
|
450
|
+
http_proxy: S.optional(S.String.pipe(T.Body("http-proxy"))),
|
|
451
|
+
location: S.optional(S.String),
|
|
452
|
+
task_log_max_days: S.optional(S.Number.pipe(T.Body("task-log-max-days"))),
|
|
453
|
+
})).annotate({
|
|
454
|
+
identifier: "GetNodeConfigResponse",
|
|
455
|
+
});
|
|
456
|
+
export const GetNodeDisksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
457
|
+
node: S.String.pipe(T.Label()),
|
|
458
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/disks", code: 200 }))).annotate({
|
|
459
|
+
identifier: "GetNodeDisksRequest",
|
|
460
|
+
});
|
|
461
|
+
export const GetNodeDisksResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
462
|
+
identifier: "GetNodeDisksResponse",
|
|
463
|
+
});
|
|
464
|
+
export const GetNodeDiskSmartRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
465
|
+
node: S.String.pipe(T.Label()),
|
|
466
|
+
disk: S.String.pipe(T.Query()),
|
|
467
|
+
healthonly: S.optional(S.String.pipe(T.Query())),
|
|
468
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/disks/smart", code: 200 }))).annotate({
|
|
469
|
+
identifier: "GetNodeDiskSmartRequest",
|
|
470
|
+
});
|
|
471
|
+
export const GetNodeDiskSmartResponseAttributesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
472
|
+
flags: S.optional(S.String),
|
|
473
|
+
id: S.optional(S.Number),
|
|
474
|
+
name: S.String,
|
|
475
|
+
normalized: S.optional(S.Number),
|
|
476
|
+
raw: S.String,
|
|
477
|
+
threshold: S.optional(S.Number),
|
|
478
|
+
value: S.String,
|
|
479
|
+
worst: S.optional(S.Number),
|
|
480
|
+
})).annotate({
|
|
481
|
+
identifier: "GetNodeDiskSmartResponseAttributesItem",
|
|
482
|
+
});
|
|
483
|
+
export const GetNodeDiskSmartResponseAttributesList = /*@__PURE__*/ S.Array(GetNodeDiskSmartResponseAttributesItem);
|
|
484
|
+
export const GetNodeDiskSmartResponseStatus = S.String;
|
|
485
|
+
export const GetNodeDiskSmartResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
486
|
+
attributes: GetNodeDiskSmartResponseAttributesList,
|
|
487
|
+
status: GetNodeDiskSmartResponseStatus,
|
|
488
|
+
wearout: S.optional(S.Number),
|
|
489
|
+
})).annotate({
|
|
490
|
+
identifier: "GetNodeDiskSmartResponse",
|
|
491
|
+
});
|
|
492
|
+
export const GetNodeDiskZfsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
493
|
+
node: S.String.pipe(T.Label()),
|
|
494
|
+
name: S.String.pipe(T.Label()),
|
|
495
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/disks/zfs/{name}", code: 200 }))).annotate({
|
|
496
|
+
identifier: "GetNodeDiskZfsRequest",
|
|
497
|
+
});
|
|
498
|
+
export const GetNodeDiskZfsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
499
|
+
identifier: "GetNodeDiskZfsResponse",
|
|
500
|
+
});
|
|
501
|
+
export const GetNodeDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
502
|
+
node: S.String.pipe(T.Label()),
|
|
503
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/dns", code: 200 }))).annotate({
|
|
504
|
+
identifier: "GetNodeDnsRequest",
|
|
505
|
+
});
|
|
506
|
+
export const GetNodeDnsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
507
|
+
digest: S.String,
|
|
508
|
+
dns1: S.optional(S.String),
|
|
509
|
+
dns2: S.optional(S.String),
|
|
510
|
+
dns3: S.optional(S.String),
|
|
511
|
+
search: S.optional(S.String),
|
|
512
|
+
})).annotate({
|
|
513
|
+
identifier: "GetNodeDnsResponse",
|
|
514
|
+
});
|
|
515
|
+
export const GetNodeIdentityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
516
|
+
node: S.String.pipe(T.Label()),
|
|
517
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/identity", code: 200 }))).annotate({
|
|
518
|
+
identifier: "GetNodeIdentityRequest",
|
|
519
|
+
});
|
|
520
|
+
export const GetNodeIdentityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
521
|
+
pbs_instance_id: S.optional(S.String.pipe(T.Body("pbs-instance-id"))),
|
|
522
|
+
})).annotate({
|
|
523
|
+
identifier: "GetNodeIdentityResponse",
|
|
524
|
+
});
|
|
525
|
+
export const GetNodeJournalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
526
|
+
node: S.String.pipe(T.Label()),
|
|
527
|
+
endcursor: S.optional(S.String.pipe(T.Query())),
|
|
528
|
+
identifiers: S.optional(S.String.pipe(T.Query())),
|
|
529
|
+
kernel: S.optional(S.String.pipe(T.Query())),
|
|
530
|
+
lastentries: S.optional(S.String.pipe(T.Query())),
|
|
531
|
+
priority: S.optional(S.String.pipe(T.Query())),
|
|
532
|
+
service: S.optional(S.String.pipe(T.Query())),
|
|
533
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
534
|
+
startcursor: S.optional(S.String.pipe(T.Query())),
|
|
535
|
+
structured: S.optional(S.String.pipe(T.Query())),
|
|
536
|
+
unit: S.optional(S.String.pipe(T.Query())),
|
|
537
|
+
units: S.optional(S.String.pipe(T.Query())),
|
|
538
|
+
until: S.optional(S.String.pipe(T.Query())),
|
|
539
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/journal", code: 200 }))).annotate({
|
|
540
|
+
identifier: "GetNodeJournalRequest",
|
|
541
|
+
});
|
|
542
|
+
export const GetNodeJournalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
543
|
+
identifier: "GetNodeJournalResponse",
|
|
544
|
+
});
|
|
545
|
+
export const GetNodeNetworkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
546
|
+
node: S.String.pipe(T.Label()),
|
|
547
|
+
iface: S.String.pipe(T.Label()),
|
|
548
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/network/{iface}", code: 200 }))).annotate({
|
|
549
|
+
identifier: "GetNodeNetworkRequest",
|
|
550
|
+
});
|
|
551
|
+
export const GetNodeNetworkResponseAltnamesList = /*@__PURE__*/ S.Array(S.String);
|
|
552
|
+
export const GetNodeNetworkResponseBondMode = S.String;
|
|
553
|
+
export const GetNodeNetworkResponseBondXmitHashPolicy = S.String;
|
|
554
|
+
export const GetNodeNetworkResponseBridgePortsList = /*@__PURE__*/ S.Array(S.String);
|
|
555
|
+
export const GetNodeNetworkResponseMethod = S.String;
|
|
556
|
+
export const GetNodeNetworkResponseMethod6 = S.String;
|
|
557
|
+
export const GetNodeNetworkResponseOptionsList = /*@__PURE__*/ S.Array(S.String);
|
|
558
|
+
export const GetNodeNetworkResponseOptions6List = /*@__PURE__*/ S.Array(S.String);
|
|
559
|
+
export const GetNodeNetworkResponseSlavesList = /*@__PURE__*/ S.Array(S.String);
|
|
560
|
+
export const GetNodeNetworkResponseType = S.String;
|
|
561
|
+
export const GetNodeNetworkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
562
|
+
active: S.Unknown,
|
|
563
|
+
altnames: GetNodeNetworkResponseAltnamesList,
|
|
564
|
+
autostart: S.Unknown,
|
|
565
|
+
bond_primary: S.optional(S.String.pipe(T.Body("bond-primary"))),
|
|
566
|
+
bond_mode: S.optional(GetNodeNetworkResponseBondMode),
|
|
567
|
+
bond_xmit_hash_policy: S.optional(GetNodeNetworkResponseBondXmitHashPolicy),
|
|
568
|
+
bridge_ports: S.optional(GetNodeNetworkResponseBridgePortsList),
|
|
569
|
+
bridge_vlan_aware: S.optional(S.Unknown),
|
|
570
|
+
cidr: S.optional(S.String),
|
|
571
|
+
cidr6: S.optional(S.String),
|
|
572
|
+
comments: S.optional(S.String),
|
|
573
|
+
comments6: S.optional(S.String),
|
|
574
|
+
gateway: S.optional(S.String),
|
|
575
|
+
gateway6: S.optional(S.String),
|
|
576
|
+
method: S.optional(GetNodeNetworkResponseMethod),
|
|
577
|
+
method6: S.optional(GetNodeNetworkResponseMethod6),
|
|
578
|
+
mtu: S.optional(S.Number),
|
|
579
|
+
name: S.String,
|
|
580
|
+
options: GetNodeNetworkResponseOptionsList,
|
|
581
|
+
options6: GetNodeNetworkResponseOptions6List,
|
|
582
|
+
slaves: S.optional(GetNodeNetworkResponseSlavesList),
|
|
583
|
+
type: GetNodeNetworkResponseType,
|
|
584
|
+
vlan_id: S.optional(S.Number.pipe(T.Body("vlan-id"))),
|
|
585
|
+
vlan_raw_device: S.optional(S.String.pipe(T.Body("vlan-raw-device"))),
|
|
586
|
+
})).annotate({
|
|
587
|
+
identifier: "GetNodeNetworkResponse",
|
|
588
|
+
});
|
|
589
|
+
export const GetNodeReportRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
590
|
+
node: S.String.pipe(T.Label()),
|
|
591
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/report", code: 200 }))).annotate({
|
|
592
|
+
identifier: "GetNodeReportRequest",
|
|
593
|
+
});
|
|
594
|
+
export const GetNodeReportResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
595
|
+
identifier: "GetNodeReportResponse",
|
|
596
|
+
});
|
|
597
|
+
export const GetNodeRrdRequestCf = S.String;
|
|
598
|
+
export const GetNodeRrdRequestTimeframe = S.String;
|
|
599
|
+
export const GetNodeRrdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
600
|
+
node: S.String.pipe(T.Label()),
|
|
601
|
+
cf: GetNodeRrdRequestCf.pipe(T.Query()),
|
|
602
|
+
timeframe: GetNodeRrdRequestTimeframe.pipe(T.Query()),
|
|
603
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/rrd", code: 200 }))).annotate({
|
|
604
|
+
identifier: "GetNodeRrdRequest",
|
|
605
|
+
});
|
|
606
|
+
export const GetNodeRrdResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
607
|
+
identifier: "GetNodeRrdResponse",
|
|
608
|
+
});
|
|
609
|
+
export const GetNodesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/nodes", code: 200 }))).annotate({
|
|
610
|
+
identifier: "GetNodesRequest",
|
|
611
|
+
});
|
|
612
|
+
export const GetNodesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
613
|
+
identifier: "GetNodesResponse",
|
|
614
|
+
});
|
|
615
|
+
export const GetNodeServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
616
|
+
node: S.String.pipe(T.Label()),
|
|
617
|
+
service: S.String.pipe(T.Label()),
|
|
618
|
+
}).pipe(T.Http({
|
|
619
|
+
method: "GET",
|
|
620
|
+
uri: "/nodes/{node}/services/{service}",
|
|
621
|
+
code: 200,
|
|
622
|
+
}))).annotate({
|
|
623
|
+
identifier: "GetNodeServiceRequest",
|
|
624
|
+
});
|
|
625
|
+
export const GetNodeServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
626
|
+
identifier: "GetNodeServiceResponse",
|
|
627
|
+
});
|
|
628
|
+
export const GetNodeServiceStateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
629
|
+
node: S.String.pipe(T.Label()),
|
|
630
|
+
service: S.String.pipe(T.Label()),
|
|
631
|
+
}).pipe(T.Http({
|
|
632
|
+
method: "GET",
|
|
633
|
+
uri: "/nodes/{node}/services/{service}/state",
|
|
634
|
+
code: 200,
|
|
635
|
+
}))).annotate({
|
|
636
|
+
identifier: "GetNodeServiceStateRequest",
|
|
637
|
+
});
|
|
638
|
+
export const GetNodeServiceStateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
639
|
+
identifier: "GetNodeServiceStateResponse",
|
|
640
|
+
});
|
|
641
|
+
export const GetNodeStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
642
|
+
node: S.String.pipe(T.Label()),
|
|
643
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/status", code: 200 }))).annotate({
|
|
644
|
+
identifier: "GetNodeStatusRequest",
|
|
645
|
+
});
|
|
646
|
+
export const GetNodeStatusResponseBootInfoMode = S.String;
|
|
647
|
+
export const GetNodeStatusResponseBootInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
648
|
+
mode: GetNodeStatusResponseBootInfoMode,
|
|
649
|
+
secureboot: S.Unknown,
|
|
650
|
+
})).annotate({
|
|
651
|
+
identifier: "GetNodeStatusResponseBootInfo",
|
|
652
|
+
});
|
|
653
|
+
export const GetNodeStatusResponseCpuinfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
654
|
+
cpus: S.Number,
|
|
655
|
+
model: S.String,
|
|
656
|
+
sockets: S.Number,
|
|
657
|
+
})).annotate({
|
|
658
|
+
identifier: "GetNodeStatusResponseCpuinfo",
|
|
659
|
+
});
|
|
660
|
+
export const GetNodeStatusResponseCurrentKernel = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
661
|
+
machine: S.String,
|
|
662
|
+
release: S.String,
|
|
663
|
+
sysname: S.String,
|
|
664
|
+
version: S.String,
|
|
665
|
+
})).annotate({
|
|
666
|
+
identifier: "GetNodeStatusResponseCurrentKernel",
|
|
667
|
+
});
|
|
668
|
+
export const GetNodeStatusResponseInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
669
|
+
fingerprint: S.String,
|
|
670
|
+
})).annotate({
|
|
671
|
+
identifier: "GetNodeStatusResponseInfo",
|
|
672
|
+
});
|
|
673
|
+
export const GetNodeStatusResponseLoadavgList = /*@__PURE__*/ S.Array(S.Number);
|
|
674
|
+
export const GetNodeStatusResponseMemory = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
675
|
+
free: S.Number,
|
|
676
|
+
total: S.Number,
|
|
677
|
+
used: S.Number,
|
|
678
|
+
})).annotate({
|
|
679
|
+
identifier: "GetNodeStatusResponseMemory",
|
|
680
|
+
});
|
|
681
|
+
export const GetNodeStatusResponseRoot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
682
|
+
avail: S.Number,
|
|
683
|
+
total: S.Number,
|
|
684
|
+
used: S.Number,
|
|
685
|
+
})).annotate({
|
|
686
|
+
identifier: "GetNodeStatusResponseRoot",
|
|
687
|
+
});
|
|
688
|
+
export const GetNodeStatusResponseSwap = GetNodeStatusResponseMemory;
|
|
689
|
+
export const GetNodeStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
690
|
+
boot_info: S.optional(GetNodeStatusResponseBootInfo.pipe(T.Body("boot-info"))),
|
|
691
|
+
cpu: S.Number,
|
|
692
|
+
cpuinfo: GetNodeStatusResponseCpuinfo,
|
|
693
|
+
current_kernel: S.optional(GetNodeStatusResponseCurrentKernel.pipe(T.Body("current-kernel"))),
|
|
694
|
+
info: GetNodeStatusResponseInfo,
|
|
695
|
+
kversion: S.String,
|
|
696
|
+
loadavg: GetNodeStatusResponseLoadavgList,
|
|
697
|
+
memory: GetNodeStatusResponseMemory,
|
|
698
|
+
root: GetNodeStatusResponseRoot,
|
|
699
|
+
swap: GetNodeStatusResponseMemory,
|
|
700
|
+
uptime: S.Number,
|
|
701
|
+
wait: S.Number,
|
|
702
|
+
})).annotate({
|
|
703
|
+
identifier: "GetNodeStatusResponse",
|
|
704
|
+
});
|
|
705
|
+
export const GetNodeSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
706
|
+
node: S.String.pipe(T.Label()),
|
|
707
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/subscription", code: 200 }))).annotate({
|
|
708
|
+
identifier: "GetNodeSubscriptionRequest",
|
|
709
|
+
});
|
|
710
|
+
export const GetNodeSubscriptionResponseStatus = S.String;
|
|
711
|
+
export const GetNodeSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
712
|
+
checktime: S.optional(S.Number),
|
|
713
|
+
key: S.optional(S.String),
|
|
714
|
+
message: S.optional(S.String),
|
|
715
|
+
nextduedate: S.optional(S.String),
|
|
716
|
+
productname: S.optional(S.String),
|
|
717
|
+
regdate: S.optional(S.String),
|
|
718
|
+
serverid: S.optional(S.String),
|
|
719
|
+
signature: S.optional(S.String),
|
|
720
|
+
status: GetNodeSubscriptionResponseStatus,
|
|
721
|
+
url: S.optional(S.String),
|
|
722
|
+
})).annotate({
|
|
723
|
+
identifier: "GetNodeSubscriptionResponse",
|
|
724
|
+
});
|
|
725
|
+
export const GetNodeTaskRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
726
|
+
node: S.String.pipe(T.Label()),
|
|
727
|
+
upid: S.String.pipe(T.Label()),
|
|
728
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/tasks/{upid}", code: 200 }))).annotate({
|
|
729
|
+
identifier: "GetNodeTaskRequest",
|
|
730
|
+
});
|
|
731
|
+
export const GetNodeTaskResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
732
|
+
identifier: "GetNodeTaskResponse",
|
|
733
|
+
});
|
|
734
|
+
export const GetNodeTaskLogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
735
|
+
node: S.String.pipe(T.Label()),
|
|
736
|
+
upid: S.String.pipe(T.Label()),
|
|
737
|
+
download: S.optional(S.String.pipe(T.Query())),
|
|
738
|
+
limit: S.optional(S.String.pipe(T.Query())),
|
|
739
|
+
start: S.optional(S.String.pipe(T.Query())),
|
|
740
|
+
test_status: S.optional(S.String.pipe(T.Query("test-status"))),
|
|
741
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/tasks/{upid}/log", code: 200 }))).annotate({
|
|
742
|
+
identifier: "GetNodeTaskLogRequest",
|
|
743
|
+
});
|
|
744
|
+
export const GetNodeTaskLogResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
745
|
+
identifier: "GetNodeTaskLogResponse",
|
|
746
|
+
});
|
|
747
|
+
export const GetNodeTaskStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
748
|
+
node: S.String.pipe(T.Label()),
|
|
749
|
+
upid: S.String.pipe(T.Label()),
|
|
750
|
+
}).pipe(T.Http({
|
|
751
|
+
method: "GET",
|
|
752
|
+
uri: "/nodes/{node}/tasks/{upid}/status",
|
|
753
|
+
code: 200,
|
|
754
|
+
}))).annotate({
|
|
755
|
+
identifier: "GetNodeTaskStatusRequest",
|
|
756
|
+
});
|
|
757
|
+
export const GetNodeTaskStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
758
|
+
endtime: S.optional(S.Number),
|
|
759
|
+
exitstatus: S.optional(S.String),
|
|
760
|
+
id: S.optional(S.String),
|
|
761
|
+
node: S.String,
|
|
762
|
+
pid: S.Number,
|
|
763
|
+
pstart: S.Number,
|
|
764
|
+
starttime: S.Number,
|
|
765
|
+
status: S.String,
|
|
766
|
+
tokenid: S.optional(S.String),
|
|
767
|
+
type: S.String,
|
|
768
|
+
upid: S.String,
|
|
769
|
+
user: S.String,
|
|
770
|
+
})).annotate({
|
|
771
|
+
identifier: "GetNodeTaskStatusResponse",
|
|
772
|
+
});
|
|
773
|
+
export const GetNodeTimeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
774
|
+
node: S.String.pipe(T.Label()),
|
|
775
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/time", code: 200 }))).annotate({
|
|
776
|
+
identifier: "GetNodeTimeRequest",
|
|
777
|
+
});
|
|
778
|
+
export const GetNodeTimeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
779
|
+
localtime: S.Number,
|
|
780
|
+
time: S.Number,
|
|
781
|
+
timezone: S.String,
|
|
782
|
+
})).annotate({
|
|
783
|
+
identifier: "GetNodeTimeResponse",
|
|
784
|
+
});
|
|
785
|
+
export const GetNodeVncwebsocketRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
786
|
+
node: S.String.pipe(T.Label()),
|
|
787
|
+
port: S.String.pipe(T.Query()),
|
|
788
|
+
vncticket: S.String.pipe(T.Query()),
|
|
789
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/vncwebsocket", code: 200 }))).annotate({
|
|
790
|
+
identifier: "GetNodeVncwebsocketRequest",
|
|
791
|
+
});
|
|
792
|
+
export const GetNodeVncwebsocketResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
793
|
+
identifier: "GetNodeVncwebsocketResponse",
|
|
794
|
+
});
|
|
795
|
+
export const ListNodeAptUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
796
|
+
node: S.String.pipe(T.Label()),
|
|
797
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/apt/update", code: 200 }))).annotate({
|
|
798
|
+
identifier: "ListNodeAptUpdateRequest",
|
|
799
|
+
});
|
|
800
|
+
export const ListNodeAptUpdateResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
801
|
+
Arch: S.String,
|
|
802
|
+
Description: S.String,
|
|
803
|
+
ExtraInfo: S.optional(S.String),
|
|
804
|
+
OldVersion: S.optional(S.String),
|
|
805
|
+
Origin: S.String,
|
|
806
|
+
Package: S.String,
|
|
807
|
+
Priority: S.String,
|
|
808
|
+
Section: S.String,
|
|
809
|
+
Title: S.String,
|
|
810
|
+
Version: S.String,
|
|
811
|
+
})).annotate({
|
|
812
|
+
identifier: "ListNodeAptUpdateResponseBodyItem",
|
|
813
|
+
});
|
|
814
|
+
export const ListNodeAptUpdateResponseBodyList = /*@__PURE__*/ S.Array(ListNodeAptUpdateResponseBodyItem);
|
|
815
|
+
export const ListNodeAptUpdateResponse = /*@__PURE__*/ S.suspend(() => ListNodeAptUpdateResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
816
|
+
identifier: "ListNodeAptUpdateResponse",
|
|
817
|
+
});
|
|
818
|
+
export const ListNodeAptVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
819
|
+
node: S.String.pipe(T.Label()),
|
|
820
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/apt/versions", code: 200 }))).annotate({
|
|
821
|
+
identifier: "ListNodeAptVersionsRequest",
|
|
822
|
+
});
|
|
823
|
+
export const ListNodeAptVersionsResponseBodyItem = ListNodeAptUpdateResponseBodyItem;
|
|
824
|
+
export const ListNodeAptVersionsResponseBodyList = /*@__PURE__*/ S.Array(ListNodeAptUpdateResponseBodyItem);
|
|
825
|
+
export const ListNodeAptVersionsResponse = /*@__PURE__*/ S.suspend(() => ListNodeAptVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
826
|
+
identifier: "ListNodeAptVersionsResponse",
|
|
827
|
+
});
|
|
828
|
+
export const ListNodeCertificateInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
829
|
+
node: S.String.pipe(T.Label()),
|
|
830
|
+
}).pipe(T.Http({
|
|
831
|
+
method: "GET",
|
|
832
|
+
uri: "/nodes/{node}/certificates/info",
|
|
833
|
+
code: 200,
|
|
834
|
+
}))).annotate({
|
|
835
|
+
identifier: "ListNodeCertificateInfoRequest",
|
|
836
|
+
});
|
|
837
|
+
export const ListNodeCertificateInfoResponseBodyItemSanList =
|
|
838
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
839
|
+
export const ListNodeCertificateInfoResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
840
|
+
filename: S.String,
|
|
841
|
+
fingerprint: S.optional(S.String),
|
|
842
|
+
issuer: S.String,
|
|
843
|
+
notafter: S.optional(S.Number),
|
|
844
|
+
notbefore: S.optional(S.Number),
|
|
845
|
+
pem: S.optional(S.String),
|
|
846
|
+
public_key_bits: S.optional(S.Number.pipe(T.Body("public-key-bits"))),
|
|
847
|
+
public_key_type: S.optional(S.String.pipe(T.Body("public-key-type"))),
|
|
848
|
+
san: ListNodeCertificateInfoResponseBodyItemSanList,
|
|
849
|
+
subject: S.String,
|
|
850
|
+
})).annotate({
|
|
851
|
+
identifier: "ListNodeCertificateInfoResponseBodyItem",
|
|
852
|
+
});
|
|
853
|
+
export const ListNodeCertificateInfoResponseBodyList = /*@__PURE__*/ S.Array(ListNodeCertificateInfoResponseBodyItem);
|
|
854
|
+
export const ListNodeCertificateInfoResponse = /*@__PURE__*/ S.suspend(() => ListNodeCertificateInfoResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
855
|
+
identifier: "ListNodeCertificateInfoResponse",
|
|
856
|
+
});
|
|
857
|
+
export const ListNodeDiskDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
858
|
+
node: S.String.pipe(T.Label()),
|
|
859
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/disks/directory", code: 200 }))).annotate({
|
|
860
|
+
identifier: "ListNodeDiskDirectoryRequest",
|
|
861
|
+
});
|
|
862
|
+
export const ListNodeDiskDirectoryResponseBodyItemFilesystem = S.String;
|
|
863
|
+
export const ListNodeDiskDirectoryResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
864
|
+
device: S.String,
|
|
865
|
+
filesystem: S.optional(ListNodeDiskDirectoryResponseBodyItemFilesystem),
|
|
866
|
+
name: S.String,
|
|
867
|
+
options: S.optional(S.String),
|
|
868
|
+
path: S.String,
|
|
869
|
+
removable: S.Unknown,
|
|
870
|
+
unitfile: S.String,
|
|
871
|
+
})).annotate({
|
|
872
|
+
identifier: "ListNodeDiskDirectoryResponseBodyItem",
|
|
873
|
+
});
|
|
874
|
+
export const ListNodeDiskDirectoryResponseBodyList = /*@__PURE__*/ S.Array(ListNodeDiskDirectoryResponseBodyItem);
|
|
875
|
+
export const ListNodeDiskDirectoryResponse = /*@__PURE__*/ S.suspend(() => ListNodeDiskDirectoryResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
876
|
+
identifier: "ListNodeDiskDirectoryResponse",
|
|
877
|
+
});
|
|
878
|
+
export const ListNodeDiskListRequestUsageType = S.String;
|
|
879
|
+
export const ListNodeDiskListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
880
|
+
node: S.String.pipe(T.Label()),
|
|
881
|
+
include_partitions: S.optional(S.String.pipe(T.Query("include-partitions"))),
|
|
882
|
+
skipsmart: S.optional(S.String.pipe(T.Query())),
|
|
883
|
+
usage_type: S.optional(ListNodeDiskListRequestUsageType.pipe(T.Query("usage-type"))),
|
|
884
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/disks/list", code: 200 }))).annotate({
|
|
885
|
+
identifier: "ListNodeDiskListRequest",
|
|
886
|
+
});
|
|
887
|
+
export const ListNodeDiskListResponseBodyItemDiskType = S.String;
|
|
888
|
+
export const ListNodeDiskListResponseBodyItemPartitionsItemUsed = S.String;
|
|
889
|
+
export const ListNodeDiskListResponseBodyItemPartitionsItem =
|
|
890
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
891
|
+
devpath: S.optional(S.String),
|
|
892
|
+
filesystem: S.optional(S.String),
|
|
893
|
+
gpt: S.Unknown,
|
|
894
|
+
mounted: S.Unknown,
|
|
895
|
+
name: S.String,
|
|
896
|
+
size: S.optional(S.Number),
|
|
897
|
+
used: ListNodeDiskListResponseBodyItemPartitionsItemUsed,
|
|
898
|
+
uuid: S.optional(S.String),
|
|
899
|
+
})).annotate({
|
|
900
|
+
identifier: "ListNodeDiskListResponseBodyItemPartitionsItem",
|
|
901
|
+
});
|
|
902
|
+
export const ListNodeDiskListResponseBodyItemPartitionsList =
|
|
903
|
+
/*@__PURE__*/ S.Array(ListNodeDiskListResponseBodyItemPartitionsItem);
|
|
904
|
+
export const ListNodeDiskListResponseBodyItemStatus = S.String;
|
|
905
|
+
export const ListNodeDiskListResponseBodyItemUsed = S.String;
|
|
906
|
+
export const ListNodeDiskListResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
907
|
+
devpath: S.optional(S.String),
|
|
908
|
+
disk_type: S.optional(ListNodeDiskListResponseBodyItemDiskType.pipe(T.Body("disk-type"))),
|
|
909
|
+
gpt: S.Unknown,
|
|
910
|
+
model: S.optional(S.String),
|
|
911
|
+
name: S.String,
|
|
912
|
+
partitions: S.optional(ListNodeDiskListResponseBodyItemPartitionsList),
|
|
913
|
+
rpm: S.optional(S.Number),
|
|
914
|
+
serial: S.optional(S.String),
|
|
915
|
+
size: S.Number,
|
|
916
|
+
status: ListNodeDiskListResponseBodyItemStatus,
|
|
917
|
+
used: ListNodeDiskListResponseBodyItemUsed,
|
|
918
|
+
vendor: S.optional(S.String),
|
|
919
|
+
wearout: S.optional(S.Number),
|
|
920
|
+
wwn: S.optional(S.String),
|
|
921
|
+
})).annotate({
|
|
922
|
+
identifier: "ListNodeDiskListResponseBodyItem",
|
|
923
|
+
});
|
|
924
|
+
export const ListNodeDiskListResponseBodyList = /*@__PURE__*/ S.Array(ListNodeDiskListResponseBodyItem);
|
|
925
|
+
export const ListNodeDiskListResponse = /*@__PURE__*/ S.suspend(() => ListNodeDiskListResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
926
|
+
identifier: "ListNodeDiskListResponse",
|
|
927
|
+
});
|
|
928
|
+
export const ListNodeDiskZfsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
929
|
+
node: S.String.pipe(T.Label()),
|
|
930
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/disks/zfs", code: 200 }))).annotate({
|
|
931
|
+
identifier: "ListNodeDiskZfsRequest",
|
|
932
|
+
});
|
|
933
|
+
export const ListNodeDiskZfsResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
934
|
+
alloc: S.Number,
|
|
935
|
+
dedup: S.Number,
|
|
936
|
+
frag: S.Number,
|
|
937
|
+
free: S.Number,
|
|
938
|
+
health: S.String,
|
|
939
|
+
name: S.String,
|
|
940
|
+
size: S.Number,
|
|
941
|
+
})).annotate({
|
|
942
|
+
identifier: "ListNodeDiskZfsResponseBodyItem",
|
|
943
|
+
});
|
|
944
|
+
export const ListNodeDiskZfsResponseBodyList = /*@__PURE__*/ S.Array(ListNodeDiskZfsResponseBodyItem);
|
|
945
|
+
export const ListNodeDiskZfsResponse = /*@__PURE__*/ S.suspend(() => ListNodeDiskZfsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
946
|
+
identifier: "ListNodeDiskZfsResponse",
|
|
947
|
+
});
|
|
948
|
+
export const ListNodeNetworkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
949
|
+
node: S.String.pipe(T.Label()),
|
|
950
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/network", code: 200 }))).annotate({
|
|
951
|
+
identifier: "ListNodeNetworkRequest",
|
|
952
|
+
});
|
|
953
|
+
export const ListNodeNetworkResponseBodyItemAltnamesList =
|
|
954
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
955
|
+
export const ListNodeNetworkResponseBodyItemBondMode = S.String;
|
|
956
|
+
export const ListNodeNetworkResponseBodyItemBondXmitHashPolicy = S.String;
|
|
957
|
+
export const ListNodeNetworkResponseBodyItemBridgePortsList =
|
|
958
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
959
|
+
export const ListNodeNetworkResponseBodyItemMethod = S.String;
|
|
960
|
+
export const ListNodeNetworkResponseBodyItemMethod6 = S.String;
|
|
961
|
+
export const ListNodeNetworkResponseBodyItemOptionsList = /*@__PURE__*/ S.Array(S.String);
|
|
962
|
+
export const ListNodeNetworkResponseBodyItemOptions6List =
|
|
963
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
964
|
+
export const ListNodeNetworkResponseBodyItemSlavesList = /*@__PURE__*/ S.Array(S.String);
|
|
965
|
+
export const ListNodeNetworkResponseBodyItemType = S.String;
|
|
966
|
+
export const ListNodeNetworkResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
967
|
+
active: S.Unknown,
|
|
968
|
+
altnames: ListNodeNetworkResponseBodyItemAltnamesList,
|
|
969
|
+
autostart: S.Unknown,
|
|
970
|
+
bond_primary: S.optional(S.String.pipe(T.Body("bond-primary"))),
|
|
971
|
+
bond_mode: S.optional(ListNodeNetworkResponseBodyItemBondMode),
|
|
972
|
+
bond_xmit_hash_policy: S.optional(ListNodeNetworkResponseBodyItemBondXmitHashPolicy),
|
|
973
|
+
bridge_ports: S.optional(ListNodeNetworkResponseBodyItemBridgePortsList),
|
|
974
|
+
bridge_vlan_aware: S.optional(S.Unknown),
|
|
975
|
+
cidr: S.optional(S.String),
|
|
976
|
+
cidr6: S.optional(S.String),
|
|
977
|
+
comments: S.optional(S.String),
|
|
978
|
+
comments6: S.optional(S.String),
|
|
979
|
+
gateway: S.optional(S.String),
|
|
980
|
+
gateway6: S.optional(S.String),
|
|
981
|
+
method: S.optional(ListNodeNetworkResponseBodyItemMethod),
|
|
982
|
+
method6: S.optional(ListNodeNetworkResponseBodyItemMethod6),
|
|
983
|
+
mtu: S.optional(S.Number),
|
|
984
|
+
name: S.String,
|
|
985
|
+
options: ListNodeNetworkResponseBodyItemOptionsList,
|
|
986
|
+
options6: ListNodeNetworkResponseBodyItemOptions6List,
|
|
987
|
+
slaves: S.optional(ListNodeNetworkResponseBodyItemSlavesList),
|
|
988
|
+
type: ListNodeNetworkResponseBodyItemType,
|
|
989
|
+
vlan_id: S.optional(S.Number.pipe(T.Body("vlan-id"))),
|
|
990
|
+
vlan_raw_device: S.optional(S.String.pipe(T.Body("vlan-raw-device"))),
|
|
991
|
+
})).annotate({
|
|
992
|
+
identifier: "ListNodeNetworkResponseBodyItem",
|
|
993
|
+
});
|
|
994
|
+
export const ListNodeNetworkResponseBodyList = /*@__PURE__*/ S.Array(ListNodeNetworkResponseBodyItem);
|
|
995
|
+
export const ListNodeNetworkResponse = /*@__PURE__*/ S.suspend(() => ListNodeNetworkResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
996
|
+
identifier: "ListNodeNetworkResponse",
|
|
997
|
+
});
|
|
998
|
+
export const ListNodeServicesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
999
|
+
node: S.String.pipe(T.Label()),
|
|
1000
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/services", code: 200 }))).annotate({
|
|
1001
|
+
identifier: "ListNodeServicesRequest",
|
|
1002
|
+
});
|
|
1003
|
+
export const ListNodeServicesResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1004
|
+
desc: S.String,
|
|
1005
|
+
name: S.String,
|
|
1006
|
+
service: S.String,
|
|
1007
|
+
state: S.String,
|
|
1008
|
+
unit_state: S.optional(S.String.pipe(T.Body("unit-state"))),
|
|
1009
|
+
})).annotate({
|
|
1010
|
+
identifier: "ListNodeServicesResponseBodyItem",
|
|
1011
|
+
});
|
|
1012
|
+
export const ListNodeServicesResponseBodyList = /*@__PURE__*/ S.Array(ListNodeServicesResponseBodyItem);
|
|
1013
|
+
export const ListNodeServicesResponse = /*@__PURE__*/ S.suspend(() => ListNodeServicesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1014
|
+
identifier: "ListNodeServicesResponse",
|
|
1015
|
+
});
|
|
1016
|
+
export const ListNodeSyslogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1017
|
+
node: S.String.pipe(T.Label()),
|
|
1018
|
+
limit: S.optional(S.String.pipe(T.Query())),
|
|
1019
|
+
service: S.optional(S.String.pipe(T.Query())),
|
|
1020
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
1021
|
+
start: S.optional(S.String.pipe(T.Query())),
|
|
1022
|
+
until: S.optional(S.String.pipe(T.Query())),
|
|
1023
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/syslog", code: 200 }))).annotate({
|
|
1024
|
+
identifier: "ListNodeSyslogRequest",
|
|
1025
|
+
});
|
|
1026
|
+
export const ListNodeSyslogResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1027
|
+
n: S.Number,
|
|
1028
|
+
t: S.String,
|
|
1029
|
+
})).annotate({
|
|
1030
|
+
identifier: "ListNodeSyslogResponseBodyItem",
|
|
1031
|
+
});
|
|
1032
|
+
export const ListNodeSyslogResponseBodyList = /*@__PURE__*/ S.Array(ListNodeSyslogResponseBodyItem);
|
|
1033
|
+
export const ListNodeSyslogResponse = /*@__PURE__*/ S.suspend(() => ListNodeSyslogResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1034
|
+
identifier: "ListNodeSyslogResponse",
|
|
1035
|
+
});
|
|
1036
|
+
export const ListNodeTasksRequestStatusfilterItem = S.String;
|
|
1037
|
+
export const ListNodeTasksRequestStatusfilterList = /*@__PURE__*/ S.Array(ListNodeTasksRequestStatusfilterItem);
|
|
1038
|
+
export const ListNodeTasksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1039
|
+
node: S.String.pipe(T.Label()),
|
|
1040
|
+
errors: S.optional(S.String.pipe(T.Query())),
|
|
1041
|
+
limit: S.optional(S.String.pipe(T.Query())),
|
|
1042
|
+
running: S.optional(S.String.pipe(T.Query())),
|
|
1043
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
1044
|
+
start: S.optional(S.String.pipe(T.Query())),
|
|
1045
|
+
statusfilter: S.optional(ListNodeTasksRequestStatusfilterList.pipe(T.Query())),
|
|
1046
|
+
store: S.optional(S.String.pipe(T.Query())),
|
|
1047
|
+
typefilter: S.optional(S.String.pipe(T.Query())),
|
|
1048
|
+
until: S.optional(S.String.pipe(T.Query())),
|
|
1049
|
+
userfilter: S.optional(S.String.pipe(T.Query())),
|
|
1050
|
+
}).pipe(T.Http({ method: "GET", uri: "/nodes/{node}/tasks", code: 200 }))).annotate({
|
|
1051
|
+
identifier: "ListNodeTasksRequest",
|
|
1052
|
+
});
|
|
1053
|
+
export const ListNodeTasksResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1054
|
+
endtime: S.optional(S.Number),
|
|
1055
|
+
node: S.String,
|
|
1056
|
+
pid: S.Number,
|
|
1057
|
+
pstart: S.Number,
|
|
1058
|
+
starttime: S.Number,
|
|
1059
|
+
status: S.optional(S.String),
|
|
1060
|
+
upid: S.String,
|
|
1061
|
+
user: S.String,
|
|
1062
|
+
worker_id: S.optional(S.String),
|
|
1063
|
+
worker_type: S.String,
|
|
1064
|
+
})).annotate({
|
|
1065
|
+
identifier: "ListNodeTasksResponseBodyItem",
|
|
1066
|
+
});
|
|
1067
|
+
export const ListNodeTasksResponseBodyList = /*@__PURE__*/ S.Array(ListNodeTasksResponseBodyItem);
|
|
1068
|
+
export const ListNodeTasksResponse = /*@__PURE__*/ S.suspend(() => ListNodeTasksResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1069
|
+
identifier: "ListNodeTasksResponse",
|
|
1070
|
+
});
|
|
1071
|
+
export const PutNodeAptRepositoriesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1072
|
+
node: S.String.pipe(T.Label()),
|
|
1073
|
+
digest: S.optional(S.String),
|
|
1074
|
+
handle: S.String,
|
|
1075
|
+
}).pipe(T.Http({
|
|
1076
|
+
method: "PUT",
|
|
1077
|
+
uri: "/nodes/{node}/apt/repositories",
|
|
1078
|
+
code: 200,
|
|
1079
|
+
contentType: "form-urlencoded",
|
|
1080
|
+
}))).annotate({
|
|
1081
|
+
identifier: "PutNodeAptRepositoriesRequest",
|
|
1082
|
+
});
|
|
1083
|
+
export const PutNodeAptRepositoriesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1084
|
+
identifier: "PutNodeAptRepositoriesResponse",
|
|
1085
|
+
});
|
|
1086
|
+
export const PutNodeCertificateAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1087
|
+
node: S.String.pipe(T.Label()),
|
|
1088
|
+
force: S.optional(S.String),
|
|
1089
|
+
}).pipe(T.Http({
|
|
1090
|
+
method: "PUT",
|
|
1091
|
+
uri: "/nodes/{node}/certificates/acme/certificate",
|
|
1092
|
+
code: 200,
|
|
1093
|
+
contentType: "form-urlencoded",
|
|
1094
|
+
}))).annotate({
|
|
1095
|
+
identifier: "PutNodeCertificateAcmeCertificateRequest",
|
|
1096
|
+
});
|
|
1097
|
+
export const PutNodeCertificateAcmeCertificateResponse =
|
|
1098
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1099
|
+
identifier: "PutNodeCertificateAcmeCertificateResponse",
|
|
1100
|
+
});
|
|
1101
|
+
export const PutNodeConfigRequestDefaultLang = S.String;
|
|
1102
|
+
export const PutNodeConfigRequestDeleteItem = S.String;
|
|
1103
|
+
export const PutNodeConfigRequestDeleteList = /*@__PURE__*/ S.Array(PutNodeConfigRequestDeleteItem);
|
|
1104
|
+
export const PutNodeConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1105
|
+
node: S.String.pipe(T.Label()),
|
|
1106
|
+
acme: S.optional(S.String),
|
|
1107
|
+
acmedomain0: S.optional(S.String),
|
|
1108
|
+
acmedomain1: S.optional(S.String),
|
|
1109
|
+
acmedomain2: S.optional(S.String),
|
|
1110
|
+
acmedomain3: S.optional(S.String),
|
|
1111
|
+
acmedomain4: S.optional(S.String),
|
|
1112
|
+
ciphers_tls_1_2: S.optional(S.String.pipe(T.Body("ciphers-tls-1.2"))),
|
|
1113
|
+
ciphers_tls_1_3: S.optional(S.String.pipe(T.Body("ciphers-tls-1.3"))),
|
|
1114
|
+
consent_text: S.optional(S.String.pipe(T.Body("consent-text"))),
|
|
1115
|
+
default_lang: S.optional(PutNodeConfigRequestDefaultLang.pipe(T.Body("default-lang"))),
|
|
1116
|
+
delete: S.optional(PutNodeConfigRequestDeleteList),
|
|
1117
|
+
description: S.optional(S.String),
|
|
1118
|
+
digest: S.optional(S.String),
|
|
1119
|
+
email_from: S.optional(S.String.pipe(T.Body("email-from"))),
|
|
1120
|
+
http_proxy: S.optional(S.String.pipe(T.Body("http-proxy"))),
|
|
1121
|
+
location: S.optional(S.String),
|
|
1122
|
+
task_log_max_days: S.optional(S.String.pipe(T.Body("task-log-max-days"))),
|
|
1123
|
+
}).pipe(T.Http({
|
|
1124
|
+
method: "PUT",
|
|
1125
|
+
uri: "/nodes/{node}/config",
|
|
1126
|
+
code: 200,
|
|
1127
|
+
contentType: "form-urlencoded",
|
|
1128
|
+
}))).annotate({
|
|
1129
|
+
identifier: "PutNodeConfigRequest",
|
|
1130
|
+
});
|
|
1131
|
+
export const PutNodeConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1132
|
+
identifier: "PutNodeConfigResponse",
|
|
1133
|
+
});
|
|
1134
|
+
export const PutNodeDiskWipediskRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1135
|
+
node: S.String.pipe(T.Label()),
|
|
1136
|
+
disk: S.String,
|
|
1137
|
+
}).pipe(T.Http({
|
|
1138
|
+
method: "PUT",
|
|
1139
|
+
uri: "/nodes/{node}/disks/wipedisk",
|
|
1140
|
+
code: 200,
|
|
1141
|
+
contentType: "form-urlencoded",
|
|
1142
|
+
}))).annotate({
|
|
1143
|
+
identifier: "PutNodeDiskWipediskRequest",
|
|
1144
|
+
});
|
|
1145
|
+
export const PutNodeDiskWipediskResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
1146
|
+
identifier: "PutNodeDiskWipediskResponse",
|
|
1147
|
+
});
|
|
1148
|
+
export const PutNodeDnsRequestDeleteItem = S.String;
|
|
1149
|
+
export const PutNodeDnsRequestDeleteList = /*@__PURE__*/ S.Array(PutNodeDnsRequestDeleteItem);
|
|
1150
|
+
export const PutNodeDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1151
|
+
node: S.String.pipe(T.Label()),
|
|
1152
|
+
delete: S.optional(PutNodeDnsRequestDeleteList),
|
|
1153
|
+
digest: S.optional(S.String),
|
|
1154
|
+
dns1: S.optional(S.String),
|
|
1155
|
+
dns2: S.optional(S.String),
|
|
1156
|
+
dns3: S.optional(S.String),
|
|
1157
|
+
search: S.optional(S.String),
|
|
1158
|
+
}).pipe(T.Http({
|
|
1159
|
+
method: "PUT",
|
|
1160
|
+
uri: "/nodes/{node}/dns",
|
|
1161
|
+
code: 200,
|
|
1162
|
+
contentType: "form-urlencoded",
|
|
1163
|
+
}))).annotate({
|
|
1164
|
+
identifier: "PutNodeDnsRequest",
|
|
1165
|
+
});
|
|
1166
|
+
export const PutNodeDnsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1167
|
+
identifier: "PutNodeDnsResponse",
|
|
1168
|
+
});
|
|
1169
|
+
export const PutNodeNetworkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1170
|
+
node: S.String.pipe(T.Label()),
|
|
1171
|
+
}).pipe(T.Http({ method: "PUT", uri: "/nodes/{node}/network", code: 200 }))).annotate({
|
|
1172
|
+
identifier: "PutNodeNetworkRequest",
|
|
1173
|
+
});
|
|
1174
|
+
export const PutNodeNetworkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1175
|
+
identifier: "PutNodeNetworkResponse",
|
|
1176
|
+
});
|
|
1177
|
+
export const PutNodeNetwork2RequestBondMode = S.String;
|
|
1178
|
+
export const PutNodeNetwork2RequestBondXmitHashPolicy = S.String;
|
|
1179
|
+
export const PutNodeNetwork2RequestDeleteItem = S.String;
|
|
1180
|
+
export const PutNodeNetwork2RequestDeleteList = /*@__PURE__*/ S.Array(PutNodeNetwork2RequestDeleteItem);
|
|
1181
|
+
export const PutNodeNetwork2RequestMethod = S.String;
|
|
1182
|
+
export const PutNodeNetwork2RequestMethod6 = S.String;
|
|
1183
|
+
export const PutNodeNetwork2RequestType = S.String;
|
|
1184
|
+
export const PutNodeNetwork2Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1185
|
+
node: S.String.pipe(T.Label()),
|
|
1186
|
+
iface: S.String.pipe(T.Label()),
|
|
1187
|
+
autostart: S.optional(S.String),
|
|
1188
|
+
bond_primary: S.optional(S.String.pipe(T.Body("bond-primary"))),
|
|
1189
|
+
bond_mode: S.optional(PutNodeNetwork2RequestBondMode),
|
|
1190
|
+
bond_xmit_hash_policy: S.optional(PutNodeNetwork2RequestBondXmitHashPolicy),
|
|
1191
|
+
bridge_ports: S.optional(S.String),
|
|
1192
|
+
bridge_vlan_aware: S.optional(S.String),
|
|
1193
|
+
cidr: S.optional(S.String),
|
|
1194
|
+
cidr6: S.optional(S.String),
|
|
1195
|
+
comments: S.optional(S.String),
|
|
1196
|
+
comments6: S.optional(S.String),
|
|
1197
|
+
delete: S.optional(PutNodeNetwork2RequestDeleteList),
|
|
1198
|
+
digest: S.optional(S.String),
|
|
1199
|
+
gateway: S.optional(S.String),
|
|
1200
|
+
gateway6: S.optional(S.String),
|
|
1201
|
+
method: S.optional(PutNodeNetwork2RequestMethod),
|
|
1202
|
+
method6: S.optional(PutNodeNetwork2RequestMethod6),
|
|
1203
|
+
mtu: S.optional(S.String),
|
|
1204
|
+
slaves: S.optional(S.String),
|
|
1205
|
+
type: S.optional(PutNodeNetwork2RequestType),
|
|
1206
|
+
vlan_id: S.optional(S.String.pipe(T.Body("vlan-id"))),
|
|
1207
|
+
vlan_raw_device: S.optional(S.String.pipe(T.Body("vlan-raw-device"))),
|
|
1208
|
+
}).pipe(T.Http({
|
|
1209
|
+
method: "PUT",
|
|
1210
|
+
uri: "/nodes/{node}/network/{iface}",
|
|
1211
|
+
code: 200,
|
|
1212
|
+
contentType: "form-urlencoded",
|
|
1213
|
+
}))).annotate({
|
|
1214
|
+
identifier: "PutNodeNetwork2Request",
|
|
1215
|
+
});
|
|
1216
|
+
export const PutNodeNetwork2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1217
|
+
identifier: "PutNodeNetwork2Response",
|
|
1218
|
+
});
|
|
1219
|
+
export const PutNodeSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1220
|
+
node: S.String.pipe(T.Label()),
|
|
1221
|
+
key: S.String,
|
|
1222
|
+
}).pipe(T.Http({
|
|
1223
|
+
method: "PUT",
|
|
1224
|
+
uri: "/nodes/{node}/subscription",
|
|
1225
|
+
code: 200,
|
|
1226
|
+
contentType: "form-urlencoded",
|
|
1227
|
+
}))).annotate({
|
|
1228
|
+
identifier: "PutNodeSubscriptionRequest",
|
|
1229
|
+
});
|
|
1230
|
+
export const PutNodeSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1231
|
+
identifier: "PutNodeSubscriptionResponse",
|
|
1232
|
+
});
|
|
1233
|
+
export const PutNodeTimeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1234
|
+
node: S.String.pipe(T.Label()),
|
|
1235
|
+
timezone: S.String,
|
|
1236
|
+
}).pipe(T.Http({
|
|
1237
|
+
method: "PUT",
|
|
1238
|
+
uri: "/nodes/{node}/time",
|
|
1239
|
+
code: 200,
|
|
1240
|
+
contentType: "form-urlencoded",
|
|
1241
|
+
}))).annotate({
|
|
1242
|
+
identifier: "PutNodeTimeRequest",
|
|
1243
|
+
});
|
|
1244
|
+
export const PutNodeTimeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1245
|
+
identifier: "PutNodeTimeResponse",
|
|
1246
|
+
});
|
|
1247
|
+
export const RestartNodesServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1248
|
+
node: S.String.pipe(T.Label()),
|
|
1249
|
+
service: S.String.pipe(T.Label()),
|
|
1250
|
+
}).pipe(T.Http({
|
|
1251
|
+
method: "POST",
|
|
1252
|
+
uri: "/nodes/{node}/services/{service}/restart",
|
|
1253
|
+
code: 200,
|
|
1254
|
+
}))).annotate({
|
|
1255
|
+
identifier: "RestartNodesServiceRequest",
|
|
1256
|
+
});
|
|
1257
|
+
export const RestartNodesServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1258
|
+
identifier: "RestartNodesServiceResponse",
|
|
1259
|
+
});
|
|
1260
|
+
export const StartNodesServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1261
|
+
node: S.String.pipe(T.Label()),
|
|
1262
|
+
service: S.String.pipe(T.Label()),
|
|
1263
|
+
}).pipe(T.Http({
|
|
1264
|
+
method: "POST",
|
|
1265
|
+
uri: "/nodes/{node}/services/{service}/start",
|
|
1266
|
+
code: 200,
|
|
1267
|
+
}))).annotate({
|
|
1268
|
+
identifier: "StartNodesServiceRequest",
|
|
1269
|
+
});
|
|
1270
|
+
export const StartNodesServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1271
|
+
identifier: "StartNodesServiceResponse",
|
|
1272
|
+
});
|
|
1273
|
+
export const StopNodesServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1274
|
+
node: S.String.pipe(T.Label()),
|
|
1275
|
+
service: S.String.pipe(T.Label()),
|
|
1276
|
+
}).pipe(T.Http({
|
|
1277
|
+
method: "POST",
|
|
1278
|
+
uri: "/nodes/{node}/services/{service}/stop",
|
|
1279
|
+
code: 200,
|
|
1280
|
+
}))).annotate({
|
|
1281
|
+
identifier: "StopNodesServiceRequest",
|
|
1282
|
+
});
|
|
1283
|
+
export const StopNodesServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1284
|
+
identifier: "StopNodesServiceResponse",
|
|
1285
|
+
});
|
|
1286
|
+
export const UpdateNodesAptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1287
|
+
node: S.String.pipe(T.Label()),
|
|
1288
|
+
notify: S.optional(S.String),
|
|
1289
|
+
quiet: S.optional(S.String),
|
|
1290
|
+
}).pipe(T.Http({
|
|
1291
|
+
method: "POST",
|
|
1292
|
+
uri: "/nodes/{node}/apt/update",
|
|
1293
|
+
code: 200,
|
|
1294
|
+
contentType: "form-urlencoded",
|
|
1295
|
+
}))).annotate({
|
|
1296
|
+
identifier: "UpdateNodesAptRequest",
|
|
1297
|
+
});
|
|
1298
|
+
export const UpdateNodesAptResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
1299
|
+
identifier: "UpdateNodesAptResponse",
|
|
1300
|
+
});
|
|
1301
|
+
/** Change the properties of the specified repository. The `digest` parameter asserts that the configuration has not been modified. */
|
|
1302
|
+
export const createNodeAptRepository = /*@__PURE__*/ API.make(() => ({
|
|
1303
|
+
input: CreateNodeAptRepositoryRequest,
|
|
1304
|
+
output: CreateNodeAptRepositoryResponse,
|
|
1305
|
+
errors: [],
|
|
1306
|
+
protocol: ProxmoxBackupProtocol,
|
|
1307
|
+
retry: Retry.Retry,
|
|
1308
|
+
}));
|
|
1309
|
+
/** Order a new ACME certificate. */
|
|
1310
|
+
export const createNodeCertificateAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1311
|
+
input: CreateNodeCertificateAcmeCertificateRequest,
|
|
1312
|
+
output: CreateNodeCertificateAcmeCertificateResponse,
|
|
1313
|
+
errors: [],
|
|
1314
|
+
protocol: ProxmoxBackupProtocol,
|
|
1315
|
+
retry: Retry.Retry,
|
|
1316
|
+
}));
|
|
1317
|
+
/** Upload a custom certificate. */
|
|
1318
|
+
export const createNodeCertificateCustom = /*@__PURE__*/ API.make(() => ({
|
|
1319
|
+
input: CreateNodeCertificateCustomRequest,
|
|
1320
|
+
output: CreateNodeCertificateCustomResponse,
|
|
1321
|
+
errors: [],
|
|
1322
|
+
protocol: ProxmoxBackupProtocol,
|
|
1323
|
+
retry: Retry.Retry,
|
|
1324
|
+
}));
|
|
1325
|
+
/** Create a Filesystem on an unused disk. Will be mounted under `/mnt/datastore/<name>`. */
|
|
1326
|
+
export const createNodeDiskDirectory = /*@__PURE__*/ API.make(() => ({
|
|
1327
|
+
input: CreateNodeDiskDirectoryRequest,
|
|
1328
|
+
output: CreateNodeDiskDirectoryResponse,
|
|
1329
|
+
errors: [],
|
|
1330
|
+
protocol: ProxmoxBackupProtocol,
|
|
1331
|
+
retry: Retry.Retry,
|
|
1332
|
+
}));
|
|
1333
|
+
/** Initialize empty Disk with GPT */
|
|
1334
|
+
export const createNodeDiskInitgpt = /*@__PURE__*/ API.make(() => ({
|
|
1335
|
+
input: CreateNodeDiskInitgptRequest,
|
|
1336
|
+
output: CreateNodeDiskInitgptResponse,
|
|
1337
|
+
errors: [],
|
|
1338
|
+
protocol: ProxmoxBackupProtocol,
|
|
1339
|
+
retry: Retry.Retry,
|
|
1340
|
+
}));
|
|
1341
|
+
/** Create a new ZFS pool. Will be mounted under `/mnt/datastore/<name>`. */
|
|
1342
|
+
export const createNodeDiskZfs = /*@__PURE__*/ API.make(() => ({
|
|
1343
|
+
input: CreateNodeDiskZfsRequest,
|
|
1344
|
+
output: CreateNodeDiskZfsResponse,
|
|
1345
|
+
errors: [],
|
|
1346
|
+
protocol: ProxmoxBackupProtocol,
|
|
1347
|
+
retry: Retry.Retry,
|
|
1348
|
+
}));
|
|
1349
|
+
/** Create network interface configuration. */
|
|
1350
|
+
export const createNodeNetwork = /*@__PURE__*/ API.make(() => ({
|
|
1351
|
+
input: CreateNodeNetworkRequest,
|
|
1352
|
+
output: CreateNodeNetworkResponse,
|
|
1353
|
+
errors: [],
|
|
1354
|
+
protocol: ProxmoxBackupProtocol,
|
|
1355
|
+
retry: Retry.Retry,
|
|
1356
|
+
}));
|
|
1357
|
+
/** Reload service. */
|
|
1358
|
+
export const createNodeServiceReload = /*@__PURE__*/ API.make(() => ({
|
|
1359
|
+
input: CreateNodeServiceReloadRequest,
|
|
1360
|
+
output: CreateNodeServiceReloadResponse,
|
|
1361
|
+
errors: [],
|
|
1362
|
+
protocol: ProxmoxBackupProtocol,
|
|
1363
|
+
retry: Retry.Retry,
|
|
1364
|
+
}));
|
|
1365
|
+
/** Reboot or shutdown the node. */
|
|
1366
|
+
export const createNodeStatus = /*@__PURE__*/ API.make(() => ({
|
|
1367
|
+
input: CreateNodeStatusRequest,
|
|
1368
|
+
output: CreateNodeStatusResponse,
|
|
1369
|
+
errors: [],
|
|
1370
|
+
protocol: ProxmoxBackupProtocol,
|
|
1371
|
+
retry: Retry.Retry,
|
|
1372
|
+
}));
|
|
1373
|
+
/** Check and update subscription status. */
|
|
1374
|
+
export const createNodeSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1375
|
+
input: CreateNodeSubscriptionRequest,
|
|
1376
|
+
output: CreateNodeSubscriptionResponse,
|
|
1377
|
+
errors: [],
|
|
1378
|
+
protocol: ProxmoxBackupProtocol,
|
|
1379
|
+
retry: Retry.Retry,
|
|
1380
|
+
}));
|
|
1381
|
+
/** Call termproxy and return shell ticket */
|
|
1382
|
+
export const createNodeTermproxy = /*@__PURE__*/ API.make(() => ({
|
|
1383
|
+
input: CreateNodeTermproxyRequest,
|
|
1384
|
+
output: CreateNodeTermproxyResponse,
|
|
1385
|
+
errors: [],
|
|
1386
|
+
protocol: ProxmoxBackupProtocol,
|
|
1387
|
+
retry: Retry.Retry,
|
|
1388
|
+
}));
|
|
1389
|
+
/** Delete the current certificate and regenerate a self signed one. */
|
|
1390
|
+
export const deleteNodeCertificateCustom = /*@__PURE__*/ API.make(() => ({
|
|
1391
|
+
input: DeleteNodeCertificateCustomRequest,
|
|
1392
|
+
output: DeleteNodeCertificateCustomResponse,
|
|
1393
|
+
errors: [],
|
|
1394
|
+
protocol: ProxmoxBackupProtocol,
|
|
1395
|
+
retry: Retry.Retry,
|
|
1396
|
+
}));
|
|
1397
|
+
/** Remove a Filesystem mounted under `/mnt/datastore/<name>`. */
|
|
1398
|
+
export const deleteNodeDiskDirectory = /*@__PURE__*/ API.make(() => ({
|
|
1399
|
+
input: DeleteNodeDiskDirectoryRequest,
|
|
1400
|
+
output: DeleteNodeDiskDirectoryResponse,
|
|
1401
|
+
errors: [],
|
|
1402
|
+
protocol: ProxmoxBackupProtocol,
|
|
1403
|
+
retry: Retry.Retry,
|
|
1404
|
+
}));
|
|
1405
|
+
/** Revert network configuration (rm /etc/network/interfaces.new). */
|
|
1406
|
+
export const deleteNodeNetwork = /*@__PURE__*/ API.make(() => ({
|
|
1407
|
+
input: DeleteNodeNetworkRequest,
|
|
1408
|
+
output: DeleteNodeNetworkResponse,
|
|
1409
|
+
errors: [],
|
|
1410
|
+
protocol: ProxmoxBackupProtocol,
|
|
1411
|
+
retry: Retry.Retry,
|
|
1412
|
+
}));
|
|
1413
|
+
/** Remove network interface configuration. */
|
|
1414
|
+
export const deleteNodeNetwork2 = /*@__PURE__*/ API.make(() => ({
|
|
1415
|
+
input: DeleteNodeNetwork2Request,
|
|
1416
|
+
output: DeleteNodeNetwork2Response,
|
|
1417
|
+
errors: [],
|
|
1418
|
+
protocol: ProxmoxBackupProtocol,
|
|
1419
|
+
retry: Retry.Retry,
|
|
1420
|
+
}));
|
|
1421
|
+
/** Delete subscription info. */
|
|
1422
|
+
export const deleteNodeSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1423
|
+
input: DeleteNodeSubscriptionRequest,
|
|
1424
|
+
output: DeleteNodeSubscriptionResponse,
|
|
1425
|
+
errors: [],
|
|
1426
|
+
protocol: ProxmoxBackupProtocol,
|
|
1427
|
+
retry: Retry.Retry,
|
|
1428
|
+
}));
|
|
1429
|
+
/** Try to stop a task. */
|
|
1430
|
+
export const deleteNodeTask = /*@__PURE__*/ API.make(() => ({
|
|
1431
|
+
input: DeleteNodeTaskRequest,
|
|
1432
|
+
output: DeleteNodeTaskResponse,
|
|
1433
|
+
errors: [],
|
|
1434
|
+
protocol: ProxmoxBackupProtocol,
|
|
1435
|
+
retry: Retry.Retry,
|
|
1436
|
+
}));
|
|
1437
|
+
/** Directory index. */
|
|
1438
|
+
export const getNode = /*@__PURE__*/ API.make(() => ({
|
|
1439
|
+
input: GetNodeRequest,
|
|
1440
|
+
output: GetNodeResponse,
|
|
1441
|
+
errors: [],
|
|
1442
|
+
protocol: ProxmoxBackupProtocol,
|
|
1443
|
+
retry: Retry.Retry,
|
|
1444
|
+
}));
|
|
1445
|
+
/** Directory index. */
|
|
1446
|
+
export const getNodeApt = /*@__PURE__*/ API.make(() => ({
|
|
1447
|
+
input: GetNodeAptRequest,
|
|
1448
|
+
output: GetNodeAptResponse,
|
|
1449
|
+
errors: [],
|
|
1450
|
+
protocol: ProxmoxBackupProtocol,
|
|
1451
|
+
retry: Retry.Retry,
|
|
1452
|
+
}));
|
|
1453
|
+
/** Retrieve the changelog of the specified package. */
|
|
1454
|
+
export const getNodeAptChangelog = /*@__PURE__*/ API.make(() => ({
|
|
1455
|
+
input: GetNodeAptChangelogRequest,
|
|
1456
|
+
output: GetNodeAptChangelogResponse,
|
|
1457
|
+
errors: [],
|
|
1458
|
+
protocol: ProxmoxBackupProtocol,
|
|
1459
|
+
retry: Retry.Retry,
|
|
1460
|
+
}));
|
|
1461
|
+
/** Get APT repository information. */
|
|
1462
|
+
export const getNodeAptRepositories = /*@__PURE__*/ API.make(() => ({
|
|
1463
|
+
input: GetNodeAptRepositoriesRequest,
|
|
1464
|
+
output: GetNodeAptRepositoriesResponse,
|
|
1465
|
+
errors: [],
|
|
1466
|
+
protocol: ProxmoxBackupProtocol,
|
|
1467
|
+
retry: Retry.Retry,
|
|
1468
|
+
}));
|
|
1469
|
+
/** Directory index. */
|
|
1470
|
+
export const getNodeCertificateAcme = /*@__PURE__*/ API.make(() => ({
|
|
1471
|
+
input: GetNodeCertificateAcmeRequest,
|
|
1472
|
+
output: GetNodeCertificateAcmeResponse,
|
|
1473
|
+
errors: [],
|
|
1474
|
+
protocol: ProxmoxBackupProtocol,
|
|
1475
|
+
retry: Retry.Retry,
|
|
1476
|
+
}));
|
|
1477
|
+
/** Directory index. */
|
|
1478
|
+
export const getNodeCertificates = /*@__PURE__*/ API.make(() => ({
|
|
1479
|
+
input: GetNodeCertificatesRequest,
|
|
1480
|
+
output: GetNodeCertificatesResponse,
|
|
1481
|
+
errors: [],
|
|
1482
|
+
protocol: ProxmoxBackupProtocol,
|
|
1483
|
+
retry: Retry.Retry,
|
|
1484
|
+
}));
|
|
1485
|
+
/** Get the node configuration */
|
|
1486
|
+
export const getNodeConfig = /*@__PURE__*/ API.make(() => ({
|
|
1487
|
+
input: GetNodeConfigRequest,
|
|
1488
|
+
output: GetNodeConfigResponse,
|
|
1489
|
+
errors: [],
|
|
1490
|
+
protocol: ProxmoxBackupProtocol,
|
|
1491
|
+
retry: Retry.Retry,
|
|
1492
|
+
}));
|
|
1493
|
+
/** Directory index. */
|
|
1494
|
+
export const getNodeDisks = /*@__PURE__*/ API.make(() => ({
|
|
1495
|
+
input: GetNodeDisksRequest,
|
|
1496
|
+
output: GetNodeDisksResponse,
|
|
1497
|
+
errors: [],
|
|
1498
|
+
protocol: ProxmoxBackupProtocol,
|
|
1499
|
+
retry: Retry.Retry,
|
|
1500
|
+
}));
|
|
1501
|
+
/** Get SMART attributes and health of a disk. */
|
|
1502
|
+
export const getNodeDiskSmart = /*@__PURE__*/ API.make(() => ({
|
|
1503
|
+
input: GetNodeDiskSmartRequest,
|
|
1504
|
+
output: GetNodeDiskSmartResponse,
|
|
1505
|
+
errors: [],
|
|
1506
|
+
protocol: ProxmoxBackupProtocol,
|
|
1507
|
+
retry: Retry.Retry,
|
|
1508
|
+
}));
|
|
1509
|
+
/** Get zpool status details. */
|
|
1510
|
+
export const getNodeDiskZfs = /*@__PURE__*/ API.make(() => ({
|
|
1511
|
+
input: GetNodeDiskZfsRequest,
|
|
1512
|
+
output: GetNodeDiskZfsResponse,
|
|
1513
|
+
errors: [],
|
|
1514
|
+
protocol: ProxmoxBackupProtocol,
|
|
1515
|
+
retry: Retry.Retry,
|
|
1516
|
+
}));
|
|
1517
|
+
/** Read DNS settings. */
|
|
1518
|
+
export const getNodeDns = /*@__PURE__*/ API.make(() => ({
|
|
1519
|
+
input: GetNodeDnsRequest,
|
|
1520
|
+
output: GetNodeDnsResponse,
|
|
1521
|
+
errors: [],
|
|
1522
|
+
protocol: ProxmoxBackupProtocol,
|
|
1523
|
+
retry: Retry.Retry,
|
|
1524
|
+
}));
|
|
1525
|
+
/** Returns a unique server identity. The ID is derived from `/etc/machine-id`. */
|
|
1526
|
+
export const getNodeIdentity = /*@__PURE__*/ API.make(() => ({
|
|
1527
|
+
input: GetNodeIdentityRequest,
|
|
1528
|
+
output: GetNodeIdentityResponse,
|
|
1529
|
+
errors: [],
|
|
1530
|
+
protocol: ProxmoxBackupProtocol,
|
|
1531
|
+
retry: Retry.Retry,
|
|
1532
|
+
}));
|
|
1533
|
+
/** Read syslog entries. */
|
|
1534
|
+
export const getNodeJournal = /*@__PURE__*/ API.make(() => ({
|
|
1535
|
+
input: GetNodeJournalRequest,
|
|
1536
|
+
output: GetNodeJournalResponse,
|
|
1537
|
+
errors: [],
|
|
1538
|
+
protocol: ProxmoxBackupProtocol,
|
|
1539
|
+
retry: Retry.Retry,
|
|
1540
|
+
}));
|
|
1541
|
+
/** Read a network interface configuration. */
|
|
1542
|
+
export const getNodeNetwork = /*@__PURE__*/ API.make(() => ({
|
|
1543
|
+
input: GetNodeNetworkRequest,
|
|
1544
|
+
output: GetNodeNetworkResponse,
|
|
1545
|
+
errors: [],
|
|
1546
|
+
protocol: ProxmoxBackupProtocol,
|
|
1547
|
+
retry: Retry.Retry,
|
|
1548
|
+
}));
|
|
1549
|
+
/** Generate a report */
|
|
1550
|
+
export const getNodeReport = /*@__PURE__*/ API.make(() => ({
|
|
1551
|
+
input: GetNodeReportRequest,
|
|
1552
|
+
output: GetNodeReportResponse,
|
|
1553
|
+
errors: [],
|
|
1554
|
+
protocol: ProxmoxBackupProtocol,
|
|
1555
|
+
retry: Retry.Retry,
|
|
1556
|
+
}));
|
|
1557
|
+
/** Read node stats */
|
|
1558
|
+
export const getNodeRrd = /*@__PURE__*/ API.make(() => ({
|
|
1559
|
+
input: GetNodeRrdRequest,
|
|
1560
|
+
output: GetNodeRrdResponse,
|
|
1561
|
+
errors: [],
|
|
1562
|
+
protocol: ProxmoxBackupProtocol,
|
|
1563
|
+
retry: Retry.Retry,
|
|
1564
|
+
}));
|
|
1565
|
+
/** List Nodes (only for compatibility) */
|
|
1566
|
+
export const getNodes = /*@__PURE__*/ API.make(() => ({
|
|
1567
|
+
input: GetNodesRequest,
|
|
1568
|
+
output: GetNodesResponse,
|
|
1569
|
+
errors: [],
|
|
1570
|
+
protocol: ProxmoxBackupProtocol,
|
|
1571
|
+
retry: Retry.Retry,
|
|
1572
|
+
}));
|
|
1573
|
+
/** Directory index. */
|
|
1574
|
+
export const getNodeService = /*@__PURE__*/ API.make(() => ({
|
|
1575
|
+
input: GetNodeServiceRequest,
|
|
1576
|
+
output: GetNodeServiceResponse,
|
|
1577
|
+
errors: [],
|
|
1578
|
+
protocol: ProxmoxBackupProtocol,
|
|
1579
|
+
retry: Retry.Retry,
|
|
1580
|
+
}));
|
|
1581
|
+
/** Read service properties. */
|
|
1582
|
+
export const getNodeServiceState = /*@__PURE__*/ API.make(() => ({
|
|
1583
|
+
input: GetNodeServiceStateRequest,
|
|
1584
|
+
output: GetNodeServiceStateResponse,
|
|
1585
|
+
errors: [],
|
|
1586
|
+
protocol: ProxmoxBackupProtocol,
|
|
1587
|
+
retry: Retry.Retry,
|
|
1588
|
+
}));
|
|
1589
|
+
/** Read node memory, CPU and (root) disk usage */
|
|
1590
|
+
export const getNodeStatus = /*@__PURE__*/ API.make(() => ({
|
|
1591
|
+
input: GetNodeStatusRequest,
|
|
1592
|
+
output: GetNodeStatusResponse,
|
|
1593
|
+
errors: [],
|
|
1594
|
+
protocol: ProxmoxBackupProtocol,
|
|
1595
|
+
retry: Retry.Retry,
|
|
1596
|
+
}));
|
|
1597
|
+
/** Read subscription info. */
|
|
1598
|
+
export const getNodeSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1599
|
+
input: GetNodeSubscriptionRequest,
|
|
1600
|
+
output: GetNodeSubscriptionResponse,
|
|
1601
|
+
errors: [],
|
|
1602
|
+
protocol: ProxmoxBackupProtocol,
|
|
1603
|
+
retry: Retry.Retry,
|
|
1604
|
+
}));
|
|
1605
|
+
/** Directory index. */
|
|
1606
|
+
export const getNodeTask = /*@__PURE__*/ API.make(() => ({
|
|
1607
|
+
input: GetNodeTaskRequest,
|
|
1608
|
+
output: GetNodeTaskResponse,
|
|
1609
|
+
errors: [],
|
|
1610
|
+
protocol: ProxmoxBackupProtocol,
|
|
1611
|
+
retry: Retry.Retry,
|
|
1612
|
+
}));
|
|
1613
|
+
/** Read the task log */
|
|
1614
|
+
export const getNodeTaskLog = /*@__PURE__*/ API.make(() => ({
|
|
1615
|
+
input: GetNodeTaskLogRequest,
|
|
1616
|
+
output: GetNodeTaskLogResponse,
|
|
1617
|
+
errors: [],
|
|
1618
|
+
protocol: ProxmoxBackupProtocol,
|
|
1619
|
+
retry: Retry.Retry,
|
|
1620
|
+
}));
|
|
1621
|
+
/** Get task status. */
|
|
1622
|
+
export const getNodeTaskStatus = /*@__PURE__*/ API.make(() => ({
|
|
1623
|
+
input: GetNodeTaskStatusRequest,
|
|
1624
|
+
output: GetNodeTaskStatusResponse,
|
|
1625
|
+
errors: [],
|
|
1626
|
+
protocol: ProxmoxBackupProtocol,
|
|
1627
|
+
retry: Retry.Retry,
|
|
1628
|
+
}));
|
|
1629
|
+
/** Read server time and time zone settings. */
|
|
1630
|
+
export const getNodeTime = /*@__PURE__*/ API.make(() => ({
|
|
1631
|
+
input: GetNodeTimeRequest,
|
|
1632
|
+
output: GetNodeTimeResponse,
|
|
1633
|
+
errors: [],
|
|
1634
|
+
protocol: ProxmoxBackupProtocol,
|
|
1635
|
+
retry: Retry.Retry,
|
|
1636
|
+
}));
|
|
1637
|
+
/** Upgraded to websocket */
|
|
1638
|
+
export const getNodeVncwebsocket = /*@__PURE__*/ API.make(() => ({
|
|
1639
|
+
input: GetNodeVncwebsocketRequest,
|
|
1640
|
+
output: GetNodeVncwebsocketResponse,
|
|
1641
|
+
errors: [],
|
|
1642
|
+
protocol: ProxmoxBackupProtocol,
|
|
1643
|
+
retry: Retry.Retry,
|
|
1644
|
+
}));
|
|
1645
|
+
/** List available APT updates */
|
|
1646
|
+
export const listNodeAptUpdate = /*@__PURE__*/ API.make(() => ({
|
|
1647
|
+
input: ListNodeAptUpdateRequest,
|
|
1648
|
+
output: ListNodeAptUpdateResponse,
|
|
1649
|
+
errors: [],
|
|
1650
|
+
protocol: ProxmoxBackupProtocol,
|
|
1651
|
+
retry: Retry.Retry,
|
|
1652
|
+
}));
|
|
1653
|
+
/** Get package information for important Proxmox Backup Server packages. */
|
|
1654
|
+
export const listNodeAptVersions = /*@__PURE__*/ API.make(() => ({
|
|
1655
|
+
input: ListNodeAptVersionsRequest,
|
|
1656
|
+
output: ListNodeAptVersionsResponse,
|
|
1657
|
+
errors: [],
|
|
1658
|
+
protocol: ProxmoxBackupProtocol,
|
|
1659
|
+
retry: Retry.Retry,
|
|
1660
|
+
}));
|
|
1661
|
+
/** Get certificate info. */
|
|
1662
|
+
export const listNodeCertificateInfo = /*@__PURE__*/ API.make(() => ({
|
|
1663
|
+
input: ListNodeCertificateInfoRequest,
|
|
1664
|
+
output: ListNodeCertificateInfoResponse,
|
|
1665
|
+
errors: [],
|
|
1666
|
+
protocol: ProxmoxBackupProtocol,
|
|
1667
|
+
retry: Retry.Retry,
|
|
1668
|
+
}));
|
|
1669
|
+
/** List systemd datastore mount units. */
|
|
1670
|
+
export const listNodeDiskDirectory = /*@__PURE__*/ API.make(() => ({
|
|
1671
|
+
input: ListNodeDiskDirectoryRequest,
|
|
1672
|
+
output: ListNodeDiskDirectoryResponse,
|
|
1673
|
+
errors: [],
|
|
1674
|
+
protocol: ProxmoxBackupProtocol,
|
|
1675
|
+
retry: Retry.Retry,
|
|
1676
|
+
}));
|
|
1677
|
+
/** List local disks */
|
|
1678
|
+
export const listNodeDiskList = /*@__PURE__*/ API.make(() => ({
|
|
1679
|
+
input: ListNodeDiskListRequest,
|
|
1680
|
+
output: ListNodeDiskListResponse,
|
|
1681
|
+
errors: [],
|
|
1682
|
+
protocol: ProxmoxBackupProtocol,
|
|
1683
|
+
retry: Retry.Retry,
|
|
1684
|
+
}));
|
|
1685
|
+
/** List zfs pools. */
|
|
1686
|
+
export const listNodeDiskZfs = /*@__PURE__*/ API.make(() => ({
|
|
1687
|
+
input: ListNodeDiskZfsRequest,
|
|
1688
|
+
output: ListNodeDiskZfsResponse,
|
|
1689
|
+
errors: [],
|
|
1690
|
+
protocol: ProxmoxBackupProtocol,
|
|
1691
|
+
retry: Retry.Retry,
|
|
1692
|
+
}));
|
|
1693
|
+
/** List all datastores */
|
|
1694
|
+
export const listNodeNetwork = /*@__PURE__*/ API.make(() => ({
|
|
1695
|
+
input: ListNodeNetworkRequest,
|
|
1696
|
+
output: ListNodeNetworkResponse,
|
|
1697
|
+
errors: [],
|
|
1698
|
+
protocol: ProxmoxBackupProtocol,
|
|
1699
|
+
retry: Retry.Retry,
|
|
1700
|
+
}));
|
|
1701
|
+
/** Service list. */
|
|
1702
|
+
export const listNodeServices = /*@__PURE__*/ API.make(() => ({
|
|
1703
|
+
input: ListNodeServicesRequest,
|
|
1704
|
+
output: ListNodeServicesResponse,
|
|
1705
|
+
errors: [],
|
|
1706
|
+
protocol: ProxmoxBackupProtocol,
|
|
1707
|
+
retry: Retry.Retry,
|
|
1708
|
+
}));
|
|
1709
|
+
/** Read syslog entries. */
|
|
1710
|
+
export const listNodeSyslog = /*@__PURE__*/ API.make(() => ({
|
|
1711
|
+
input: ListNodeSyslogRequest,
|
|
1712
|
+
output: ListNodeSyslogResponse,
|
|
1713
|
+
errors: [],
|
|
1714
|
+
protocol: ProxmoxBackupProtocol,
|
|
1715
|
+
retry: Retry.Retry,
|
|
1716
|
+
}));
|
|
1717
|
+
/** List tasks. */
|
|
1718
|
+
export const listNodeTasks = /*@__PURE__*/ API.make(() => ({
|
|
1719
|
+
input: ListNodeTasksRequest,
|
|
1720
|
+
output: ListNodeTasksResponse,
|
|
1721
|
+
errors: [],
|
|
1722
|
+
protocol: ProxmoxBackupProtocol,
|
|
1723
|
+
retry: Retry.Retry,
|
|
1724
|
+
}));
|
|
1725
|
+
/** Add the repository identified by the `handle`. If the repository is already configured, it will be set to enabled. The `digest` parameter asserts that the configuration has not been modified. */
|
|
1726
|
+
export const putNodeAptRepositories = /*@__PURE__*/ API.make(() => ({
|
|
1727
|
+
input: PutNodeAptRepositoriesRequest,
|
|
1728
|
+
output: PutNodeAptRepositoriesResponse,
|
|
1729
|
+
errors: [],
|
|
1730
|
+
protocol: ProxmoxBackupProtocol,
|
|
1731
|
+
retry: Retry.Retry,
|
|
1732
|
+
}));
|
|
1733
|
+
/** Renew the current ACME certificate if it is within its renewal lead time (or always if the `force` parameter is set). */
|
|
1734
|
+
export const putNodeCertificateAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1735
|
+
input: PutNodeCertificateAcmeCertificateRequest,
|
|
1736
|
+
output: PutNodeCertificateAcmeCertificateResponse,
|
|
1737
|
+
errors: [],
|
|
1738
|
+
protocol: ProxmoxBackupProtocol,
|
|
1739
|
+
retry: Retry.Retry,
|
|
1740
|
+
}));
|
|
1741
|
+
/** Update the node configuration */
|
|
1742
|
+
export const putNodeConfig = /*@__PURE__*/ API.make(() => ({
|
|
1743
|
+
input: PutNodeConfigRequest,
|
|
1744
|
+
output: PutNodeConfigResponse,
|
|
1745
|
+
errors: [],
|
|
1746
|
+
protocol: ProxmoxBackupProtocol,
|
|
1747
|
+
retry: Retry.Retry,
|
|
1748
|
+
}));
|
|
1749
|
+
/** wipe disk */
|
|
1750
|
+
export const putNodeDiskWipedisk = /*@__PURE__*/ API.make(() => ({
|
|
1751
|
+
input: PutNodeDiskWipediskRequest,
|
|
1752
|
+
output: PutNodeDiskWipediskResponse,
|
|
1753
|
+
errors: [],
|
|
1754
|
+
protocol: ProxmoxBackupProtocol,
|
|
1755
|
+
retry: Retry.Retry,
|
|
1756
|
+
}));
|
|
1757
|
+
/** Update DNS settings. */
|
|
1758
|
+
export const putNodeDns = /*@__PURE__*/ API.make(() => ({
|
|
1759
|
+
input: PutNodeDnsRequest,
|
|
1760
|
+
output: PutNodeDnsResponse,
|
|
1761
|
+
errors: [],
|
|
1762
|
+
protocol: ProxmoxBackupProtocol,
|
|
1763
|
+
retry: Retry.Retry,
|
|
1764
|
+
}));
|
|
1765
|
+
/** Reload network configuration (requires ifupdown2). */
|
|
1766
|
+
export const putNodeNetwork = /*@__PURE__*/ API.make(() => ({
|
|
1767
|
+
input: PutNodeNetworkRequest,
|
|
1768
|
+
output: PutNodeNetworkResponse,
|
|
1769
|
+
errors: [],
|
|
1770
|
+
protocol: ProxmoxBackupProtocol,
|
|
1771
|
+
retry: Retry.Retry,
|
|
1772
|
+
}));
|
|
1773
|
+
/** Update network interface config. */
|
|
1774
|
+
export const putNodeNetwork2 = /*@__PURE__*/ API.make(() => ({
|
|
1775
|
+
input: PutNodeNetwork2Request,
|
|
1776
|
+
output: PutNodeNetwork2Response,
|
|
1777
|
+
errors: [],
|
|
1778
|
+
protocol: ProxmoxBackupProtocol,
|
|
1779
|
+
retry: Retry.Retry,
|
|
1780
|
+
}));
|
|
1781
|
+
/** Set a subscription key and check it. */
|
|
1782
|
+
export const putNodeSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1783
|
+
input: PutNodeSubscriptionRequest,
|
|
1784
|
+
output: PutNodeSubscriptionResponse,
|
|
1785
|
+
errors: [],
|
|
1786
|
+
protocol: ProxmoxBackupProtocol,
|
|
1787
|
+
retry: Retry.Retry,
|
|
1788
|
+
}));
|
|
1789
|
+
/** Set time zone */
|
|
1790
|
+
export const putNodeTime = /*@__PURE__*/ API.make(() => ({
|
|
1791
|
+
input: PutNodeTimeRequest,
|
|
1792
|
+
output: PutNodeTimeResponse,
|
|
1793
|
+
errors: [],
|
|
1794
|
+
protocol: ProxmoxBackupProtocol,
|
|
1795
|
+
retry: Retry.Retry,
|
|
1796
|
+
}));
|
|
1797
|
+
/** Restart service. */
|
|
1798
|
+
export const restartNodesService = /*@__PURE__*/ API.make(() => ({
|
|
1799
|
+
input: RestartNodesServiceRequest,
|
|
1800
|
+
output: RestartNodesServiceResponse,
|
|
1801
|
+
errors: [],
|
|
1802
|
+
protocol: ProxmoxBackupProtocol,
|
|
1803
|
+
retry: Retry.Retry,
|
|
1804
|
+
}));
|
|
1805
|
+
/** Start service. */
|
|
1806
|
+
export const startNodesService = /*@__PURE__*/ API.make(() => ({
|
|
1807
|
+
input: StartNodesServiceRequest,
|
|
1808
|
+
output: StartNodesServiceResponse,
|
|
1809
|
+
errors: [],
|
|
1810
|
+
protocol: ProxmoxBackupProtocol,
|
|
1811
|
+
retry: Retry.Retry,
|
|
1812
|
+
}));
|
|
1813
|
+
/** Stop service. */
|
|
1814
|
+
export const stopNodesService = /*@__PURE__*/ API.make(() => ({
|
|
1815
|
+
input: StopNodesServiceRequest,
|
|
1816
|
+
output: StopNodesServiceResponse,
|
|
1817
|
+
errors: [],
|
|
1818
|
+
protocol: ProxmoxBackupProtocol,
|
|
1819
|
+
retry: Retry.Retry,
|
|
1820
|
+
}));
|
|
1821
|
+
/** Update the APT database */
|
|
1822
|
+
export const updateNodesApt = /*@__PURE__*/ API.make(() => ({
|
|
1823
|
+
input: UpdateNodesAptRequest,
|
|
1824
|
+
output: UpdateNodesAptResponse,
|
|
1825
|
+
errors: [],
|
|
1826
|
+
protocol: ProxmoxBackupProtocol,
|
|
1827
|
+
retry: Retry.Retry,
|
|
1828
|
+
}));
|
|
1829
|
+
//# sourceMappingURL=nodes.js.map
|