@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16

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 (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -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
+ }