@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13

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