@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,1428 @@
|
|
|
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 CreateAdminDatastoreChangeOwnerRequestBackupType = S.String;
|
|
8
|
+
export const CreateAdminDatastoreChangeOwnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
store: S.String.pipe(T.Label()),
|
|
10
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
11
|
+
backup_type: CreateAdminDatastoreChangeOwnerRequestBackupType.pipe(T.Body("backup-type")),
|
|
12
|
+
new_owner: S.String.pipe(T.Body("new-owner")),
|
|
13
|
+
ns: S.optional(S.String),
|
|
14
|
+
}).pipe(T.Http({
|
|
15
|
+
method: "POST",
|
|
16
|
+
uri: "/admin/datastore/{store}/change-owner",
|
|
17
|
+
code: 200,
|
|
18
|
+
contentType: "form-urlencoded",
|
|
19
|
+
}))).annotate({
|
|
20
|
+
identifier: "CreateAdminDatastoreChangeOwnerRequest",
|
|
21
|
+
});
|
|
22
|
+
export const CreateAdminDatastoreChangeOwnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
23
|
+
identifier: "CreateAdminDatastoreChangeOwnerResponse",
|
|
24
|
+
});
|
|
25
|
+
export const CreateAdminDatastoreGcRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
26
|
+
store: S.String.pipe(T.Label()),
|
|
27
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/datastore/{store}/gc", code: 200 }))).annotate({
|
|
28
|
+
identifier: "CreateAdminDatastoreGcRequest",
|
|
29
|
+
});
|
|
30
|
+
export const CreateAdminDatastoreGcResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
31
|
+
identifier: "CreateAdminDatastoreGcResponse",
|
|
32
|
+
});
|
|
33
|
+
export const CreateAdminDatastoreMountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
34
|
+
store: S.String.pipe(T.Label()),
|
|
35
|
+
}).pipe(T.Http({
|
|
36
|
+
method: "POST",
|
|
37
|
+
uri: "/admin/datastore/{store}/mount",
|
|
38
|
+
code: 200,
|
|
39
|
+
}))).annotate({
|
|
40
|
+
identifier: "CreateAdminDatastoreMountRequest",
|
|
41
|
+
});
|
|
42
|
+
export const CreateAdminDatastoreMountResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
43
|
+
identifier: "CreateAdminDatastoreMountResponse",
|
|
44
|
+
});
|
|
45
|
+
export const CreateAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
46
|
+
store: S.String.pipe(T.Label()),
|
|
47
|
+
name: S.String,
|
|
48
|
+
parent: S.optional(S.String),
|
|
49
|
+
}).pipe(T.Http({
|
|
50
|
+
method: "POST",
|
|
51
|
+
uri: "/admin/datastore/{store}/namespace",
|
|
52
|
+
code: 200,
|
|
53
|
+
contentType: "form-urlencoded",
|
|
54
|
+
}))).annotate({
|
|
55
|
+
identifier: "CreateAdminDatastoreNamespaceRequest",
|
|
56
|
+
});
|
|
57
|
+
export const CreateAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
58
|
+
identifier: "CreateAdminDatastoreNamespaceResponse",
|
|
59
|
+
});
|
|
60
|
+
export const CreateAdminDatastorePruneRequestBackupType = S.String;
|
|
61
|
+
export const CreateAdminDatastorePruneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
+
store: S.String.pipe(T.Label()),
|
|
63
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
64
|
+
backup_type: CreateAdminDatastorePruneRequestBackupType.pipe(T.Body("backup-type")),
|
|
65
|
+
dry_run: S.optional(S.String.pipe(T.Body("dry-run"))),
|
|
66
|
+
keep_daily: S.optional(S.String.pipe(T.Body("keep-daily"))),
|
|
67
|
+
keep_hourly: S.optional(S.String.pipe(T.Body("keep-hourly"))),
|
|
68
|
+
keep_last: S.optional(S.String.pipe(T.Body("keep-last"))),
|
|
69
|
+
keep_monthly: S.optional(S.String.pipe(T.Body("keep-monthly"))),
|
|
70
|
+
keep_weekly: S.optional(S.String.pipe(T.Body("keep-weekly"))),
|
|
71
|
+
keep_yearly: S.optional(S.String.pipe(T.Body("keep-yearly"))),
|
|
72
|
+
ns: S.optional(S.String),
|
|
73
|
+
use_task: S.optional(S.String.pipe(T.Body("use-task"))),
|
|
74
|
+
}).pipe(T.Http({
|
|
75
|
+
method: "POST",
|
|
76
|
+
uri: "/admin/datastore/{store}/prune",
|
|
77
|
+
code: 200,
|
|
78
|
+
contentType: "form-urlencoded",
|
|
79
|
+
}))).annotate({
|
|
80
|
+
identifier: "CreateAdminDatastorePruneRequest",
|
|
81
|
+
});
|
|
82
|
+
export const CreateAdminDatastorePruneResponseBodyItemBackupType = S.String;
|
|
83
|
+
export const CreateAdminDatastorePruneResponseBodyItem =
|
|
84
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
+
backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
|
|
86
|
+
backup_time: S.optional(S.Number.pipe(T.Body("backup-time"))),
|
|
87
|
+
backup_type: S.optional(CreateAdminDatastorePruneResponseBodyItemBackupType.pipe(T.Body("backup-type"))),
|
|
88
|
+
keep: S.Unknown,
|
|
89
|
+
})).annotate({
|
|
90
|
+
identifier: "CreateAdminDatastorePruneResponseBodyItem",
|
|
91
|
+
});
|
|
92
|
+
export const CreateAdminDatastorePruneResponseBodyList = /*@__PURE__*/ S.Array(CreateAdminDatastorePruneResponseBodyItem);
|
|
93
|
+
export const CreateAdminDatastorePruneResponse = /*@__PURE__*/ S.suspend(() => CreateAdminDatastorePruneResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
94
|
+
identifier: "CreateAdminDatastorePruneResponse",
|
|
95
|
+
});
|
|
96
|
+
export const CreateAdminDatastorePruneDatastoreRequest =
|
|
97
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
+
store: S.String.pipe(T.Label()),
|
|
99
|
+
dry_run: S.optional(S.String.pipe(T.Body("dry-run"))),
|
|
100
|
+
keep_daily: S.optional(S.String.pipe(T.Body("keep-daily"))),
|
|
101
|
+
keep_hourly: S.optional(S.String.pipe(T.Body("keep-hourly"))),
|
|
102
|
+
keep_last: S.optional(S.String.pipe(T.Body("keep-last"))),
|
|
103
|
+
keep_monthly: S.optional(S.String.pipe(T.Body("keep-monthly"))),
|
|
104
|
+
keep_weekly: S.optional(S.String.pipe(T.Body("keep-weekly"))),
|
|
105
|
+
keep_yearly: S.optional(S.String.pipe(T.Body("keep-yearly"))),
|
|
106
|
+
max_depth: S.optional(S.String.pipe(T.Body("max-depth"))),
|
|
107
|
+
ns: S.optional(S.String),
|
|
108
|
+
}).pipe(T.Http({
|
|
109
|
+
method: "POST",
|
|
110
|
+
uri: "/admin/datastore/{store}/prune-datastore",
|
|
111
|
+
code: 200,
|
|
112
|
+
contentType: "form-urlencoded",
|
|
113
|
+
}))).annotate({
|
|
114
|
+
identifier: "CreateAdminDatastorePruneDatastoreRequest",
|
|
115
|
+
});
|
|
116
|
+
export const CreateAdminDatastorePruneDatastoreResponse =
|
|
117
|
+
/*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
118
|
+
identifier: "CreateAdminDatastorePruneDatastoreResponse",
|
|
119
|
+
});
|
|
120
|
+
export const CreateAdminDatastoreUnmountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
121
|
+
store: S.String.pipe(T.Label()),
|
|
122
|
+
}).pipe(T.Http({
|
|
123
|
+
method: "POST",
|
|
124
|
+
uri: "/admin/datastore/{store}/unmount",
|
|
125
|
+
code: 200,
|
|
126
|
+
}))).annotate({
|
|
127
|
+
identifier: "CreateAdminDatastoreUnmountRequest",
|
|
128
|
+
});
|
|
129
|
+
export const CreateAdminDatastoreUnmountResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
130
|
+
identifier: "CreateAdminDatastoreUnmountResponse",
|
|
131
|
+
});
|
|
132
|
+
export const DeleteAdminDatastoreGroupsRequestBackupType = S.String;
|
|
133
|
+
export const DeleteAdminDatastoreGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
+
store: S.String.pipe(T.Label()),
|
|
135
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
136
|
+
backup_type: DeleteAdminDatastoreGroupsRequestBackupType.pipe(T.Body("backup-type")),
|
|
137
|
+
error_on_protected: S.optional(S.String.pipe(T.Body("error-on-protected"))),
|
|
138
|
+
ns: S.optional(S.String),
|
|
139
|
+
}).pipe(T.Http({
|
|
140
|
+
method: "DELETE",
|
|
141
|
+
uri: "/admin/datastore/{store}/groups",
|
|
142
|
+
code: 200,
|
|
143
|
+
contentType: "form-urlencoded",
|
|
144
|
+
}))).annotate({
|
|
145
|
+
identifier: "DeleteAdminDatastoreGroupsRequest",
|
|
146
|
+
});
|
|
147
|
+
export const DeleteAdminDatastoreGroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
148
|
+
protected_snapshots: S.optional(S.Number.pipe(T.Body("protected-snapshots"))),
|
|
149
|
+
removed_groups: S.optional(S.Number.pipe(T.Body("removed-groups"))),
|
|
150
|
+
removed_snapshots: S.optional(S.Number.pipe(T.Body("removed-snapshots"))),
|
|
151
|
+
})).annotate({
|
|
152
|
+
identifier: "DeleteAdminDatastoreGroupsResponse",
|
|
153
|
+
});
|
|
154
|
+
export const DeleteAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
|
+
store: S.String.pipe(T.Label()),
|
|
156
|
+
delete_groups: S.optional(S.String.pipe(T.Body("delete-groups"))),
|
|
157
|
+
error_on_protected: S.optional(S.String.pipe(T.Body("error-on-protected"))),
|
|
158
|
+
ns: S.String,
|
|
159
|
+
}).pipe(T.Http({
|
|
160
|
+
method: "DELETE",
|
|
161
|
+
uri: "/admin/datastore/{store}/namespace",
|
|
162
|
+
code: 200,
|
|
163
|
+
contentType: "form-urlencoded",
|
|
164
|
+
}))).annotate({
|
|
165
|
+
identifier: "DeleteAdminDatastoreNamespaceRequest",
|
|
166
|
+
});
|
|
167
|
+
export const DeleteAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
168
|
+
identifier: "DeleteAdminDatastoreNamespaceResponse",
|
|
169
|
+
});
|
|
170
|
+
export const DeleteAdminDatastoreSnapshotsRequestBackupType = S.String;
|
|
171
|
+
export const DeleteAdminDatastoreSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
172
|
+
store: S.String.pipe(T.Label()),
|
|
173
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
174
|
+
backup_time: S.String.pipe(T.Body("backup-time")),
|
|
175
|
+
backup_type: DeleteAdminDatastoreSnapshotsRequestBackupType.pipe(T.Body("backup-type")),
|
|
176
|
+
ns: S.optional(S.String),
|
|
177
|
+
}).pipe(T.Http({
|
|
178
|
+
method: "DELETE",
|
|
179
|
+
uri: "/admin/datastore/{store}/snapshots",
|
|
180
|
+
code: 200,
|
|
181
|
+
contentType: "form-urlencoded",
|
|
182
|
+
}))).annotate({
|
|
183
|
+
identifier: "DeleteAdminDatastoreSnapshotsRequest",
|
|
184
|
+
});
|
|
185
|
+
export const DeleteAdminDatastoreSnapshotsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
186
|
+
identifier: "DeleteAdminDatastoreSnapshotsResponse",
|
|
187
|
+
});
|
|
188
|
+
export const GetAdminRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/admin", code: 200 }))).annotate({
|
|
189
|
+
identifier: "GetAdminRequest",
|
|
190
|
+
});
|
|
191
|
+
export const GetAdminResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
192
|
+
identifier: "GetAdminResponse",
|
|
193
|
+
});
|
|
194
|
+
export const GetAdminDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
195
|
+
store: S.String.pipe(T.Label()),
|
|
196
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/datastore/{store}", code: 200 }))).annotate({
|
|
197
|
+
identifier: "GetAdminDatastoreRequest",
|
|
198
|
+
});
|
|
199
|
+
export const GetAdminDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
200
|
+
identifier: "GetAdminDatastoreResponse",
|
|
201
|
+
});
|
|
202
|
+
export const GetAdminDatastoreActiveOperationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
203
|
+
store: S.String.pipe(T.Label()),
|
|
204
|
+
}).pipe(T.Http({
|
|
205
|
+
method: "GET",
|
|
206
|
+
uri: "/admin/datastore/{store}/active-operations",
|
|
207
|
+
code: 200,
|
|
208
|
+
}))).annotate({
|
|
209
|
+
identifier: "GetAdminDatastoreActiveOperationsRequest",
|
|
210
|
+
});
|
|
211
|
+
export const GetAdminDatastoreActiveOperationsResponse =
|
|
212
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
213
|
+
identifier: "GetAdminDatastoreActiveOperationsResponse",
|
|
214
|
+
});
|
|
215
|
+
export const GetAdminDatastoreCatalogRequestBackupType = S.String;
|
|
216
|
+
export const GetAdminDatastoreCatalogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
|
+
store: S.String.pipe(T.Label()),
|
|
218
|
+
archive_name: S.optional(S.String.pipe(T.Query("archive-name"))),
|
|
219
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
220
|
+
backup_time: S.String.pipe(T.Query("backup-time")),
|
|
221
|
+
backup_type: GetAdminDatastoreCatalogRequestBackupType.pipe(T.Query("backup-type")),
|
|
222
|
+
filepath: S.String.pipe(T.Query()),
|
|
223
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
224
|
+
}).pipe(T.Http({
|
|
225
|
+
method: "GET",
|
|
226
|
+
uri: "/admin/datastore/{store}/catalog",
|
|
227
|
+
code: 200,
|
|
228
|
+
}))).annotate({
|
|
229
|
+
identifier: "GetAdminDatastoreCatalogRequest",
|
|
230
|
+
});
|
|
231
|
+
export const GetAdminDatastoreCatalogResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
232
|
+
identifier: "GetAdminDatastoreCatalogResponse",
|
|
233
|
+
});
|
|
234
|
+
export const GetAdminDatastoreDownloadRequestBackupType = S.String;
|
|
235
|
+
export const GetAdminDatastoreDownloadRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
236
|
+
store: S.String.pipe(T.Label()),
|
|
237
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
238
|
+
backup_time: S.String.pipe(T.Query("backup-time")),
|
|
239
|
+
backup_type: GetAdminDatastoreDownloadRequestBackupType.pipe(T.Query("backup-type")),
|
|
240
|
+
file_name: S.String.pipe(T.Query("file-name")),
|
|
241
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
242
|
+
}).pipe(T.Http({
|
|
243
|
+
method: "GET",
|
|
244
|
+
uri: "/admin/datastore/{store}/download",
|
|
245
|
+
code: 200,
|
|
246
|
+
}))).annotate({
|
|
247
|
+
identifier: "GetAdminDatastoreDownloadRequest",
|
|
248
|
+
});
|
|
249
|
+
export const GetAdminDatastoreDownloadResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
250
|
+
identifier: "GetAdminDatastoreDownloadResponse",
|
|
251
|
+
});
|
|
252
|
+
export const GetAdminDatastoreDownloadDecodedRequestBackupType = S.String;
|
|
253
|
+
export const GetAdminDatastoreDownloadDecodedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
+
store: S.String.pipe(T.Label()),
|
|
255
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
256
|
+
backup_time: S.String.pipe(T.Query("backup-time")),
|
|
257
|
+
backup_type: GetAdminDatastoreDownloadDecodedRequestBackupType.pipe(T.Query("backup-type")),
|
|
258
|
+
file_name: S.String.pipe(T.Query("file-name")),
|
|
259
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
260
|
+
}).pipe(T.Http({
|
|
261
|
+
method: "GET",
|
|
262
|
+
uri: "/admin/datastore/{store}/download-decoded",
|
|
263
|
+
code: 200,
|
|
264
|
+
}))).annotate({
|
|
265
|
+
identifier: "GetAdminDatastoreDownloadDecodedRequest",
|
|
266
|
+
});
|
|
267
|
+
export const GetAdminDatastoreDownloadDecodedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
268
|
+
identifier: "GetAdminDatastoreDownloadDecodedResponse",
|
|
269
|
+
});
|
|
270
|
+
export const GetAdminDatastoreGcRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
271
|
+
store: S.String.pipe(T.Label()),
|
|
272
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/datastore/{store}/gc", code: 200 }))).annotate({
|
|
273
|
+
identifier: "GetAdminDatastoreGcRequest",
|
|
274
|
+
});
|
|
275
|
+
export const GetAdminDatastoreGcResponseCacheStats = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
276
|
+
hits: S.Number,
|
|
277
|
+
misses: S.Number,
|
|
278
|
+
})).annotate({
|
|
279
|
+
identifier: "GetAdminDatastoreGcResponseCacheStats",
|
|
280
|
+
});
|
|
281
|
+
export const GetAdminDatastoreGcResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
|
+
cache_stats: S.optional(GetAdminDatastoreGcResponseCacheStats.pipe(T.Body("cache-stats"))),
|
|
283
|
+
disk_bytes: S.optional(S.Number.pipe(T.Body("disk-bytes"))),
|
|
284
|
+
disk_chunks: S.optional(S.Number.pipe(T.Body("disk-chunks"))),
|
|
285
|
+
duration: S.optional(S.Number),
|
|
286
|
+
index_data_bytes: S.optional(S.Number.pipe(T.Body("index-data-bytes"))),
|
|
287
|
+
index_file_count: S.optional(S.Number.pipe(T.Body("index-file-count"))),
|
|
288
|
+
last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
|
|
289
|
+
last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
|
|
290
|
+
next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
|
|
291
|
+
pending_bytes: S.optional(S.Number.pipe(T.Body("pending-bytes"))),
|
|
292
|
+
pending_chunks: S.optional(S.Number.pipe(T.Body("pending-chunks"))),
|
|
293
|
+
removed_bad: S.optional(S.Number.pipe(T.Body("removed-bad"))),
|
|
294
|
+
removed_bytes: S.optional(S.Number.pipe(T.Body("removed-bytes"))),
|
|
295
|
+
removed_chunks: S.optional(S.Number.pipe(T.Body("removed-chunks"))),
|
|
296
|
+
schedule: S.optional(S.String),
|
|
297
|
+
still_bad: S.optional(S.Number.pipe(T.Body("still-bad"))),
|
|
298
|
+
store: S.String,
|
|
299
|
+
upid: S.optional(S.String),
|
|
300
|
+
})).annotate({
|
|
301
|
+
identifier: "GetAdminDatastoreGcResponse",
|
|
302
|
+
});
|
|
303
|
+
export const GetAdminDatastoreGroupNotesRequestBackupType = S.String;
|
|
304
|
+
export const GetAdminDatastoreGroupNotesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
305
|
+
store: S.String.pipe(T.Label()),
|
|
306
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
307
|
+
backup_type: GetAdminDatastoreGroupNotesRequestBackupType.pipe(T.Query("backup-type")),
|
|
308
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
309
|
+
}).pipe(T.Http({
|
|
310
|
+
method: "GET",
|
|
311
|
+
uri: "/admin/datastore/{store}/group-notes",
|
|
312
|
+
code: 200,
|
|
313
|
+
}))).annotate({
|
|
314
|
+
identifier: "GetAdminDatastoreGroupNotesRequest",
|
|
315
|
+
});
|
|
316
|
+
export const GetAdminDatastoreGroupNotesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
317
|
+
identifier: "GetAdminDatastoreGroupNotesResponse",
|
|
318
|
+
});
|
|
319
|
+
export const GetAdminDatastoreNotesRequestBackupType = S.String;
|
|
320
|
+
export const GetAdminDatastoreNotesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
store: S.String.pipe(T.Label()),
|
|
322
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
323
|
+
backup_time: S.String.pipe(T.Query("backup-time")),
|
|
324
|
+
backup_type: GetAdminDatastoreNotesRequestBackupType.pipe(T.Query("backup-type")),
|
|
325
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
326
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/datastore/{store}/notes", code: 200 }))).annotate({
|
|
327
|
+
identifier: "GetAdminDatastoreNotesRequest",
|
|
328
|
+
});
|
|
329
|
+
export const GetAdminDatastoreNotesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
330
|
+
identifier: "GetAdminDatastoreNotesResponse",
|
|
331
|
+
});
|
|
332
|
+
export const GetAdminDatastoreProtectedRequestBackupType = S.String;
|
|
333
|
+
export const GetAdminDatastoreProtectedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
+
store: S.String.pipe(T.Label()),
|
|
335
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
336
|
+
backup_time: S.String.pipe(T.Query("backup-time")),
|
|
337
|
+
backup_type: GetAdminDatastoreProtectedRequestBackupType.pipe(T.Query("backup-type")),
|
|
338
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
339
|
+
}).pipe(T.Http({
|
|
340
|
+
method: "GET",
|
|
341
|
+
uri: "/admin/datastore/{store}/protected",
|
|
342
|
+
code: 200,
|
|
343
|
+
}))).annotate({
|
|
344
|
+
identifier: "GetAdminDatastoreProtectedRequest",
|
|
345
|
+
});
|
|
346
|
+
export const GetAdminDatastoreProtectedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
347
|
+
identifier: "GetAdminDatastoreProtectedResponse",
|
|
348
|
+
});
|
|
349
|
+
export const GetAdminDatastorePxarFileDownloadRequestBackupType = S.String;
|
|
350
|
+
export const GetAdminDatastorePxarFileDownloadRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
351
|
+
store: S.String.pipe(T.Label()),
|
|
352
|
+
archive_name: S.optional(S.String.pipe(T.Query("archive-name"))),
|
|
353
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
354
|
+
backup_time: S.String.pipe(T.Query("backup-time")),
|
|
355
|
+
backup_type: GetAdminDatastorePxarFileDownloadRequestBackupType.pipe(T.Query("backup-type")),
|
|
356
|
+
filepath: S.String.pipe(T.Query()),
|
|
357
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
358
|
+
tar: S.optional(S.String.pipe(T.Query())),
|
|
359
|
+
}).pipe(T.Http({
|
|
360
|
+
method: "GET",
|
|
361
|
+
uri: "/admin/datastore/{store}/pxar-file-download",
|
|
362
|
+
code: 200,
|
|
363
|
+
}))).annotate({
|
|
364
|
+
identifier: "GetAdminDatastorePxarFileDownloadRequest",
|
|
365
|
+
});
|
|
366
|
+
export const GetAdminDatastorePxarFileDownloadResponse =
|
|
367
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
368
|
+
identifier: "GetAdminDatastorePxarFileDownloadResponse",
|
|
369
|
+
});
|
|
370
|
+
export const GetAdminDatastoreRrdRequestCf = S.String;
|
|
371
|
+
export const GetAdminDatastoreRrdRequestTimeframe = S.String;
|
|
372
|
+
export const GetAdminDatastoreRrdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
+
store: S.String.pipe(T.Label()),
|
|
374
|
+
cf: GetAdminDatastoreRrdRequestCf.pipe(T.Query()),
|
|
375
|
+
timeframe: GetAdminDatastoreRrdRequestTimeframe.pipe(T.Query()),
|
|
376
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/datastore/{store}/rrd", code: 200 }))).annotate({
|
|
377
|
+
identifier: "GetAdminDatastoreRrdRequest",
|
|
378
|
+
});
|
|
379
|
+
export const GetAdminDatastoreRrdResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
380
|
+
identifier: "GetAdminDatastoreRrdResponse",
|
|
381
|
+
});
|
|
382
|
+
export const GetAdminDatastoreStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
+
store: S.String.pipe(T.Label()),
|
|
384
|
+
verbose: S.optional(S.String.pipe(T.Query())),
|
|
385
|
+
}).pipe(T.Http({
|
|
386
|
+
method: "GET",
|
|
387
|
+
uri: "/admin/datastore/{store}/status",
|
|
388
|
+
code: 200,
|
|
389
|
+
}))).annotate({
|
|
390
|
+
identifier: "GetAdminDatastoreStatusRequest",
|
|
391
|
+
});
|
|
392
|
+
export const GetAdminDatastoreStatusResponseBackendType = S.String;
|
|
393
|
+
export const GetAdminDatastoreStatusResponseCountsCt = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
394
|
+
groups: S.Number,
|
|
395
|
+
snapshots: S.Number,
|
|
396
|
+
})).annotate({
|
|
397
|
+
identifier: "GetAdminDatastoreStatusResponseCountsCt",
|
|
398
|
+
});
|
|
399
|
+
export const GetAdminDatastoreStatusResponseCountsHost = GetAdminDatastoreStatusResponseCountsCt;
|
|
400
|
+
export const GetAdminDatastoreStatusResponseCountsOther = GetAdminDatastoreStatusResponseCountsCt;
|
|
401
|
+
export const GetAdminDatastoreStatusResponseCountsVm = GetAdminDatastoreStatusResponseCountsCt;
|
|
402
|
+
export const GetAdminDatastoreStatusResponseCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
403
|
+
ct: S.optional(GetAdminDatastoreStatusResponseCountsCt),
|
|
404
|
+
host: S.optional(GetAdminDatastoreStatusResponseCountsCt),
|
|
405
|
+
other: S.optional(GetAdminDatastoreStatusResponseCountsCt),
|
|
406
|
+
vm: S.optional(GetAdminDatastoreStatusResponseCountsCt),
|
|
407
|
+
})).annotate({
|
|
408
|
+
identifier: "GetAdminDatastoreStatusResponseCounts",
|
|
409
|
+
});
|
|
410
|
+
export const GetAdminDatastoreStatusResponseGcStatusCacheStats = GetAdminDatastoreGcResponseCacheStats;
|
|
411
|
+
export const GetAdminDatastoreStatusResponseGcStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
412
|
+
cache_stats: S.optional(GetAdminDatastoreGcResponseCacheStats.pipe(T.Body("cache-stats"))),
|
|
413
|
+
disk_bytes: S.optional(S.Number.pipe(T.Body("disk-bytes"))),
|
|
414
|
+
disk_chunks: S.optional(S.Number.pipe(T.Body("disk-chunks"))),
|
|
415
|
+
index_data_bytes: S.optional(S.Number.pipe(T.Body("index-data-bytes"))),
|
|
416
|
+
index_file_count: S.optional(S.Number.pipe(T.Body("index-file-count"))),
|
|
417
|
+
pending_bytes: S.optional(S.Number.pipe(T.Body("pending-bytes"))),
|
|
418
|
+
pending_chunks: S.optional(S.Number.pipe(T.Body("pending-chunks"))),
|
|
419
|
+
removed_bad: S.optional(S.Number.pipe(T.Body("removed-bad"))),
|
|
420
|
+
removed_bytes: S.optional(S.Number.pipe(T.Body("removed-bytes"))),
|
|
421
|
+
removed_chunks: S.optional(S.Number.pipe(T.Body("removed-chunks"))),
|
|
422
|
+
still_bad: S.optional(S.Number.pipe(T.Body("still-bad"))),
|
|
423
|
+
upid: S.optional(S.String),
|
|
424
|
+
})).annotate({
|
|
425
|
+
identifier: "GetAdminDatastoreStatusResponseGcStatus",
|
|
426
|
+
});
|
|
427
|
+
export const GetAdminDatastoreStatusResponseS3Statistics =
|
|
428
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
429
|
+
delete: S.Number,
|
|
430
|
+
downloaded: S.Number,
|
|
431
|
+
get: S.Number,
|
|
432
|
+
head: S.Number,
|
|
433
|
+
post: S.Number,
|
|
434
|
+
put: S.Number,
|
|
435
|
+
uploaded: S.Number,
|
|
436
|
+
})).annotate({
|
|
437
|
+
identifier: "GetAdminDatastoreStatusResponseS3Statistics",
|
|
438
|
+
});
|
|
439
|
+
export const GetAdminDatastoreStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
440
|
+
avail: S.Number,
|
|
441
|
+
backend_type: S.optional(GetAdminDatastoreStatusResponseBackendType.pipe(T.Body("backend-type"))),
|
|
442
|
+
counts: S.optional(GetAdminDatastoreStatusResponseCounts),
|
|
443
|
+
gc_status: S.optional(GetAdminDatastoreStatusResponseGcStatus.pipe(T.Body("gc-status"))),
|
|
444
|
+
s3_statistics: S.optional(GetAdminDatastoreStatusResponseS3Statistics.pipe(T.Body("s3-statistics"))),
|
|
445
|
+
total: S.Number,
|
|
446
|
+
used: S.Number,
|
|
447
|
+
})).annotate({
|
|
448
|
+
identifier: "GetAdminDatastoreStatusResponse",
|
|
449
|
+
});
|
|
450
|
+
export const GetAdminGcRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
451
|
+
store: S.String.pipe(T.Label()),
|
|
452
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/gc/{store}", code: 200 }))).annotate({
|
|
453
|
+
identifier: "GetAdminGcRequest",
|
|
454
|
+
});
|
|
455
|
+
export const GetAdminGcResponseBodyItemCacheStats = GetAdminDatastoreGcResponseCacheStats;
|
|
456
|
+
export const GetAdminGcResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
457
|
+
cache_stats: S.optional(GetAdminDatastoreGcResponseCacheStats.pipe(T.Body("cache-stats"))),
|
|
458
|
+
disk_bytes: S.optional(S.Number.pipe(T.Body("disk-bytes"))),
|
|
459
|
+
disk_chunks: S.optional(S.Number.pipe(T.Body("disk-chunks"))),
|
|
460
|
+
duration: S.optional(S.Number),
|
|
461
|
+
index_data_bytes: S.optional(S.Number.pipe(T.Body("index-data-bytes"))),
|
|
462
|
+
index_file_count: S.optional(S.Number.pipe(T.Body("index-file-count"))),
|
|
463
|
+
last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
|
|
464
|
+
last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
|
|
465
|
+
next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
|
|
466
|
+
pending_bytes: S.optional(S.Number.pipe(T.Body("pending-bytes"))),
|
|
467
|
+
pending_chunks: S.optional(S.Number.pipe(T.Body("pending-chunks"))),
|
|
468
|
+
removed_bad: S.optional(S.Number.pipe(T.Body("removed-bad"))),
|
|
469
|
+
removed_bytes: S.optional(S.Number.pipe(T.Body("removed-bytes"))),
|
|
470
|
+
removed_chunks: S.optional(S.Number.pipe(T.Body("removed-chunks"))),
|
|
471
|
+
schedule: S.optional(S.String),
|
|
472
|
+
still_bad: S.optional(S.Number.pipe(T.Body("still-bad"))),
|
|
473
|
+
store: S.String,
|
|
474
|
+
upid: S.optional(S.String),
|
|
475
|
+
})).annotate({
|
|
476
|
+
identifier: "GetAdminGcResponseBodyItem",
|
|
477
|
+
});
|
|
478
|
+
export const GetAdminGcResponseBodyList = /*@__PURE__*/ S.Array(GetAdminGcResponseBodyItem);
|
|
479
|
+
export const GetAdminGcResponse = /*@__PURE__*/ S.suspend(() => GetAdminGcResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
480
|
+
identifier: "GetAdminGcResponse",
|
|
481
|
+
});
|
|
482
|
+
export const GetAdminPruneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
483
|
+
id: S.String.pipe(T.Label()),
|
|
484
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/prune/{id}", code: 200 }))).annotate({
|
|
485
|
+
identifier: "GetAdminPruneRequest",
|
|
486
|
+
});
|
|
487
|
+
export const GetAdminPruneResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
488
|
+
identifier: "GetAdminPruneResponse",
|
|
489
|
+
});
|
|
490
|
+
export const GetAdminS3Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
491
|
+
s3_endpoint_id: S.String.pipe(T.Label()),
|
|
492
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/s3/{s3-endpoint-id}", code: 200 }))).annotate({
|
|
493
|
+
identifier: "GetAdminS3Request",
|
|
494
|
+
});
|
|
495
|
+
export const GetAdminS3Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
496
|
+
identifier: "GetAdminS3Response",
|
|
497
|
+
});
|
|
498
|
+
export const GetAdminSyncRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
499
|
+
id: S.String.pipe(T.Label()),
|
|
500
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/sync/{id}", code: 200 }))).annotate({
|
|
501
|
+
identifier: "GetAdminSyncRequest",
|
|
502
|
+
});
|
|
503
|
+
export const GetAdminSyncResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
504
|
+
identifier: "GetAdminSyncResponse",
|
|
505
|
+
});
|
|
506
|
+
export const GetAdminVerifyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
507
|
+
id: S.String.pipe(T.Label()),
|
|
508
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/verify/{id}", code: 200 }))).annotate({
|
|
509
|
+
identifier: "GetAdminVerifyRequest",
|
|
510
|
+
});
|
|
511
|
+
export const GetAdminVerifyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
512
|
+
identifier: "GetAdminVerifyResponse",
|
|
513
|
+
});
|
|
514
|
+
export const ListAdminDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/admin/datastore", code: 200 }))).annotate({
|
|
515
|
+
identifier: "ListAdminDatastoreRequest",
|
|
516
|
+
});
|
|
517
|
+
export const ListAdminDatastoreResponseBodyItemBackendType = S.String;
|
|
518
|
+
export const ListAdminDatastoreResponseBodyItemMountStatus = S.String;
|
|
519
|
+
export const ListAdminDatastoreResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
520
|
+
backend_type: S.optional(ListAdminDatastoreResponseBodyItemBackendType.pipe(T.Body("backend-type"))),
|
|
521
|
+
comment: S.optional(S.String),
|
|
522
|
+
maintenance: S.optional(S.String),
|
|
523
|
+
mount_status: S.optional(ListAdminDatastoreResponseBodyItemMountStatus.pipe(T.Body("mount-status"))),
|
|
524
|
+
store: S.String,
|
|
525
|
+
})).annotate({
|
|
526
|
+
identifier: "ListAdminDatastoreResponseBodyItem",
|
|
527
|
+
});
|
|
528
|
+
export const ListAdminDatastoreResponseBodyList = /*@__PURE__*/ S.Array(ListAdminDatastoreResponseBodyItem);
|
|
529
|
+
export const ListAdminDatastoreResponse = /*@__PURE__*/ S.suspend(() => ListAdminDatastoreResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
530
|
+
identifier: "ListAdminDatastoreResponse",
|
|
531
|
+
});
|
|
532
|
+
export const ListAdminDatastoreFilesRequestBackupType = S.String;
|
|
533
|
+
export const ListAdminDatastoreFilesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
534
|
+
store: S.String.pipe(T.Label()),
|
|
535
|
+
backup_id: S.String.pipe(T.Query("backup-id")),
|
|
536
|
+
backup_time: S.String.pipe(T.Query("backup-time")),
|
|
537
|
+
backup_type: ListAdminDatastoreFilesRequestBackupType.pipe(T.Query("backup-type")),
|
|
538
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
539
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/datastore/{store}/files", code: 200 }))).annotate({
|
|
540
|
+
identifier: "ListAdminDatastoreFilesRequest",
|
|
541
|
+
});
|
|
542
|
+
export const ListAdminDatastoreFilesResponseBodyItemCryptMode = S.String;
|
|
543
|
+
export const ListAdminDatastoreFilesResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
544
|
+
crypt_mode: S.optional(ListAdminDatastoreFilesResponseBodyItemCryptMode.pipe(T.Body("crypt-mode"))),
|
|
545
|
+
filename: S.String,
|
|
546
|
+
size: S.optional(S.Number),
|
|
547
|
+
})).annotate({
|
|
548
|
+
identifier: "ListAdminDatastoreFilesResponseBodyItem",
|
|
549
|
+
});
|
|
550
|
+
export const ListAdminDatastoreFilesResponseBodyList = /*@__PURE__*/ S.Array(ListAdminDatastoreFilesResponseBodyItem);
|
|
551
|
+
export const ListAdminDatastoreFilesResponse = /*@__PURE__*/ S.suspend(() => ListAdminDatastoreFilesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
552
|
+
identifier: "ListAdminDatastoreFilesResponse",
|
|
553
|
+
});
|
|
554
|
+
export const ListAdminDatastoreGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
555
|
+
store: S.String.pipe(T.Label()),
|
|
556
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
557
|
+
}).pipe(T.Http({
|
|
558
|
+
method: "GET",
|
|
559
|
+
uri: "/admin/datastore/{store}/groups",
|
|
560
|
+
code: 200,
|
|
561
|
+
}))).annotate({
|
|
562
|
+
identifier: "ListAdminDatastoreGroupsRequest",
|
|
563
|
+
});
|
|
564
|
+
export const ListAdminDatastoreGroupsResponseBodyItemBackupType = S.String;
|
|
565
|
+
export const ListAdminDatastoreGroupsResponseBodyItemFilesList =
|
|
566
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
567
|
+
export const ListAdminDatastoreGroupsResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
568
|
+
backup_count: S.optional(S.Number.pipe(T.Body("backup-count"))),
|
|
569
|
+
backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
|
|
570
|
+
backup_type: S.optional(ListAdminDatastoreGroupsResponseBodyItemBackupType.pipe(T.Body("backup-type"))),
|
|
571
|
+
comment: S.optional(S.String),
|
|
572
|
+
files: ListAdminDatastoreGroupsResponseBodyItemFilesList,
|
|
573
|
+
last_backup: S.optional(S.Number.pipe(T.Body("last-backup"))),
|
|
574
|
+
owner: S.optional(S.String),
|
|
575
|
+
})).annotate({
|
|
576
|
+
identifier: "ListAdminDatastoreGroupsResponseBodyItem",
|
|
577
|
+
});
|
|
578
|
+
export const ListAdminDatastoreGroupsResponseBodyList = /*@__PURE__*/ S.Array(ListAdminDatastoreGroupsResponseBodyItem);
|
|
579
|
+
export const ListAdminDatastoreGroupsResponse = /*@__PURE__*/ S.suspend(() => ListAdminDatastoreGroupsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
580
|
+
identifier: "ListAdminDatastoreGroupsResponse",
|
|
581
|
+
});
|
|
582
|
+
export const ListAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
583
|
+
store: S.String.pipe(T.Label()),
|
|
584
|
+
max_depth: S.optional(S.String.pipe(T.Query("max-depth"))),
|
|
585
|
+
parent: S.optional(S.String.pipe(T.Query())),
|
|
586
|
+
}).pipe(T.Http({
|
|
587
|
+
method: "GET",
|
|
588
|
+
uri: "/admin/datastore/{store}/namespace",
|
|
589
|
+
code: 200,
|
|
590
|
+
}))).annotate({
|
|
591
|
+
identifier: "ListAdminDatastoreNamespaceRequest",
|
|
592
|
+
});
|
|
593
|
+
export const ListAdminDatastoreNamespaceResponseBodyItem =
|
|
594
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
595
|
+
comment: S.optional(S.String),
|
|
596
|
+
ns: S.String,
|
|
597
|
+
})).annotate({
|
|
598
|
+
identifier: "ListAdminDatastoreNamespaceResponseBodyItem",
|
|
599
|
+
});
|
|
600
|
+
export const ListAdminDatastoreNamespaceResponseBodyList =
|
|
601
|
+
/*@__PURE__*/ S.Array(ListAdminDatastoreNamespaceResponseBodyItem);
|
|
602
|
+
export const ListAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(() => ListAdminDatastoreNamespaceResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
603
|
+
identifier: "ListAdminDatastoreNamespaceResponse",
|
|
604
|
+
});
|
|
605
|
+
export const ListAdminDatastoreSnapshotsRequestBackupType = S.String;
|
|
606
|
+
export const ListAdminDatastoreSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
607
|
+
store: S.String.pipe(T.Label()),
|
|
608
|
+
backup_id: S.optional(S.String.pipe(T.Query("backup-id"))),
|
|
609
|
+
backup_type: S.optional(ListAdminDatastoreSnapshotsRequestBackupType.pipe(T.Query("backup-type"))),
|
|
610
|
+
ns: S.optional(S.String.pipe(T.Query())),
|
|
611
|
+
}).pipe(T.Http({
|
|
612
|
+
method: "GET",
|
|
613
|
+
uri: "/admin/datastore/{store}/snapshots",
|
|
614
|
+
code: 200,
|
|
615
|
+
}))).annotate({
|
|
616
|
+
identifier: "ListAdminDatastoreSnapshotsRequest",
|
|
617
|
+
});
|
|
618
|
+
export const ListAdminDatastoreSnapshotsResponseBodyItemBackupType = S.String;
|
|
619
|
+
export const ListAdminDatastoreSnapshotsResponseBodyItemFilesList =
|
|
620
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
621
|
+
export const ListAdminDatastoreSnapshotsResponseBodyItemVerificationState = S.String;
|
|
622
|
+
export const ListAdminDatastoreSnapshotsResponseBodyItemVerification =
|
|
623
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
624
|
+
state: ListAdminDatastoreSnapshotsResponseBodyItemVerificationState,
|
|
625
|
+
upid: S.String,
|
|
626
|
+
})).annotate({
|
|
627
|
+
identifier: "ListAdminDatastoreSnapshotsResponseBodyItemVerification",
|
|
628
|
+
});
|
|
629
|
+
export const ListAdminDatastoreSnapshotsResponseBodyItem =
|
|
630
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
631
|
+
backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
|
|
632
|
+
backup_time: S.optional(S.Number.pipe(T.Body("backup-time"))),
|
|
633
|
+
backup_type: S.optional(ListAdminDatastoreSnapshotsResponseBodyItemBackupType.pipe(T.Body("backup-type"))),
|
|
634
|
+
comment: S.optional(S.String),
|
|
635
|
+
files: ListAdminDatastoreSnapshotsResponseBodyItemFilesList,
|
|
636
|
+
fingerprint: S.optional(S.String),
|
|
637
|
+
owner: S.optional(S.String),
|
|
638
|
+
protected: S.Unknown,
|
|
639
|
+
size: S.optional(S.Number),
|
|
640
|
+
verification: S.optional(ListAdminDatastoreSnapshotsResponseBodyItemVerification),
|
|
641
|
+
})).annotate({
|
|
642
|
+
identifier: "ListAdminDatastoreSnapshotsResponseBodyItem",
|
|
643
|
+
});
|
|
644
|
+
export const ListAdminDatastoreSnapshotsResponseBodyList =
|
|
645
|
+
/*@__PURE__*/ S.Array(ListAdminDatastoreSnapshotsResponseBodyItem);
|
|
646
|
+
export const ListAdminDatastoreSnapshotsResponse = /*@__PURE__*/ S.suspend(() => ListAdminDatastoreSnapshotsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
647
|
+
identifier: "ListAdminDatastoreSnapshotsResponse",
|
|
648
|
+
});
|
|
649
|
+
export const ListAdminGcRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
650
|
+
store: S.optional(S.String.pipe(T.Query())),
|
|
651
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/gc", code: 200 }))).annotate({
|
|
652
|
+
identifier: "ListAdminGcRequest",
|
|
653
|
+
});
|
|
654
|
+
export const ListAdminGcResponseBodyItemCacheStats = GetAdminDatastoreGcResponseCacheStats;
|
|
655
|
+
export const ListAdminGcResponseBodyItem = GetAdminGcResponseBodyItem;
|
|
656
|
+
export const ListAdminGcResponseBodyList = /*@__PURE__*/ S.Array(GetAdminGcResponseBodyItem);
|
|
657
|
+
export const ListAdminGcResponse = /*@__PURE__*/ S.suspend(() => ListAdminGcResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
658
|
+
identifier: "ListAdminGcResponse",
|
|
659
|
+
});
|
|
660
|
+
export const ListAdminMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/admin/metrics", code: 200 }))).annotate({
|
|
661
|
+
identifier: "ListAdminMetricsRequest",
|
|
662
|
+
});
|
|
663
|
+
export const ListAdminMetricsResponseBodyItemType = S.String;
|
|
664
|
+
export const ListAdminMetricsResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
665
|
+
comment: S.optional(S.String),
|
|
666
|
+
enable: S.optional(S.Unknown),
|
|
667
|
+
name: S.String,
|
|
668
|
+
server: S.String,
|
|
669
|
+
type: ListAdminMetricsResponseBodyItemType,
|
|
670
|
+
})).annotate({
|
|
671
|
+
identifier: "ListAdminMetricsResponseBodyItem",
|
|
672
|
+
});
|
|
673
|
+
export const ListAdminMetricsResponseBodyList = /*@__PURE__*/ S.Array(ListAdminMetricsResponseBodyItem);
|
|
674
|
+
export const ListAdminMetricsResponse = /*@__PURE__*/ S.suspend(() => ListAdminMetricsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
675
|
+
identifier: "ListAdminMetricsResponse",
|
|
676
|
+
});
|
|
677
|
+
export const ListAdminPruneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
678
|
+
store: S.optional(S.String.pipe(T.Query())),
|
|
679
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/prune", code: 200 }))).annotate({
|
|
680
|
+
identifier: "ListAdminPruneRequest",
|
|
681
|
+
});
|
|
682
|
+
export const ListAdminPruneResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
683
|
+
comment: S.optional(S.String),
|
|
684
|
+
disable: S.optional(S.Unknown),
|
|
685
|
+
id: S.String,
|
|
686
|
+
keep_daily: S.optional(S.Number.pipe(T.Body("keep-daily"))),
|
|
687
|
+
keep_hourly: S.optional(S.Number.pipe(T.Body("keep-hourly"))),
|
|
688
|
+
keep_last: S.optional(S.Number.pipe(T.Body("keep-last"))),
|
|
689
|
+
keep_monthly: S.optional(S.Number.pipe(T.Body("keep-monthly"))),
|
|
690
|
+
keep_weekly: S.optional(S.Number.pipe(T.Body("keep-weekly"))),
|
|
691
|
+
keep_yearly: S.optional(S.Number.pipe(T.Body("keep-yearly"))),
|
|
692
|
+
last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
|
|
693
|
+
last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
|
|
694
|
+
last_run_upid: S.optional(S.String.pipe(T.Body("last-run-upid"))),
|
|
695
|
+
max_depth: S.optional(S.Number.pipe(T.Body("max-depth"))),
|
|
696
|
+
next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
|
|
697
|
+
ns: S.optional(S.String),
|
|
698
|
+
schedule: S.String,
|
|
699
|
+
store: S.String,
|
|
700
|
+
})).annotate({
|
|
701
|
+
identifier: "ListAdminPruneResponseBodyItem",
|
|
702
|
+
});
|
|
703
|
+
export const ListAdminPruneResponseBodyList = /*@__PURE__*/ S.Array(ListAdminPruneResponseBodyItem);
|
|
704
|
+
export const ListAdminPruneResponse = /*@__PURE__*/ S.suspend(() => ListAdminPruneResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
705
|
+
identifier: "ListAdminPruneResponse",
|
|
706
|
+
});
|
|
707
|
+
export const ListAdminSyncRequestSyncDirection = S.String;
|
|
708
|
+
export const ListAdminSyncRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
709
|
+
store: S.optional(S.String.pipe(T.Query())),
|
|
710
|
+
sync_direction: S.optional(ListAdminSyncRequestSyncDirection.pipe(T.Query("sync-direction"))),
|
|
711
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/sync", code: 200 }))).annotate({
|
|
712
|
+
identifier: "ListAdminSyncRequest",
|
|
713
|
+
});
|
|
714
|
+
export const ListAdminSyncResponseBodyItemAssociatedKeyList =
|
|
715
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
716
|
+
export const ListAdminSyncResponseBodyItemGroupFilterList =
|
|
717
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
718
|
+
export const ListAdminSyncResponseBodyItemSyncDirection = S.String;
|
|
719
|
+
export const ListAdminSyncResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
720
|
+
active_encryption_key: S.optional(S.String.pipe(T.Body("active-encryption-key"))),
|
|
721
|
+
associated_key: S.optional(ListAdminSyncResponseBodyItemAssociatedKeyList.pipe(T.Body("associated-key"))),
|
|
722
|
+
burst_in: S.optional(S.String.pipe(T.Body("burst-in"))),
|
|
723
|
+
burst_out: S.optional(S.String.pipe(T.Body("burst-out"))),
|
|
724
|
+
comment: S.optional(S.String),
|
|
725
|
+
encrypted_only: S.optional(S.Unknown.pipe(T.Body("encrypted-only"))),
|
|
726
|
+
group_filter: S.optional(ListAdminSyncResponseBodyItemGroupFilterList.pipe(T.Body("group-filter"))),
|
|
727
|
+
id: S.String,
|
|
728
|
+
last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
|
|
729
|
+
last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
|
|
730
|
+
last_run_upid: S.optional(S.String.pipe(T.Body("last-run-upid"))),
|
|
731
|
+
max_depth: S.optional(S.Number.pipe(T.Body("max-depth"))),
|
|
732
|
+
next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
|
|
733
|
+
ns: S.optional(S.String),
|
|
734
|
+
owner: S.optional(S.String),
|
|
735
|
+
rate_in: S.optional(S.String.pipe(T.Body("rate-in"))),
|
|
736
|
+
rate_out: S.optional(S.String.pipe(T.Body("rate-out"))),
|
|
737
|
+
remote: S.optional(S.String),
|
|
738
|
+
remote_ns: S.optional(S.String.pipe(T.Body("remote-ns"))),
|
|
739
|
+
remote_store: S.optional(S.String.pipe(T.Body("remote-store"))),
|
|
740
|
+
remove_vanished: S.optional(S.Unknown.pipe(T.Body("remove-vanished"))),
|
|
741
|
+
resync_corrupt: S.optional(S.Unknown.pipe(T.Body("resync-corrupt"))),
|
|
742
|
+
run_on_mount: S.optional(S.Unknown.pipe(T.Body("run-on-mount"))),
|
|
743
|
+
schedule: S.optional(S.String),
|
|
744
|
+
store: S.String,
|
|
745
|
+
sync_direction: S.optional(ListAdminSyncResponseBodyItemSyncDirection.pipe(T.Body("sync-direction"))),
|
|
746
|
+
transfer_last: S.optional(S.Number.pipe(T.Body("transfer-last"))),
|
|
747
|
+
unmount_on_done: S.optional(S.Unknown.pipe(T.Body("unmount-on-done"))),
|
|
748
|
+
verified_only: S.optional(S.Unknown.pipe(T.Body("verified-only"))),
|
|
749
|
+
worker_threads: S.optional(S.Number.pipe(T.Body("worker-threads"))),
|
|
750
|
+
})).annotate({
|
|
751
|
+
identifier: "ListAdminSyncResponseBodyItem",
|
|
752
|
+
});
|
|
753
|
+
export const ListAdminSyncResponseBodyList = /*@__PURE__*/ S.Array(ListAdminSyncResponseBodyItem);
|
|
754
|
+
export const ListAdminSyncResponse = /*@__PURE__*/ S.suspend(() => ListAdminSyncResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
755
|
+
identifier: "ListAdminSyncResponse",
|
|
756
|
+
});
|
|
757
|
+
export const ListAdminTrafficControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/admin/traffic-control", code: 200 }))).annotate({
|
|
758
|
+
identifier: "ListAdminTrafficControlRequest",
|
|
759
|
+
});
|
|
760
|
+
export const ListAdminTrafficControlResponseBodyItemNetworkList =
|
|
761
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
762
|
+
export const ListAdminTrafficControlResponseBodyItemTimeframeList =
|
|
763
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
764
|
+
export const ListAdminTrafficControlResponseBodyItemUsersList =
|
|
765
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
766
|
+
export const ListAdminTrafficControlResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
767
|
+
burst_in: S.optional(S.String.pipe(T.Body("burst-in"))),
|
|
768
|
+
burst_out: S.optional(S.String.pipe(T.Body("burst-out"))),
|
|
769
|
+
comment: S.optional(S.String),
|
|
770
|
+
cur_rate_in: S.optional(S.Number.pipe(T.Body("cur-rate-in"))),
|
|
771
|
+
cur_rate_out: S.optional(S.Number.pipe(T.Body("cur-rate-out"))),
|
|
772
|
+
name: S.String,
|
|
773
|
+
network: ListAdminTrafficControlResponseBodyItemNetworkList,
|
|
774
|
+
rate_in: S.optional(S.String.pipe(T.Body("rate-in"))),
|
|
775
|
+
rate_out: S.optional(S.String.pipe(T.Body("rate-out"))),
|
|
776
|
+
timeframe: S.optional(ListAdminTrafficControlResponseBodyItemTimeframeList),
|
|
777
|
+
users: S.optional(ListAdminTrafficControlResponseBodyItemUsersList),
|
|
778
|
+
})).annotate({
|
|
779
|
+
identifier: "ListAdminTrafficControlResponseBodyItem",
|
|
780
|
+
});
|
|
781
|
+
export const ListAdminTrafficControlResponseBodyList = /*@__PURE__*/ S.Array(ListAdminTrafficControlResponseBodyItem);
|
|
782
|
+
export const ListAdminTrafficControlResponse = /*@__PURE__*/ S.suspend(() => ListAdminTrafficControlResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
783
|
+
identifier: "ListAdminTrafficControlResponse",
|
|
784
|
+
});
|
|
785
|
+
export const ListAdminVerifyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
786
|
+
store: S.optional(S.String.pipe(T.Query())),
|
|
787
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/verify", code: 200 }))).annotate({
|
|
788
|
+
identifier: "ListAdminVerifyRequest",
|
|
789
|
+
});
|
|
790
|
+
export const ListAdminVerifyResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
791
|
+
comment: S.optional(S.String),
|
|
792
|
+
id: S.String,
|
|
793
|
+
ignore_verified: S.optional(S.Unknown.pipe(T.Body("ignore-verified"))),
|
|
794
|
+
last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
|
|
795
|
+
last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
|
|
796
|
+
last_run_upid: S.optional(S.String.pipe(T.Body("last-run-upid"))),
|
|
797
|
+
max_depth: S.optional(S.Number.pipe(T.Body("max-depth"))),
|
|
798
|
+
next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
|
|
799
|
+
ns: S.optional(S.String),
|
|
800
|
+
outdated_after: S.optional(S.Number.pipe(T.Body("outdated-after"))),
|
|
801
|
+
read_threads: S.optional(S.Number.pipe(T.Body("read-threads"))),
|
|
802
|
+
schedule: S.optional(S.String),
|
|
803
|
+
store: S.String,
|
|
804
|
+
verify_threads: S.optional(S.Number.pipe(T.Body("verify-threads"))),
|
|
805
|
+
})).annotate({
|
|
806
|
+
identifier: "ListAdminVerifyResponseBodyItem",
|
|
807
|
+
});
|
|
808
|
+
export const ListAdminVerifyResponseBodyList = /*@__PURE__*/ S.Array(ListAdminVerifyResponseBodyItem);
|
|
809
|
+
export const ListAdminVerifyResponse = /*@__PURE__*/ S.suspend(() => ListAdminVerifyResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
810
|
+
identifier: "ListAdminVerifyResponse",
|
|
811
|
+
});
|
|
812
|
+
export const MoveAdminDatastoreGroupRequestBackupType = S.String;
|
|
813
|
+
export const MoveAdminDatastoreGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
814
|
+
store: S.String.pipe(T.Label()),
|
|
815
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
816
|
+
backup_type: MoveAdminDatastoreGroupRequestBackupType.pipe(T.Body("backup-type")),
|
|
817
|
+
merge_group: S.optional(S.String.pipe(T.Body("merge-group"))),
|
|
818
|
+
ns: S.optional(S.String),
|
|
819
|
+
target_ns: S.optional(S.String.pipe(T.Body("target-ns"))),
|
|
820
|
+
}).pipe(T.Http({
|
|
821
|
+
method: "POST",
|
|
822
|
+
uri: "/admin/datastore/{store}/move-group",
|
|
823
|
+
code: 200,
|
|
824
|
+
contentType: "form-urlencoded",
|
|
825
|
+
}))).annotate({
|
|
826
|
+
identifier: "MoveAdminDatastoreGroupRequest",
|
|
827
|
+
});
|
|
828
|
+
export const MoveAdminDatastoreGroupResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
829
|
+
identifier: "MoveAdminDatastoreGroupResponse",
|
|
830
|
+
});
|
|
831
|
+
export const MoveAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
832
|
+
store: S.String.pipe(T.Label()),
|
|
833
|
+
delete_source: S.optional(S.String.pipe(T.Body("delete-source"))),
|
|
834
|
+
max_depth: S.optional(S.String.pipe(T.Body("max-depth"))),
|
|
835
|
+
merge_groups: S.optional(S.String.pipe(T.Body("merge-groups"))),
|
|
836
|
+
ns: S.String,
|
|
837
|
+
target_ns: S.String.pipe(T.Body("target-ns")),
|
|
838
|
+
}).pipe(T.Http({
|
|
839
|
+
method: "POST",
|
|
840
|
+
uri: "/admin/datastore/{store}/move-namespace",
|
|
841
|
+
code: 200,
|
|
842
|
+
contentType: "form-urlencoded",
|
|
843
|
+
}))).annotate({
|
|
844
|
+
identifier: "MoveAdminDatastoreNamespaceRequest",
|
|
845
|
+
});
|
|
846
|
+
export const MoveAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
847
|
+
identifier: "MoveAdminDatastoreNamespaceResponse",
|
|
848
|
+
});
|
|
849
|
+
export const PutAdminDatastoreGroupNotesRequestBackupType = S.String;
|
|
850
|
+
export const PutAdminDatastoreGroupNotesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
851
|
+
store: S.String.pipe(T.Label()),
|
|
852
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
853
|
+
backup_type: PutAdminDatastoreGroupNotesRequestBackupType.pipe(T.Body("backup-type")),
|
|
854
|
+
notes: S.String,
|
|
855
|
+
ns: S.optional(S.String),
|
|
856
|
+
}).pipe(T.Http({
|
|
857
|
+
method: "PUT",
|
|
858
|
+
uri: "/admin/datastore/{store}/group-notes",
|
|
859
|
+
code: 200,
|
|
860
|
+
contentType: "form-urlencoded",
|
|
861
|
+
}))).annotate({
|
|
862
|
+
identifier: "PutAdminDatastoreGroupNotesRequest",
|
|
863
|
+
});
|
|
864
|
+
export const PutAdminDatastoreGroupNotesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
865
|
+
identifier: "PutAdminDatastoreGroupNotesResponse",
|
|
866
|
+
});
|
|
867
|
+
export const PutAdminDatastoreNotesRequestBackupType = S.String;
|
|
868
|
+
export const PutAdminDatastoreNotesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
869
|
+
store: S.String.pipe(T.Label()),
|
|
870
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
871
|
+
backup_time: S.String.pipe(T.Body("backup-time")),
|
|
872
|
+
backup_type: PutAdminDatastoreNotesRequestBackupType.pipe(T.Body("backup-type")),
|
|
873
|
+
notes: S.String,
|
|
874
|
+
ns: S.optional(S.String),
|
|
875
|
+
}).pipe(T.Http({
|
|
876
|
+
method: "PUT",
|
|
877
|
+
uri: "/admin/datastore/{store}/notes",
|
|
878
|
+
code: 200,
|
|
879
|
+
contentType: "form-urlencoded",
|
|
880
|
+
}))).annotate({
|
|
881
|
+
identifier: "PutAdminDatastoreNotesRequest",
|
|
882
|
+
});
|
|
883
|
+
export const PutAdminDatastoreNotesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
884
|
+
identifier: "PutAdminDatastoreNotesResponse",
|
|
885
|
+
});
|
|
886
|
+
export const PutAdminDatastoreProtectedRequestBackupType = S.String;
|
|
887
|
+
export const PutAdminDatastoreProtectedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
888
|
+
store: S.String.pipe(T.Label()),
|
|
889
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
890
|
+
backup_time: S.String.pipe(T.Body("backup-time")),
|
|
891
|
+
backup_type: PutAdminDatastoreProtectedRequestBackupType.pipe(T.Body("backup-type")),
|
|
892
|
+
ns: S.optional(S.String),
|
|
893
|
+
protected: S.String,
|
|
894
|
+
}).pipe(T.Http({
|
|
895
|
+
method: "PUT",
|
|
896
|
+
uri: "/admin/datastore/{store}/protected",
|
|
897
|
+
code: 200,
|
|
898
|
+
contentType: "form-urlencoded",
|
|
899
|
+
}))).annotate({
|
|
900
|
+
identifier: "PutAdminDatastoreProtectedRequest",
|
|
901
|
+
});
|
|
902
|
+
export const PutAdminDatastoreProtectedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
903
|
+
identifier: "PutAdminDatastoreProtectedResponse",
|
|
904
|
+
});
|
|
905
|
+
export const PutAdminDatastoreS3RefreshRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
906
|
+
store: S.String.pipe(T.Label()),
|
|
907
|
+
}).pipe(T.Http({
|
|
908
|
+
method: "PUT",
|
|
909
|
+
uri: "/admin/datastore/{store}/s3-refresh",
|
|
910
|
+
code: 200,
|
|
911
|
+
}))).annotate({
|
|
912
|
+
identifier: "PutAdminDatastoreS3RefreshRequest",
|
|
913
|
+
});
|
|
914
|
+
export const PutAdminDatastoreS3RefreshResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
915
|
+
identifier: "PutAdminDatastoreS3RefreshResponse",
|
|
916
|
+
});
|
|
917
|
+
export const PutAdminS3CheckRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
918
|
+
s3_endpoint_id: S.String.pipe(T.Label()),
|
|
919
|
+
bucket: S.String,
|
|
920
|
+
store_prefix: S.optional(S.String.pipe(T.Body("store-prefix"))),
|
|
921
|
+
}).pipe(T.Http({
|
|
922
|
+
method: "PUT",
|
|
923
|
+
uri: "/admin/s3/{s3-endpoint-id}/check",
|
|
924
|
+
code: 200,
|
|
925
|
+
contentType: "form-urlencoded",
|
|
926
|
+
}))).annotate({
|
|
927
|
+
identifier: "PutAdminS3CheckRequest",
|
|
928
|
+
});
|
|
929
|
+
export const PutAdminS3CheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
930
|
+
identifier: "PutAdminS3CheckResponse",
|
|
931
|
+
});
|
|
932
|
+
export const PutAdminS3ResetCountersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
933
|
+
s3_endpoint_id: S.String.pipe(T.Label()),
|
|
934
|
+
bucket: S.String,
|
|
935
|
+
store_prefix: S.optional(S.String.pipe(T.Body("store-prefix"))),
|
|
936
|
+
}).pipe(T.Http({
|
|
937
|
+
method: "PUT",
|
|
938
|
+
uri: "/admin/s3/{s3-endpoint-id}/reset-counters",
|
|
939
|
+
code: 200,
|
|
940
|
+
contentType: "form-urlencoded",
|
|
941
|
+
}))).annotate({
|
|
942
|
+
identifier: "PutAdminS3ResetCountersRequest",
|
|
943
|
+
});
|
|
944
|
+
export const PutAdminS3ResetCountersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
945
|
+
identifier: "PutAdminS3ResetCountersResponse",
|
|
946
|
+
});
|
|
947
|
+
export const RunAdminPruneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
948
|
+
id: S.String.pipe(T.Label()),
|
|
949
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/prune/{id}/run", code: 200 }))).annotate({
|
|
950
|
+
identifier: "RunAdminPruneRequest",
|
|
951
|
+
});
|
|
952
|
+
export const RunAdminPruneResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
953
|
+
identifier: "RunAdminPruneResponse",
|
|
954
|
+
});
|
|
955
|
+
export const RunAdminSyncRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
956
|
+
id: S.String.pipe(T.Label()),
|
|
957
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/sync/{id}/run", code: 200 }))).annotate({
|
|
958
|
+
identifier: "RunAdminSyncRequest",
|
|
959
|
+
});
|
|
960
|
+
export const RunAdminSyncResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
961
|
+
identifier: "RunAdminSyncResponse",
|
|
962
|
+
});
|
|
963
|
+
export const UploadAdminDatastoreBackupLogRequestBackupType = S.String;
|
|
964
|
+
export const UploadAdminDatastoreBackupLogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
965
|
+
store: S.String.pipe(T.Label()),
|
|
966
|
+
backup_id: S.String.pipe(T.Body("backup-id")),
|
|
967
|
+
backup_time: S.String.pipe(T.Body("backup-time")),
|
|
968
|
+
backup_type: UploadAdminDatastoreBackupLogRequestBackupType.pipe(T.Body("backup-type")),
|
|
969
|
+
ns: S.optional(S.String),
|
|
970
|
+
}).pipe(T.Http({
|
|
971
|
+
method: "POST",
|
|
972
|
+
uri: "/admin/datastore/{store}/upload-backup-log",
|
|
973
|
+
code: 200,
|
|
974
|
+
contentType: "form-urlencoded",
|
|
975
|
+
}))).annotate({
|
|
976
|
+
identifier: "UploadAdminDatastoreBackupLogRequest",
|
|
977
|
+
});
|
|
978
|
+
export const UploadAdminDatastoreBackupLogResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
979
|
+
identifier: "UploadAdminDatastoreBackupLogResponse",
|
|
980
|
+
});
|
|
981
|
+
export const VerifyAdminDatastoreRequestBackupType = S.String;
|
|
982
|
+
export const VerifyAdminDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
983
|
+
store: S.String.pipe(T.Label()),
|
|
984
|
+
backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
|
|
985
|
+
backup_time: S.optional(S.String.pipe(T.Body("backup-time"))),
|
|
986
|
+
backup_type: S.optional(VerifyAdminDatastoreRequestBackupType.pipe(T.Body("backup-type"))),
|
|
987
|
+
ignore_verified: S.optional(S.String.pipe(T.Body("ignore-verified"))),
|
|
988
|
+
max_depth: S.optional(S.String.pipe(T.Body("max-depth"))),
|
|
989
|
+
ns: S.optional(S.String),
|
|
990
|
+
outdated_after: S.optional(S.String.pipe(T.Body("outdated-after"))),
|
|
991
|
+
read_threads: S.optional(S.String.pipe(T.Body("read-threads"))),
|
|
992
|
+
verify_threads: S.optional(S.String.pipe(T.Body("verify-threads"))),
|
|
993
|
+
}).pipe(T.Http({
|
|
994
|
+
method: "POST",
|
|
995
|
+
uri: "/admin/datastore/{store}/verify",
|
|
996
|
+
code: 200,
|
|
997
|
+
contentType: "form-urlencoded",
|
|
998
|
+
}))).annotate({
|
|
999
|
+
identifier: "VerifyAdminDatastoreRequest",
|
|
1000
|
+
});
|
|
1001
|
+
export const VerifyAdminDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
1002
|
+
identifier: "VerifyAdminDatastoreResponse",
|
|
1003
|
+
});
|
|
1004
|
+
export const VerifyRunAdminRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1005
|
+
id: S.String.pipe(T.Label()),
|
|
1006
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/verify/{id}/run", code: 200 }))).annotate({
|
|
1007
|
+
identifier: "VerifyRunAdminRequest",
|
|
1008
|
+
});
|
|
1009
|
+
export const VerifyRunAdminResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1010
|
+
identifier: "VerifyRunAdminResponse",
|
|
1011
|
+
});
|
|
1012
|
+
/** Change owner of a backup group */
|
|
1013
|
+
export const createAdminDatastoreChangeOwner = /*@__PURE__*/ API.make(() => ({
|
|
1014
|
+
input: CreateAdminDatastoreChangeOwnerRequest,
|
|
1015
|
+
output: CreateAdminDatastoreChangeOwnerResponse,
|
|
1016
|
+
errors: [],
|
|
1017
|
+
protocol: ProxmoxBackupProtocol,
|
|
1018
|
+
retry: Retry.Retry,
|
|
1019
|
+
}));
|
|
1020
|
+
/** Start garbage collection. */
|
|
1021
|
+
export const createAdminDatastoreGc = /*@__PURE__*/ API.make(() => ({
|
|
1022
|
+
input: CreateAdminDatastoreGcRequest,
|
|
1023
|
+
output: CreateAdminDatastoreGcResponse,
|
|
1024
|
+
errors: [],
|
|
1025
|
+
protocol: ProxmoxBackupProtocol,
|
|
1026
|
+
retry: Retry.Retry,
|
|
1027
|
+
}));
|
|
1028
|
+
/** Mount removable datastore. */
|
|
1029
|
+
export const createAdminDatastoreMount = /*@__PURE__*/ API.make(() => ({
|
|
1030
|
+
input: CreateAdminDatastoreMountRequest,
|
|
1031
|
+
output: CreateAdminDatastoreMountResponse,
|
|
1032
|
+
errors: [],
|
|
1033
|
+
protocol: ProxmoxBackupProtocol,
|
|
1034
|
+
retry: Retry.Retry,
|
|
1035
|
+
}));
|
|
1036
|
+
/** Create a new datastore namespace. */
|
|
1037
|
+
export const createAdminDatastoreNamespace = /*@__PURE__*/ API.make(() => ({
|
|
1038
|
+
input: CreateAdminDatastoreNamespaceRequest,
|
|
1039
|
+
output: CreateAdminDatastoreNamespaceResponse,
|
|
1040
|
+
errors: [],
|
|
1041
|
+
protocol: ProxmoxBackupProtocol,
|
|
1042
|
+
retry: Retry.Retry,
|
|
1043
|
+
}));
|
|
1044
|
+
/** Prune a group on the datastore */
|
|
1045
|
+
export const createAdminDatastorePrune = /*@__PURE__*/ API.make(() => ({
|
|
1046
|
+
input: CreateAdminDatastorePruneRequest,
|
|
1047
|
+
output: CreateAdminDatastorePruneResponse,
|
|
1048
|
+
errors: [],
|
|
1049
|
+
protocol: ProxmoxBackupProtocol,
|
|
1050
|
+
retry: Retry.Retry,
|
|
1051
|
+
}));
|
|
1052
|
+
/** Prune the datastore */
|
|
1053
|
+
export const createAdminDatastorePruneDatastore = /*@__PURE__*/ API.make(() => ({
|
|
1054
|
+
input: CreateAdminDatastorePruneDatastoreRequest,
|
|
1055
|
+
output: CreateAdminDatastorePruneDatastoreResponse,
|
|
1056
|
+
errors: [],
|
|
1057
|
+
protocol: ProxmoxBackupProtocol,
|
|
1058
|
+
retry: Retry.Retry,
|
|
1059
|
+
}));
|
|
1060
|
+
/** Unmount a removable device that is associated with the datastore */
|
|
1061
|
+
export const createAdminDatastoreUnmount = /*@__PURE__*/ API.make(() => ({
|
|
1062
|
+
input: CreateAdminDatastoreUnmountRequest,
|
|
1063
|
+
output: CreateAdminDatastoreUnmountResponse,
|
|
1064
|
+
errors: [],
|
|
1065
|
+
protocol: ProxmoxBackupProtocol,
|
|
1066
|
+
retry: Retry.Retry,
|
|
1067
|
+
}));
|
|
1068
|
+
/** Delete backup group including all snapshots. */
|
|
1069
|
+
export const deleteAdminDatastoreGroups = /*@__PURE__*/ API.make(() => ({
|
|
1070
|
+
input: DeleteAdminDatastoreGroupsRequest,
|
|
1071
|
+
output: DeleteAdminDatastoreGroupsResponse,
|
|
1072
|
+
errors: [],
|
|
1073
|
+
protocol: ProxmoxBackupProtocol,
|
|
1074
|
+
retry: Retry.Retry,
|
|
1075
|
+
}));
|
|
1076
|
+
/** Delete a backup namespace including all snapshots. */
|
|
1077
|
+
export const deleteAdminDatastoreNamespace = /*@__PURE__*/ API.make(() => ({
|
|
1078
|
+
input: DeleteAdminDatastoreNamespaceRequest,
|
|
1079
|
+
output: DeleteAdminDatastoreNamespaceResponse,
|
|
1080
|
+
errors: [],
|
|
1081
|
+
protocol: ProxmoxBackupProtocol,
|
|
1082
|
+
retry: Retry.Retry,
|
|
1083
|
+
}));
|
|
1084
|
+
/** Delete backup snapshot. */
|
|
1085
|
+
export const deleteAdminDatastoreSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
1086
|
+
input: DeleteAdminDatastoreSnapshotsRequest,
|
|
1087
|
+
output: DeleteAdminDatastoreSnapshotsResponse,
|
|
1088
|
+
errors: [],
|
|
1089
|
+
protocol: ProxmoxBackupProtocol,
|
|
1090
|
+
retry: Retry.Retry,
|
|
1091
|
+
}));
|
|
1092
|
+
/** Directory index. */
|
|
1093
|
+
export const getAdmin = /*@__PURE__*/ API.make(() => ({
|
|
1094
|
+
input: GetAdminRequest,
|
|
1095
|
+
output: GetAdminResponse,
|
|
1096
|
+
errors: [],
|
|
1097
|
+
protocol: ProxmoxBackupProtocol,
|
|
1098
|
+
retry: Retry.Retry,
|
|
1099
|
+
}));
|
|
1100
|
+
/** Directory index. */
|
|
1101
|
+
export const getAdminDatastore = /*@__PURE__*/ API.make(() => ({
|
|
1102
|
+
input: GetAdminDatastoreRequest,
|
|
1103
|
+
output: GetAdminDatastoreResponse,
|
|
1104
|
+
errors: [],
|
|
1105
|
+
protocol: ProxmoxBackupProtocol,
|
|
1106
|
+
retry: Retry.Retry,
|
|
1107
|
+
}));
|
|
1108
|
+
/** Read datastore stats */
|
|
1109
|
+
export const getAdminDatastoreActiveOperations = /*@__PURE__*/ API.make(() => ({
|
|
1110
|
+
input: GetAdminDatastoreActiveOperationsRequest,
|
|
1111
|
+
output: GetAdminDatastoreActiveOperationsResponse,
|
|
1112
|
+
errors: [],
|
|
1113
|
+
protocol: ProxmoxBackupProtocol,
|
|
1114
|
+
retry: Retry.Retry,
|
|
1115
|
+
}));
|
|
1116
|
+
/** Get the entries of the given path of the catalog */
|
|
1117
|
+
export const getAdminDatastoreCatalog = /*@__PURE__*/ API.make(() => ({
|
|
1118
|
+
input: GetAdminDatastoreCatalogRequest,
|
|
1119
|
+
output: GetAdminDatastoreCatalogResponse,
|
|
1120
|
+
errors: [],
|
|
1121
|
+
protocol: ProxmoxBackupProtocol,
|
|
1122
|
+
retry: Retry.Retry,
|
|
1123
|
+
}));
|
|
1124
|
+
/** Download single raw file from backup snapshot. */
|
|
1125
|
+
export const getAdminDatastoreDownload = /*@__PURE__*/ API.make(() => ({
|
|
1126
|
+
input: GetAdminDatastoreDownloadRequest,
|
|
1127
|
+
output: GetAdminDatastoreDownloadResponse,
|
|
1128
|
+
errors: [],
|
|
1129
|
+
protocol: ProxmoxBackupProtocol,
|
|
1130
|
+
retry: Retry.Retry,
|
|
1131
|
+
}));
|
|
1132
|
+
/** Download single decoded file from backup snapshot. Only works if it's not encrypted. */
|
|
1133
|
+
export const getAdminDatastoreDownloadDecoded = /*@__PURE__*/ API.make(() => ({
|
|
1134
|
+
input: GetAdminDatastoreDownloadDecodedRequest,
|
|
1135
|
+
output: GetAdminDatastoreDownloadDecodedResponse,
|
|
1136
|
+
errors: [],
|
|
1137
|
+
protocol: ProxmoxBackupProtocol,
|
|
1138
|
+
retry: Retry.Retry,
|
|
1139
|
+
}));
|
|
1140
|
+
/** Garbage collection status. */
|
|
1141
|
+
export const getAdminDatastoreGc = /*@__PURE__*/ API.make(() => ({
|
|
1142
|
+
input: GetAdminDatastoreGcRequest,
|
|
1143
|
+
output: GetAdminDatastoreGcResponse,
|
|
1144
|
+
errors: [],
|
|
1145
|
+
protocol: ProxmoxBackupProtocol,
|
|
1146
|
+
retry: Retry.Retry,
|
|
1147
|
+
}));
|
|
1148
|
+
/** Get "notes" for a backup group */
|
|
1149
|
+
export const getAdminDatastoreGroupNotes = /*@__PURE__*/ API.make(() => ({
|
|
1150
|
+
input: GetAdminDatastoreGroupNotesRequest,
|
|
1151
|
+
output: GetAdminDatastoreGroupNotesResponse,
|
|
1152
|
+
errors: [],
|
|
1153
|
+
protocol: ProxmoxBackupProtocol,
|
|
1154
|
+
retry: Retry.Retry,
|
|
1155
|
+
}));
|
|
1156
|
+
/** Get "notes" for a specific backup */
|
|
1157
|
+
export const getAdminDatastoreNotes = /*@__PURE__*/ API.make(() => ({
|
|
1158
|
+
input: GetAdminDatastoreNotesRequest,
|
|
1159
|
+
output: GetAdminDatastoreNotesResponse,
|
|
1160
|
+
errors: [],
|
|
1161
|
+
protocol: ProxmoxBackupProtocol,
|
|
1162
|
+
retry: Retry.Retry,
|
|
1163
|
+
}));
|
|
1164
|
+
/** Query protection for a specific backup */
|
|
1165
|
+
export const getAdminDatastoreProtected = /*@__PURE__*/ API.make(() => ({
|
|
1166
|
+
input: GetAdminDatastoreProtectedRequest,
|
|
1167
|
+
output: GetAdminDatastoreProtectedResponse,
|
|
1168
|
+
errors: [],
|
|
1169
|
+
protocol: ProxmoxBackupProtocol,
|
|
1170
|
+
retry: Retry.Retry,
|
|
1171
|
+
}));
|
|
1172
|
+
/** Download single file from pxar file of a backup snapshot. Only works if it's not encrypted. */
|
|
1173
|
+
export const getAdminDatastorePxarFileDownload = /*@__PURE__*/ API.make(() => ({
|
|
1174
|
+
input: GetAdminDatastorePxarFileDownloadRequest,
|
|
1175
|
+
output: GetAdminDatastorePxarFileDownloadResponse,
|
|
1176
|
+
errors: [],
|
|
1177
|
+
protocol: ProxmoxBackupProtocol,
|
|
1178
|
+
retry: Retry.Retry,
|
|
1179
|
+
}));
|
|
1180
|
+
/** Read datastore stats */
|
|
1181
|
+
export const getAdminDatastoreRrd = /*@__PURE__*/ API.make(() => ({
|
|
1182
|
+
input: GetAdminDatastoreRrdRequest,
|
|
1183
|
+
output: GetAdminDatastoreRrdResponse,
|
|
1184
|
+
errors: [],
|
|
1185
|
+
protocol: ProxmoxBackupProtocol,
|
|
1186
|
+
retry: Retry.Retry,
|
|
1187
|
+
}));
|
|
1188
|
+
/** Get datastore status. */
|
|
1189
|
+
export const getAdminDatastoreStatus = /*@__PURE__*/ API.make(() => ({
|
|
1190
|
+
input: GetAdminDatastoreStatusRequest,
|
|
1191
|
+
output: GetAdminDatastoreStatusResponse,
|
|
1192
|
+
errors: [],
|
|
1193
|
+
protocol: ProxmoxBackupProtocol,
|
|
1194
|
+
retry: Retry.Retry,
|
|
1195
|
+
}));
|
|
1196
|
+
/** List all GC jobs (max one per datastore) */
|
|
1197
|
+
export const getAdminGc = /*@__PURE__*/ API.make(() => ({
|
|
1198
|
+
input: GetAdminGcRequest,
|
|
1199
|
+
output: GetAdminGcResponse,
|
|
1200
|
+
errors: [],
|
|
1201
|
+
protocol: ProxmoxBackupProtocol,
|
|
1202
|
+
retry: Retry.Retry,
|
|
1203
|
+
}));
|
|
1204
|
+
/** Directory index. */
|
|
1205
|
+
export const getAdminPrune = /*@__PURE__*/ API.make(() => ({
|
|
1206
|
+
input: GetAdminPruneRequest,
|
|
1207
|
+
output: GetAdminPruneResponse,
|
|
1208
|
+
errors: [],
|
|
1209
|
+
protocol: ProxmoxBackupProtocol,
|
|
1210
|
+
retry: Retry.Retry,
|
|
1211
|
+
}));
|
|
1212
|
+
/** Directory index. */
|
|
1213
|
+
export const getAdminS3 = /*@__PURE__*/ API.make(() => ({
|
|
1214
|
+
input: GetAdminS3Request,
|
|
1215
|
+
output: GetAdminS3Response,
|
|
1216
|
+
errors: [],
|
|
1217
|
+
protocol: ProxmoxBackupProtocol,
|
|
1218
|
+
retry: Retry.Retry,
|
|
1219
|
+
}));
|
|
1220
|
+
/** Directory index. */
|
|
1221
|
+
export const getAdminSync = /*@__PURE__*/ API.make(() => ({
|
|
1222
|
+
input: GetAdminSyncRequest,
|
|
1223
|
+
output: GetAdminSyncResponse,
|
|
1224
|
+
errors: [],
|
|
1225
|
+
protocol: ProxmoxBackupProtocol,
|
|
1226
|
+
retry: Retry.Retry,
|
|
1227
|
+
}));
|
|
1228
|
+
/** Directory index. */
|
|
1229
|
+
export const getAdminVerify = /*@__PURE__*/ API.make(() => ({
|
|
1230
|
+
input: GetAdminVerifyRequest,
|
|
1231
|
+
output: GetAdminVerifyResponse,
|
|
1232
|
+
errors: [],
|
|
1233
|
+
protocol: ProxmoxBackupProtocol,
|
|
1234
|
+
retry: Retry.Retry,
|
|
1235
|
+
}));
|
|
1236
|
+
/** Datastore list */
|
|
1237
|
+
export const listAdminDatastore = /*@__PURE__*/ API.make(() => ({
|
|
1238
|
+
input: ListAdminDatastoreRequest,
|
|
1239
|
+
output: ListAdminDatastoreResponse,
|
|
1240
|
+
errors: [],
|
|
1241
|
+
protocol: ProxmoxBackupProtocol,
|
|
1242
|
+
retry: Retry.Retry,
|
|
1243
|
+
}));
|
|
1244
|
+
/** List snapshot files. */
|
|
1245
|
+
export const listAdminDatastoreFiles = /*@__PURE__*/ API.make(() => ({
|
|
1246
|
+
input: ListAdminDatastoreFilesRequest,
|
|
1247
|
+
output: ListAdminDatastoreFilesResponse,
|
|
1248
|
+
errors: [],
|
|
1249
|
+
protocol: ProxmoxBackupProtocol,
|
|
1250
|
+
retry: Retry.Retry,
|
|
1251
|
+
}));
|
|
1252
|
+
/** List backup groups. */
|
|
1253
|
+
export const listAdminDatastoreGroups = /*@__PURE__*/ API.make(() => ({
|
|
1254
|
+
input: ListAdminDatastoreGroupsRequest,
|
|
1255
|
+
output: ListAdminDatastoreGroupsResponse,
|
|
1256
|
+
errors: [],
|
|
1257
|
+
protocol: ProxmoxBackupProtocol,
|
|
1258
|
+
retry: Retry.Retry,
|
|
1259
|
+
}));
|
|
1260
|
+
/** List the namespaces of a datastore. */
|
|
1261
|
+
export const listAdminDatastoreNamespace = /*@__PURE__*/ API.make(() => ({
|
|
1262
|
+
input: ListAdminDatastoreNamespaceRequest,
|
|
1263
|
+
output: ListAdminDatastoreNamespaceResponse,
|
|
1264
|
+
errors: [],
|
|
1265
|
+
protocol: ProxmoxBackupProtocol,
|
|
1266
|
+
retry: Retry.Retry,
|
|
1267
|
+
}));
|
|
1268
|
+
/** List backup snapshots. */
|
|
1269
|
+
export const listAdminDatastoreSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
1270
|
+
input: ListAdminDatastoreSnapshotsRequest,
|
|
1271
|
+
output: ListAdminDatastoreSnapshotsResponse,
|
|
1272
|
+
errors: [],
|
|
1273
|
+
protocol: ProxmoxBackupProtocol,
|
|
1274
|
+
retry: Retry.Retry,
|
|
1275
|
+
}));
|
|
1276
|
+
/** List all GC jobs (max one per datastore) */
|
|
1277
|
+
export const listAdminGc = /*@__PURE__*/ API.make(() => ({
|
|
1278
|
+
input: ListAdminGcRequest,
|
|
1279
|
+
output: ListAdminGcResponse,
|
|
1280
|
+
errors: [],
|
|
1281
|
+
protocol: ProxmoxBackupProtocol,
|
|
1282
|
+
retry: Retry.Retry,
|
|
1283
|
+
}));
|
|
1284
|
+
/** List configured metric servers. */
|
|
1285
|
+
export const listAdminMetrics = /*@__PURE__*/ API.make(() => ({
|
|
1286
|
+
input: ListAdminMetricsRequest,
|
|
1287
|
+
output: ListAdminMetricsResponse,
|
|
1288
|
+
errors: [],
|
|
1289
|
+
protocol: ProxmoxBackupProtocol,
|
|
1290
|
+
retry: Retry.Retry,
|
|
1291
|
+
}));
|
|
1292
|
+
/** List all prune jobs */
|
|
1293
|
+
export const listAdminPrune = /*@__PURE__*/ API.make(() => ({
|
|
1294
|
+
input: ListAdminPruneRequest,
|
|
1295
|
+
output: ListAdminPruneResponse,
|
|
1296
|
+
errors: [],
|
|
1297
|
+
protocol: ProxmoxBackupProtocol,
|
|
1298
|
+
retry: Retry.Retry,
|
|
1299
|
+
}));
|
|
1300
|
+
/** List all configured sync jobs */
|
|
1301
|
+
export const listAdminSync = /*@__PURE__*/ API.make(() => ({
|
|
1302
|
+
input: ListAdminSyncRequest,
|
|
1303
|
+
output: ListAdminSyncResponse,
|
|
1304
|
+
errors: [],
|
|
1305
|
+
protocol: ProxmoxBackupProtocol,
|
|
1306
|
+
retry: Retry.Retry,
|
|
1307
|
+
}));
|
|
1308
|
+
/** Show current traffic for all traffic control rules. */
|
|
1309
|
+
export const listAdminTrafficControl = /*@__PURE__*/ API.make(() => ({
|
|
1310
|
+
input: ListAdminTrafficControlRequest,
|
|
1311
|
+
output: ListAdminTrafficControlResponse,
|
|
1312
|
+
errors: [],
|
|
1313
|
+
protocol: ProxmoxBackupProtocol,
|
|
1314
|
+
retry: Retry.Retry,
|
|
1315
|
+
}));
|
|
1316
|
+
/** List all verification jobs */
|
|
1317
|
+
export const listAdminVerify = /*@__PURE__*/ API.make(() => ({
|
|
1318
|
+
input: ListAdminVerifyRequest,
|
|
1319
|
+
output: ListAdminVerifyResponse,
|
|
1320
|
+
errors: [],
|
|
1321
|
+
protocol: ProxmoxBackupProtocol,
|
|
1322
|
+
retry: Retry.Retry,
|
|
1323
|
+
}));
|
|
1324
|
+
/** Move a backup group to a different namespace within the same datastore. */
|
|
1325
|
+
export const moveAdminDatastoreGroup = /*@__PURE__*/ API.make(() => ({
|
|
1326
|
+
input: MoveAdminDatastoreGroupRequest,
|
|
1327
|
+
output: MoveAdminDatastoreGroupResponse,
|
|
1328
|
+
errors: [],
|
|
1329
|
+
protocol: ProxmoxBackupProtocol,
|
|
1330
|
+
retry: Retry.Retry,
|
|
1331
|
+
}));
|
|
1332
|
+
/** Move a backup namespace (including all child namespaces and groups) to a new location. */
|
|
1333
|
+
export const moveAdminDatastoreNamespace = /*@__PURE__*/ API.make(() => ({
|
|
1334
|
+
input: MoveAdminDatastoreNamespaceRequest,
|
|
1335
|
+
output: MoveAdminDatastoreNamespaceResponse,
|
|
1336
|
+
errors: [],
|
|
1337
|
+
protocol: ProxmoxBackupProtocol,
|
|
1338
|
+
retry: Retry.Retry,
|
|
1339
|
+
}));
|
|
1340
|
+
/** Set "notes" for a backup group */
|
|
1341
|
+
export const putAdminDatastoreGroupNotes = /*@__PURE__*/ API.make(() => ({
|
|
1342
|
+
input: PutAdminDatastoreGroupNotesRequest,
|
|
1343
|
+
output: PutAdminDatastoreGroupNotesResponse,
|
|
1344
|
+
errors: [],
|
|
1345
|
+
protocol: ProxmoxBackupProtocol,
|
|
1346
|
+
retry: Retry.Retry,
|
|
1347
|
+
}));
|
|
1348
|
+
/** Set "notes" for a specific backup */
|
|
1349
|
+
export const putAdminDatastoreNotes = /*@__PURE__*/ API.make(() => ({
|
|
1350
|
+
input: PutAdminDatastoreNotesRequest,
|
|
1351
|
+
output: PutAdminDatastoreNotesResponse,
|
|
1352
|
+
errors: [],
|
|
1353
|
+
protocol: ProxmoxBackupProtocol,
|
|
1354
|
+
retry: Retry.Retry,
|
|
1355
|
+
}));
|
|
1356
|
+
/** En- or disable protection for a specific backup */
|
|
1357
|
+
export const putAdminDatastoreProtected = /*@__PURE__*/ API.make(() => ({
|
|
1358
|
+
input: PutAdminDatastoreProtectedRequest,
|
|
1359
|
+
output: PutAdminDatastoreProtectedResponse,
|
|
1360
|
+
errors: [],
|
|
1361
|
+
protocol: ProxmoxBackupProtocol,
|
|
1362
|
+
retry: Retry.Retry,
|
|
1363
|
+
}));
|
|
1364
|
+
/** Refresh datastore contents from S3 to local cache store. */
|
|
1365
|
+
export const putAdminDatastoreS3Refresh = /*@__PURE__*/ API.make(() => ({
|
|
1366
|
+
input: PutAdminDatastoreS3RefreshRequest,
|
|
1367
|
+
output: PutAdminDatastoreS3RefreshResponse,
|
|
1368
|
+
errors: [],
|
|
1369
|
+
protocol: ProxmoxBackupProtocol,
|
|
1370
|
+
retry: Retry.Retry,
|
|
1371
|
+
}));
|
|
1372
|
+
/** Perform basic sanity check for given s3 client configuration */
|
|
1373
|
+
export const putAdminS3Check = /*@__PURE__*/ API.make(() => ({
|
|
1374
|
+
input: PutAdminS3CheckRequest,
|
|
1375
|
+
output: PutAdminS3CheckResponse,
|
|
1376
|
+
errors: [],
|
|
1377
|
+
protocol: ProxmoxBackupProtocol,
|
|
1378
|
+
retry: Retry.Retry,
|
|
1379
|
+
}));
|
|
1380
|
+
/** Reset the S3 request counters for matching endpoint, bucket or datastore (if prefix is given). */
|
|
1381
|
+
export const putAdminS3ResetCounters = /*@__PURE__*/ API.make(() => ({
|
|
1382
|
+
input: PutAdminS3ResetCountersRequest,
|
|
1383
|
+
output: PutAdminS3ResetCountersResponse,
|
|
1384
|
+
errors: [],
|
|
1385
|
+
protocol: ProxmoxBackupProtocol,
|
|
1386
|
+
retry: Retry.Retry,
|
|
1387
|
+
}));
|
|
1388
|
+
/** Runs a prune job manually. */
|
|
1389
|
+
export const runAdminPrune = /*@__PURE__*/ API.make(() => ({
|
|
1390
|
+
input: RunAdminPruneRequest,
|
|
1391
|
+
output: RunAdminPruneResponse,
|
|
1392
|
+
errors: [],
|
|
1393
|
+
protocol: ProxmoxBackupProtocol,
|
|
1394
|
+
retry: Retry.Retry,
|
|
1395
|
+
}));
|
|
1396
|
+
/** Runs the sync jobs manually. */
|
|
1397
|
+
export const runAdminSync = /*@__PURE__*/ API.make(() => ({
|
|
1398
|
+
input: RunAdminSyncRequest,
|
|
1399
|
+
output: RunAdminSyncResponse,
|
|
1400
|
+
errors: [],
|
|
1401
|
+
protocol: ProxmoxBackupProtocol,
|
|
1402
|
+
retry: Retry.Retry,
|
|
1403
|
+
}));
|
|
1404
|
+
/** Upload the client backup log file into a backup snapshot ('client.log.blob'). */
|
|
1405
|
+
export const uploadAdminDatastoreBackupLog = /*@__PURE__*/ API.make(() => ({
|
|
1406
|
+
input: UploadAdminDatastoreBackupLogRequest,
|
|
1407
|
+
output: UploadAdminDatastoreBackupLogResponse,
|
|
1408
|
+
errors: [],
|
|
1409
|
+
protocol: ProxmoxBackupProtocol,
|
|
1410
|
+
retry: Retry.Retry,
|
|
1411
|
+
}));
|
|
1412
|
+
/** Verify backups. This function can verify a single backup snapshot, all backups from a backup group, or all backups in the datastore. */
|
|
1413
|
+
export const verifyAdminDatastore = /*@__PURE__*/ API.make(() => ({
|
|
1414
|
+
input: VerifyAdminDatastoreRequest,
|
|
1415
|
+
output: VerifyAdminDatastoreResponse,
|
|
1416
|
+
errors: [],
|
|
1417
|
+
protocol: ProxmoxBackupProtocol,
|
|
1418
|
+
retry: Retry.Retry,
|
|
1419
|
+
}));
|
|
1420
|
+
/** Runs a verification job manually. */
|
|
1421
|
+
export const verifyRunAdmin = /*@__PURE__*/ API.make(() => ({
|
|
1422
|
+
input: VerifyRunAdminRequest,
|
|
1423
|
+
output: VerifyRunAdminResponse,
|
|
1424
|
+
errors: [],
|
|
1425
|
+
protocol: ProxmoxBackupProtocol,
|
|
1426
|
+
retry: Retry.Retry,
|
|
1427
|
+
}));
|
|
1428
|
+
//# sourceMappingURL=admin.js.map
|