@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17

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.
Files changed (346) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +2 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -49
  8. package/lib/errors.d.ts +13 -13
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -26
  11. package/lib/index.d.ts +2 -2
  12. package/lib/index.js +1 -24
  13. package/lib/index.lazy.js +7 -0
  14. package/lib/pagination.d.ts +1 -1
  15. package/lib/pagination.js +1 -45
  16. package/lib/protocol.d.ts +3 -3
  17. package/lib/protocol.d.ts.map +1 -1
  18. package/lib/protocol.js +1 -147
  19. package/lib/retry.d.ts +1 -1
  20. package/lib/retry.d.ts.map +1 -1
  21. package/lib/retry.js +1 -31
  22. package/lib/services/alb.d.ts +10 -87
  23. package/lib/services/alb.d.ts.map +1 -1
  24. package/lib/services/alb.js +28 -512
  25. package/lib/services/alb.js.map +1 -1
  26. package/lib/services/alb_waf.d.ts +9 -82
  27. package/lib/services/alb_waf.d.ts.map +1 -1
  28. package/lib/services/alb_waf.js +33 -520
  29. package/lib/services/alb_waf.js.map +1 -1
  30. package/lib/services/authorization.d.ts +5 -47
  31. package/lib/services/authorization.d.ts.map +1 -1
  32. package/lib/services/authorization.js +1 -322
  33. package/lib/services/authorization.js.map +1 -1
  34. package/lib/services/automation.d.ts +7 -47
  35. package/lib/services/automation.d.ts.map +1 -1
  36. package/lib/services/automation.js +1 -362
  37. package/lib/services/automation.js.map +1 -1
  38. package/lib/services/cdn.d.ts +8 -220
  39. package/lib/services/cdn.d.ts.map +1 -1
  40. package/lib/services/cdn.js +31 -905
  41. package/lib/services/cdn.js.map +1 -1
  42. package/lib/services/certificates.d.ts +8 -27
  43. package/lib/services/certificates.d.ts.map +1 -1
  44. package/lib/services/certificates.js +1 -178
  45. package/lib/services/certificates.js.map +1 -1
  46. package/lib/services/cost.d.ts +10 -37
  47. package/lib/services/cost.d.ts.map +1 -1
  48. package/lib/services/cost.js +1 -176
  49. package/lib/services/cost.js.map +1 -1
  50. package/lib/services/dns.d.ts +9 -104
  51. package/lib/services/dns.d.ts.map +1 -1
  52. package/lib/services/dns.js +40 -725
  53. package/lib/services/dns.js.map +1 -1
  54. package/lib/services/dremio.d.ts +8 -50
  55. package/lib/services/dremio.d.ts.map +1 -1
  56. package/lib/services/dremio.js +1 -316
  57. package/lib/services/dremio.js.map +1 -1
  58. package/lib/services/edge.d.ts +7 -40
  59. package/lib/services/edge.d.ts.map +1 -1
  60. package/lib/services/edge.js +1 -356
  61. package/lib/services/edge.js.map +1 -1
  62. package/lib/services/functions.d.ts +1 -48
  63. package/lib/services/functions.d.ts.map +1 -1
  64. package/lib/services/functions.js +1 -398
  65. package/lib/services/functions.js.map +1 -1
  66. package/lib/services/git.d.ts +8 -61
  67. package/lib/services/git.d.ts.map +1 -1
  68. package/lib/services/git.js +35 -519
  69. package/lib/services/git.js.map +1 -1
  70. package/lib/services/iaas.d.ts +9 -337
  71. package/lib/services/iaas.d.ts.map +1 -1
  72. package/lib/services/iaas.js +181 -3542
  73. package/lib/services/iaas.js.map +1 -1
  74. package/lib/services/index.js +0 -2
  75. package/lib/services/intake.d.ts +8 -75
  76. package/lib/services/intake.d.ts.map +1 -1
  77. package/lib/services/intake.js +29 -474
  78. package/lib/services/intake.js.map +1 -1
  79. package/lib/services/kms.d.ts +9 -92
  80. package/lib/services/kms.d.ts.map +1 -1
  81. package/lib/services/kms.js +41 -662
  82. package/lib/services/kms.js.map +1 -1
  83. package/lib/services/lb_ip_lists.d.ts +9 -25
  84. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  85. package/lib/services/lb_ip_lists.js +1 -153
  86. package/lib/services/lb_ip_lists.js.map +1 -1
  87. package/lib/services/load_balancer.d.ts +10 -81
  88. package/lib/services/load_balancer.d.ts.map +1 -1
  89. package/lib/services/load_balancer.js +29 -496
  90. package/lib/services/load_balancer.js.map +1 -1
  91. package/lib/services/logme.d.ts +8 -69
  92. package/lib/services/logme.d.ts.map +1 -1
  93. package/lib/services/logme.js +33 -573
  94. package/lib/services/logme.js.map +1 -1
  95. package/lib/services/logs.d.ts +8 -64
  96. package/lib/services/logs.d.ts.map +1 -1
  97. package/lib/services/logs.js +34 -474
  98. package/lib/services/logs.js.map +1 -1
  99. package/lib/services/mariadb.d.ts +8 -65
  100. package/lib/services/mariadb.d.ts.map +1 -1
  101. package/lib/services/mariadb.js +34 -550
  102. package/lib/services/mariadb.js.map +1 -1
  103. package/lib/services/model_experiments.d.ts +9 -48
  104. package/lib/services/model_experiments.d.ts.map +1 -1
  105. package/lib/services/model_experiments.js +1 -335
  106. package/lib/services/model_experiments.js.map +1 -1
  107. package/lib/services/model_serving.d.ts +7 -47
  108. package/lib/services/model_serving.d.ts.map +1 -1
  109. package/lib/services/model_serving.js +1 -286
  110. package/lib/services/model_serving.js.map +1 -1
  111. package/lib/services/mongodb_flex.d.ts +8 -137
  112. package/lib/services/mongodb_flex.d.ts.map +1 -1
  113. package/lib/services/mongodb_flex.js +42 -802
  114. package/lib/services/mongodb_flex.js.map +1 -1
  115. package/lib/services/object_storage.d.ts +12 -59
  116. package/lib/services/object_storage.d.ts.map +1 -1
  117. package/lib/services/object_storage.js +38 -539
  118. package/lib/services/object_storage.js.map +1 -1
  119. package/lib/services/observability.d.ts +8 -407
  120. package/lib/services/observability.d.ts.map +1 -1
  121. package/lib/services/observability.js +159 -3157
  122. package/lib/services/observability.js.map +1 -1
  123. package/lib/services/opensearch.d.ts +8 -71
  124. package/lib/services/opensearch.d.ts.map +1 -1
  125. package/lib/services/opensearch.js +34 -562
  126. package/lib/services/opensearch.js.map +1 -1
  127. package/lib/services/pim.d.ts +12 -108
  128. package/lib/services/pim.d.ts.map +1 -1
  129. package/lib/services/pim.js +31 -735
  130. package/lib/services/pim.js.map +1 -1
  131. package/lib/services/postgres_flex.d.ts +14 -136
  132. package/lib/services/postgres_flex.d.ts.map +1 -1
  133. package/lib/services/postgres_flex.js +47 -852
  134. package/lib/services/postgres_flex.js.map +1 -1
  135. package/lib/services/pubsub.d.ts +11 -73
  136. package/lib/services/pubsub.d.ts.map +1 -1
  137. package/lib/services/pubsub.js +37 -518
  138. package/lib/services/pubsub.js.map +1 -1
  139. package/lib/services/rabbitmq.d.ts +8 -76
  140. package/lib/services/rabbitmq.d.ts.map +1 -1
  141. package/lib/services/rabbitmq.js +35 -573
  142. package/lib/services/rabbitmq.js.map +1 -1
  143. package/lib/services/registry.d.ts +10 -28
  144. package/lib/services/registry.d.ts.map +1 -1
  145. package/lib/services/registry.js +1 -197
  146. package/lib/services/registry.js.map +1 -1
  147. package/lib/services/resource_manager.d.ts +9 -61
  148. package/lib/services/resource_manager.d.ts.map +1 -1
  149. package/lib/services/resource_manager.js +36 -472
  150. package/lib/services/resource_manager.js.map +1 -1
  151. package/lib/services/run_command.d.ts +5 -28
  152. package/lib/services/run_command.d.ts.map +1 -1
  153. package/lib/services/run_command.js +1 -184
  154. package/lib/services/run_command.js.map +1 -1
  155. package/lib/services/sca.d.ts +8 -79
  156. package/lib/services/sca.d.ts.map +1 -1
  157. package/lib/services/sca.js +25 -444
  158. package/lib/services/sca.js.map +1 -1
  159. package/lib/services/scf.d.ts +8 -64
  160. package/lib/services/scf.d.ts.map +1 -1
  161. package/lib/services/scf.js +40 -669
  162. package/lib/services/scf.js.map +1 -1
  163. package/lib/services/secrets_manager.d.ts +8 -61
  164. package/lib/services/secrets_manager.d.ts.map +1 -1
  165. package/lib/services/secrets_manager.js +42 -612
  166. package/lib/services/secrets_manager.js.map +1 -1
  167. package/lib/services/server_backup.d.ts +7 -50
  168. package/lib/services/server_backup.d.ts.map +1 -1
  169. package/lib/services/server_backup.js +29 -453
  170. package/lib/services/server_backup.js.map +1 -1
  171. package/lib/services/server_update.d.ts +7 -35
  172. package/lib/services/server_update.d.ts.map +1 -1
  173. package/lib/services/server_update.js +1 -351
  174. package/lib/services/server_update.js.map +1 -1
  175. package/lib/services/service_account.d.ts +10 -68
  176. package/lib/services/service_account.d.ts.map +1 -1
  177. package/lib/services/service_account.js +30 -505
  178. package/lib/services/service_account.js.map +1 -1
  179. package/lib/services/service_enablement.d.ts +7 -29
  180. package/lib/services/service_enablement.d.ts.map +1 -1
  181. package/lib/services/service_enablement.js +1 -156
  182. package/lib/services/service_enablement.js.map +1 -1
  183. package/lib/services/sfs.d.ts +4 -96
  184. package/lib/services/sfs.d.ts.map +1 -1
  185. package/lib/services/sfs.js +46 -789
  186. package/lib/services/sfs.js.map +1 -1
  187. package/lib/services/ske.d.ts +9 -108
  188. package/lib/services/ske.d.ts.map +1 -1
  189. package/lib/services/ske.js +26 -557
  190. package/lib/services/ske.js.map +1 -1
  191. package/lib/services/sqlserverflex.d.ts +11 -152
  192. package/lib/services/sqlserverflex.d.ts.map +1 -1
  193. package/lib/services/sqlserverflex.js +46 -935
  194. package/lib/services/sqlserverflex.js.map +1 -1
  195. package/lib/services/stackit_marketplace.d.ts +9 -38
  196. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  197. package/lib/services/stackit_marketplace.js +26 -378
  198. package/lib/services/stackit_marketplace.js.map +1 -1
  199. package/lib/services/telemetry_link.d.ts +8 -61
  200. package/lib/services/telemetry_link.d.ts.map +1 -1
  201. package/lib/services/telemetry_link.js +34 -531
  202. package/lib/services/telemetry_link.js.map +1 -1
  203. package/lib/services/telemetry_router.d.ts +8 -72
  204. package/lib/services/telemetry_router.d.ts.map +1 -1
  205. package/lib/services/telemetry_router.js +29 -483
  206. package/lib/services/telemetry_router.js.map +1 -1
  207. package/lib/services/ufw.d.ts +7 -42
  208. package/lib/services/ufw.d.ts.map +1 -1
  209. package/lib/services/ufw.js +1 -278
  210. package/lib/services/ufw.js.map +1 -1
  211. package/lib/services/valkey.d.ts +8 -68
  212. package/lib/services/valkey.d.ts.map +1 -1
  213. package/lib/services/valkey.js +34 -566
  214. package/lib/services/valkey.js.map +1 -1
  215. package/lib/services/vpn.d.ts +21 -186
  216. package/lib/services/vpn.d.ts.map +1 -1
  217. package/lib/services/vpn.js +43 -930
  218. package/lib/services/vpn.js.map +1 -1
  219. package/lib/services/workflows.d.ts +15 -84
  220. package/lib/services/workflows.d.ts.map +1 -1
  221. package/lib/services/workflows.js +27 -507
  222. package/lib/services/workflows.js.map +1 -1
  223. package/lib/services.lazy/alb.js +4 -0
  224. package/lib/services.lazy/alb_waf.js +4 -0
  225. package/lib/services.lazy/authorization.js +1 -0
  226. package/lib/services.lazy/automation.js +1 -0
  227. package/lib/services.lazy/cdn.js +4 -0
  228. package/lib/services.lazy/certificates.js +1 -0
  229. package/lib/services.lazy/cost.js +1 -0
  230. package/lib/services.lazy/dns.js +4 -0
  231. package/lib/services.lazy/dremio.js +1 -0
  232. package/lib/services.lazy/edge.js +1 -0
  233. package/lib/services.lazy/functions.js +1 -0
  234. package/lib/services.lazy/git.js +4 -0
  235. package/lib/services.lazy/iaas.js +4 -0
  236. package/lib/services.lazy/index.js +3 -0
  237. package/lib/services.lazy/intake.js +4 -0
  238. package/lib/services.lazy/kms.js +4 -0
  239. package/lib/services.lazy/lb_ip_lists.js +1 -0
  240. package/lib/services.lazy/load_balancer.js +4 -0
  241. package/lib/services.lazy/logme.js +4 -0
  242. package/lib/services.lazy/logs.js +4 -0
  243. package/lib/services.lazy/mariadb.js +4 -0
  244. package/lib/services.lazy/model_experiments.js +1 -0
  245. package/lib/services.lazy/model_serving.js +1 -0
  246. package/lib/services.lazy/mongodb_flex.js +4 -0
  247. package/lib/services.lazy/object_storage.js +4 -0
  248. package/lib/services.lazy/observability.js +4 -0
  249. package/lib/services.lazy/opensearch.js +4 -0
  250. package/lib/services.lazy/pim.js +4 -0
  251. package/lib/services.lazy/postgres_flex.js +4 -0
  252. package/lib/services.lazy/pubsub.js +4 -0
  253. package/lib/services.lazy/rabbitmq.js +4 -0
  254. package/lib/services.lazy/registry.js +1 -0
  255. package/lib/services.lazy/resource_manager.js +4 -0
  256. package/lib/services.lazy/run_command.js +1 -0
  257. package/lib/services.lazy/sca.js +4 -0
  258. package/lib/services.lazy/scf.js +4 -0
  259. package/lib/services.lazy/secrets_manager.js +4 -0
  260. package/lib/services.lazy/server_backup.js +4 -0
  261. package/lib/services.lazy/server_update.js +1 -0
  262. package/lib/services.lazy/service_account.js +4 -0
  263. package/lib/services.lazy/service_enablement.js +1 -0
  264. package/lib/services.lazy/sfs.js +4 -0
  265. package/lib/services.lazy/ske.js +4 -0
  266. package/lib/services.lazy/sqlserverflex.js +4 -0
  267. package/lib/services.lazy/stackit_marketplace.js +4 -0
  268. package/lib/services.lazy/telemetry_link.js +4 -0
  269. package/lib/services.lazy/telemetry_router.js +4 -0
  270. package/lib/services.lazy/ufw.js +1 -0
  271. package/lib/services.lazy/valkey.js +4 -0
  272. package/lib/services.lazy/vpn.js +4 -0
  273. package/lib/services.lazy/workflows.js +4 -0
  274. package/lib/traits.d.ts +1 -1
  275. package/lib/traits.js +1 -15
  276. package/package.json +9 -7
  277. package/src/credentials.ts +21 -18
  278. package/src/errors.ts +10 -14
  279. package/src/index.ts +2 -2
  280. package/src/pagination.ts +2 -2
  281. package/src/protocol.ts +12 -9
  282. package/src/retry.ts +6 -4
  283. package/src/services/alb.ts +599 -655
  284. package/src/services/alb_waf.ts +597 -637
  285. package/src/services/authorization.ts +400 -383
  286. package/src/services/automation.ts +422 -405
  287. package/src/services/cdn.ts +817 -1375
  288. package/src/services/certificates.ts +209 -190
  289. package/src/services/cost.ts +100 -207
  290. package/src/services/dns.ts +793 -833
  291. package/src/services/dremio.ts +356 -349
  292. package/src/services/edge.ts +406 -366
  293. package/src/services/functions.ts +465 -463
  294. package/src/services/git.ts +602 -547
  295. package/src/services/iaas.ts +3931 -3821
  296. package/src/services/intake.ts +521 -549
  297. package/src/services/kms.ts +715 -692
  298. package/src/services/lb_ip_lists.ts +173 -152
  299. package/src/services/load_balancer.ts +576 -619
  300. package/src/services/logme.ts +696 -641
  301. package/src/services/logs.ts +510 -493
  302. package/src/services/mariadb.ts +671 -604
  303. package/src/services/model_experiments.ts +343 -356
  304. package/src/services/model_serving.ts +337 -328
  305. package/src/services/mongodb_flex.ts +955 -1007
  306. package/src/services/object_storage.ts +614 -557
  307. package/src/services/observability.ts +3469 -3866
  308. package/src/services/opensearch.ts +679 -628
  309. package/src/services/pim.ts +672 -909
  310. package/src/services/postgres_flex.ts +966 -986
  311. package/src/services/pubsub.ts +524 -546
  312. package/src/services/rabbitmq.ts +693 -654
  313. package/src/services/registry.ts +227 -194
  314. package/src/services/resource_manager.ts +520 -517
  315. package/src/services/run_command.ts +219 -211
  316. package/src/services/sca.ts +543 -570
  317. package/src/services/scf.ts +790 -716
  318. package/src/services/secrets_manager.ts +707 -622
  319. package/src/services/server_backup.ts +490 -475
  320. package/src/services/server_update.ts +353 -356
  321. package/src/services/service_account.ts +515 -553
  322. package/src/services/service_enablement.ts +162 -166
  323. package/src/services/sfs.ts +879 -958
  324. package/src/services/ske.ts +694 -769
  325. package/src/services/sqlserverflex.ts +1042 -1117
  326. package/src/services/stackit_marketplace.ts +377 -372
  327. package/src/services/telemetry_link.ts +530 -531
  328. package/src/services/telemetry_router.ts +509 -534
  329. package/src/services/ufw.ts +305 -307
  330. package/src/services/valkey.ts +684 -629
  331. package/src/services/vpn.ts +935 -1195
  332. package/src/services/workflows.ts +426 -586
  333. package/src/traits.ts +1 -1
  334. package/lib/credentials.js.map +0 -1
  335. package/lib/errors.js.map +0 -1
  336. package/lib/pagination.js.map +0 -1
  337. package/lib/protocol.js.map +0 -1
  338. package/lib/protocol.test.d.ts +0 -2
  339. package/lib/protocol.test.d.ts.map +0 -1
  340. package/lib/protocol.test.js +0 -181
  341. package/lib/protocol.test.js.map +0 -1
  342. package/lib/retry.js.map +0 -1
  343. package/lib/services/index.js.map +0 -1
  344. package/lib/traits.js.map +0 -1
  345. package/src/protocol.test.ts +0 -304
  346. /package/lib/{index.js.map → index.lazy.js.map} +0 -0
@@ -1,11 +1,14 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
6
  import { UnknownStackitError } from "../errors.ts";
6
7
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
7
8
  import * as Retry from "../retry.ts";
8
9
  import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
9
12
 
10
13
  export type { StackitOpError, StackitOpContext };
11
14
 
@@ -37,10 +40,6 @@ export class NotFound
37
40
  ) {}
38
41
 
39
42
  export type CreateBackupRequestVolumeIdsList = Array<string>;
40
- export const CreateBackupRequestVolumeIdsList = /*@__PURE__*/ S.Array(
41
- S.String,
42
- ) as any as S.Schema<CreateBackupRequestVolumeIdsList>;
43
-
44
43
  export interface CreateBackupRequest {
45
44
  /** project id */
46
45
  projectId: string;
@@ -54,38 +53,10 @@ export interface CreateBackupRequest {
54
53
  retentionPeriod: number;
55
54
  volumeIds?: CreateBackupRequestVolumeIdsList;
56
55
  }
57
- export const CreateBackupRequest = /*@__PURE__*/ S.suspend(() =>
58
- S.Struct({
59
- projectId: S.String.pipe(T.Label()),
60
- region: S.String.pipe(T.Label()),
61
- serverId: S.String.pipe(T.Label()),
62
- name: S.String,
63
- retentionPeriod: S.Number,
64
- volumeIds: S.optional(CreateBackupRequestVolumeIdsList),
65
- }).pipe(
66
- T.Http({
67
- method: "POST",
68
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",
69
- code: 200,
70
- baseUrl: "https://server-backup.api.stackit.cloud",
71
- }),
72
- ),
73
- ).annotate({ identifier: "CreateBackupRequest" }) as any as S.Schema<CreateBackupRequest>;
74
-
75
56
  export interface BackupJob {
76
57
  id: string;
77
58
  }
78
- export const BackupJob = /*@__PURE__*/ S.suspend(() =>
79
- S.Struct({
80
- id: S.String,
81
- }),
82
- ).annotate({ identifier: "BackupJob" }) as any as S.Schema<BackupJob>;
83
-
84
59
  export type BackupPropertiesVolumeIdsList = Array<string>;
85
- export const BackupPropertiesVolumeIdsList = /*@__PURE__*/ S.Array(
86
- S.String,
87
- ) as any as S.Schema<BackupPropertiesVolumeIdsList>;
88
-
89
60
  export interface BackupProperties {
90
61
  /** Max 255 characters */
91
62
  name: string;
@@ -93,14 +64,6 @@ export interface BackupProperties {
93
64
  retentionPeriod: number;
94
65
  volumeIds?: BackupPropertiesVolumeIdsList;
95
66
  }
96
- export const BackupProperties = /*@__PURE__*/ S.suspend(() =>
97
- S.Struct({
98
- name: S.String,
99
- retentionPeriod: S.Number,
100
- volumeIds: S.optional(BackupPropertiesVolumeIdsList),
101
- }),
102
- ).annotate({ identifier: "BackupProperties" }) as any as S.Schema<BackupProperties>;
103
-
104
67
  export interface CreateBackupScheduleRequest {
105
68
  /** project id */
106
69
  projectId: string;
@@ -115,27 +78,6 @@ export interface CreateBackupScheduleRequest {
115
78
  /** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
116
79
  rrule: string;
117
80
  }
118
- export const CreateBackupScheduleRequest = /*@__PURE__*/ S.suspend(() =>
119
- S.Struct({
120
- projectId: S.String.pipe(T.Label()),
121
- region: S.String.pipe(T.Label()),
122
- serverId: S.String.pipe(T.Label()),
123
- backupProperties: S.optional(BackupProperties),
124
- enabled: S.Boolean,
125
- name: S.String,
126
- rrule: S.String,
127
- }).pipe(
128
- T.Http({
129
- method: "POST",
130
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",
131
- code: 200,
132
- baseUrl: "https://server-backup.api.stackit.cloud",
133
- }),
134
- ),
135
- ).annotate({
136
- identifier: "CreateBackupScheduleRequest",
137
- }) as any as S.Schema<CreateBackupScheduleRequest>;
138
-
139
81
  export interface BackupSchedule {
140
82
  backupProperties?: BackupProperties;
141
83
  enabled: boolean;
@@ -144,16 +86,6 @@ export interface BackupSchedule {
144
86
  /** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
145
87
  rrule: string;
146
88
  }
147
- export const BackupSchedule = /*@__PURE__*/ S.suspend(() =>
148
- S.Struct({
149
- backupProperties: S.optional(BackupProperties),
150
- enabled: S.Boolean,
151
- id: S.Number,
152
- name: S.String,
153
- rrule: S.String,
154
- }),
155
- ).annotate({ identifier: "BackupSchedule" }) as any as S.Schema<BackupSchedule>;
156
-
157
89
  export interface DeleteBackupRequest {
158
90
  /** project id */
159
91
  projectId: string;
@@ -166,28 +98,7 @@ export interface DeleteBackupRequest {
166
98
  /** force delete the backup */
167
99
  force?: boolean;
168
100
  }
169
- export const DeleteBackupRequest = /*@__PURE__*/ S.suspend(() =>
170
- S.Struct({
171
- projectId: S.String.pipe(T.Label()),
172
- region: S.String.pipe(T.Label()),
173
- serverId: S.String.pipe(T.Label()),
174
- backupId: S.String.pipe(T.Label()),
175
- force: S.optional(S.Boolean.pipe(T.Query())),
176
- }).pipe(
177
- T.Http({
178
- method: "DELETE",
179
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",
180
- code: 200,
181
- baseUrl: "https://server-backup.api.stackit.cloud",
182
- }),
183
- ),
184
- ).annotate({ identifier: "DeleteBackupRequest" }) as any as S.Schema<DeleteBackupRequest>;
185
-
186
101
  export interface DeleteBackupResponse {}
187
- export const DeleteBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
188
- identifier: "DeleteBackupResponse",
189
- }) as any as S.Schema<DeleteBackupResponse>;
190
-
191
102
  export interface DeleteBackupScheduleRequest {
192
103
  /** project id */
193
104
  projectId: string;
@@ -198,29 +109,7 @@ export interface DeleteBackupScheduleRequest {
198
109
  /** backup schedule id */
199
110
  backupScheduleId: string;
200
111
  }
201
- export const DeleteBackupScheduleRequest = /*@__PURE__*/ S.suspend(() =>
202
- S.Struct({
203
- projectId: S.String.pipe(T.Label()),
204
- region: S.String.pipe(T.Label()),
205
- serverId: S.String.pipe(T.Label()),
206
- backupScheduleId: S.String.pipe(T.Label()),
207
- }).pipe(
208
- T.Http({
209
- method: "DELETE",
210
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",
211
- code: 200,
212
- baseUrl: "https://server-backup.api.stackit.cloud",
213
- }),
214
- ),
215
- ).annotate({
216
- identifier: "DeleteBackupScheduleRequest",
217
- }) as any as S.Schema<DeleteBackupScheduleRequest>;
218
-
219
112
  export interface DeleteBackupScheduleResponse {}
220
- export const DeleteBackupScheduleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
221
- identifier: "DeleteBackupScheduleResponse",
222
- }) as any as S.Schema<DeleteBackupScheduleResponse>;
223
-
224
113
  export interface DeleteVolumeBackupRequest {
225
114
  /** project id */
226
115
  projectId: string;
@@ -235,31 +124,7 @@ export interface DeleteVolumeBackupRequest {
235
124
  /** Force delete the volume backup */
236
125
  force?: boolean;
237
126
  }
238
- export const DeleteVolumeBackupRequest = /*@__PURE__*/ S.suspend(() =>
239
- S.Struct({
240
- projectId: S.String.pipe(T.Label()),
241
- region: S.String.pipe(T.Label()),
242
- serverId: S.String.pipe(T.Label()),
243
- backupId: S.String.pipe(T.Label()),
244
- volumeBackupId: S.String.pipe(T.Label()),
245
- force: S.optional(S.Boolean.pipe(T.Query())),
246
- }).pipe(
247
- T.Http({
248
- method: "DELETE",
249
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}",
250
- code: 200,
251
- baseUrl: "https://server-backup.api.stackit.cloud",
252
- }),
253
- ),
254
- ).annotate({
255
- identifier: "DeleteVolumeBackupRequest",
256
- }) as any as S.Schema<DeleteVolumeBackupRequest>;
257
-
258
127
  export interface DeleteVolumeBackupResponse {}
259
- export const DeleteVolumeBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
260
- identifier: "DeleteVolumeBackupResponse",
261
- }) as any as S.Schema<DeleteVolumeBackupResponse>;
262
-
263
128
  export interface DisableServiceResourceRequest {
264
129
  /** project id */
265
130
  projectId: string;
@@ -268,28 +133,7 @@ export interface DisableServiceResourceRequest {
268
133
  /** server id */
269
134
  serverId: string;
270
135
  }
271
- export const DisableServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
272
- S.Struct({
273
- projectId: S.String.pipe(T.Label()),
274
- region: S.String.pipe(T.Label()),
275
- serverId: S.String.pipe(T.Label()),
276
- }).pipe(
277
- T.Http({
278
- method: "DELETE",
279
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
280
- code: 200,
281
- baseUrl: "https://server-backup.api.stackit.cloud",
282
- }),
283
- ),
284
- ).annotate({
285
- identifier: "DisableServiceResourceRequest",
286
- }) as any as S.Schema<DisableServiceResourceRequest>;
287
-
288
136
  export interface DisableServiceResourceResponse {}
289
- export const DisableServiceResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
290
- identifier: "DisableServiceResourceResponse",
291
- }) as any as S.Schema<DisableServiceResourceResponse>;
292
-
293
137
  export interface EnableServiceResourceRequest {
294
138
  /** project id */
295
139
  projectId: string;
@@ -299,29 +143,7 @@ export interface EnableServiceResourceRequest {
299
143
  serverId: string;
300
144
  backupPolicyId?: string;
301
145
  }
302
- export const EnableServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
303
- S.Struct({
304
- projectId: S.String.pipe(T.Label()),
305
- region: S.String.pipe(T.Label()),
306
- serverId: S.String.pipe(T.Label()),
307
- backupPolicyId: S.optional(S.String),
308
- }).pipe(
309
- T.Http({
310
- method: "POST",
311
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
312
- code: 200,
313
- baseUrl: "https://server-backup.api.stackit.cloud",
314
- }),
315
- ),
316
- ).annotate({
317
- identifier: "EnableServiceResourceRequest",
318
- }) as any as S.Schema<EnableServiceResourceRequest>;
319
-
320
146
  export interface EnableServiceResourceResponse {}
321
- export const EnableServiceResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
322
- identifier: "EnableServiceResourceResponse",
323
- }) as any as S.Schema<EnableServiceResourceResponse>;
324
-
325
147
  export interface GetBackupRequest {
326
148
  /** project id */
327
149
  projectId: string;
@@ -332,22 +154,6 @@ export interface GetBackupRequest {
332
154
  /** id of the backup */
333
155
  backupId: string;
334
156
  }
335
- export const GetBackupRequest = /*@__PURE__*/ S.suspend(() =>
336
- S.Struct({
337
- projectId: S.String.pipe(T.Label()),
338
- region: S.String.pipe(T.Label()),
339
- serverId: S.String.pipe(T.Label()),
340
- backupId: S.String.pipe(T.Label()),
341
- }).pipe(
342
- T.Http({
343
- method: "GET",
344
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",
345
- code: 200,
346
- baseUrl: "https://server-backup.api.stackit.cloud",
347
- }),
348
- ),
349
- ).annotate({ identifier: "GetBackupRequest" }) as any as S.Schema<GetBackupRequest>;
350
-
351
157
  export type BackupStatus =
352
158
  | "in-progress"
353
159
  | "inconsistent"
@@ -357,8 +163,6 @@ export type BackupStatus =
357
163
  | "error-creating"
358
164
  | "error-deleting"
359
165
  | "unrecognized";
360
- export const BackupStatus = S.String;
361
-
362
166
  export type BackupVolumeBackupsItemStatus =
363
167
  | "available"
364
168
  | "creating"
@@ -369,8 +173,6 @@ export type BackupVolumeBackupsItemStatus =
369
173
  | "restoring"
370
174
  | "error-creating"
371
175
  | "unrecognized";
372
- export const BackupVolumeBackupsItemStatus = S.String;
373
-
374
176
  export interface BackupVolumeBackupsItem {
375
177
  id?: string;
376
178
  lastRestoredAt?: string;
@@ -379,22 +181,7 @@ export interface BackupVolumeBackupsItem {
379
181
  status?: BackupVolumeBackupsItemStatus;
380
182
  volumeId?: string;
381
183
  }
382
- export const BackupVolumeBackupsItem = /*@__PURE__*/ S.suspend(() =>
383
- S.Struct({
384
- id: S.optional(S.String),
385
- lastRestoredAt: S.optional(S.String),
386
- lastRestoredVolumeId: S.optional(S.String),
387
- size: S.optional(S.Number),
388
- status: S.optional(BackupVolumeBackupsItemStatus),
389
- volumeId: S.optional(S.String),
390
- }),
391
- ).annotate({ identifier: "BackupVolumeBackupsItem" }) as any as S.Schema<BackupVolumeBackupsItem>;
392
-
393
184
  export type BackupVolumeBackupsList = Array<BackupVolumeBackupsItem>;
394
- export const BackupVolumeBackupsList = /*@__PURE__*/ S.Array(
395
- BackupVolumeBackupsItem,
396
- ) as any as S.Schema<BackupVolumeBackupsList>;
397
-
398
185
  export interface Backup {
399
186
  createdAt: string;
400
187
  expireAt: string;
@@ -405,19 +192,6 @@ export interface Backup {
405
192
  status: BackupStatus;
406
193
  volumeBackups?: BackupVolumeBackupsList;
407
194
  }
408
- export const Backup = /*@__PURE__*/ S.suspend(() =>
409
- S.Struct({
410
- createdAt: S.String,
411
- expireAt: S.String,
412
- id: S.String,
413
- lastRestoredAt: S.optional(S.String),
414
- name: S.String,
415
- size: S.optional(S.Number),
416
- status: BackupStatus,
417
- volumeBackups: S.optional(BackupVolumeBackupsList),
418
- }),
419
- ).annotate({ identifier: "Backup" }) as any as S.Schema<Backup>;
420
-
421
195
  export interface GetBackupScheduleRequest {
422
196
  /** project id */
423
197
  projectId: string;
@@ -428,22 +202,6 @@ export interface GetBackupScheduleRequest {
428
202
  /** backup schedule id */
429
203
  backupScheduleId: string;
430
204
  }
431
- export const GetBackupScheduleRequest = /*@__PURE__*/ S.suspend(() =>
432
- S.Struct({
433
- projectId: S.String.pipe(T.Label()),
434
- region: S.String.pipe(T.Label()),
435
- serverId: S.String.pipe(T.Label()),
436
- backupScheduleId: S.String.pipe(T.Label()),
437
- }).pipe(
438
- T.Http({
439
- method: "GET",
440
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",
441
- code: 200,
442
- baseUrl: "https://server-backup.api.stackit.cloud",
443
- }),
444
- ),
445
- ).annotate({ identifier: "GetBackupScheduleRequest" }) as any as S.Schema<GetBackupScheduleRequest>;
446
-
447
205
  export interface GetServiceResourceRequest {
448
206
  /** project id */
449
207
  projectId: string;
@@ -452,64 +210,17 @@ export interface GetServiceResourceRequest {
452
210
  /** server id */
453
211
  serverId: string;
454
212
  }
455
- export const GetServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
456
- S.Struct({
457
- projectId: S.String.pipe(T.Label()),
458
- region: S.String.pipe(T.Label()),
459
- serverId: S.String.pipe(T.Label()),
460
- }).pipe(
461
- T.Http({
462
- method: "GET",
463
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
464
- code: 200,
465
- baseUrl: "https://server-backup.api.stackit.cloud",
466
- }),
467
- ),
468
- ).annotate({
469
- identifier: "GetServiceResourceRequest",
470
- }) as any as S.Schema<GetServiceResourceRequest>;
471
-
472
213
  export interface GetBackupServiceResponse {
473
214
  enabled?: boolean;
474
215
  }
475
- export const GetBackupServiceResponse = /*@__PURE__*/ S.suspend(() =>
476
- S.Struct({
477
- enabled: S.optional(S.Boolean),
478
- }),
479
- ).annotate({ identifier: "GetBackupServiceResponse" }) as any as S.Schema<GetBackupServiceResponse>;
480
-
481
216
  export interface ListBackupPoliciesRequest {
482
217
  /** project id */
483
218
  projectId: string;
484
219
  }
485
- export const ListBackupPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
486
- S.Struct({
487
- projectId: S.String.pipe(T.Label()),
488
- }).pipe(
489
- T.Http({
490
- method: "GET",
491
- uri: "/v2/projects/{projectId}/backup-policies",
492
- code: 200,
493
- baseUrl: "https://server-backup.api.stackit.cloud",
494
- }),
495
- ),
496
- ).annotate({
497
- identifier: "ListBackupPoliciesRequest",
498
- }) as any as S.Schema<ListBackupPoliciesRequest>;
499
-
500
220
  export interface BackupPolicyBackupProperties {
501
221
  name?: string;
502
222
  retentionPeriod?: number;
503
223
  }
504
- export const BackupPolicyBackupProperties = /*@__PURE__*/ S.suspend(() =>
505
- S.Struct({
506
- name: S.optional(S.String),
507
- retentionPeriod: S.optional(S.Number),
508
- }),
509
- ).annotate({
510
- identifier: "BackupPolicyBackupProperties",
511
- }) as any as S.Schema<BackupPolicyBackupProperties>;
512
-
513
224
  export interface BackupPolicy {
514
225
  backupProperties?: BackupPolicyBackupProperties;
515
226
  default?: boolean;
@@ -520,34 +231,10 @@ export interface BackupPolicy {
520
231
  /** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
521
232
  rrule?: string;
522
233
  }
523
- export const BackupPolicy = /*@__PURE__*/ S.suspend(() =>
524
- S.Struct({
525
- backupProperties: S.optional(BackupPolicyBackupProperties),
526
- default: S.optional(S.Boolean),
527
- description: S.optional(S.String),
528
- enabled: S.optional(S.Boolean),
529
- id: S.optional(S.String),
530
- name: S.optional(S.String),
531
- rrule: S.optional(S.String),
532
- }),
533
- ).annotate({ identifier: "BackupPolicy" }) as any as S.Schema<BackupPolicy>;
534
-
535
234
  export type GetBackupPoliciesResponseItemsList = Array<BackupPolicy>;
536
- export const GetBackupPoliciesResponseItemsList = /*@__PURE__*/ S.Array(
537
- BackupPolicy,
538
- ) as any as S.Schema<GetBackupPoliciesResponseItemsList>;
539
-
540
235
  export interface GetBackupPoliciesResponse {
541
236
  items?: GetBackupPoliciesResponseItemsList;
542
237
  }
543
- export const GetBackupPoliciesResponse = /*@__PURE__*/ S.suspend(() =>
544
- S.Struct({
545
- items: S.optional(GetBackupPoliciesResponseItemsList),
546
- }),
547
- ).annotate({
548
- identifier: "GetBackupPoliciesResponse",
549
- }) as any as S.Schema<GetBackupPoliciesResponse>;
550
-
551
238
  export interface ListBackupsRequest {
552
239
  /** project id */
553
240
  projectId: string;
@@ -556,35 +243,10 @@ export interface ListBackupsRequest {
556
243
  /** server id */
557
244
  serverId: string;
558
245
  }
559
- export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
560
- S.Struct({
561
- projectId: S.String.pipe(T.Label()),
562
- region: S.String.pipe(T.Label()),
563
- serverId: S.String.pipe(T.Label()),
564
- }).pipe(
565
- T.Http({
566
- method: "GET",
567
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",
568
- code: 200,
569
- baseUrl: "https://server-backup.api.stackit.cloud",
570
- }),
571
- ),
572
- ).annotate({ identifier: "ListBackupsRequest" }) as any as S.Schema<ListBackupsRequest>;
573
-
574
246
  export type GetBackupsListResponseItemsList = Array<Backup>;
575
- export const GetBackupsListResponseItemsList = /*@__PURE__*/ S.Array(
576
- Backup,
577
- ) as any as S.Schema<GetBackupsListResponseItemsList>;
578
-
579
247
  export interface GetBackupsListResponse {
580
248
  items?: GetBackupsListResponseItemsList;
581
249
  }
582
- export const GetBackupsListResponse = /*@__PURE__*/ S.suspend(() =>
583
- S.Struct({
584
- items: S.optional(GetBackupsListResponseItemsList),
585
- }),
586
- ).annotate({ identifier: "GetBackupsListResponse" }) as any as S.Schema<GetBackupsListResponse>;
587
-
588
250
  export interface ListBackupSchedulesRequest {
589
251
  /** project id */
590
252
  projectId: string;
@@ -593,44 +255,11 @@ export interface ListBackupSchedulesRequest {
593
255
  /** server id */
594
256
  serverId: string;
595
257
  }
596
- export const ListBackupSchedulesRequest = /*@__PURE__*/ S.suspend(() =>
597
- S.Struct({
598
- projectId: S.String.pipe(T.Label()),
599
- region: S.String.pipe(T.Label()),
600
- serverId: S.String.pipe(T.Label()),
601
- }).pipe(
602
- T.Http({
603
- method: "GET",
604
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",
605
- code: 200,
606
- baseUrl: "https://server-backup.api.stackit.cloud",
607
- }),
608
- ),
609
- ).annotate({
610
- identifier: "ListBackupSchedulesRequest",
611
- }) as any as S.Schema<ListBackupSchedulesRequest>;
612
-
613
258
  export type GetBackupSchedulesResponseItemsList = Array<BackupSchedule>;
614
- export const GetBackupSchedulesResponseItemsList = /*@__PURE__*/ S.Array(
615
- BackupSchedule,
616
- ) as any as S.Schema<GetBackupSchedulesResponseItemsList>;
617
-
618
259
  export interface GetBackupSchedulesResponse {
619
260
  items?: GetBackupSchedulesResponseItemsList;
620
261
  }
621
- export const GetBackupSchedulesResponse = /*@__PURE__*/ S.suspend(() =>
622
- S.Struct({
623
- items: S.optional(GetBackupSchedulesResponseItemsList),
624
- }),
625
- ).annotate({
626
- identifier: "GetBackupSchedulesResponse",
627
- }) as any as S.Schema<GetBackupSchedulesResponse>;
628
-
629
262
  export type RestoreBackupRequestVolumeIdsList = Array<string>;
630
- export const RestoreBackupRequestVolumeIdsList = /*@__PURE__*/ S.Array(
631
- S.String,
632
- ) as any as S.Schema<RestoreBackupRequestVolumeIdsList>;
633
-
634
263
  export interface RestoreBackupRequest {
635
264
  /** project id */
636
265
  projectId: string;
@@ -643,29 +272,7 @@ export interface RestoreBackupRequest {
643
272
  startServerAfterRestore: boolean;
644
273
  volumeIds?: RestoreBackupRequestVolumeIdsList;
645
274
  }
646
- export const RestoreBackupRequest = /*@__PURE__*/ S.suspend(() =>
647
- S.Struct({
648
- projectId: S.String.pipe(T.Label()),
649
- region: S.String.pipe(T.Label()),
650
- serverId: S.String.pipe(T.Label()),
651
- backupId: S.String.pipe(T.Label()),
652
- startServerAfterRestore: S.Boolean,
653
- volumeIds: S.optional(RestoreBackupRequestVolumeIdsList),
654
- }).pipe(
655
- T.Http({
656
- method: "POST",
657
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/restore",
658
- code: 200,
659
- baseUrl: "https://server-backup.api.stackit.cloud",
660
- }),
661
- ),
662
- ).annotate({ identifier: "RestoreBackupRequest" }) as any as S.Schema<RestoreBackupRequest>;
663
-
664
275
  export interface RestoreBackupResponse {}
665
- export const RestoreBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
666
- identifier: "RestoreBackupResponse",
667
- }) as any as S.Schema<RestoreBackupResponse>;
668
-
669
276
  export interface RestoreVolumeBackupRequest {
670
277
  /** project id */
671
278
  projectId: string;
@@ -679,31 +286,7 @@ export interface RestoreVolumeBackupRequest {
679
286
  volumeBackupId: string;
680
287
  restoreVolumeId: string;
681
288
  }
682
- export const RestoreVolumeBackupRequest = /*@__PURE__*/ S.suspend(() =>
683
- S.Struct({
684
- projectId: S.String.pipe(T.Label()),
685
- region: S.String.pipe(T.Label()),
686
- serverId: S.String.pipe(T.Label()),
687
- backupId: S.String.pipe(T.Label()),
688
- volumeBackupId: S.String.pipe(T.Label()),
689
- restoreVolumeId: S.String,
690
- }).pipe(
691
- T.Http({
692
- method: "POST",
693
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}/restore",
694
- code: 200,
695
- baseUrl: "https://server-backup.api.stackit.cloud",
696
- }),
697
- ),
698
- ).annotate({
699
- identifier: "RestoreVolumeBackupRequest",
700
- }) as any as S.Schema<RestoreVolumeBackupRequest>;
701
-
702
289
  export interface RestoreVolumeBackupResponse {}
703
- export const RestoreVolumeBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
704
- identifier: "RestoreVolumeBackupResponse",
705
- }) as any as S.Schema<RestoreVolumeBackupResponse>;
706
-
707
290
  export interface UpdateBackupScheduleRequest {
708
291
  /** project id */
709
292
  projectId: string;
@@ -720,28 +303,6 @@ export interface UpdateBackupScheduleRequest {
720
303
  /** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
721
304
  rrule: string;
722
305
  }
723
- export const UpdateBackupScheduleRequest = /*@__PURE__*/ S.suspend(() =>
724
- S.Struct({
725
- projectId: S.String.pipe(T.Label()),
726
- region: S.String.pipe(T.Label()),
727
- serverId: S.String.pipe(T.Label()),
728
- backupScheduleId: S.String.pipe(T.Label()),
729
- backupProperties: S.optional(BackupProperties),
730
- enabled: S.Boolean,
731
- name: S.String,
732
- rrule: S.String,
733
- }).pipe(
734
- T.Http({
735
- method: "PUT",
736
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",
737
- code: 200,
738
- baseUrl: "https://server-backup.api.stackit.cloud",
739
- }),
740
- ),
741
- ).annotate({
742
- identifier: "UpdateBackupScheduleRequest",
743
- }) as any as S.Schema<UpdateBackupScheduleRequest>;
744
-
745
306
  export type CreateBackupError = BadRequest | NotFound | Conflict | StackitOpError;
746
307
  /** create backup */
747
308
  export const createBackup: API.OperationMethod<
@@ -750,8 +311,8 @@ export const createBackup: API.OperationMethod<
750
311
  CreateBackupError,
751
312
  StackitOpContext
752
313
  > = /*@__PURE__*/ API.make(() => ({
753
- input: CreateBackupRequest,
754
- output: BackupJob,
314
+ input: __S(80, __c10, 0) as any as S.Schema<CreateBackupRequest>,
315
+ output: __S(81, __c10, 1) as any as S.Schema<BackupJob>,
755
316
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
756
317
  protocol: StackitProtocol,
757
318
  retry: Retry.Retry,
@@ -765,8 +326,8 @@ export const createBackupSchedule: API.OperationMethod<
765
326
  CreateBackupScheduleError,
766
327
  StackitOpContext
767
328
  > = /*@__PURE__*/ API.make(() => ({
768
- input: CreateBackupScheduleRequest,
769
- output: BackupSchedule,
329
+ input: __S(96, __c12, 0) as any as S.Schema<CreateBackupScheduleRequest>,
330
+ output: __S(105, __c13, 1) as any as S.Schema<BackupSchedule>,
770
331
  errors: [BadRequest, NotFound, UnknownStackitError],
771
332
  protocol: StackitProtocol,
772
333
  retry: Retry.Retry,
@@ -780,8 +341,8 @@ export const deleteBackup: API.OperationMethod<
780
341
  DeleteBackupError,
781
342
  StackitOpContext
782
343
  > = /*@__PURE__*/ API.make(() => ({
783
- input: DeleteBackupRequest,
784
- output: DeleteBackupResponse,
344
+ input: __S(112, __c14, 0) as any as S.Schema<DeleteBackupRequest>,
345
+ output: __S(120, __c15, 0) as any as S.Schema<DeleteBackupResponse>,
785
346
  errors: [BadRequest, NotFound, UnknownStackitError],
786
347
  protocol: StackitProtocol,
787
348
  retry: Retry.Retry,
@@ -795,8 +356,8 @@ export const deleteBackupSchedule: API.OperationMethod<
795
356
  DeleteBackupScheduleError,
796
357
  StackitOpContext
797
358
  > = /*@__PURE__*/ API.make(() => ({
798
- input: DeleteBackupScheduleRequest,
799
- output: DeleteBackupScheduleResponse,
359
+ input: __S(128, __c16, 0) as any as S.Schema<DeleteBackupScheduleRequest>,
360
+ output: __S(120, __c15, 0) as any as S.Schema<DeleteBackupScheduleResponse>,
800
361
  errors: [BadRequest, NotFound, UnknownStackitError],
801
362
  protocol: StackitProtocol,
802
363
  retry: Retry.Retry,
@@ -810,8 +371,8 @@ export const deleteVolumeBackup: API.OperationMethod<
810
371
  DeleteVolumeBackupError,
811
372
  StackitOpContext
812
373
  > = /*@__PURE__*/ API.make(() => ({
813
- input: DeleteVolumeBackupRequest,
814
- output: DeleteVolumeBackupResponse,
374
+ input: __S(136, __c17, 0) as any as S.Schema<DeleteVolumeBackupRequest>,
375
+ output: __S(120, __c15, 0) as any as S.Schema<DeleteVolumeBackupResponse>,
815
376
  errors: [BadRequest, NotFound, UnknownStackitError],
816
377
  protocol: StackitProtocol,
817
378
  retry: Retry.Retry,
@@ -825,8 +386,8 @@ export const disableServiceResource: API.OperationMethod<
825
386
  DisableServiceResourceError,
826
387
  StackitOpContext
827
388
  > = /*@__PURE__*/ API.make(() => ({
828
- input: DisableServiceResourceRequest,
829
- output: DisableServiceResourceResponse,
389
+ input: __S(144, __c18, 0) as any as S.Schema<DisableServiceResourceRequest>,
390
+ output: __S(120, __c15, 0) as any as S.Schema<DisableServiceResourceResponse>,
830
391
  errors: [BadRequest, NotFound, UnknownStackitError],
831
392
  protocol: StackitProtocol,
832
393
  retry: Retry.Retry,
@@ -840,8 +401,8 @@ export const enableServiceResource: API.OperationMethod<
840
401
  EnableServiceResourceError,
841
402
  StackitOpContext
842
403
  > = /*@__PURE__*/ API.make(() => ({
843
- input: EnableServiceResourceRequest,
844
- output: EnableServiceResourceResponse,
404
+ input: __S(152, __c19, 0) as any as S.Schema<EnableServiceResourceRequest>,
405
+ output: __S(120, __c15, 0) as any as S.Schema<EnableServiceResourceResponse>,
845
406
  errors: [BadRequest, NotFound, UnknownStackitError],
846
407
  protocol: StackitProtocol,
847
408
  retry: Retry.Retry,
@@ -855,8 +416,8 @@ export const getBackup: API.OperationMethod<
855
416
  GetBackupError,
856
417
  StackitOpContext
857
418
  > = /*@__PURE__*/ API.make(() => ({
858
- input: GetBackupRequest,
859
- output: Backup,
419
+ input: __S(0, __c0, 0) as any as S.Schema<GetBackupRequest>,
420
+ output: __S(10, __c1, 2) as any as S.Schema<Backup>,
860
421
  errors: [BadRequest, NotFound, UnknownStackitError],
861
422
  protocol: StackitProtocol,
862
423
  retry: Retry.Retry,
@@ -870,8 +431,8 @@ export const getBackupSchedule: API.OperationMethod<
870
431
  GetBackupScheduleError,
871
432
  StackitOpContext
872
433
  > = /*@__PURE__*/ API.make(() => ({
873
- input: GetBackupScheduleRequest,
874
- output: BackupSchedule,
434
+ input: __S(16, __c2, 0) as any as S.Schema<GetBackupScheduleRequest>,
435
+ output: __S(105, __c13, 1) as any as S.Schema<BackupSchedule>,
875
436
  errors: [BadRequest, NotFound, UnknownStackitError],
876
437
  protocol: StackitProtocol,
877
438
  retry: Retry.Retry,
@@ -885,8 +446,8 @@ export const getServiceResource: API.OperationMethod<
885
446
  GetServiceResourceError,
886
447
  StackitOpContext
887
448
  > = /*@__PURE__*/ API.make(() => ({
888
- input: GetServiceResourceRequest,
889
- output: GetBackupServiceResponse,
449
+ input: __S(24, __c3, 0) as any as S.Schema<GetServiceResourceRequest>,
450
+ output: __S(25, __c3, 1) as any as S.Schema<GetBackupServiceResponse>,
890
451
  errors: [BadRequest, NotFound, UnknownStackitError],
891
452
  protocol: StackitProtocol,
892
453
  retry: Retry.Retry,
@@ -900,8 +461,8 @@ export const listBackupPolicies: API.OperationMethod<
900
461
  ListBackupPoliciesError,
901
462
  StackitOpContext
902
463
  > = /*@__PURE__*/ API.make(() => ({
903
- input: ListBackupPoliciesRequest,
904
- output: GetBackupPoliciesResponse,
464
+ input: __S(32, __c4, 0) as any as S.Schema<ListBackupPoliciesRequest>,
465
+ output: __S(36, __c4, 4) as any as S.Schema<GetBackupPoliciesResponse>,
905
466
  errors: [BadRequest, NotFound, UnknownStackitError],
906
467
  protocol: StackitProtocol,
907
468
  retry: Retry.Retry,
@@ -915,8 +476,8 @@ export const listBackups: API.OperationMethod<
915
476
  ListBackupsError,
916
477
  StackitOpContext
917
478
  > = /*@__PURE__*/ API.make(() => ({
918
- input: ListBackupsRequest,
919
- output: GetBackupsListResponse,
479
+ input: __S(40, __c5, 0) as any as S.Schema<ListBackupsRequest>,
480
+ output: __S(42, __c5, 2) as any as S.Schema<GetBackupsListResponse>,
920
481
  errors: [BadRequest, NotFound, UnknownStackitError],
921
482
  protocol: StackitProtocol,
922
483
  retry: Retry.Retry,
@@ -930,8 +491,8 @@ export const listBackupSchedules: API.OperationMethod<
930
491
  ListBackupSchedulesError,
931
492
  StackitOpContext
932
493
  > = /*@__PURE__*/ API.make(() => ({
933
- input: ListBackupSchedulesRequest,
934
- output: GetBackupSchedulesResponse,
494
+ input: __S(48, __c6, 0) as any as S.Schema<ListBackupSchedulesRequest>,
495
+ output: __S(50, __c6, 2) as any as S.Schema<GetBackupSchedulesResponse>,
935
496
  errors: [BadRequest, NotFound, UnknownStackitError],
936
497
  protocol: StackitProtocol,
937
498
  retry: Retry.Retry,
@@ -945,8 +506,8 @@ export const restoreBackup: API.OperationMethod<
945
506
  RestoreBackupError,
946
507
  StackitOpContext
947
508
  > = /*@__PURE__*/ API.make(() => ({
948
- input: RestoreBackupRequest,
949
- output: RestoreBackupResponse,
509
+ input: __S(56, __c7, 0) as any as S.Schema<RestoreBackupRequest>,
510
+ output: __S(120, __c15, 0) as any as S.Schema<RestoreBackupResponse>,
950
511
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
951
512
  protocol: StackitProtocol,
952
513
  retry: Retry.Retry,
@@ -960,8 +521,8 @@ export const restoreVolumeBackup: API.OperationMethod<
960
521
  RestoreVolumeBackupError,
961
522
  StackitOpContext
962
523
  > = /*@__PURE__*/ API.make(() => ({
963
- input: RestoreVolumeBackupRequest,
964
- output: RestoreVolumeBackupResponse,
524
+ input: __S(64, __c8, 0) as any as S.Schema<RestoreVolumeBackupRequest>,
525
+ output: __S(120, __c15, 0) as any as S.Schema<RestoreVolumeBackupResponse>,
965
526
  errors: [BadRequest, NotFound, UnknownStackitError],
966
527
  protocol: StackitProtocol,
967
528
  retry: Retry.Retry,
@@ -975,9 +536,463 @@ export const updateBackupSchedule: API.OperationMethod<
975
536
  UpdateBackupScheduleError,
976
537
  StackitOpContext
977
538
  > = /*@__PURE__*/ API.make(() => ({
978
- input: UpdateBackupScheduleRequest,
979
- output: BackupSchedule,
539
+ input: __S(72, __c9, 0) as any as S.Schema<UpdateBackupScheduleRequest>,
540
+ output: __S(105, __c13, 1) as any as S.Schema<BackupSchedule>,
980
541
  errors: [BadRequest, NotFound, UnknownStackitError],
981
542
  protocol: StackitProtocol,
982
543
  retry: Retry.Retry,
983
544
  }));
545
+
546
+ // Schema builders: each runs one schema initializer, on that schema's first use.
547
+ function __c0(j: number): any {
548
+ switch (j) {
549
+ case 0:
550
+ return S.suspend(() =>
551
+ S.Struct({
552
+ projectId: S.String.pipe(T.Label()),
553
+ region: S.String.pipe(T.Label()),
554
+ serverId: S.String.pipe(T.Label()),
555
+ backupId: S.String.pipe(T.Label()),
556
+ }).pipe(
557
+ T.Http({
558
+ method: "GET",
559
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",
560
+ code: 200,
561
+ baseUrl: "https://server-backup.api.stackit.cloud",
562
+ }),
563
+ ),
564
+ ).annotate({ identifier: "GetBackupRequest" });
565
+ }
566
+ }
567
+ function __c1(j: number): any {
568
+ switch (j) {
569
+ case 0:
570
+ return S.suspend(() =>
571
+ S.Struct({
572
+ id: S.optional(S.String),
573
+ lastRestoredAt: S.optional(S.String),
574
+ lastRestoredVolumeId: S.optional(S.String),
575
+ size: S.optional(S.Number),
576
+ status: S.optional(S.String),
577
+ volumeId: S.optional(S.String),
578
+ }),
579
+ ).annotate({ identifier: "BackupVolumeBackupsItem" });
580
+ case 1:
581
+ return S.Array(__S(8, __c1, 0));
582
+ case 2:
583
+ return S.suspend(() =>
584
+ S.Struct({
585
+ createdAt: S.String,
586
+ expireAt: S.String,
587
+ id: S.String,
588
+ lastRestoredAt: S.optional(S.String),
589
+ name: S.String,
590
+ size: S.optional(S.Number),
591
+ status: S.String,
592
+ volumeBackups: S.optional(__S(9, __c1, 1)),
593
+ }),
594
+ ).annotate({ identifier: "Backup" });
595
+ }
596
+ }
597
+ function __c2(j: number): any {
598
+ switch (j) {
599
+ case 0:
600
+ return S.suspend(() =>
601
+ S.Struct({
602
+ projectId: S.String.pipe(T.Label()),
603
+ region: S.String.pipe(T.Label()),
604
+ serverId: S.String.pipe(T.Label()),
605
+ backupScheduleId: S.String.pipe(T.Label()),
606
+ }).pipe(
607
+ T.Http({
608
+ method: "GET",
609
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",
610
+ code: 200,
611
+ baseUrl: "https://server-backup.api.stackit.cloud",
612
+ }),
613
+ ),
614
+ ).annotate({ identifier: "GetBackupScheduleRequest" });
615
+ }
616
+ }
617
+ function __c3(j: number): any {
618
+ switch (j) {
619
+ case 0:
620
+ return S.suspend(() =>
621
+ S.Struct({
622
+ projectId: S.String.pipe(T.Label()),
623
+ region: S.String.pipe(T.Label()),
624
+ serverId: S.String.pipe(T.Label()),
625
+ }).pipe(
626
+ T.Http({
627
+ method: "GET",
628
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
629
+ code: 200,
630
+ baseUrl: "https://server-backup.api.stackit.cloud",
631
+ }),
632
+ ),
633
+ ).annotate({ identifier: "GetServiceResourceRequest" });
634
+ case 1:
635
+ return S.suspend(() =>
636
+ S.Struct({
637
+ enabled: S.optional(S.Boolean),
638
+ }),
639
+ ).annotate({ identifier: "GetBackupServiceResponse" });
640
+ }
641
+ }
642
+ function __c4(j: number): any {
643
+ switch (j) {
644
+ case 0:
645
+ return S.suspend(() =>
646
+ S.Struct({
647
+ projectId: S.String.pipe(T.Label()),
648
+ }).pipe(
649
+ T.Http({
650
+ method: "GET",
651
+ uri: "/v2/projects/{projectId}/backup-policies",
652
+ code: 200,
653
+ baseUrl: "https://server-backup.api.stackit.cloud",
654
+ }),
655
+ ),
656
+ ).annotate({ identifier: "ListBackupPoliciesRequest" });
657
+ case 1:
658
+ return S.suspend(() =>
659
+ S.Struct({
660
+ name: S.optional(S.String),
661
+ retentionPeriod: S.optional(S.Number),
662
+ }),
663
+ ).annotate({ identifier: "BackupPolicyBackupProperties" });
664
+ case 2:
665
+ return S.suspend(() =>
666
+ S.Struct({
667
+ backupProperties: S.optional(__S(33, __c4, 1)),
668
+ default: S.optional(S.Boolean),
669
+ description: S.optional(S.String),
670
+ enabled: S.optional(S.Boolean),
671
+ id: S.optional(S.String),
672
+ name: S.optional(S.String),
673
+ rrule: S.optional(S.String),
674
+ }),
675
+ ).annotate({ identifier: "BackupPolicy" });
676
+ case 3:
677
+ return S.Array(__S(34, __c4, 2));
678
+ case 4:
679
+ return S.suspend(() =>
680
+ S.Struct({
681
+ items: S.optional(__S(35, __c4, 3)),
682
+ }),
683
+ ).annotate({ identifier: "GetBackupPoliciesResponse" });
684
+ }
685
+ }
686
+ function __c5(j: number): any {
687
+ switch (j) {
688
+ case 0:
689
+ return S.suspend(() =>
690
+ S.Struct({
691
+ projectId: S.String.pipe(T.Label()),
692
+ region: S.String.pipe(T.Label()),
693
+ serverId: S.String.pipe(T.Label()),
694
+ }).pipe(
695
+ T.Http({
696
+ method: "GET",
697
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",
698
+ code: 200,
699
+ baseUrl: "https://server-backup.api.stackit.cloud",
700
+ }),
701
+ ),
702
+ ).annotate({ identifier: "ListBackupsRequest" });
703
+ case 1:
704
+ return S.Array(__S(10, __c1, 2));
705
+ case 2:
706
+ return S.suspend(() =>
707
+ S.Struct({
708
+ items: S.optional(__S(41, __c5, 1)),
709
+ }),
710
+ ).annotate({ identifier: "GetBackupsListResponse" });
711
+ }
712
+ }
713
+ function __c6(j: number): any {
714
+ switch (j) {
715
+ case 0:
716
+ return S.suspend(() =>
717
+ S.Struct({
718
+ projectId: S.String.pipe(T.Label()),
719
+ region: S.String.pipe(T.Label()),
720
+ serverId: S.String.pipe(T.Label()),
721
+ }).pipe(
722
+ T.Http({
723
+ method: "GET",
724
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",
725
+ code: 200,
726
+ baseUrl: "https://server-backup.api.stackit.cloud",
727
+ }),
728
+ ),
729
+ ).annotate({ identifier: "ListBackupSchedulesRequest" });
730
+ case 1:
731
+ return S.Array(__S(105, __c13, 1));
732
+ case 2:
733
+ return S.suspend(() =>
734
+ S.Struct({
735
+ items: S.optional(__S(49, __c6, 1)),
736
+ }),
737
+ ).annotate({ identifier: "GetBackupSchedulesResponse" });
738
+ }
739
+ }
740
+ function __c7(j: number): any {
741
+ switch (j) {
742
+ case 0:
743
+ return S.suspend(() =>
744
+ S.Struct({
745
+ projectId: S.String.pipe(T.Label()),
746
+ region: S.String.pipe(T.Label()),
747
+ serverId: S.String.pipe(T.Label()),
748
+ backupId: S.String.pipe(T.Label()),
749
+ startServerAfterRestore: S.Boolean,
750
+ volumeIds: S.optional(__S(88, __c11, 0)),
751
+ }).pipe(
752
+ T.Http({
753
+ method: "POST",
754
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/restore",
755
+ code: 200,
756
+ baseUrl: "https://server-backup.api.stackit.cloud",
757
+ }),
758
+ ),
759
+ ).annotate({ identifier: "RestoreBackupRequest" });
760
+ }
761
+ }
762
+ function __c8(j: number): any {
763
+ switch (j) {
764
+ case 0:
765
+ return S.suspend(() =>
766
+ S.Struct({
767
+ projectId: S.String.pipe(T.Label()),
768
+ region: S.String.pipe(T.Label()),
769
+ serverId: S.String.pipe(T.Label()),
770
+ backupId: S.String.pipe(T.Label()),
771
+ volumeBackupId: S.String.pipe(T.Label()),
772
+ restoreVolumeId: S.String,
773
+ }).pipe(
774
+ T.Http({
775
+ method: "POST",
776
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}/restore",
777
+ code: 200,
778
+ baseUrl: "https://server-backup.api.stackit.cloud",
779
+ }),
780
+ ),
781
+ ).annotate({ identifier: "RestoreVolumeBackupRequest" });
782
+ }
783
+ }
784
+ function __c9(j: number): any {
785
+ switch (j) {
786
+ case 0:
787
+ return S.suspend(() =>
788
+ S.Struct({
789
+ projectId: S.String.pipe(T.Label()),
790
+ region: S.String.pipe(T.Label()),
791
+ serverId: S.String.pipe(T.Label()),
792
+ backupScheduleId: S.String.pipe(T.Label()),
793
+ backupProperties: S.optional(__S(104, __c13, 0)),
794
+ enabled: S.Boolean,
795
+ name: S.String,
796
+ rrule: S.String,
797
+ }).pipe(
798
+ T.Http({
799
+ method: "PUT",
800
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",
801
+ code: 200,
802
+ baseUrl: "https://server-backup.api.stackit.cloud",
803
+ }),
804
+ ),
805
+ ).annotate({ identifier: "UpdateBackupScheduleRequest" });
806
+ }
807
+ }
808
+ function __c10(j: number): any {
809
+ switch (j) {
810
+ case 0:
811
+ return S.suspend(() =>
812
+ S.Struct({
813
+ projectId: S.String.pipe(T.Label()),
814
+ region: S.String.pipe(T.Label()),
815
+ serverId: S.String.pipe(T.Label()),
816
+ name: S.String,
817
+ retentionPeriod: S.Number,
818
+ volumeIds: S.optional(__S(88, __c11, 0)),
819
+ }).pipe(
820
+ T.Http({
821
+ method: "POST",
822
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",
823
+ code: 200,
824
+ baseUrl: "https://server-backup.api.stackit.cloud",
825
+ }),
826
+ ),
827
+ ).annotate({ identifier: "CreateBackupRequest" });
828
+ case 1:
829
+ return S.suspend(() =>
830
+ S.Struct({
831
+ id: S.String,
832
+ }),
833
+ ).annotate({ identifier: "BackupJob" });
834
+ }
835
+ }
836
+ function __c11(j: number): any {
837
+ switch (j) {
838
+ case 0:
839
+ return S.Array(S.String);
840
+ }
841
+ }
842
+ function __c12(j: number): any {
843
+ switch (j) {
844
+ case 0:
845
+ return S.suspend(() =>
846
+ S.Struct({
847
+ projectId: S.String.pipe(T.Label()),
848
+ region: S.String.pipe(T.Label()),
849
+ serverId: S.String.pipe(T.Label()),
850
+ backupProperties: S.optional(__S(104, __c13, 0)),
851
+ enabled: S.Boolean,
852
+ name: S.String,
853
+ rrule: S.String,
854
+ }).pipe(
855
+ T.Http({
856
+ method: "POST",
857
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",
858
+ code: 200,
859
+ baseUrl: "https://server-backup.api.stackit.cloud",
860
+ }),
861
+ ),
862
+ ).annotate({ identifier: "CreateBackupScheduleRequest" });
863
+ }
864
+ }
865
+ function __c13(j: number): any {
866
+ switch (j) {
867
+ case 0:
868
+ return S.suspend(() =>
869
+ S.Struct({
870
+ name: S.String,
871
+ retentionPeriod: S.Number,
872
+ volumeIds: S.optional(__S(88, __c11, 0)),
873
+ }),
874
+ ).annotate({ identifier: "BackupProperties" });
875
+ case 1:
876
+ return S.suspend(() =>
877
+ S.Struct({
878
+ backupProperties: S.optional(__S(104, __c13, 0)),
879
+ enabled: S.Boolean,
880
+ id: S.Number,
881
+ name: S.String,
882
+ rrule: S.String,
883
+ }),
884
+ ).annotate({ identifier: "BackupSchedule" });
885
+ }
886
+ }
887
+ function __c14(j: number): any {
888
+ switch (j) {
889
+ case 0:
890
+ return S.suspend(() =>
891
+ S.Struct({
892
+ projectId: S.String.pipe(T.Label()),
893
+ region: S.String.pipe(T.Label()),
894
+ serverId: S.String.pipe(T.Label()),
895
+ backupId: S.String.pipe(T.Label()),
896
+ force: S.optional(S.Boolean.pipe(T.Query())),
897
+ }).pipe(
898
+ T.Http({
899
+ method: "DELETE",
900
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",
901
+ code: 200,
902
+ baseUrl: "https://server-backup.api.stackit.cloud",
903
+ }),
904
+ ),
905
+ ).annotate({ identifier: "DeleteBackupRequest" });
906
+ }
907
+ }
908
+ function __c15(j: number): any {
909
+ switch (j) {
910
+ case 0:
911
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteBackupResponse" });
912
+ }
913
+ }
914
+ function __c16(j: number): any {
915
+ switch (j) {
916
+ case 0:
917
+ return S.suspend(() =>
918
+ S.Struct({
919
+ projectId: S.String.pipe(T.Label()),
920
+ region: S.String.pipe(T.Label()),
921
+ serverId: S.String.pipe(T.Label()),
922
+ backupScheduleId: S.String.pipe(T.Label()),
923
+ }).pipe(
924
+ T.Http({
925
+ method: "DELETE",
926
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",
927
+ code: 200,
928
+ baseUrl: "https://server-backup.api.stackit.cloud",
929
+ }),
930
+ ),
931
+ ).annotate({ identifier: "DeleteBackupScheduleRequest" });
932
+ }
933
+ }
934
+ function __c17(j: number): any {
935
+ switch (j) {
936
+ case 0:
937
+ return S.suspend(() =>
938
+ S.Struct({
939
+ projectId: S.String.pipe(T.Label()),
940
+ region: S.String.pipe(T.Label()),
941
+ serverId: S.String.pipe(T.Label()),
942
+ backupId: S.String.pipe(T.Label()),
943
+ volumeBackupId: S.String.pipe(T.Label()),
944
+ force: S.optional(S.Boolean.pipe(T.Query())),
945
+ }).pipe(
946
+ T.Http({
947
+ method: "DELETE",
948
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}",
949
+ code: 200,
950
+ baseUrl: "https://server-backup.api.stackit.cloud",
951
+ }),
952
+ ),
953
+ ).annotate({ identifier: "DeleteVolumeBackupRequest" });
954
+ }
955
+ }
956
+ function __c18(j: number): any {
957
+ switch (j) {
958
+ case 0:
959
+ return S.suspend(() =>
960
+ S.Struct({
961
+ projectId: S.String.pipe(T.Label()),
962
+ region: S.String.pipe(T.Label()),
963
+ serverId: S.String.pipe(T.Label()),
964
+ }).pipe(
965
+ T.Http({
966
+ method: "DELETE",
967
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
968
+ code: 200,
969
+ baseUrl: "https://server-backup.api.stackit.cloud",
970
+ }),
971
+ ),
972
+ ).annotate({ identifier: "DisableServiceResourceRequest" });
973
+ }
974
+ }
975
+ function __c19(j: number): any {
976
+ switch (j) {
977
+ case 0:
978
+ return S.suspend(() =>
979
+ S.Struct({
980
+ projectId: S.String.pipe(T.Label()),
981
+ region: S.String.pipe(T.Label()),
982
+ serverId: S.String.pipe(T.Label()),
983
+ backupPolicyId: S.optional(S.String),
984
+ }).pipe(
985
+ T.Http({
986
+ method: "POST",
987
+ uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
988
+ code: 200,
989
+ baseUrl: "https://server-backup.api.stackit.cloud",
990
+ }),
991
+ ),
992
+ ).annotate({ identifier: "EnableServiceResourceRequest" });
993
+ }
994
+ }
995
+ // Schema table: entry i is schema j of builder f, made on first reach.
996
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
997
+ return (__s[i] ??= __L.at(f, j));
998
+ }