@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/dist/services/cluster.js
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
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.js";
|
|
5
6
|
import { ProxmoxProtocol, } from "../protocol.js";
|
|
6
7
|
import * as Retry from "../retry.js";
|
|
8
|
+
/** 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. */
|
|
9
|
+
export class BackupJobNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
10
|
+
/*@__PURE__*/ S.TaggedError()("BackupJobNotFound", {
|
|
11
|
+
message: S.String,
|
|
12
|
+
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^No such job '[^']+'$" } }]) {
|
|
13
|
+
}
|
|
14
|
+
/** 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. */
|
|
15
|
+
export class MetricServerNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
16
|
+
/*@__PURE__*/ S.TaggedError()("MetricServerNotFound", {
|
|
17
|
+
message: S.String,
|
|
18
|
+
}).pipe(C.withBadRequestError), [
|
|
19
|
+
{
|
|
20
|
+
status: 500,
|
|
21
|
+
message: {
|
|
22
|
+
matches: "^status server entry '[^']+' does not exist\\n?$",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{ status: 500, message: { matches: "^no such server '[^']+'\\n?$" } },
|
|
26
|
+
]) {
|
|
27
|
+
}
|
|
7
28
|
export const CreateClusterAcmeAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8
29
|
contact: S.String,
|
|
9
30
|
directory: S.optional(S.String),
|
|
@@ -908,12 +929,11 @@ export const DeleteClusterConfigNodeResponse = /*@__PURE__*/ S.suspend(() => S.S
|
|
|
908
929
|
});
|
|
909
930
|
export const DeleteClusterFirewallAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
910
931
|
name: S.String.pipe(T.Label()),
|
|
911
|
-
digest: S.optional(S.String),
|
|
932
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
912
933
|
}).pipe(T.Http({
|
|
913
934
|
method: "DELETE",
|
|
914
935
|
uri: "/cluster/firewall/aliases/{name}",
|
|
915
936
|
code: 200,
|
|
916
|
-
contentType: "form-urlencoded",
|
|
917
937
|
}))).annotate({
|
|
918
938
|
identifier: "DeleteClusterFirewallAliasRequest",
|
|
919
939
|
});
|
|
@@ -935,12 +955,11 @@ export const DeleteClusterFirewallGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
935
955
|
export const DeleteClusterFirewallGroup2Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
936
956
|
group: S.String.pipe(T.Label()),
|
|
937
957
|
pos: S.String.pipe(T.Label()),
|
|
938
|
-
digest: S.optional(S.String),
|
|
958
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
939
959
|
}).pipe(T.Http({
|
|
940
960
|
method: "DELETE",
|
|
941
961
|
uri: "/cluster/firewall/groups/{group}/{pos}",
|
|
942
962
|
code: 200,
|
|
943
|
-
contentType: "form-urlencoded",
|
|
944
963
|
}))).annotate({
|
|
945
964
|
identifier: "DeleteClusterFirewallGroup2Request",
|
|
946
965
|
});
|
|
@@ -949,12 +968,11 @@ export const DeleteClusterFirewallGroup2Response = /*@__PURE__*/ S.suspend(() =>
|
|
|
949
968
|
});
|
|
950
969
|
export const DeleteClusterFirewallIpsetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
951
970
|
name: S.String.pipe(T.Label()),
|
|
952
|
-
force: S.optional(S.String),
|
|
971
|
+
force: S.optional(S.String.pipe(T.Query())),
|
|
953
972
|
}).pipe(T.Http({
|
|
954
973
|
method: "DELETE",
|
|
955
974
|
uri: "/cluster/firewall/ipset/{name}",
|
|
956
975
|
code: 200,
|
|
957
|
-
contentType: "form-urlencoded",
|
|
958
976
|
}))).annotate({
|
|
959
977
|
identifier: "DeleteClusterFirewallIpsetRequest",
|
|
960
978
|
});
|
|
@@ -964,12 +982,11 @@ export const DeleteClusterFirewallIpsetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
964
982
|
export const DeleteClusterFirewallIpset2Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
965
983
|
name: S.String.pipe(T.Label()),
|
|
966
984
|
cidr: S.String.pipe(T.Label()),
|
|
967
|
-
digest: S.optional(S.String),
|
|
985
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
968
986
|
}).pipe(T.Http({
|
|
969
987
|
method: "DELETE",
|
|
970
988
|
uri: "/cluster/firewall/ipset/{name}/{cidr}",
|
|
971
989
|
code: 200,
|
|
972
|
-
contentType: "form-urlencoded",
|
|
973
990
|
}))).annotate({
|
|
974
991
|
identifier: "DeleteClusterFirewallIpset2Request",
|
|
975
992
|
});
|
|
@@ -978,12 +995,11 @@ export const DeleteClusterFirewallIpset2Response = /*@__PURE__*/ S.suspend(() =>
|
|
|
978
995
|
});
|
|
979
996
|
export const DeleteClusterFirewallRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
980
997
|
pos: S.String.pipe(T.Label()),
|
|
981
|
-
digest: S.optional(S.String),
|
|
998
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
982
999
|
}).pipe(T.Http({
|
|
983
1000
|
method: "DELETE",
|
|
984
1001
|
uri: "/cluster/firewall/rules/{pos}",
|
|
985
1002
|
code: 200,
|
|
986
|
-
contentType: "form-urlencoded",
|
|
987
1003
|
}))).annotate({
|
|
988
1004
|
identifier: "DeleteClusterFirewallRuleRequest",
|
|
989
1005
|
});
|
|
@@ -1000,13 +1016,8 @@ export const DeleteClusterHaGroupResponse = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
1000
1016
|
});
|
|
1001
1017
|
export const DeleteClusterHaResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1002
1018
|
sid: S.String.pipe(T.Label()),
|
|
1003
|
-
purge: S.optional(S.String),
|
|
1004
|
-
}).pipe(T.Http({
|
|
1005
|
-
method: "DELETE",
|
|
1006
|
-
uri: "/cluster/ha/resources/{sid}",
|
|
1007
|
-
code: 200,
|
|
1008
|
-
contentType: "form-urlencoded",
|
|
1009
|
-
}))).annotate({
|
|
1019
|
+
purge: S.optional(S.String.pipe(T.Query())),
|
|
1020
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/ha/resources/{sid}", code: 200 }))).annotate({
|
|
1010
1021
|
identifier: "DeleteClusterHaResourceRequest",
|
|
1011
1022
|
});
|
|
1012
1023
|
export const DeleteClusterHaResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
@@ -1150,14 +1161,9 @@ export const DeleteClusterQemuCustomCpuModelResponse = /*@__PURE__*/ S.suspend((
|
|
|
1150
1161
|
});
|
|
1151
1162
|
export const DeleteClusterReplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1152
1163
|
id: S.String.pipe(T.Label()),
|
|
1153
|
-
force: S.optional(S.String),
|
|
1154
|
-
keep: S.optional(S.String),
|
|
1155
|
-
}).pipe(T.Http({
|
|
1156
|
-
method: "DELETE",
|
|
1157
|
-
uri: "/cluster/replication/{id}",
|
|
1158
|
-
code: 200,
|
|
1159
|
-
contentType: "form-urlencoded",
|
|
1160
|
-
}))).annotate({
|
|
1164
|
+
force: S.optional(S.String.pipe(T.Query())),
|
|
1165
|
+
keep: S.optional(S.String.pipe(T.Query())),
|
|
1166
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/replication/{id}", code: 200 }))).annotate({
|
|
1161
1167
|
identifier: "DeleteClusterReplicationRequest",
|
|
1162
1168
|
});
|
|
1163
1169
|
export const DeleteClusterReplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
@@ -1165,12 +1171,11 @@ export const DeleteClusterReplicationResponse = /*@__PURE__*/ S.suspend(() => S.
|
|
|
1165
1171
|
});
|
|
1166
1172
|
export const DeleteClusterSdnControllerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1167
1173
|
controller: S.String.pipe(T.Label()),
|
|
1168
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1174
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1169
1175
|
}).pipe(T.Http({
|
|
1170
1176
|
method: "DELETE",
|
|
1171
1177
|
uri: "/cluster/sdn/controllers/{controller}",
|
|
1172
1178
|
code: 200,
|
|
1173
|
-
contentType: "form-urlencoded",
|
|
1174
1179
|
}))).annotate({
|
|
1175
1180
|
identifier: "DeleteClusterSdnControllerRequest",
|
|
1176
1181
|
});
|
|
@@ -1179,13 +1184,8 @@ export const DeleteClusterSdnControllerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1179
1184
|
});
|
|
1180
1185
|
export const DeleteClusterSdnDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1181
1186
|
dns: S.String.pipe(T.Label()),
|
|
1182
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1183
|
-
}).pipe(T.Http({
|
|
1184
|
-
method: "DELETE",
|
|
1185
|
-
uri: "/cluster/sdn/dns/{dns}",
|
|
1186
|
-
code: 200,
|
|
1187
|
-
contentType: "form-urlencoded",
|
|
1188
|
-
}))).annotate({
|
|
1187
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1188
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/sdn/dns/{dns}", code: 200 }))).annotate({
|
|
1189
1189
|
identifier: "DeleteClusterSdnDnsRequest",
|
|
1190
1190
|
});
|
|
1191
1191
|
export const DeleteClusterSdnDnsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
@@ -1218,27 +1218,17 @@ export const DeleteClusterSdnFabricNodeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1218
1218
|
});
|
|
1219
1219
|
export const DeleteClusterSdnIpamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1220
1220
|
ipam: S.String.pipe(T.Label()),
|
|
1221
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1222
|
-
}).pipe(T.Http({
|
|
1223
|
-
method: "DELETE",
|
|
1224
|
-
uri: "/cluster/sdn/ipams/{ipam}",
|
|
1225
|
-
code: 200,
|
|
1226
|
-
contentType: "form-urlencoded",
|
|
1227
|
-
}))).annotate({
|
|
1221
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1222
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/sdn/ipams/{ipam}", code: 200 }))).annotate({
|
|
1228
1223
|
identifier: "DeleteClusterSdnIpamRequest",
|
|
1229
1224
|
});
|
|
1230
1225
|
export const DeleteClusterSdnIpamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1231
1226
|
identifier: "DeleteClusterSdnIpamResponse",
|
|
1232
1227
|
});
|
|
1233
1228
|
export const DeleteClusterSdnLockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1234
|
-
force: S.optional(S.String),
|
|
1235
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1236
|
-
}).pipe(T.Http({
|
|
1237
|
-
method: "DELETE",
|
|
1238
|
-
uri: "/cluster/sdn/lock",
|
|
1239
|
-
code: 200,
|
|
1240
|
-
contentType: "form-urlencoded",
|
|
1241
|
-
}))).annotate({
|
|
1229
|
+
force: S.optional(S.String.pipe(T.Query())),
|
|
1230
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1231
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/sdn/lock", code: 200 }))).annotate({
|
|
1242
1232
|
identifier: "DeleteClusterSdnLockRequest",
|
|
1243
1233
|
});
|
|
1244
1234
|
export const DeleteClusterSdnLockResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
@@ -1246,12 +1236,11 @@ export const DeleteClusterSdnLockResponse = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
1246
1236
|
});
|
|
1247
1237
|
export const DeleteClusterSdnPrefixListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1248
1238
|
id: S.String.pipe(T.Label()),
|
|
1249
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1239
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1250
1240
|
}).pipe(T.Http({
|
|
1251
1241
|
method: "DELETE",
|
|
1252
1242
|
uri: "/cluster/sdn/prefix-lists/{id}",
|
|
1253
1243
|
code: 200,
|
|
1254
|
-
contentType: "form-urlencoded",
|
|
1255
1244
|
}))).annotate({
|
|
1256
1245
|
identifier: "DeleteClusterSdnPrefixListRequest",
|
|
1257
1246
|
});
|
|
@@ -1261,12 +1250,11 @@ export const DeleteClusterSdnPrefixListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1261
1250
|
export const DeleteClusterSdnPrefixListEntryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1262
1251
|
id: S.String.pipe(T.Label()),
|
|
1263
1252
|
url_seq: S.String.pipe(T.Label()),
|
|
1264
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1253
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1265
1254
|
}).pipe(T.Http({
|
|
1266
1255
|
method: "DELETE",
|
|
1267
1256
|
uri: "/cluster/sdn/prefix-lists/{id}/entries/{url_seq}",
|
|
1268
1257
|
code: 200,
|
|
1269
|
-
contentType: "form-urlencoded",
|
|
1270
1258
|
}))).annotate({
|
|
1271
1259
|
identifier: "DeleteClusterSdnPrefixListEntryRequest",
|
|
1272
1260
|
});
|
|
@@ -1277,12 +1265,11 @@ export const DeleteClusterSdnRouteMapEntryEntryRequest =
|
|
|
1277
1265
|
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1278
1266
|
route_map_id: S.String.pipe(T.Label()),
|
|
1279
1267
|
order: S.String.pipe(T.Label()),
|
|
1280
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1268
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1281
1269
|
}).pipe(T.Http({
|
|
1282
1270
|
method: "DELETE",
|
|
1283
1271
|
uri: "/cluster/sdn/route-maps/entries/{route-map-id}/entry/{order}",
|
|
1284
1272
|
code: 200,
|
|
1285
|
-
contentType: "form-urlencoded",
|
|
1286
1273
|
}))).annotate({
|
|
1287
1274
|
identifier: "DeleteClusterSdnRouteMapEntryEntryRequest",
|
|
1288
1275
|
});
|
|
@@ -1292,13 +1279,8 @@ export const DeleteClusterSdnRouteMapEntryEntryResponse =
|
|
|
1292
1279
|
});
|
|
1293
1280
|
export const DeleteClusterSdnVnetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1294
1281
|
vnet: S.String.pipe(T.Label()),
|
|
1295
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1296
|
-
}).pipe(T.Http({
|
|
1297
|
-
method: "DELETE",
|
|
1298
|
-
uri: "/cluster/sdn/vnets/{vnet}",
|
|
1299
|
-
code: 200,
|
|
1300
|
-
contentType: "form-urlencoded",
|
|
1301
|
-
}))).annotate({
|
|
1282
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1283
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/sdn/vnets/{vnet}", code: 200 }))).annotate({
|
|
1302
1284
|
identifier: "DeleteClusterSdnVnetRequest",
|
|
1303
1285
|
});
|
|
1304
1286
|
export const DeleteClusterSdnVnetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
@@ -1307,12 +1289,11 @@ export const DeleteClusterSdnVnetResponse = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
1307
1289
|
export const DeleteClusterSdnVnetFirewallRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1308
1290
|
vnet: S.String.pipe(T.Label()),
|
|
1309
1291
|
pos: S.String.pipe(T.Label()),
|
|
1310
|
-
digest: S.optional(S.String),
|
|
1292
|
+
digest: S.optional(S.String.pipe(T.Query())),
|
|
1311
1293
|
}).pipe(T.Http({
|
|
1312
1294
|
method: "DELETE",
|
|
1313
1295
|
uri: "/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}",
|
|
1314
1296
|
code: 200,
|
|
1315
|
-
contentType: "form-urlencoded",
|
|
1316
1297
|
}))).annotate({
|
|
1317
1298
|
identifier: "DeleteClusterSdnVnetFirewallRuleRequest",
|
|
1318
1299
|
});
|
|
@@ -1321,14 +1302,13 @@ export const DeleteClusterSdnVnetFirewallRuleResponse = /*@__PURE__*/ S.suspend(
|
|
|
1321
1302
|
});
|
|
1322
1303
|
export const DeleteClusterSdnVnetIpsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1323
1304
|
vnet: S.String.pipe(T.Label()),
|
|
1324
|
-
ip: S.String,
|
|
1325
|
-
mac: S.optional(S.String),
|
|
1326
|
-
zone: S.String,
|
|
1305
|
+
ip: S.String.pipe(T.Query()),
|
|
1306
|
+
mac: S.optional(S.String.pipe(T.Query())),
|
|
1307
|
+
zone: S.String.pipe(T.Query()),
|
|
1327
1308
|
}).pipe(T.Http({
|
|
1328
1309
|
method: "DELETE",
|
|
1329
1310
|
uri: "/cluster/sdn/vnets/{vnet}/ips",
|
|
1330
1311
|
code: 200,
|
|
1331
|
-
contentType: "form-urlencoded",
|
|
1332
1312
|
}))).annotate({
|
|
1333
1313
|
identifier: "DeleteClusterSdnVnetIpsRequest",
|
|
1334
1314
|
});
|
|
@@ -1338,12 +1318,11 @@ export const DeleteClusterSdnVnetIpsResponse = /*@__PURE__*/ S.suspend(() => S.S
|
|
|
1338
1318
|
export const DeleteClusterSdnVnetSubnetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1339
1319
|
vnet: S.String.pipe(T.Label()),
|
|
1340
1320
|
subnet: S.String.pipe(T.Label()),
|
|
1341
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1321
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1342
1322
|
}).pipe(T.Http({
|
|
1343
1323
|
method: "DELETE",
|
|
1344
1324
|
uri: "/cluster/sdn/vnets/{vnet}/subnets/{subnet}",
|
|
1345
1325
|
code: 200,
|
|
1346
|
-
contentType: "form-urlencoded",
|
|
1347
1326
|
}))).annotate({
|
|
1348
1327
|
identifier: "DeleteClusterSdnVnetSubnetRequest",
|
|
1349
1328
|
});
|
|
@@ -1352,13 +1331,8 @@ export const DeleteClusterSdnVnetSubnetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1352
1331
|
});
|
|
1353
1332
|
export const DeleteClusterSdnZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1354
1333
|
zone: S.String.pipe(T.Label()),
|
|
1355
|
-
lock_token: S.optional(S.String.pipe(T.
|
|
1356
|
-
}).pipe(T.Http({
|
|
1357
|
-
method: "DELETE",
|
|
1358
|
-
uri: "/cluster/sdn/zones/{zone}",
|
|
1359
|
-
code: 200,
|
|
1360
|
-
contentType: "form-urlencoded",
|
|
1361
|
-
}))).annotate({
|
|
1334
|
+
lock_token: S.optional(S.String.pipe(T.Query("lock-token"))),
|
|
1335
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/cluster/sdn/zones/{zone}", code: 200 }))).annotate({
|
|
1362
1336
|
identifier: "DeleteClusterSdnZoneRequest",
|
|
1363
1337
|
});
|
|
1364
1338
|
export const DeleteClusterSdnZoneResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
@@ -5630,7 +5604,7 @@ export const deleteClusterAcmePlugin = /*@__PURE__*/ API.make(() => ({
|
|
|
5630
5604
|
export const deleteClusterBackup = /*@__PURE__*/ API.make(() => ({
|
|
5631
5605
|
input: DeleteClusterBackupRequest,
|
|
5632
5606
|
output: DeleteClusterBackupResponse,
|
|
5633
|
-
errors: [],
|
|
5607
|
+
errors: [BackupJobNotFound],
|
|
5634
5608
|
protocol: ProxmoxProtocol,
|
|
5635
5609
|
retry: Retry.Retry,
|
|
5636
5610
|
}));
|
|
@@ -5958,7 +5932,7 @@ export const getClusterAcmeTos = /*@__PURE__*/ API.make(() => ({
|
|
|
5958
5932
|
export const getClusterBackup = /*@__PURE__*/ API.make(() => ({
|
|
5959
5933
|
input: GetClusterBackupRequest,
|
|
5960
5934
|
output: GetClusterBackupResponse,
|
|
5961
|
-
errors: [],
|
|
5935
|
+
errors: [BackupJobNotFound],
|
|
5962
5936
|
protocol: ProxmoxProtocol,
|
|
5963
5937
|
retry: Retry.Retry,
|
|
5964
5938
|
}));
|
|
@@ -5966,7 +5940,7 @@ export const getClusterBackup = /*@__PURE__*/ API.make(() => ({
|
|
|
5966
5940
|
export const getClusterBackupIncludedVolumes = /*@__PURE__*/ API.make(() => ({
|
|
5967
5941
|
input: GetClusterBackupIncludedVolumesRequest,
|
|
5968
5942
|
output: GetClusterBackupIncludedVolumesResponse,
|
|
5969
|
-
errors: [],
|
|
5943
|
+
errors: [BackupJobNotFound],
|
|
5970
5944
|
protocol: ProxmoxProtocol,
|
|
5971
5945
|
retry: Retry.Retry,
|
|
5972
5946
|
}));
|
|
@@ -6158,7 +6132,7 @@ export const getClusterMetricsExport = /*@__PURE__*/ API.make(() => ({
|
|
|
6158
6132
|
export const getClusterMetricsServer = /*@__PURE__*/ API.make(() => ({
|
|
6159
6133
|
input: GetClusterMetricsServerRequest,
|
|
6160
6134
|
output: GetClusterMetricsServerResponse,
|
|
6161
|
-
errors: [],
|
|
6135
|
+
errors: [MetricServerNotFound],
|
|
6162
6136
|
protocol: ProxmoxProtocol,
|
|
6163
6137
|
retry: Retry.Retry,
|
|
6164
6138
|
}));
|
|
@@ -7134,7 +7108,7 @@ export const putClusterMappingUsb = /*@__PURE__*/ API.make(() => ({
|
|
|
7134
7108
|
export const putClusterMetricsServer = /*@__PURE__*/ API.make(() => ({
|
|
7135
7109
|
input: PutClusterMetricsServerRequest,
|
|
7136
7110
|
output: PutClusterMetricsServerResponse,
|
|
7137
|
-
errors: [],
|
|
7111
|
+
errors: [MetricServerNotFound],
|
|
7138
7112
|
protocol: ProxmoxProtocol,
|
|
7139
7113
|
retry: Retry.Retry,
|
|
7140
7114
|
}));
|