@homeflare/distilled-proxmox 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -10
- package/dist/config-not-found.test.d.ts +2 -0
- package/dist/config-not-found.test.d.ts.map +1 -0
- package/dist/config-not-found.test.js +96 -0
- package/dist/config-not-found.test.js.map +1 -0
- package/dist/delete-query-binding.test.d.ts +2 -0
- package/dist/delete-query-binding.test.d.ts.map +1 -0
- package/dist/delete-query-binding.test.js +49 -0
- package/dist/delete-query-binding.test.js.map +1 -0
- package/dist/errors.d.ts +14 -7
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +12 -5
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/not-found-errors.test.d.ts +2 -0
- package/dist/not-found-errors.test.d.ts.map +1 -0
- package/dist/not-found-errors.test.js +59 -0
- package/dist/not-found-errors.test.js.map +1 -0
- package/dist/protocol-form.d.ts +18 -0
- package/dist/protocol-form.d.ts.map +1 -0
- package/dist/protocol-form.js +37 -0
- package/dist/protocol-form.js.map +1 -0
- package/dist/protocol-form.test.d.ts +2 -0
- package/dist/protocol-form.test.d.ts.map +1 -0
- package/dist/protocol-form.test.js +68 -0
- package/dist/protocol-form.test.js.map +1 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +28 -9
- package/dist/protocol.js.map +1 -1
- package/dist/services/access.d.ts +22 -2
- package/dist/services/access.d.ts.map +1 -1
- package/dist/services/access.js +17 -9
- package/dist/services/access.js.map +1 -1
- package/dist/services/cluster.d.ts +25 -5
- package/dist/services/cluster.d.ts.map +1 -1
- package/dist/services/cluster.js +56 -82
- package/dist/services/cluster.js.map +1 -1
- package/dist/services/nodes.d.ts +22 -2
- package/dist/services/nodes.d.ts.map +1 -1
- package/dist/services/nodes.js +60 -72
- package/dist/services/nodes.js.map +1 -1
- package/dist/services/pools.d.ts +16 -6
- package/dist/services/pools.d.ts.map +1 -1
- package/dist/services/pools.js +20 -13
- package/dist/services/pools.js.map +1 -1
- package/dist/services/storage.d.ts +11 -1
- package/dist/services/storage.d.ts.map +1 -1
- package/dist/services/storage.js +8 -1
- package/dist/services/storage.js.map +1 -1
- package/package.json +1 -7
- package/src/config-not-found.test.ts +153 -0
- package/src/delete-query-binding.test.ts +65 -0
- package/src/errors.ts +16 -17
- package/src/index.ts +0 -1
- package/src/not-found-errors.test.ts +112 -0
- package/src/protocol-form.test.ts +102 -0
- package/src/protocol-form.ts +49 -0
- package/src/protocol.ts +31 -9
- package/src/services/access.ts +25 -11
- package/src/services/cluster.ts +76 -89
- package/src/services/nodes.ts +71 -74
- package/src/services/pools.ts +29 -21
- package/src/services/storage.ts +12 -2
- package/dist/task.d.ts +0 -51
- package/dist/task.d.ts.map +0 -1
- package/dist/task.js +0 -60
- package/dist/task.js.map +0 -1
- package/src/task.ts +0 -87
package/src/services/cluster.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (apidata.js, via scripts/apidoc.ts — see its header). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
4
5
|
import * as T from "../traits.ts";
|
|
5
6
|
import {
|
|
6
7
|
ProxmoxProtocol,
|
|
@@ -11,6 +12,35 @@ import * as Retry from "../retry.ts";
|
|
|
11
12
|
|
|
12
13
|
export type { ProxmoxOpError, ProxmoxOpContext };
|
|
13
14
|
|
|
15
|
+
/** The backup job does not exist. pve-manager 9.2.11, f6997e698c7933ea8e62319e2bf1bf7262daa56a, PVE/API2/Backup.pm:406,458,755 raises a 400 parameter exception with exactly errors.id = No such job '<id>'. The Proxmox protocol extracts that sole precise detail for matching; unrelated or multi-field validation errors never become absence. Update uses a different exception and is deliberately not attached. */
|
|
16
|
+
export class BackupJobNotFound
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BackupJobNotFound>()("BackupJobNotFound", {
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withBadRequestError),
|
|
21
|
+
[{ status: 400, message: { matches: "^No such job '[^']+'$" } }],
|
|
22
|
+
) {}
|
|
23
|
+
|
|
24
|
+
/** The metrics server does not exist. pve-manager 9.2.11, f6997e698c7933ea8e62319e2bf1bf7262daa56a, PVE/API2/Cluster/MetricServer.pm:136 throws status server entry '<id>' does not exist on GET, and line 228 throws no such server '<id>' on PUT. Both are wire 500. DELETE dereferences the plugin config without an explicit absence check and is not declared to return this tag. */
|
|
25
|
+
export class MetricServerNotFound
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<MetricServerNotFound>()(
|
|
28
|
+
"MetricServerNotFound",
|
|
29
|
+
{
|
|
30
|
+
message: S.String,
|
|
31
|
+
},
|
|
32
|
+
).pipe(C.withBadRequestError),
|
|
33
|
+
[
|
|
34
|
+
{
|
|
35
|
+
status: 500,
|
|
36
|
+
message: {
|
|
37
|
+
matches: "^status server entry '[^']+' does not exist\\n?$",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{ status: 500, message: { matches: "^no such server '[^']+'\\n?$" } },
|
|
41
|
+
],
|
|
42
|
+
) {}
|
|
43
|
+
|
|
14
44
|
export interface CreateClusterAcmeAccountRequest {
|
|
15
45
|
/** Contact email addresses. */
|
|
16
46
|
contact: string;
|
|
@@ -2586,13 +2616,12 @@ export interface DeleteClusterFirewallAliasRequest {
|
|
|
2586
2616
|
export const DeleteClusterFirewallAliasRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2587
2617
|
S.Struct({
|
|
2588
2618
|
name: S.String.pipe(T.Label()),
|
|
2589
|
-
digest: S.optional(S.String),
|
|
2619
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
2590
2620
|
}).pipe(
|
|
2591
2621
|
T.Http({
|
|
2592
2622
|
method: "DELETE",
|
|
2593
2623
|
uri: "/cluster/firewall/aliases/{name}",
|
|
2594
2624
|
code: 200,
|
|
2595
|
-
contentType: "form-urlencoded",
|
|
2596
2625
|
}),
|
|
2597
2626
|
),
|
|
2598
2627
|
).annotate({
|
|
@@ -2640,13 +2669,12 @@ export const DeleteClusterFirewallGroup2Request = /*@__PURE__*/ S.suspend(() =>
|
|
|
2640
2669
|
S.Struct({
|
|
2641
2670
|
group: S.String.pipe(T.Label()),
|
|
2642
2671
|
pos: S.String.pipe(T.Label()),
|
|
2643
|
-
digest: S.optional(S.String),
|
|
2672
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
2644
2673
|
}).pipe(
|
|
2645
2674
|
T.Http({
|
|
2646
2675
|
method: "DELETE",
|
|
2647
2676
|
uri: "/cluster/firewall/groups/{group}/{pos}",
|
|
2648
2677
|
code: 200,
|
|
2649
|
-
contentType: "form-urlencoded",
|
|
2650
2678
|
}),
|
|
2651
2679
|
),
|
|
2652
2680
|
).annotate({
|
|
@@ -2668,13 +2696,12 @@ export interface DeleteClusterFirewallIpsetRequest {
|
|
|
2668
2696
|
export const DeleteClusterFirewallIpsetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2669
2697
|
S.Struct({
|
|
2670
2698
|
name: S.String.pipe(T.Label()),
|
|
2671
|
-
force: S.optional(S.String),
|
|
2699
|
+
force: S.optional(S.String.pipe(T.Query())),
|
|
2672
2700
|
}).pipe(
|
|
2673
2701
|
T.Http({
|
|
2674
2702
|
method: "DELETE",
|
|
2675
2703
|
uri: "/cluster/firewall/ipset/{name}",
|
|
2676
2704
|
code: 200,
|
|
2677
|
-
contentType: "form-urlencoded",
|
|
2678
2705
|
}),
|
|
2679
2706
|
),
|
|
2680
2707
|
).annotate({
|
|
@@ -2698,13 +2725,12 @@ export const DeleteClusterFirewallIpset2Request = /*@__PURE__*/ S.suspend(() =>
|
|
|
2698
2725
|
S.Struct({
|
|
2699
2726
|
name: S.String.pipe(T.Label()),
|
|
2700
2727
|
cidr: S.String.pipe(T.Label()),
|
|
2701
|
-
digest: S.optional(S.String),
|
|
2728
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
2702
2729
|
}).pipe(
|
|
2703
2730
|
T.Http({
|
|
2704
2731
|
method: "DELETE",
|
|
2705
2732
|
uri: "/cluster/firewall/ipset/{name}/{cidr}",
|
|
2706
2733
|
code: 200,
|
|
2707
|
-
contentType: "form-urlencoded",
|
|
2708
2734
|
}),
|
|
2709
2735
|
),
|
|
2710
2736
|
).annotate({
|
|
@@ -2726,13 +2752,12 @@ export interface DeleteClusterFirewallRuleRequest {
|
|
|
2726
2752
|
export const DeleteClusterFirewallRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2727
2753
|
S.Struct({
|
|
2728
2754
|
pos: S.String.pipe(T.Label()),
|
|
2729
|
-
digest: S.optional(S.String),
|
|
2755
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
2730
2756
|
}).pipe(
|
|
2731
2757
|
T.Http({
|
|
2732
2758
|
method: "DELETE",
|
|
2733
2759
|
uri: "/cluster/firewall/rules/{pos}",
|
|
2734
2760
|
code: 200,
|
|
2735
|
-
contentType: "form-urlencoded",
|
|
2736
2761
|
}),
|
|
2737
2762
|
),
|
|
2738
2763
|
).annotate({
|
|
@@ -2774,14 +2799,9 @@ export interface DeleteClusterHaResourceRequest {
|
|
|
2774
2799
|
export const DeleteClusterHaResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2775
2800
|
S.Struct({
|
|
2776
2801
|
sid: S.String.pipe(T.Label()),
|
|
2777
|
-
purge: S.optional(S.String),
|
|
2802
|
+
purge: S.optional(S.String.pipe(T.Query())),
|
|
2778
2803
|
}).pipe(
|
|
2779
|
-
T.Http({
|
|
2780
|
-
method: "DELETE",
|
|
2781
|
-
uri: "/cluster/ha/resources/{sid}",
|
|
2782
|
-
code: 200,
|
|
2783
|
-
contentType: "form-urlencoded",
|
|
2784
|
-
}),
|
|
2804
|
+
T.Http({ method: "DELETE", uri: "/cluster/ha/resources/{sid}", code: 200 }),
|
|
2785
2805
|
),
|
|
2786
2806
|
).annotate({
|
|
2787
2807
|
identifier: "DeleteClusterHaResourceRequest",
|
|
@@ -3078,15 +3098,10 @@ export interface DeleteClusterReplicationRequest {
|
|
|
3078
3098
|
export const DeleteClusterReplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3079
3099
|
S.Struct({
|
|
3080
3100
|
id: S.String.pipe(T.Label()),
|
|
3081
|
-
force: S.optional(S.String),
|
|
3082
|
-
keep: S.optional(S.String),
|
|
3101
|
+
force: S.optional(S.String.pipe(T.Query())),
|
|
3102
|
+
keep: S.optional(S.String.pipe(T.Query())),
|
|
3083
3103
|
}).pipe(
|
|
3084
|
-
T.Http({
|
|
3085
|
-
method: "DELETE",
|
|
3086
|
-
uri: "/cluster/replication/{id}",
|
|
3087
|
-
code: 200,
|
|
3088
|
-
contentType: "form-urlencoded",
|
|
3089
|
-
}),
|
|
3104
|
+
T.Http({ method: "DELETE", uri: "/cluster/replication/{id}", code: 200 }),
|
|
3090
3105
|
),
|
|
3091
3106
|
).annotate({
|
|
3092
3107
|
identifier: "DeleteClusterReplicationRequest",
|
|
@@ -3107,13 +3122,12 @@ export interface DeleteClusterSdnControllerRequest {
|
|
|
3107
3122
|
export const DeleteClusterSdnControllerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3108
3123
|
S.Struct({
|
|
3109
3124
|
controller: S.String.pipe(T.Label()),
|
|
3110
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3125
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3111
3126
|
}).pipe(
|
|
3112
3127
|
T.Http({
|
|
3113
3128
|
method: "DELETE",
|
|
3114
3129
|
uri: "/cluster/sdn/controllers/{controller}",
|
|
3115
3130
|
code: 200,
|
|
3116
|
-
contentType: "form-urlencoded",
|
|
3117
3131
|
}),
|
|
3118
3132
|
),
|
|
3119
3133
|
).annotate({
|
|
@@ -3135,14 +3149,9 @@ export interface DeleteClusterSdnDnsRequest {
|
|
|
3135
3149
|
export const DeleteClusterSdnDnsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3136
3150
|
S.Struct({
|
|
3137
3151
|
dns: S.String.pipe(T.Label()),
|
|
3138
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3152
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3139
3153
|
}).pipe(
|
|
3140
|
-
T.Http({
|
|
3141
|
-
method: "DELETE",
|
|
3142
|
-
uri: "/cluster/sdn/dns/{dns}",
|
|
3143
|
-
code: 200,
|
|
3144
|
-
contentType: "form-urlencoded",
|
|
3145
|
-
}),
|
|
3154
|
+
T.Http({ method: "DELETE", uri: "/cluster/sdn/dns/{dns}", code: 200 }),
|
|
3146
3155
|
),
|
|
3147
3156
|
).annotate({
|
|
3148
3157
|
identifier: "DeleteClusterSdnDnsRequest",
|
|
@@ -3213,14 +3222,9 @@ export interface DeleteClusterSdnIpamRequest {
|
|
|
3213
3222
|
export const DeleteClusterSdnIpamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3214
3223
|
S.Struct({
|
|
3215
3224
|
ipam: S.String.pipe(T.Label()),
|
|
3216
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3225
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3217
3226
|
}).pipe(
|
|
3218
|
-
T.Http({
|
|
3219
|
-
method: "DELETE",
|
|
3220
|
-
uri: "/cluster/sdn/ipams/{ipam}",
|
|
3221
|
-
code: 200,
|
|
3222
|
-
contentType: "form-urlencoded",
|
|
3223
|
-
}),
|
|
3227
|
+
T.Http({ method: "DELETE", uri: "/cluster/sdn/ipams/{ipam}", code: 200 }),
|
|
3224
3228
|
),
|
|
3225
3229
|
).annotate({
|
|
3226
3230
|
identifier: "DeleteClusterSdnIpamRequest",
|
|
@@ -3241,16 +3245,9 @@ export interface DeleteClusterSdnLockRequest {
|
|
|
3241
3245
|
}
|
|
3242
3246
|
export const DeleteClusterSdnLockRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3243
3247
|
S.Struct({
|
|
3244
|
-
force: S.optional(S.String),
|
|
3245
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3246
|
-
}).pipe(
|
|
3247
|
-
T.Http({
|
|
3248
|
-
method: "DELETE",
|
|
3249
|
-
uri: "/cluster/sdn/lock",
|
|
3250
|
-
code: 200,
|
|
3251
|
-
contentType: "form-urlencoded",
|
|
3252
|
-
}),
|
|
3253
|
-
),
|
|
3248
|
+
force: S.optional(S.String.pipe(T.Query())),
|
|
3249
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3250
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/sdn/lock", code: 200 })),
|
|
3254
3251
|
).annotate({
|
|
3255
3252
|
identifier: "DeleteClusterSdnLockRequest",
|
|
3256
3253
|
}) as any as S.Schema<DeleteClusterSdnLockRequest>;
|
|
@@ -3270,13 +3267,12 @@ export interface DeleteClusterSdnPrefixListRequest {
|
|
|
3270
3267
|
export const DeleteClusterSdnPrefixListRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3271
3268
|
S.Struct({
|
|
3272
3269
|
id: S.String.pipe(T.Label()),
|
|
3273
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3270
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3274
3271
|
}).pipe(
|
|
3275
3272
|
T.Http({
|
|
3276
3273
|
method: "DELETE",
|
|
3277
3274
|
uri: "/cluster/sdn/prefix-lists/{id}",
|
|
3278
3275
|
code: 200,
|
|
3279
|
-
contentType: "form-urlencoded",
|
|
3280
3276
|
}),
|
|
3281
3277
|
),
|
|
3282
3278
|
).annotate({
|
|
@@ -3301,13 +3297,12 @@ export const DeleteClusterSdnPrefixListEntryRequest = /*@__PURE__*/ S.suspend(
|
|
|
3301
3297
|
S.Struct({
|
|
3302
3298
|
id: S.String.pipe(T.Label()),
|
|
3303
3299
|
url_seq: S.String.pipe(T.Label()),
|
|
3304
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3300
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3305
3301
|
}).pipe(
|
|
3306
3302
|
T.Http({
|
|
3307
3303
|
method: "DELETE",
|
|
3308
3304
|
uri: "/cluster/sdn/prefix-lists/{id}/entries/{url_seq}",
|
|
3309
3305
|
code: 200,
|
|
3310
|
-
contentType: "form-urlencoded",
|
|
3311
3306
|
}),
|
|
3312
3307
|
),
|
|
3313
3308
|
).annotate({
|
|
@@ -3332,13 +3327,12 @@ export const DeleteClusterSdnRouteMapEntryEntryRequest =
|
|
|
3332
3327
|
S.Struct({
|
|
3333
3328
|
route_map_id: S.String.pipe(T.Label()),
|
|
3334
3329
|
order: S.String.pipe(T.Label()),
|
|
3335
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3330
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3336
3331
|
}).pipe(
|
|
3337
3332
|
T.Http({
|
|
3338
3333
|
method: "DELETE",
|
|
3339
3334
|
uri: "/cluster/sdn/route-maps/entries/{route-map-id}/entry/{order}",
|
|
3340
3335
|
code: 200,
|
|
3341
|
-
contentType: "form-urlencoded",
|
|
3342
3336
|
}),
|
|
3343
3337
|
),
|
|
3344
3338
|
).annotate({
|
|
@@ -3359,14 +3353,9 @@ export interface DeleteClusterSdnVnetRequest {
|
|
|
3359
3353
|
export const DeleteClusterSdnVnetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3360
3354
|
S.Struct({
|
|
3361
3355
|
vnet: S.String.pipe(T.Label()),
|
|
3362
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3356
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3363
3357
|
}).pipe(
|
|
3364
|
-
T.Http({
|
|
3365
|
-
method: "DELETE",
|
|
3366
|
-
uri: "/cluster/sdn/vnets/{vnet}",
|
|
3367
|
-
code: 200,
|
|
3368
|
-
contentType: "form-urlencoded",
|
|
3369
|
-
}),
|
|
3358
|
+
T.Http({ method: "DELETE", uri: "/cluster/sdn/vnets/{vnet}", code: 200 }),
|
|
3370
3359
|
),
|
|
3371
3360
|
).annotate({
|
|
3372
3361
|
identifier: "DeleteClusterSdnVnetRequest",
|
|
@@ -3390,13 +3379,12 @@ export const DeleteClusterSdnVnetFirewallRuleRequest = /*@__PURE__*/ S.suspend(
|
|
|
3390
3379
|
S.Struct({
|
|
3391
3380
|
vnet: S.String.pipe(T.Label()),
|
|
3392
3381
|
pos: S.String.pipe(T.Label()),
|
|
3393
|
-
digest: S.optional(S.String),
|
|
3382
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
3394
3383
|
}).pipe(
|
|
3395
3384
|
T.Http({
|
|
3396
3385
|
method: "DELETE",
|
|
3397
3386
|
uri: "/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}",
|
|
3398
3387
|
code: 200,
|
|
3399
|
-
contentType: "form-urlencoded",
|
|
3400
3388
|
}),
|
|
3401
3389
|
),
|
|
3402
3390
|
).annotate({
|
|
@@ -3422,15 +3410,14 @@ export interface DeleteClusterSdnVnetIpsRequest {
|
|
|
3422
3410
|
export const DeleteClusterSdnVnetIpsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3423
3411
|
S.Struct({
|
|
3424
3412
|
vnet: S.String.pipe(T.Label()),
|
|
3425
|
-
ip: S.String,
|
|
3426
|
-
mac: S.optional(S.String),
|
|
3427
|
-
zone: S.String,
|
|
3413
|
+
ip: S.String.pipe(T.Query()),
|
|
3414
|
+
mac: S.optional(S.String.pipe(T.Query())),
|
|
3415
|
+
zone: S.String.pipe(T.Query()),
|
|
3428
3416
|
}).pipe(
|
|
3429
3417
|
T.Http({
|
|
3430
3418
|
method: "DELETE",
|
|
3431
3419
|
uri: "/cluster/sdn/vnets/{vnet}/ips",
|
|
3432
3420
|
code: 200,
|
|
3433
|
-
contentType: "form-urlencoded",
|
|
3434
3421
|
}),
|
|
3435
3422
|
),
|
|
3436
3423
|
).annotate({
|
|
@@ -3454,13 +3441,12 @@ export const DeleteClusterSdnVnetSubnetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3454
3441
|
S.Struct({
|
|
3455
3442
|
vnet: S.String.pipe(T.Label()),
|
|
3456
3443
|
subnet: S.String.pipe(T.Label()),
|
|
3457
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3444
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3458
3445
|
}).pipe(
|
|
3459
3446
|
T.Http({
|
|
3460
3447
|
method: "DELETE",
|
|
3461
3448
|
uri: "/cluster/sdn/vnets/{vnet}/subnets/{subnet}",
|
|
3462
3449
|
code: 200,
|
|
3463
|
-
contentType: "form-urlencoded",
|
|
3464
3450
|
}),
|
|
3465
3451
|
),
|
|
3466
3452
|
).annotate({
|
|
@@ -3482,14 +3468,9 @@ export interface DeleteClusterSdnZoneRequest {
|
|
|
3482
3468
|
export const DeleteClusterSdnZoneRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3483
3469
|
S.Struct({
|
|
3484
3470
|
zone: S.String.pipe(T.Label()),
|
|
3485
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
3471
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
3486
3472
|
}).pipe(
|
|
3487
|
-
T.Http({
|
|
3488
|
-
method: "DELETE",
|
|
3489
|
-
uri: "/cluster/sdn/zones/{zone}",
|
|
3490
|
-
code: 200,
|
|
3491
|
-
contentType: "form-urlencoded",
|
|
3492
|
-
}),
|
|
3473
|
+
T.Http({ method: "DELETE", uri: "/cluster/sdn/zones/{zone}", code: 200 }),
|
|
3493
3474
|
),
|
|
3494
3475
|
).annotate({
|
|
3495
3476
|
identifier: "DeleteClusterSdnZoneRequest",
|
|
@@ -15219,7 +15200,7 @@ export const deleteClusterAcmePlugin: API.OperationMethod<
|
|
|
15219
15200
|
retry: Retry.Retry,
|
|
15220
15201
|
}));
|
|
15221
15202
|
|
|
15222
|
-
export type DeleteClusterBackupError = ProxmoxOpError;
|
|
15203
|
+
export type DeleteClusterBackupError = BackupJobNotFound | ProxmoxOpError;
|
|
15223
15204
|
/** Delete vzdump backup job definition. (root-privileged endpoint) */
|
|
15224
15205
|
export const deleteClusterBackup: API.OperationMethod<
|
|
15225
15206
|
DeleteClusterBackupRequest,
|
|
@@ -15229,7 +15210,7 @@ export const deleteClusterBackup: API.OperationMethod<
|
|
|
15229
15210
|
> = /*@__PURE__*/ API.make(() => ({
|
|
15230
15211
|
input: DeleteClusterBackupRequest,
|
|
15231
15212
|
output: DeleteClusterBackupResponse,
|
|
15232
|
-
errors: [],
|
|
15213
|
+
errors: [BackupJobNotFound],
|
|
15233
15214
|
protocol: ProxmoxProtocol,
|
|
15234
15215
|
retry: Retry.Retry,
|
|
15235
15216
|
}));
|
|
@@ -15834,7 +15815,7 @@ export const getClusterAcmeTos: API.OperationMethod<
|
|
|
15834
15815
|
retry: Retry.Retry,
|
|
15835
15816
|
}));
|
|
15836
15817
|
|
|
15837
|
-
export type GetClusterBackupError = ProxmoxOpError;
|
|
15818
|
+
export type GetClusterBackupError = BackupJobNotFound | ProxmoxOpError;
|
|
15838
15819
|
/** Read vzdump backup job definition. */
|
|
15839
15820
|
export const getClusterBackup: API.OperationMethod<
|
|
15840
15821
|
GetClusterBackupRequest,
|
|
@@ -15844,12 +15825,14 @@ export const getClusterBackup: API.OperationMethod<
|
|
|
15844
15825
|
> = /*@__PURE__*/ API.make(() => ({
|
|
15845
15826
|
input: GetClusterBackupRequest,
|
|
15846
15827
|
output: GetClusterBackupResponse,
|
|
15847
|
-
errors: [],
|
|
15828
|
+
errors: [BackupJobNotFound],
|
|
15848
15829
|
protocol: ProxmoxProtocol,
|
|
15849
15830
|
retry: Retry.Retry,
|
|
15850
15831
|
}));
|
|
15851
15832
|
|
|
15852
|
-
export type GetClusterBackupIncludedVolumesError =
|
|
15833
|
+
export type GetClusterBackupIncludedVolumesError =
|
|
15834
|
+
| BackupJobNotFound
|
|
15835
|
+
| ProxmoxOpError;
|
|
15853
15836
|
/** Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. (root-privileged endpoint) */
|
|
15854
15837
|
export const getClusterBackupIncludedVolumes: API.OperationMethod<
|
|
15855
15838
|
GetClusterBackupIncludedVolumesRequest,
|
|
@@ -15859,7 +15842,7 @@ export const getClusterBackupIncludedVolumes: API.OperationMethod<
|
|
|
15859
15842
|
> = /*@__PURE__*/ API.make(() => ({
|
|
15860
15843
|
input: GetClusterBackupIncludedVolumesRequest,
|
|
15861
15844
|
output: GetClusterBackupIncludedVolumesResponse,
|
|
15862
|
-
errors: [],
|
|
15845
|
+
errors: [BackupJobNotFound],
|
|
15863
15846
|
protocol: ProxmoxProtocol,
|
|
15864
15847
|
retry: Retry.Retry,
|
|
15865
15848
|
}));
|
|
@@ -16209,7 +16192,9 @@ export const getClusterMetricsExport: API.OperationMethod<
|
|
|
16209
16192
|
retry: Retry.Retry,
|
|
16210
16193
|
}));
|
|
16211
16194
|
|
|
16212
|
-
export type GetClusterMetricsServerError =
|
|
16195
|
+
export type GetClusterMetricsServerError =
|
|
16196
|
+
| MetricServerNotFound
|
|
16197
|
+
| ProxmoxOpError;
|
|
16213
16198
|
/** Read metric server configuration. */
|
|
16214
16199
|
export const getClusterMetricsServer: API.OperationMethod<
|
|
16215
16200
|
GetClusterMetricsServerRequest,
|
|
@@ -16219,7 +16204,7 @@ export const getClusterMetricsServer: API.OperationMethod<
|
|
|
16219
16204
|
> = /*@__PURE__*/ API.make(() => ({
|
|
16220
16205
|
input: GetClusterMetricsServerRequest,
|
|
16221
16206
|
output: GetClusterMetricsServerResponse,
|
|
16222
|
-
errors: [],
|
|
16207
|
+
errors: [MetricServerNotFound],
|
|
16223
16208
|
protocol: ProxmoxProtocol,
|
|
16224
16209
|
retry: Retry.Retry,
|
|
16225
16210
|
}));
|
|
@@ -18039,7 +18024,9 @@ export const putClusterMappingUsb: API.OperationMethod<
|
|
|
18039
18024
|
retry: Retry.Retry,
|
|
18040
18025
|
}));
|
|
18041
18026
|
|
|
18042
|
-
export type PutClusterMetricsServerError =
|
|
18027
|
+
export type PutClusterMetricsServerError =
|
|
18028
|
+
| MetricServerNotFound
|
|
18029
|
+
| ProxmoxOpError;
|
|
18043
18030
|
/** Update metric server configuration. (root-privileged endpoint) */
|
|
18044
18031
|
export const putClusterMetricsServer: API.OperationMethod<
|
|
18045
18032
|
PutClusterMetricsServerRequest,
|
|
@@ -18049,7 +18036,7 @@ export const putClusterMetricsServer: API.OperationMethod<
|
|
|
18049
18036
|
> = /*@__PURE__*/ API.make(() => ({
|
|
18050
18037
|
input: PutClusterMetricsServerRequest,
|
|
18051
18038
|
output: PutClusterMetricsServerResponse,
|
|
18052
|
-
errors: [],
|
|
18039
|
+
errors: [MetricServerNotFound],
|
|
18053
18040
|
protocol: ProxmoxProtocol,
|
|
18054
18041
|
retry: Retry.Retry,
|
|
18055
18042
|
}));
|