@homeflare/distilled-proxmox 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 +87 -0
- package/dist/credentials.d.ts +41 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +67 -0
- package/dist/credentials.js.map +1 -0
- package/dist/errors.d.ts +128 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +91 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +18 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +167 -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 +64 -0
- package/dist/protocol.test.js.map +1 -0
- package/dist/retry.d.ts +50 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +43 -0
- package/dist/retry.js.map +1 -0
- package/dist/services/access.d.ts +975 -0
- package/dist/services/access.d.ts.map +1 -0
- package/dist/services/access.js +1208 -0
- package/dist/services/access.js.map +1 -0
- package/dist/services/cluster.d.ts +5940 -0
- package/dist/services/cluster.d.ts.map +1 -0
- package/dist/services/cluster.js +7405 -0
- package/dist/services/cluster.js.map +1 -0
- package/dist/services/index.d.ts +7 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +8 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/nodes.d.ts +7887 -0
- package/dist/services/nodes.d.ts.map +1 -0
- package/dist/services/nodes.js +10253 -0
- package/dist/services/nodes.js.map +1 -0
- package/dist/services/pools.d.ts +133 -0
- package/dist/services/pools.d.ts.map +1 -0
- package/dist/services/pools.js +183 -0
- package/dist/services/pools.js.map +1 -0
- package/dist/services/storage.d.ts +317 -0
- package/dist/services/storage.d.ts.map +1 -0
- package/dist/services/storage.js +239 -0
- package/dist/services/storage.js.map +1 -0
- package/dist/services/version.d.ts +20 -0
- package/dist/services/version.d.ts.map +1 -0
- package/dist/services/version.js +27 -0
- package/dist/services/version.js.map +1 -0
- package/dist/task.d.ts +51 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +60 -0
- package/dist/task.js.map +1 -0
- package/dist/traits.d.ts +12 -0
- package/dist/traits.d.ts.map +1 -0
- package/dist/traits.js +14 -0
- package/dist/traits.js.map +1 -0
- package/package.json +81 -0
- package/src/credentials.ts +101 -0
- package/src/errors.ts +152 -0
- package/src/index.ts +33 -0
- package/src/protocol.test.ts +101 -0
- package/src/protocol.ts +204 -0
- package/src/retry.ts +74 -0
- package/src/services/access.ts +2722 -0
- package/src/services/cluster.ts +18550 -0
- package/src/services/index.ts +7 -0
- package/src/services/nodes.ts +25537 -0
- package/src/services/pools.ts +397 -0
- package/src/services/storage.ts +711 -0
- package/src/services/version.ts +54 -0
- package/src/task.ts +87 -0
- package/src/traits.ts +45 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (apidata.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.ts";
|
|
5
|
+
import {
|
|
6
|
+
ProxmoxProtocol,
|
|
7
|
+
type ProxmoxOpError,
|
|
8
|
+
type ProxmoxOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import * as Retry from "../retry.ts";
|
|
11
|
+
|
|
12
|
+
export type { ProxmoxOpError, ProxmoxOpContext };
|
|
13
|
+
|
|
14
|
+
export interface CreatePoolRequest {
|
|
15
|
+
comment?: string;
|
|
16
|
+
poolid: string;
|
|
17
|
+
}
|
|
18
|
+
export const CreatePoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
19
|
+
S.Struct({
|
|
20
|
+
comment: S.optional(S.String),
|
|
21
|
+
poolid: S.String,
|
|
22
|
+
}).pipe(
|
|
23
|
+
T.Http({
|
|
24
|
+
method: "POST",
|
|
25
|
+
uri: "/pools",
|
|
26
|
+
code: 200,
|
|
27
|
+
contentType: "form-urlencoded",
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
).annotate({
|
|
31
|
+
identifier: "CreatePoolRequest",
|
|
32
|
+
}) as any as S.Schema<CreatePoolRequest>;
|
|
33
|
+
|
|
34
|
+
export interface CreatePoolResponse {}
|
|
35
|
+
export const CreatePoolResponse = /*@__PURE__*/ S.suspend(() =>
|
|
36
|
+
S.Struct({}),
|
|
37
|
+
).annotate({
|
|
38
|
+
identifier: "CreatePoolResponse",
|
|
39
|
+
}) as any as S.Schema<CreatePoolResponse>;
|
|
40
|
+
|
|
41
|
+
export interface DeletePoolRequest {
|
|
42
|
+
poolid: string;
|
|
43
|
+
}
|
|
44
|
+
export const DeletePoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
45
|
+
S.Struct({
|
|
46
|
+
poolid: S.String.pipe(T.Label()),
|
|
47
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/pools/{poolid}", code: 200 })),
|
|
48
|
+
).annotate({
|
|
49
|
+
identifier: "DeletePoolRequest",
|
|
50
|
+
}) as any as S.Schema<DeletePoolRequest>;
|
|
51
|
+
|
|
52
|
+
export interface DeletePoolResponse {}
|
|
53
|
+
export const DeletePoolResponse = /*@__PURE__*/ S.suspend(() =>
|
|
54
|
+
S.Struct({}),
|
|
55
|
+
).annotate({
|
|
56
|
+
identifier: "DeletePoolResponse",
|
|
57
|
+
}) as any as S.Schema<DeletePoolResponse>;
|
|
58
|
+
|
|
59
|
+
export interface DeletePoolsRequest {
|
|
60
|
+
poolid: string;
|
|
61
|
+
}
|
|
62
|
+
export const DeletePoolsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
63
|
+
S.Struct({
|
|
64
|
+
poolid: S.String,
|
|
65
|
+
}).pipe(
|
|
66
|
+
T.Http({
|
|
67
|
+
method: "DELETE",
|
|
68
|
+
uri: "/pools",
|
|
69
|
+
code: 200,
|
|
70
|
+
contentType: "form-urlencoded",
|
|
71
|
+
}),
|
|
72
|
+
),
|
|
73
|
+
).annotate({
|
|
74
|
+
identifier: "DeletePoolsRequest",
|
|
75
|
+
}) as any as S.Schema<DeletePoolsRequest>;
|
|
76
|
+
|
|
77
|
+
export interface DeletePoolsResponse {}
|
|
78
|
+
export const DeletePoolsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
79
|
+
S.Struct({}),
|
|
80
|
+
).annotate({
|
|
81
|
+
identifier: "DeletePoolsResponse",
|
|
82
|
+
}) as any as S.Schema<DeletePoolsResponse>;
|
|
83
|
+
|
|
84
|
+
export type GetPoolRequestType = "qemu" | "lxc" | "storage";
|
|
85
|
+
export const GetPoolRequestType = S.String;
|
|
86
|
+
|
|
87
|
+
export interface GetPoolRequest {
|
|
88
|
+
poolid: string;
|
|
89
|
+
type?: GetPoolRequestType | (string & {});
|
|
90
|
+
}
|
|
91
|
+
export const GetPoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
92
|
+
S.Struct({
|
|
93
|
+
poolid: S.String.pipe(T.Label()),
|
|
94
|
+
type: S.optional(GetPoolRequestType.pipe(T.Query())),
|
|
95
|
+
}).pipe(T.Http({ method: "GET", uri: "/pools/{poolid}", code: 200 })),
|
|
96
|
+
).annotate({ identifier: "GetPoolRequest" }) as any as S.Schema<GetPoolRequest>;
|
|
97
|
+
|
|
98
|
+
export type GetPoolResponseMembersItemType =
|
|
99
|
+
| "qemu"
|
|
100
|
+
| "lxc"
|
|
101
|
+
| "openvz"
|
|
102
|
+
| "storage";
|
|
103
|
+
export const GetPoolResponseMembersItemType = S.String;
|
|
104
|
+
|
|
105
|
+
export interface GetPoolResponseMembersItem {
|
|
106
|
+
id: string;
|
|
107
|
+
node: string;
|
|
108
|
+
storage?: string;
|
|
109
|
+
type: GetPoolResponseMembersItemType;
|
|
110
|
+
vmid?: number;
|
|
111
|
+
}
|
|
112
|
+
export const GetPoolResponseMembersItem = /*@__PURE__*/ S.suspend(() =>
|
|
113
|
+
S.Struct({
|
|
114
|
+
id: S.String,
|
|
115
|
+
node: S.String,
|
|
116
|
+
storage: S.optional(S.String),
|
|
117
|
+
type: GetPoolResponseMembersItemType,
|
|
118
|
+
vmid: S.optional(S.Number),
|
|
119
|
+
}),
|
|
120
|
+
).annotate({
|
|
121
|
+
identifier: "GetPoolResponseMembersItem",
|
|
122
|
+
}) as any as S.Schema<GetPoolResponseMembersItem>;
|
|
123
|
+
|
|
124
|
+
export type GetPoolResponseMembersList = Array<GetPoolResponseMembersItem>;
|
|
125
|
+
export const GetPoolResponseMembersList = /*@__PURE__*/ S.Array(
|
|
126
|
+
GetPoolResponseMembersItem,
|
|
127
|
+
) as any as S.Schema<GetPoolResponseMembersList>;
|
|
128
|
+
|
|
129
|
+
export interface GetPoolResponse {
|
|
130
|
+
comment?: string;
|
|
131
|
+
members: GetPoolResponseMembersList;
|
|
132
|
+
}
|
|
133
|
+
export const GetPoolResponse = /*@__PURE__*/ S.suspend(() =>
|
|
134
|
+
S.Struct({
|
|
135
|
+
comment: S.optional(S.String),
|
|
136
|
+
members: GetPoolResponseMembersList,
|
|
137
|
+
}),
|
|
138
|
+
).annotate({
|
|
139
|
+
identifier: "GetPoolResponse",
|
|
140
|
+
}) as any as S.Schema<GetPoolResponse>;
|
|
141
|
+
|
|
142
|
+
export type ListPoolsRequestType = "qemu" | "lxc" | "storage";
|
|
143
|
+
export const ListPoolsRequestType = S.String;
|
|
144
|
+
|
|
145
|
+
export interface ListPoolsRequest {
|
|
146
|
+
poolid?: string;
|
|
147
|
+
type?: ListPoolsRequestType | (string & {});
|
|
148
|
+
}
|
|
149
|
+
export const ListPoolsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
150
|
+
S.Struct({
|
|
151
|
+
poolid: S.optional(S.String.pipe(T.Query())),
|
|
152
|
+
type: S.optional(ListPoolsRequestType.pipe(T.Query())),
|
|
153
|
+
}).pipe(T.Http({ method: "GET", uri: "/pools", code: 200 })),
|
|
154
|
+
).annotate({
|
|
155
|
+
identifier: "ListPoolsRequest",
|
|
156
|
+
}) as any as S.Schema<ListPoolsRequest>;
|
|
157
|
+
|
|
158
|
+
export type ListPoolsResponseBodyItemMembersItemType =
|
|
159
|
+
| "qemu"
|
|
160
|
+
| "lxc"
|
|
161
|
+
| "openvz"
|
|
162
|
+
| "storage";
|
|
163
|
+
export const ListPoolsResponseBodyItemMembersItemType = S.String;
|
|
164
|
+
|
|
165
|
+
export interface ListPoolsResponseBodyItemMembersItem {
|
|
166
|
+
id: string;
|
|
167
|
+
node: string;
|
|
168
|
+
storage?: string;
|
|
169
|
+
type: ListPoolsResponseBodyItemMembersItemType;
|
|
170
|
+
vmid?: number;
|
|
171
|
+
}
|
|
172
|
+
export const ListPoolsResponseBodyItemMembersItem = /*@__PURE__*/ S.suspend(
|
|
173
|
+
() =>
|
|
174
|
+
S.Struct({
|
|
175
|
+
id: S.String,
|
|
176
|
+
node: S.String,
|
|
177
|
+
storage: S.optional(S.String),
|
|
178
|
+
type: ListPoolsResponseBodyItemMembersItemType,
|
|
179
|
+
vmid: S.optional(S.Number),
|
|
180
|
+
}),
|
|
181
|
+
).annotate({
|
|
182
|
+
identifier: "ListPoolsResponseBodyItemMembersItem",
|
|
183
|
+
}) as any as S.Schema<ListPoolsResponseBodyItemMembersItem>;
|
|
184
|
+
|
|
185
|
+
export type ListPoolsResponseBodyItemMembersList =
|
|
186
|
+
Array<ListPoolsResponseBodyItemMembersItem>;
|
|
187
|
+
export const ListPoolsResponseBodyItemMembersList = /*@__PURE__*/ S.Array(
|
|
188
|
+
ListPoolsResponseBodyItemMembersItem,
|
|
189
|
+
) as any as S.Schema<ListPoolsResponseBodyItemMembersList>;
|
|
190
|
+
|
|
191
|
+
export interface ListPoolsResponseBodyItem {
|
|
192
|
+
comment?: string;
|
|
193
|
+
members?: ListPoolsResponseBodyItemMembersList;
|
|
194
|
+
poolid: string;
|
|
195
|
+
}
|
|
196
|
+
export const ListPoolsResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
197
|
+
S.Struct({
|
|
198
|
+
comment: S.optional(S.String),
|
|
199
|
+
members: S.optional(ListPoolsResponseBodyItemMembersList),
|
|
200
|
+
poolid: S.String,
|
|
201
|
+
}),
|
|
202
|
+
).annotate({
|
|
203
|
+
identifier: "ListPoolsResponseBodyItem",
|
|
204
|
+
}) as any as S.Schema<ListPoolsResponseBodyItem>;
|
|
205
|
+
|
|
206
|
+
export type ListPoolsResponseBodyList = Array<ListPoolsResponseBodyItem>;
|
|
207
|
+
export const ListPoolsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
208
|
+
ListPoolsResponseBodyItem,
|
|
209
|
+
) as any as S.Schema<ListPoolsResponseBodyList>;
|
|
210
|
+
|
|
211
|
+
export type ListPoolsResponse = ListPoolsResponseBodyList;
|
|
212
|
+
export const ListPoolsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
213
|
+
ListPoolsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
214
|
+
).annotate({
|
|
215
|
+
identifier: "ListPoolsResponse",
|
|
216
|
+
}) as any as S.Schema<ListPoolsResponse>;
|
|
217
|
+
|
|
218
|
+
export interface PutPoolRequest {
|
|
219
|
+
poolid: string;
|
|
220
|
+
/** Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one. */
|
|
221
|
+
allow_move?: string;
|
|
222
|
+
comment?: string;
|
|
223
|
+
/** Remove the passed VMIDs and/or storage IDs instead of adding them. */
|
|
224
|
+
delete?: string;
|
|
225
|
+
/** List of storage IDs to add or remove from this pool. */
|
|
226
|
+
storage?: string;
|
|
227
|
+
/** List of guest VMIDs to add or remove from this pool. */
|
|
228
|
+
vms?: string;
|
|
229
|
+
}
|
|
230
|
+
export const PutPoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
231
|
+
S.Struct({
|
|
232
|
+
poolid: S.String.pipe(T.Label()),
|
|
233
|
+
allow_move: S.optional(S.String.pipe(T.Body("allow-move"))),
|
|
234
|
+
comment: S.optional(S.String),
|
|
235
|
+
delete: S.optional(S.String),
|
|
236
|
+
storage: S.optional(S.String),
|
|
237
|
+
vms: S.optional(S.String),
|
|
238
|
+
}).pipe(
|
|
239
|
+
T.Http({
|
|
240
|
+
method: "PUT",
|
|
241
|
+
uri: "/pools/{poolid}",
|
|
242
|
+
code: 200,
|
|
243
|
+
contentType: "form-urlencoded",
|
|
244
|
+
}),
|
|
245
|
+
),
|
|
246
|
+
).annotate({ identifier: "PutPoolRequest" }) as any as S.Schema<PutPoolRequest>;
|
|
247
|
+
|
|
248
|
+
export interface PutPoolResponse {}
|
|
249
|
+
export const PutPoolResponse = /*@__PURE__*/ S.suspend(() =>
|
|
250
|
+
S.Struct({}),
|
|
251
|
+
).annotate({
|
|
252
|
+
identifier: "PutPoolResponse",
|
|
253
|
+
}) as any as S.Schema<PutPoolResponse>;
|
|
254
|
+
|
|
255
|
+
export interface PutPoolsRequest {
|
|
256
|
+
/** Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one. */
|
|
257
|
+
allow_move?: string;
|
|
258
|
+
comment?: string;
|
|
259
|
+
/** Remove the passed VMIDs and/or storage IDs instead of adding them. */
|
|
260
|
+
delete?: string;
|
|
261
|
+
poolid: string;
|
|
262
|
+
/** List of storage IDs to add or remove from this pool. */
|
|
263
|
+
storage?: string;
|
|
264
|
+
/** List of guest VMIDs to add or remove from this pool. */
|
|
265
|
+
vms?: string;
|
|
266
|
+
}
|
|
267
|
+
export const PutPoolsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
268
|
+
S.Struct({
|
|
269
|
+
allow_move: S.optional(S.String.pipe(T.Body("allow-move"))),
|
|
270
|
+
comment: S.optional(S.String),
|
|
271
|
+
delete: S.optional(S.String),
|
|
272
|
+
poolid: S.String,
|
|
273
|
+
storage: S.optional(S.String),
|
|
274
|
+
vms: S.optional(S.String),
|
|
275
|
+
}).pipe(
|
|
276
|
+
T.Http({
|
|
277
|
+
method: "PUT",
|
|
278
|
+
uri: "/pools",
|
|
279
|
+
code: 200,
|
|
280
|
+
contentType: "form-urlencoded",
|
|
281
|
+
}),
|
|
282
|
+
),
|
|
283
|
+
).annotate({
|
|
284
|
+
identifier: "PutPoolsRequest",
|
|
285
|
+
}) as any as S.Schema<PutPoolsRequest>;
|
|
286
|
+
|
|
287
|
+
export interface PutPoolsResponse {}
|
|
288
|
+
export const PutPoolsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
289
|
+
S.Struct({}),
|
|
290
|
+
).annotate({
|
|
291
|
+
identifier: "PutPoolsResponse",
|
|
292
|
+
}) as any as S.Schema<PutPoolsResponse>;
|
|
293
|
+
|
|
294
|
+
export type CreatePoolError = ProxmoxOpError;
|
|
295
|
+
/** Create new pool. (root-privileged endpoint) */
|
|
296
|
+
export const createPool: API.OperationMethod<
|
|
297
|
+
CreatePoolRequest,
|
|
298
|
+
CreatePoolResponse,
|
|
299
|
+
CreatePoolError,
|
|
300
|
+
ProxmoxOpContext
|
|
301
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
302
|
+
input: CreatePoolRequest,
|
|
303
|
+
output: CreatePoolResponse,
|
|
304
|
+
errors: [],
|
|
305
|
+
protocol: ProxmoxProtocol,
|
|
306
|
+
retry: Retry.Retry,
|
|
307
|
+
}));
|
|
308
|
+
|
|
309
|
+
export type DeletePoolError = ProxmoxOpError;
|
|
310
|
+
/** Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). (root-privileged endpoint) */
|
|
311
|
+
export const deletePool: API.OperationMethod<
|
|
312
|
+
DeletePoolRequest,
|
|
313
|
+
DeletePoolResponse,
|
|
314
|
+
DeletePoolError,
|
|
315
|
+
ProxmoxOpContext
|
|
316
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
317
|
+
input: DeletePoolRequest,
|
|
318
|
+
output: DeletePoolResponse,
|
|
319
|
+
errors: [],
|
|
320
|
+
protocol: ProxmoxProtocol,
|
|
321
|
+
retry: Retry.Retry,
|
|
322
|
+
}));
|
|
323
|
+
|
|
324
|
+
export type DeletePoolsError = ProxmoxOpError;
|
|
325
|
+
/** Delete pool. (root-privileged endpoint) */
|
|
326
|
+
export const deletePools: API.OperationMethod<
|
|
327
|
+
DeletePoolsRequest,
|
|
328
|
+
DeletePoolsResponse,
|
|
329
|
+
DeletePoolsError,
|
|
330
|
+
ProxmoxOpContext
|
|
331
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
332
|
+
input: DeletePoolsRequest,
|
|
333
|
+
output: DeletePoolsResponse,
|
|
334
|
+
errors: [],
|
|
335
|
+
protocol: ProxmoxProtocol,
|
|
336
|
+
retry: Retry.Retry,
|
|
337
|
+
}));
|
|
338
|
+
|
|
339
|
+
export type GetPoolError = ProxmoxOpError;
|
|
340
|
+
/** Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). */
|
|
341
|
+
export const getPool: API.OperationMethod<
|
|
342
|
+
GetPoolRequest,
|
|
343
|
+
GetPoolResponse,
|
|
344
|
+
GetPoolError,
|
|
345
|
+
ProxmoxOpContext
|
|
346
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
347
|
+
input: GetPoolRequest,
|
|
348
|
+
output: GetPoolResponse,
|
|
349
|
+
errors: [],
|
|
350
|
+
protocol: ProxmoxProtocol,
|
|
351
|
+
retry: Retry.Retry,
|
|
352
|
+
}));
|
|
353
|
+
|
|
354
|
+
export type ListPoolsError = ProxmoxOpError;
|
|
355
|
+
/** List pools or get pool configuration. */
|
|
356
|
+
export const listPools: API.OperationMethod<
|
|
357
|
+
ListPoolsRequest,
|
|
358
|
+
ListPoolsResponse,
|
|
359
|
+
ListPoolsError,
|
|
360
|
+
ProxmoxOpContext
|
|
361
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
362
|
+
input: ListPoolsRequest,
|
|
363
|
+
output: ListPoolsResponse,
|
|
364
|
+
errors: [],
|
|
365
|
+
protocol: ProxmoxProtocol,
|
|
366
|
+
retry: Retry.Retry,
|
|
367
|
+
}));
|
|
368
|
+
|
|
369
|
+
export type PutPoolError = ProxmoxOpError;
|
|
370
|
+
/** Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). (root-privileged endpoint) */
|
|
371
|
+
export const putPool: API.OperationMethod<
|
|
372
|
+
PutPoolRequest,
|
|
373
|
+
PutPoolResponse,
|
|
374
|
+
PutPoolError,
|
|
375
|
+
ProxmoxOpContext
|
|
376
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
377
|
+
input: PutPoolRequest,
|
|
378
|
+
output: PutPoolResponse,
|
|
379
|
+
errors: [],
|
|
380
|
+
protocol: ProxmoxProtocol,
|
|
381
|
+
retry: Retry.Retry,
|
|
382
|
+
}));
|
|
383
|
+
|
|
384
|
+
export type PutPoolsError = ProxmoxOpError;
|
|
385
|
+
/** Update pool. (root-privileged endpoint) */
|
|
386
|
+
export const putPools: API.OperationMethod<
|
|
387
|
+
PutPoolsRequest,
|
|
388
|
+
PutPoolsResponse,
|
|
389
|
+
PutPoolsError,
|
|
390
|
+
ProxmoxOpContext
|
|
391
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
392
|
+
input: PutPoolsRequest,
|
|
393
|
+
output: PutPoolsResponse,
|
|
394
|
+
errors: [],
|
|
395
|
+
protocol: ProxmoxProtocol,
|
|
396
|
+
retry: Retry.Retry,
|
|
397
|
+
}));
|