@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,1379 @@
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 Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.ts";
7
+ import {
8
+ StackitProtocol,
9
+ type StackitOpError,
10
+ type StackitOpContext,
11
+ } from "../protocol.ts";
12
+ import { UnknownStackitError } from "../errors.ts";
13
+ import * as Retry from "../retry.ts";
14
+
15
+ export type { StackitOpError, StackitOpContext };
16
+
17
+ export class BadRequest
18
+ extends /*@__PURE__*/ T.applyErrorMatchers(
19
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
20
+ code: S.Number,
21
+ message: S.String,
22
+ }).pipe(C.withBadRequestError),
23
+ [{ status: 400 }],
24
+ ) {}
25
+
26
+ export class Conflict
27
+ extends /*@__PURE__*/ T.applyErrorMatchers(
28
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
29
+ code: S.Number,
30
+ message: S.String,
31
+ }).pipe(C.withConflictError),
32
+ [{ status: 409 }],
33
+ ) {}
34
+
35
+ export class NotFound
36
+ extends /*@__PURE__*/ T.applyErrorMatchers(
37
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
38
+ code: S.Number,
39
+ message: S.String,
40
+ }).pipe(C.withBadRequestError),
41
+ [{ status: 404 }],
42
+ ) {}
43
+
44
+ export interface CreateBackupRequest {
45
+ /** Project id on which user has permissions */
46
+ projectId: string;
47
+ /** region in which the project resides */
48
+ regionId: string;
49
+ /** Instance id */
50
+ instanceId: string;
51
+ }
52
+ export const CreateBackupRequest = /*@__PURE__*/ S.suspend(() =>
53
+ S.Struct({
54
+ projectId: S.String.pipe(T.Label()),
55
+ regionId: S.String.pipe(T.Label()),
56
+ instanceId: S.String.pipe(T.Label()),
57
+ }).pipe(
58
+ T.Http({
59
+ method: "POST",
60
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
61
+ code: 200,
62
+ baseUrl: "https://logme.api.stackit.cloud",
63
+ }),
64
+ ),
65
+ ).annotate({
66
+ identifier: "CreateBackupRequest",
67
+ }) as any as S.Schema<CreateBackupRequest>;
68
+
69
+ export interface CreateBackupResponseItem {
70
+ id: number;
71
+ message: string;
72
+ }
73
+ export const CreateBackupResponseItem = /*@__PURE__*/ S.suspend(() =>
74
+ S.Struct({
75
+ id: S.Number,
76
+ message: S.String,
77
+ }),
78
+ ).annotate({
79
+ identifier: "CreateBackupResponseItem",
80
+ }) as any as S.Schema<CreateBackupResponseItem>;
81
+
82
+ export interface CreateCredentialsRequest {
83
+ /** Project id on which user has permissions */
84
+ projectId: string;
85
+ /** region in which the project resides */
86
+ regionId: string;
87
+ /** Instance id */
88
+ instanceId: string;
89
+ parameters?: unknown;
90
+ }
91
+ export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
92
+ S.Struct({
93
+ projectId: S.String.pipe(T.Label()),
94
+ regionId: S.String.pipe(T.Label()),
95
+ instanceId: S.String.pipe(T.Label()),
96
+ parameters: S.optional(S.Unknown),
97
+ }).pipe(
98
+ T.Http({
99
+ method: "POST",
100
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
101
+ code: 200,
102
+ baseUrl: "https://logme.api.stackit.cloud",
103
+ }),
104
+ ),
105
+ ).annotate({
106
+ identifier: "CreateCredentialsRequest",
107
+ }) as any as S.Schema<CreateCredentialsRequest>;
108
+
109
+ export interface Credentials {
110
+ host: string;
111
+ password: string | Redacted.Redacted<string>;
112
+ port?: number;
113
+ syslog_drain_url?: string;
114
+ uri?: string;
115
+ username: string;
116
+ }
117
+ export const Credentials = /*@__PURE__*/ S.suspend(() =>
118
+ S.Struct({
119
+ host: S.String,
120
+ password: S.String.pipe(T.SensitiveValue({})),
121
+ port: S.optional(S.Number),
122
+ syslog_drain_url: S.optional(S.String),
123
+ uri: S.optional(S.String),
124
+ username: S.String,
125
+ }),
126
+ ).annotate({ identifier: "Credentials" }) as any as S.Schema<Credentials>;
127
+
128
+ export interface RawCredentials {
129
+ credentials: Credentials;
130
+ }
131
+ export const RawCredentials = /*@__PURE__*/ S.suspend(() =>
132
+ S.Struct({
133
+ credentials: Credentials,
134
+ }),
135
+ ).annotate({ identifier: "RawCredentials" }) as any as S.Schema<RawCredentials>;
136
+
137
+ export interface CredentialsResponse {
138
+ id: string;
139
+ raw?: RawCredentials;
140
+ uri: string;
141
+ }
142
+ export const CredentialsResponse = /*@__PURE__*/ S.suspend(() =>
143
+ S.Struct({
144
+ id: S.String,
145
+ raw: S.optional(RawCredentials),
146
+ uri: S.String,
147
+ }),
148
+ ).annotate({
149
+ identifier: "CredentialsResponse",
150
+ }) as any as S.Schema<CredentialsResponse>;
151
+
152
+ export interface InstanceParametersGroksItem {
153
+ pattern?: string;
154
+ }
155
+ export const InstanceParametersGroksItem = /*@__PURE__*/ S.suspend(() =>
156
+ S.Struct({
157
+ pattern: S.optional(S.String),
158
+ }),
159
+ ).annotate({
160
+ identifier: "InstanceParametersGroksItem",
161
+ }) as any as S.Schema<InstanceParametersGroksItem>;
162
+
163
+ export type InstanceParametersGroksList = Array<InstanceParametersGroksItem>;
164
+ export const InstanceParametersGroksList = /*@__PURE__*/ S.Array(
165
+ InstanceParametersGroksItem,
166
+ ) as any as S.Schema<InstanceParametersGroksList>;
167
+
168
+ export type InstanceParametersOpensearchTlsCiphersItem = "TLSv1.2" | "TLSv1.3";
169
+ export const InstanceParametersOpensearchTlsCiphersItem =
170
+ /*@__PURE__*/ S.String;
171
+
172
+ /** This property is deprecated and will be removed in a future release. */
173
+ export type InstanceParametersOpensearchTlsCiphersList = Array<
174
+ InstanceParametersOpensearchTlsCiphersItem | (string & {})
175
+ >;
176
+ export const InstanceParametersOpensearchTlsCiphersList = /*@__PURE__*/ S.Array(
177
+ InstanceParametersOpensearchTlsCiphersItem,
178
+ ) as any as S.Schema<InstanceParametersOpensearchTlsCiphersList>;
179
+
180
+ /** This property is deprecated and will be removed in a future release. */
181
+ export type InstanceParametersOpensearchTlsProtocolsList = Array<string>;
182
+ export const InstanceParametersOpensearchTlsProtocolsList =
183
+ /*@__PURE__*/ S.Array(
184
+ S.String,
185
+ ) as any as S.Schema<InstanceParametersOpensearchTlsProtocolsList>;
186
+
187
+ export type InstanceParametersSyslogList = Array<string>;
188
+ export const InstanceParametersSyslogList = /*@__PURE__*/ S.Array(
189
+ S.String,
190
+ ) as any as S.Schema<InstanceParametersSyslogList>;
191
+
192
+ export interface InstanceParameters {
193
+ enable_monitoring?: boolean;
194
+ fluentd_tcp?: number;
195
+ /** This property is deprecated and will be removed in a future release. */
196
+ fluentd_tls?: number;
197
+ /** This property is deprecated and will be removed in a future release. */
198
+ fluentd_tls_ciphers?: string;
199
+ /** This property is deprecated and will be removed in a future release. */
200
+ fluentd_tls_max_version?: string;
201
+ /** This property is deprecated and will be removed in a future release. */
202
+ fluentd_tls_min_version?: string;
203
+ /** This property is deprecated and will be removed in a future release. */
204
+ fluentd_tls_version?: string;
205
+ fluentd_udp?: number;
206
+ /** If you want to monitor your service with Graphite, you can set the custom parameter graphite. It expects the host and port where the Graphite metrics should be sent to. */
207
+ graphite?: string;
208
+ groks?: InstanceParametersGroksList;
209
+ /** Combination of an integer and a timerange when an index will be considered 'd' and can be deleted from OpenSearch. Possible values for the timerange are s, m, h and d. */
210
+ ism_deletion_after?: string;
211
+ ism_jitter?: number;
212
+ ism_job_interval?: number;
213
+ /** Default: not set, 46% of available memory will be used. The amount of memory (in MB) allocated as heap by the JVM for OpenSearch. */
214
+ java_heapspace?: number;
215
+ /** The amount of memory (in MB) used by the JVM to store metadata for OpenSearch. */
216
+ java_maxmetaspace?: number;
217
+ /** This component monitors ephemeral and persistent disk usage. If one of these disk usages reaches the default configured threshold of 80%, the a9s Parachute stops all processes on that node. */
218
+ max_disk_threshold?: number;
219
+ /** Frequency of metrics being emitted in seconds */
220
+ metrics_frequency?: number;
221
+ /** Depending on your graphite provider, you might need to prefix the metrics with a certain value, like an API key for example. */
222
+ metrics_prefix?: string;
223
+ monitoring_instance_id?: string;
224
+ /** This property is deprecated and will be removed in a future release. */
225
+ opensearch_tls_ciphers?: InstanceParametersOpensearchTlsCiphersList;
226
+ /** This property is deprecated and will be removed in a future release. */
227
+ opensearch_tls_protocols?: InstanceParametersOpensearchTlsProtocolsList;
228
+ /** Comma separated list of IP networks in CIDR notation which are allowed to access this instance. */
229
+ sgw_acl?: string;
230
+ syslog?: InstanceParametersSyslogList;
231
+ }
232
+ export const InstanceParameters = /*@__PURE__*/ S.suspend(() =>
233
+ S.Struct({
234
+ enable_monitoring: S.optional(S.Boolean),
235
+ fluentd_tcp: S.optional(S.Number.pipe(T.Body("fluentd-tcp"))),
236
+ fluentd_tls: S.optional(S.Number.pipe(T.Body("fluentd-tls"))),
237
+ fluentd_tls_ciphers: S.optional(
238
+ S.String.pipe(T.Body("fluentd-tls-ciphers")),
239
+ ),
240
+ fluentd_tls_max_version: S.optional(
241
+ S.String.pipe(T.Body("fluentd-tls-max-version")),
242
+ ),
243
+ fluentd_tls_min_version: S.optional(
244
+ S.String.pipe(T.Body("fluentd-tls-min-version")),
245
+ ),
246
+ fluentd_tls_version: S.optional(
247
+ S.String.pipe(T.Body("fluentd-tls-version")),
248
+ ),
249
+ fluentd_udp: S.optional(S.Number.pipe(T.Body("fluentd-udp"))),
250
+ graphite: S.optional(S.String),
251
+ groks: S.optional(InstanceParametersGroksList),
252
+ ism_deletion_after: S.optional(S.String),
253
+ ism_jitter: S.optional(S.Number),
254
+ ism_job_interval: S.optional(S.Number),
255
+ java_heapspace: S.optional(S.Number),
256
+ java_maxmetaspace: S.optional(S.Number),
257
+ max_disk_threshold: S.optional(S.Number),
258
+ metrics_frequency: S.optional(S.Number),
259
+ metrics_prefix: S.optional(S.String),
260
+ monitoring_instance_id: S.optional(S.String),
261
+ opensearch_tls_ciphers: S.optional(
262
+ InstanceParametersOpensearchTlsCiphersList.pipe(
263
+ T.Body("opensearch-tls-ciphers"),
264
+ ),
265
+ ),
266
+ opensearch_tls_protocols: S.optional(
267
+ InstanceParametersOpensearchTlsProtocolsList.pipe(
268
+ T.Body("opensearch-tls-protocols"),
269
+ ),
270
+ ),
271
+ sgw_acl: S.optional(S.String),
272
+ syslog: S.optional(InstanceParametersSyslogList),
273
+ }),
274
+ ).annotate({
275
+ identifier: "InstanceParameters",
276
+ }) as any as S.Schema<InstanceParameters>;
277
+
278
+ export interface CreateInstanceRequest {
279
+ /** Project id on which user has permissions */
280
+ projectId: string;
281
+ /** region in which the project resides */
282
+ regionId: string;
283
+ instanceName: string;
284
+ parameters?: InstanceParameters;
285
+ planId: string;
286
+ }
287
+ export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
288
+ S.Struct({
289
+ projectId: S.String.pipe(T.Label()),
290
+ regionId: S.String.pipe(T.Label()),
291
+ instanceName: S.String,
292
+ parameters: S.optional(InstanceParameters),
293
+ planId: S.String,
294
+ }).pipe(
295
+ T.Http({
296
+ method: "POST",
297
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
298
+ code: 200,
299
+ baseUrl: "https://logme.api.stackit.cloud",
300
+ }),
301
+ ),
302
+ ).annotate({
303
+ identifier: "CreateInstanceRequest",
304
+ }) as any as S.Schema<CreateInstanceRequest>;
305
+
306
+ export interface CreateInstanceResponse {
307
+ instanceId: string;
308
+ }
309
+ export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
310
+ S.Struct({
311
+ instanceId: S.String,
312
+ }),
313
+ ).annotate({
314
+ identifier: "CreateInstanceResponse",
315
+ }) as any as S.Schema<CreateInstanceResponse>;
316
+
317
+ export interface DeleteCredentialsRequest {
318
+ /** Project id on which user has permissions */
319
+ projectId: string;
320
+ /** region in which the project resides */
321
+ regionId: string;
322
+ /** Instance id */
323
+ instanceId: string;
324
+ /** Id of the credentials being deleted */
325
+ credentialsId: string;
326
+ }
327
+ export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
328
+ S.Struct({
329
+ projectId: S.String.pipe(T.Label()),
330
+ regionId: S.String.pipe(T.Label()),
331
+ instanceId: S.String.pipe(T.Label()),
332
+ credentialsId: S.String.pipe(T.Label()),
333
+ }).pipe(
334
+ T.Http({
335
+ method: "DELETE",
336
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
337
+ code: 200,
338
+ baseUrl: "https://logme.api.stackit.cloud",
339
+ }),
340
+ ),
341
+ ).annotate({
342
+ identifier: "DeleteCredentialsRequest",
343
+ }) as any as S.Schema<DeleteCredentialsRequest>;
344
+
345
+ export interface DeleteCredentialsResponse {}
346
+ export const DeleteCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
347
+ S.Struct({}),
348
+ ).annotate({
349
+ identifier: "DeleteCredentialsResponse",
350
+ }) as any as S.Schema<DeleteCredentialsResponse>;
351
+
352
+ export interface DeleteInstanceRequest {
353
+ /** Project id on which user has permissions */
354
+ projectId: string;
355
+ /** region in which the project resides */
356
+ regionId: string;
357
+ /** Instance id */
358
+ instanceId: string;
359
+ }
360
+ export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
361
+ S.Struct({
362
+ projectId: S.String.pipe(T.Label()),
363
+ regionId: S.String.pipe(T.Label()),
364
+ instanceId: S.String.pipe(T.Label()),
365
+ }).pipe(
366
+ T.Http({
367
+ method: "DELETE",
368
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
369
+ code: 200,
370
+ baseUrl: "https://logme.api.stackit.cloud",
371
+ }),
372
+ ),
373
+ ).annotate({
374
+ identifier: "DeleteInstanceRequest",
375
+ }) as any as S.Schema<DeleteInstanceRequest>;
376
+
377
+ export interface DeleteInstanceResponse {}
378
+ export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() =>
379
+ S.Struct({}),
380
+ ).annotate({
381
+ identifier: "DeleteInstanceResponse",
382
+ }) as any as S.Schema<DeleteInstanceResponse>;
383
+
384
+ export interface DownloadBackupRequest {
385
+ /** Project id on which user has permissions */
386
+ projectId: string;
387
+ /** region in which the project resides */
388
+ regionId: string;
389
+ /** Instance id */
390
+ instanceId: string;
391
+ /** Backup id */
392
+ backupId: number;
393
+ }
394
+ export const DownloadBackupRequest = /*@__PURE__*/ S.suspend(() =>
395
+ S.Struct({
396
+ projectId: S.String.pipe(T.Label()),
397
+ regionId: S.String.pipe(T.Label()),
398
+ instanceId: S.String.pipe(T.Label()),
399
+ backupId: S.Number.pipe(T.Label()),
400
+ }).pipe(
401
+ T.Http({
402
+ method: "GET",
403
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
404
+ code: 200,
405
+ baseUrl: "https://logme.api.stackit.cloud",
406
+ }),
407
+ ),
408
+ ).annotate({
409
+ identifier: "DownloadBackupRequest",
410
+ }) as any as S.Schema<DownloadBackupRequest>;
411
+
412
+ export interface DownloadBackupResponse {}
413
+ export const DownloadBackupResponse = /*@__PURE__*/ S.suspend(() =>
414
+ S.Struct({}),
415
+ ).annotate({
416
+ identifier: "DownloadBackupResponse",
417
+ }) as any as S.Schema<DownloadBackupResponse>;
418
+
419
+ export interface GetCredentialsRequest {
420
+ /** Project id on which user has permissions */
421
+ projectId: string;
422
+ /** region in which the project resides */
423
+ regionId: string;
424
+ /** Instance id */
425
+ instanceId: string;
426
+ /** Credentials id of credentials to fetch */
427
+ credentialsId: string;
428
+ }
429
+ export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
430
+ S.Struct({
431
+ projectId: S.String.pipe(T.Label()),
432
+ regionId: S.String.pipe(T.Label()),
433
+ instanceId: S.String.pipe(T.Label()),
434
+ credentialsId: S.String.pipe(T.Label()),
435
+ }).pipe(
436
+ T.Http({
437
+ method: "GET",
438
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
439
+ code: 200,
440
+ baseUrl: "https://logme.api.stackit.cloud",
441
+ }),
442
+ ),
443
+ ).annotate({
444
+ identifier: "GetCredentialsRequest",
445
+ }) as any as S.Schema<GetCredentialsRequest>;
446
+
447
+ export interface GetInstanceRequest {
448
+ /** Project id on which user has permissions */
449
+ projectId: string;
450
+ /** region in which the project resides */
451
+ regionId: string;
452
+ /** Instance id */
453
+ instanceId: string;
454
+ }
455
+ export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
456
+ S.Struct({
457
+ projectId: S.String.pipe(T.Label()),
458
+ regionId: S.String.pipe(T.Label()),
459
+ instanceId: S.String.pipe(T.Label()),
460
+ }).pipe(
461
+ T.Http({
462
+ method: "GET",
463
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
464
+ code: 200,
465
+ baseUrl: "https://logme.api.stackit.cloud",
466
+ }),
467
+ ),
468
+ ).annotate({
469
+ identifier: "GetInstanceRequest",
470
+ }) as any as S.Schema<GetInstanceRequest>;
471
+
472
+ export type InstanceLastOperationState = "in progress" | "succeeded" | "failed";
473
+ export const InstanceLastOperationState = /*@__PURE__*/ S.String;
474
+
475
+ export type InstanceLastOperationType = "create" | "update" | "delete";
476
+ export const InstanceLastOperationType = /*@__PURE__*/ S.String;
477
+
478
+ export interface InstanceLastOperation {
479
+ description: string;
480
+ state: InstanceLastOperationState;
481
+ type: InstanceLastOperationType;
482
+ }
483
+ export const InstanceLastOperation = /*@__PURE__*/ S.suspend(() =>
484
+ S.Struct({
485
+ description: S.String,
486
+ state: InstanceLastOperationState,
487
+ type: InstanceLastOperationType,
488
+ }),
489
+ ).annotate({
490
+ identifier: "InstanceLastOperation",
491
+ }) as any as S.Schema<InstanceLastOperation>;
492
+
493
+ export type InstanceStatus =
494
+ | "active"
495
+ | "failed"
496
+ | "stopped"
497
+ | "creating"
498
+ | "deleting"
499
+ | "updating";
500
+ export const InstanceStatus = /*@__PURE__*/ S.String;
501
+
502
+ export interface Instance {
503
+ cfGuid: string;
504
+ cfOrganizationGuid: string;
505
+ cfSpaceGuid: string;
506
+ dashboardUrl: string;
507
+ imageUrl: string;
508
+ instanceId?: string;
509
+ lastOperation: InstanceLastOperation;
510
+ name: string;
511
+ offeringName: string;
512
+ offeringVersion: string;
513
+ parameters: unknown;
514
+ planId: string;
515
+ planName: string;
516
+ status?: InstanceStatus;
517
+ }
518
+ export const Instance = /*@__PURE__*/ S.suspend(() =>
519
+ S.Struct({
520
+ cfGuid: S.String,
521
+ cfOrganizationGuid: S.String,
522
+ cfSpaceGuid: S.String,
523
+ dashboardUrl: S.String,
524
+ imageUrl: S.String,
525
+ instanceId: S.optional(S.String),
526
+ lastOperation: InstanceLastOperation,
527
+ name: S.String,
528
+ offeringName: S.String,
529
+ offeringVersion: S.String,
530
+ parameters: S.Unknown,
531
+ planId: S.String,
532
+ planName: S.String,
533
+ status: S.optional(InstanceStatus),
534
+ }),
535
+ ).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
536
+
537
+ export interface GetMetricsRequest {
538
+ /** Project id on which user has permissions */
539
+ projectId: string;
540
+ /** region in which the project resides */
541
+ regionId: string;
542
+ /** Instance id */
543
+ instanceId: string;
544
+ }
545
+ export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() =>
546
+ S.Struct({
547
+ projectId: S.String.pipe(T.Label()),
548
+ regionId: S.String.pipe(T.Label()),
549
+ instanceId: S.String.pipe(T.Label()),
550
+ }).pipe(
551
+ T.Http({
552
+ method: "GET",
553
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
554
+ code: 200,
555
+ baseUrl: "https://logme.api.stackit.cloud",
556
+ }),
557
+ ),
558
+ ).annotate({
559
+ identifier: "GetMetricsRequest",
560
+ }) as any as S.Schema<GetMetricsRequest>;
561
+
562
+ export interface GetMetricsResponse {
563
+ cpuIdleTime?: number;
564
+ cpuLoadPercent: number;
565
+ cpuSystemTime?: number;
566
+ cpuUserTime?: number;
567
+ diskEphemeralTotal: number;
568
+ diskEphemeralUsed: number;
569
+ diskPersistentTotal: number;
570
+ diskPersistentUsed: number;
571
+ load1: number;
572
+ load15: number;
573
+ load5: number;
574
+ memoryTotal: number;
575
+ memoryUsed: number;
576
+ opensearchDashboardURL: string;
577
+ parachuteDiskEphemeralActivated: boolean;
578
+ parachuteDiskEphemeralTotal: number;
579
+ parachuteDiskEphemeralUsed: number;
580
+ parachuteDiskEphemeralUsedPercent: number;
581
+ parachuteDiskEphemeralUsedThreshold: number;
582
+ parachuteDiskPersistentActivated: boolean;
583
+ parachuteDiskPersistentTotal: number;
584
+ parachuteDiskPersistentUsed: number;
585
+ parachuteDiskPersistentUsedPercent: number;
586
+ parachuteDiskPersistentUsedThreshold: number;
587
+ }
588
+ export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() =>
589
+ S.Struct({
590
+ cpuIdleTime: S.optional(S.Number),
591
+ cpuLoadPercent: S.Number,
592
+ cpuSystemTime: S.optional(S.Number),
593
+ cpuUserTime: S.optional(S.Number),
594
+ diskEphemeralTotal: S.Number,
595
+ diskEphemeralUsed: S.Number,
596
+ diskPersistentTotal: S.Number,
597
+ diskPersistentUsed: S.Number,
598
+ load1: S.Number,
599
+ load15: S.Number,
600
+ load5: S.Number,
601
+ memoryTotal: S.Number,
602
+ memoryUsed: S.Number,
603
+ opensearchDashboardURL: S.String,
604
+ parachuteDiskEphemeralActivated: S.Boolean,
605
+ parachuteDiskEphemeralTotal: S.Number,
606
+ parachuteDiskEphemeralUsed: S.Number,
607
+ parachuteDiskEphemeralUsedPercent: S.Number,
608
+ parachuteDiskEphemeralUsedThreshold: S.Number,
609
+ parachuteDiskPersistentActivated: S.Boolean,
610
+ parachuteDiskPersistentTotal: S.Number,
611
+ parachuteDiskPersistentUsed: S.Number,
612
+ parachuteDiskPersistentUsedPercent: S.Number,
613
+ parachuteDiskPersistentUsedThreshold: S.Number,
614
+ }),
615
+ ).annotate({
616
+ identifier: "GetMetricsResponse",
617
+ }) as any as S.Schema<GetMetricsResponse>;
618
+
619
+ export interface ListBackupsRequest {
620
+ /** Project id on which user has permissions */
621
+ projectId: string;
622
+ /** region in which the project resides */
623
+ regionId: string;
624
+ /** Instance id */
625
+ instanceId: string;
626
+ }
627
+ export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
628
+ S.Struct({
629
+ projectId: S.String.pipe(T.Label()),
630
+ regionId: S.String.pipe(T.Label()),
631
+ instanceId: S.String.pipe(T.Label()),
632
+ }).pipe(
633
+ T.Http({
634
+ method: "GET",
635
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
636
+ code: 200,
637
+ baseUrl: "https://logme.api.stackit.cloud",
638
+ }),
639
+ ),
640
+ ).annotate({
641
+ identifier: "ListBackupsRequest",
642
+ }) as any as S.Schema<ListBackupsRequest>;
643
+
644
+ export interface Backup {
645
+ downloadable?: boolean;
646
+ finished_at: string;
647
+ id: number;
648
+ size?: number;
649
+ status: string;
650
+ triggered_at?: string;
651
+ }
652
+ export const Backup = /*@__PURE__*/ S.suspend(() =>
653
+ S.Struct({
654
+ downloadable: S.optional(S.Boolean),
655
+ finished_at: S.String,
656
+ id: S.Number,
657
+ size: S.optional(S.Number),
658
+ status: S.String,
659
+ triggered_at: S.optional(S.String),
660
+ }),
661
+ ).annotate({ identifier: "Backup" }) as any as S.Schema<Backup>;
662
+
663
+ export type ListBackupsResponse = Array<Backup>;
664
+ export const ListBackupsResponse = /*@__PURE__*/ S.Array(
665
+ Backup,
666
+ ) as any as S.Schema<ListBackupsResponse>;
667
+
668
+ export type ListBackupsResponse2 = ListBackupsResponse;
669
+ export const ListBackupsResponse2 = /*@__PURE__*/ S.suspend(() =>
670
+ ListBackupsResponse.pipe(T.RawResponseRoot()),
671
+ ).annotate({
672
+ identifier: "ListBackupsResponse2",
673
+ }) as any as S.Schema<ListBackupsResponse2>;
674
+
675
+ export interface ListCredentialsRequest {
676
+ /** Project id on which user has permissions */
677
+ projectId: string;
678
+ /** region in which the project resides */
679
+ regionId: string;
680
+ /** Instance id */
681
+ instanceId: string;
682
+ }
683
+ export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
684
+ S.Struct({
685
+ projectId: S.String.pipe(T.Label()),
686
+ regionId: S.String.pipe(T.Label()),
687
+ instanceId: S.String.pipe(T.Label()),
688
+ }).pipe(
689
+ T.Http({
690
+ method: "GET",
691
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
692
+ code: 200,
693
+ baseUrl: "https://logme.api.stackit.cloud",
694
+ }),
695
+ ),
696
+ ).annotate({
697
+ identifier: "ListCredentialsRequest",
698
+ }) as any as S.Schema<ListCredentialsRequest>;
699
+
700
+ export interface CredentialsListItem {
701
+ id: string;
702
+ }
703
+ export const CredentialsListItem = /*@__PURE__*/ S.suspend(() =>
704
+ S.Struct({
705
+ id: S.String,
706
+ }),
707
+ ).annotate({
708
+ identifier: "CredentialsListItem",
709
+ }) as any as S.Schema<CredentialsListItem>;
710
+
711
+ export type ListCredentialsResponseCredentialsListList =
712
+ Array<CredentialsListItem>;
713
+ export const ListCredentialsResponseCredentialsListList = /*@__PURE__*/ S.Array(
714
+ CredentialsListItem,
715
+ ) as any as S.Schema<ListCredentialsResponseCredentialsListList>;
716
+
717
+ export interface ListCredentialsResponse {
718
+ credentialsList: ListCredentialsResponseCredentialsListList;
719
+ }
720
+ export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
721
+ S.Struct({
722
+ credentialsList: ListCredentialsResponseCredentialsListList,
723
+ }),
724
+ ).annotate({
725
+ identifier: "ListCredentialsResponse",
726
+ }) as any as S.Schema<ListCredentialsResponse>;
727
+
728
+ export interface ListInstancesRequest {
729
+ /** Project id on which user has permissions */
730
+ projectId: string;
731
+ /** region in which the project resides */
732
+ regionId: string;
733
+ }
734
+ export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
735
+ S.Struct({
736
+ projectId: S.String.pipe(T.Label()),
737
+ regionId: S.String.pipe(T.Label()),
738
+ }).pipe(
739
+ T.Http({
740
+ method: "GET",
741
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
742
+ code: 200,
743
+ baseUrl: "https://logme.api.stackit.cloud",
744
+ }),
745
+ ),
746
+ ).annotate({
747
+ identifier: "ListInstancesRequest",
748
+ }) as any as S.Schema<ListInstancesRequest>;
749
+
750
+ export type ListInstancesResponseInstancesList = Array<Instance>;
751
+ export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
752
+ Instance,
753
+ ) as any as S.Schema<ListInstancesResponseInstancesList>;
754
+
755
+ export interface ListInstancesResponse {
756
+ instances: ListInstancesResponseInstancesList;
757
+ }
758
+ export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
759
+ S.Struct({
760
+ instances: ListInstancesResponseInstancesList,
761
+ }),
762
+ ).annotate({
763
+ identifier: "ListInstancesResponse",
764
+ }) as any as S.Schema<ListInstancesResponse>;
765
+
766
+ export interface ListOfferingsRequest {
767
+ /** Project id on which user has permissions */
768
+ projectId: string;
769
+ /** region in which the project resides */
770
+ regionId: string;
771
+ }
772
+ export const ListOfferingsRequest = /*@__PURE__*/ S.suspend(() =>
773
+ S.Struct({
774
+ projectId: S.String.pipe(T.Label()),
775
+ regionId: S.String.pipe(T.Label()),
776
+ }).pipe(
777
+ T.Http({
778
+ method: "GET",
779
+ uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
780
+ code: 200,
781
+ baseUrl: "https://logme.api.stackit.cloud",
782
+ }),
783
+ ),
784
+ ).annotate({
785
+ identifier: "ListOfferingsRequest",
786
+ }) as any as S.Schema<ListOfferingsRequest>;
787
+
788
+ export interface Plan {
789
+ description: string;
790
+ free: boolean;
791
+ id: string;
792
+ name: string;
793
+ skuName: string;
794
+ }
795
+ export const Plan = /*@__PURE__*/ S.suspend(() =>
796
+ S.Struct({
797
+ description: S.String,
798
+ free: S.Boolean,
799
+ id: S.String,
800
+ name: S.String,
801
+ skuName: S.String,
802
+ }),
803
+ ).annotate({ identifier: "Plan" }) as any as S.Schema<Plan>;
804
+
805
+ export type OfferingPlansList = Array<Plan>;
806
+ export const OfferingPlansList = /*@__PURE__*/ S.Array(
807
+ Plan,
808
+ ) as any as S.Schema<OfferingPlansList>;
809
+
810
+ export interface Schema {
811
+ parameters: unknown;
812
+ }
813
+ export const Schema = /*@__PURE__*/ S.suspend(() =>
814
+ S.Struct({
815
+ parameters: S.Unknown,
816
+ }),
817
+ ).annotate({ identifier: "Schema" }) as any as S.Schema<Schema>;
818
+
819
+ export interface InstanceSchema {
820
+ create: Schema;
821
+ update: Schema;
822
+ }
823
+ export const InstanceSchema = /*@__PURE__*/ S.suspend(() =>
824
+ S.Struct({
825
+ create: Schema,
826
+ update: Schema,
827
+ }),
828
+ ).annotate({ identifier: "InstanceSchema" }) as any as S.Schema<InstanceSchema>;
829
+
830
+ export interface Offering {
831
+ description: string;
832
+ documentationUrl: string;
833
+ imageUrl: string;
834
+ latest: boolean;
835
+ lifecycle?: string;
836
+ name: string;
837
+ plans: OfferingPlansList;
838
+ quotaCount: number;
839
+ schema?: InstanceSchema;
840
+ version: string;
841
+ }
842
+ export const Offering = /*@__PURE__*/ S.suspend(() =>
843
+ S.Struct({
844
+ description: S.String,
845
+ documentationUrl: S.String,
846
+ imageUrl: S.String,
847
+ latest: S.Boolean,
848
+ lifecycle: S.optional(S.String),
849
+ name: S.String,
850
+ plans: OfferingPlansList,
851
+ quotaCount: S.Number,
852
+ schema: S.optional(InstanceSchema),
853
+ version: S.String,
854
+ }),
855
+ ).annotate({ identifier: "Offering" }) as any as S.Schema<Offering>;
856
+
857
+ export type ListOfferingsResponseOfferingsList = Array<Offering>;
858
+ export const ListOfferingsResponseOfferingsList = /*@__PURE__*/ S.Array(
859
+ Offering,
860
+ ) as any as S.Schema<ListOfferingsResponseOfferingsList>;
861
+
862
+ export interface ListOfferingsResponse {
863
+ offerings: ListOfferingsResponseOfferingsList;
864
+ }
865
+ export const ListOfferingsResponse = /*@__PURE__*/ S.suspend(() =>
866
+ S.Struct({
867
+ offerings: ListOfferingsResponseOfferingsList,
868
+ }),
869
+ ).annotate({
870
+ identifier: "ListOfferingsResponse",
871
+ }) as any as S.Schema<ListOfferingsResponse>;
872
+
873
+ export interface ListRestoresRequest {
874
+ /** Project id on which user has permissions */
875
+ projectId: string;
876
+ /** region in which the project resides */
877
+ regionId: string;
878
+ /** Instance id */
879
+ instanceId: string;
880
+ }
881
+ export const ListRestoresRequest = /*@__PURE__*/ S.suspend(() =>
882
+ S.Struct({
883
+ projectId: S.String.pipe(T.Label()),
884
+ regionId: S.String.pipe(T.Label()),
885
+ instanceId: S.String.pipe(T.Label()),
886
+ }).pipe(
887
+ T.Http({
888
+ method: "GET",
889
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
890
+ code: 200,
891
+ baseUrl: "https://logme.api.stackit.cloud",
892
+ }),
893
+ ),
894
+ ).annotate({
895
+ identifier: "ListRestoresRequest",
896
+ }) as any as S.Schema<ListRestoresRequest>;
897
+
898
+ export interface Restore {
899
+ backup_id: number;
900
+ finished_at: string;
901
+ id: number;
902
+ status: string;
903
+ triggered_at?: string;
904
+ }
905
+ export const Restore = /*@__PURE__*/ S.suspend(() =>
906
+ S.Struct({
907
+ backup_id: S.Number,
908
+ finished_at: S.String,
909
+ id: S.Number,
910
+ status: S.String,
911
+ triggered_at: S.optional(S.String),
912
+ }),
913
+ ).annotate({ identifier: "Restore" }) as any as S.Schema<Restore>;
914
+
915
+ export type ListRestoresResponseInstanceRestoresList = Array<Restore>;
916
+ export const ListRestoresResponseInstanceRestoresList = /*@__PURE__*/ S.Array(
917
+ Restore,
918
+ ) as any as S.Schema<ListRestoresResponseInstanceRestoresList>;
919
+
920
+ export interface ListRestoresResponse {
921
+ instanceRestores: ListRestoresResponseInstanceRestoresList;
922
+ }
923
+ export const ListRestoresResponse = /*@__PURE__*/ S.suspend(() =>
924
+ S.Struct({
925
+ instanceRestores: ListRestoresResponseInstanceRestoresList,
926
+ }),
927
+ ).annotate({
928
+ identifier: "ListRestoresResponse",
929
+ }) as any as S.Schema<ListRestoresResponse>;
930
+
931
+ export interface PartialUpdateInstanceRequest {
932
+ /** Project id on which user has permissions */
933
+ projectId: string;
934
+ /** region in which the project resides */
935
+ regionId: string;
936
+ /** Instance id */
937
+ instanceId: string;
938
+ instanceName?: string;
939
+ parameters?: InstanceParameters;
940
+ planId?: string;
941
+ }
942
+ export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
943
+ S.Struct({
944
+ projectId: S.String.pipe(T.Label()),
945
+ regionId: S.String.pipe(T.Label()),
946
+ instanceId: S.String.pipe(T.Label()),
947
+ instanceName: S.optional(S.String),
948
+ parameters: S.optional(InstanceParameters),
949
+ planId: S.optional(S.String),
950
+ }).pipe(
951
+ T.Http({
952
+ method: "PATCH",
953
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
954
+ code: 200,
955
+ baseUrl: "https://logme.api.stackit.cloud",
956
+ }),
957
+ ),
958
+ ).annotate({
959
+ identifier: "PartialUpdateInstanceRequest",
960
+ }) as any as S.Schema<PartialUpdateInstanceRequest>;
961
+
962
+ export interface PartialUpdateInstanceResponse {}
963
+ export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
964
+ S.Struct({}),
965
+ ).annotate({
966
+ identifier: "PartialUpdateInstanceResponse",
967
+ }) as any as S.Schema<PartialUpdateInstanceResponse>;
968
+
969
+ export interface TriggerRecreateRequest {
970
+ /** Project id on which user has permissions */
971
+ projectId: string;
972
+ /** region in which the project resides */
973
+ regionId: string;
974
+ /** Instance id */
975
+ instanceId: string;
976
+ }
977
+ export const TriggerRecreateRequest = /*@__PURE__*/ S.suspend(() =>
978
+ S.Struct({
979
+ projectId: S.String.pipe(T.Label()),
980
+ regionId: S.String.pipe(T.Label()),
981
+ instanceId: S.String.pipe(T.Label()),
982
+ }).pipe(
983
+ T.Http({
984
+ method: "PATCH",
985
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
986
+ code: 200,
987
+ baseUrl: "https://logme.api.stackit.cloud",
988
+ }),
989
+ ),
990
+ ).annotate({
991
+ identifier: "TriggerRecreateRequest",
992
+ }) as any as S.Schema<TriggerRecreateRequest>;
993
+
994
+ export interface TriggerRestartRequest {
995
+ /** Project id on which user has permissions */
996
+ projectId: string;
997
+ /** region in which the project resides */
998
+ regionId: string;
999
+ /** Instance id */
1000
+ instanceId: string;
1001
+ }
1002
+ export const TriggerRestartRequest = /*@__PURE__*/ S.suspend(() =>
1003
+ S.Struct({
1004
+ projectId: S.String.pipe(T.Label()),
1005
+ regionId: S.String.pipe(T.Label()),
1006
+ instanceId: S.String.pipe(T.Label()),
1007
+ }).pipe(
1008
+ T.Http({
1009
+ method: "PATCH",
1010
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
1011
+ code: 200,
1012
+ baseUrl: "https://logme.api.stackit.cloud",
1013
+ }),
1014
+ ),
1015
+ ).annotate({
1016
+ identifier: "TriggerRestartRequest",
1017
+ }) as any as S.Schema<TriggerRestartRequest>;
1018
+
1019
+ export interface TriggerRestoreRequest {
1020
+ /** Project id on which user has permissions */
1021
+ projectId: string;
1022
+ /** region in which the project resides */
1023
+ regionId: string;
1024
+ /** Instance id */
1025
+ instanceId: string;
1026
+ /** Backup id */
1027
+ backupId: number;
1028
+ }
1029
+ export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() =>
1030
+ S.Struct({
1031
+ projectId: S.String.pipe(T.Label()),
1032
+ regionId: S.String.pipe(T.Label()),
1033
+ instanceId: S.String.pipe(T.Label()),
1034
+ backupId: S.Number.pipe(T.Label()),
1035
+ }).pipe(
1036
+ T.Http({
1037
+ method: "POST",
1038
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
1039
+ code: 200,
1040
+ baseUrl: "https://logme.api.stackit.cloud",
1041
+ }),
1042
+ ),
1043
+ ).annotate({
1044
+ identifier: "TriggerRestoreRequest",
1045
+ }) as any as S.Schema<TriggerRestoreRequest>;
1046
+
1047
+ export interface TriggerRestoreResponse {
1048
+ id: number;
1049
+ }
1050
+ export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() =>
1051
+ S.Struct({
1052
+ id: S.Number,
1053
+ }),
1054
+ ).annotate({
1055
+ identifier: "TriggerRestoreResponse",
1056
+ }) as any as S.Schema<TriggerRestoreResponse>;
1057
+
1058
+ export interface UpdateBackupsConfigRequest {
1059
+ /** Project id on which user has permissions */
1060
+ projectId: string;
1061
+ /** region in which the project resides */
1062
+ regionId: string;
1063
+ /** Instance id */
1064
+ instanceId: string;
1065
+ encryption_key?: string;
1066
+ }
1067
+ export const UpdateBackupsConfigRequest = /*@__PURE__*/ S.suspend(() =>
1068
+ S.Struct({
1069
+ projectId: S.String.pipe(T.Label()),
1070
+ regionId: S.String.pipe(T.Label()),
1071
+ instanceId: S.String.pipe(T.Label()),
1072
+ encryption_key: S.optional(S.String),
1073
+ }).pipe(
1074
+ T.Http({
1075
+ method: "PATCH",
1076
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
1077
+ code: 200,
1078
+ baseUrl: "https://logme.api.stackit.cloud",
1079
+ }),
1080
+ ),
1081
+ ).annotate({
1082
+ identifier: "UpdateBackupsConfigRequest",
1083
+ }) as any as S.Schema<UpdateBackupsConfigRequest>;
1084
+
1085
+ export interface UpdateBackupsConfigResponse {
1086
+ message: string;
1087
+ }
1088
+ export const UpdateBackupsConfigResponse = /*@__PURE__*/ S.suspend(() =>
1089
+ S.Struct({
1090
+ message: S.String,
1091
+ }),
1092
+ ).annotate({
1093
+ identifier: "UpdateBackupsConfigResponse",
1094
+ }) as any as S.Schema<UpdateBackupsConfigResponse>;
1095
+
1096
+ export type CreateBackupError = BadRequest | NotFound | StackitOpError;
1097
+ /** create a backup */
1098
+ export const createBackup: API.OperationMethod<
1099
+ CreateBackupRequest,
1100
+ CreateBackupResponseItem,
1101
+ CreateBackupError,
1102
+ StackitOpContext
1103
+ > = /*@__PURE__*/ API.make(() => ({
1104
+ input: CreateBackupRequest,
1105
+ output: CreateBackupResponseItem,
1106
+ errors: [BadRequest, NotFound, UnknownStackitError],
1107
+ protocol: StackitProtocol,
1108
+ retry: Retry.Retry,
1109
+ }));
1110
+
1111
+ export type CreateCredentialsError = BadRequest | StackitOpError;
1112
+ /** create new credentials Create new service credentials */
1113
+ export const createCredentials: API.OperationMethod<
1114
+ CreateCredentialsRequest,
1115
+ CredentialsResponse,
1116
+ CreateCredentialsError,
1117
+ StackitOpContext
1118
+ > = /*@__PURE__*/ API.make(() => ({
1119
+ input: CreateCredentialsRequest,
1120
+ output: CredentialsResponse,
1121
+ errors: [BadRequest, UnknownStackitError],
1122
+ protocol: StackitProtocol,
1123
+ retry: Retry.Retry,
1124
+ }));
1125
+
1126
+ export type CreateInstanceError = BadRequest | Conflict | StackitOpError;
1127
+ /** provision Provision a service instance. */
1128
+ export const createInstance: API.OperationMethod<
1129
+ CreateInstanceRequest,
1130
+ CreateInstanceResponse,
1131
+ CreateInstanceError,
1132
+ StackitOpContext
1133
+ > = /*@__PURE__*/ API.make(() => ({
1134
+ input: CreateInstanceRequest,
1135
+ output: CreateInstanceResponse,
1136
+ errors: [BadRequest, Conflict, UnknownStackitError],
1137
+ protocol: StackitProtocol,
1138
+ retry: Retry.Retry,
1139
+ }));
1140
+
1141
+ export type DeleteCredentialsError = BadRequest | NotFound | StackitOpError;
1142
+ /** delete credentials by id Delete a service credentials. */
1143
+ export const deleteCredentials: API.OperationMethod<
1144
+ DeleteCredentialsRequest,
1145
+ DeleteCredentialsResponse,
1146
+ DeleteCredentialsError,
1147
+ StackitOpContext
1148
+ > = /*@__PURE__*/ API.make(() => ({
1149
+ input: DeleteCredentialsRequest,
1150
+ output: DeleteCredentialsResponse,
1151
+ errors: [BadRequest, NotFound, UnknownStackitError],
1152
+ protocol: StackitProtocol,
1153
+ retry: Retry.Retry,
1154
+ }));
1155
+
1156
+ export type DeleteInstanceError = BadRequest | NotFound | StackitOpError;
1157
+ /** delete service instance Deprovision a service instance. */
1158
+ export const deleteInstance: API.OperationMethod<
1159
+ DeleteInstanceRequest,
1160
+ DeleteInstanceResponse,
1161
+ DeleteInstanceError,
1162
+ StackitOpContext
1163
+ > = /*@__PURE__*/ API.make(() => ({
1164
+ input: DeleteInstanceRequest,
1165
+ output: DeleteInstanceResponse,
1166
+ errors: [BadRequest, NotFound, UnknownStackitError],
1167
+ protocol: StackitProtocol,
1168
+ retry: Retry.Retry,
1169
+ }));
1170
+
1171
+ export type DownloadBackupError = BadRequest | NotFound | StackitOpError;
1172
+ /** download backup */
1173
+ export const downloadBackup: API.OperationMethod<
1174
+ DownloadBackupRequest,
1175
+ DownloadBackupResponse,
1176
+ DownloadBackupError,
1177
+ StackitOpContext
1178
+ > = /*@__PURE__*/ API.make(() => ({
1179
+ input: DownloadBackupRequest,
1180
+ output: DownloadBackupResponse,
1181
+ errors: [BadRequest, NotFound, UnknownStackitError],
1182
+ protocol: StackitProtocol,
1183
+ retry: Retry.Retry,
1184
+ }));
1185
+
1186
+ export type GetCredentialsError = BadRequest | NotFound | StackitOpError;
1187
+ /** get credentials by id get a service credentials by credentials id */
1188
+ export const getCredentials: API.OperationMethod<
1189
+ GetCredentialsRequest,
1190
+ CredentialsResponse,
1191
+ GetCredentialsError,
1192
+ StackitOpContext
1193
+ > = /*@__PURE__*/ API.make(() => ({
1194
+ input: GetCredentialsRequest,
1195
+ output: CredentialsResponse,
1196
+ errors: [BadRequest, NotFound, UnknownStackitError],
1197
+ protocol: StackitProtocol,
1198
+ retry: Retry.Retry,
1199
+ }));
1200
+
1201
+ export type GetInstanceError = BadRequest | NotFound | StackitOpError;
1202
+ /** get a service instance get a service instance */
1203
+ export const getInstance: API.OperationMethod<
1204
+ GetInstanceRequest,
1205
+ Instance,
1206
+ GetInstanceError,
1207
+ StackitOpContext
1208
+ > = /*@__PURE__*/ API.make(() => ({
1209
+ input: GetInstanceRequest,
1210
+ output: Instance,
1211
+ errors: [BadRequest, NotFound, UnknownStackitError],
1212
+ protocol: StackitProtocol,
1213
+ retry: Retry.Retry,
1214
+ }));
1215
+
1216
+ export type GetMetricsError = BadRequest | NotFound | StackitOpError;
1217
+ /** get latest metrics for cpu load, memory and disk usage */
1218
+ export const getMetrics: API.OperationMethod<
1219
+ GetMetricsRequest,
1220
+ GetMetricsResponse,
1221
+ GetMetricsError,
1222
+ StackitOpContext
1223
+ > = /*@__PURE__*/ API.make(() => ({
1224
+ input: GetMetricsRequest,
1225
+ output: GetMetricsResponse,
1226
+ errors: [BadRequest, NotFound, UnknownStackitError],
1227
+ protocol: StackitProtocol,
1228
+ retry: Retry.Retry,
1229
+ }));
1230
+
1231
+ export type ListBackupsError = BadRequest | NotFound | StackitOpError;
1232
+ /** get latest backup information for provided instanceId */
1233
+ export const listBackups: API.OperationMethod<
1234
+ ListBackupsRequest,
1235
+ ListBackupsResponse2,
1236
+ ListBackupsError,
1237
+ StackitOpContext
1238
+ > = /*@__PURE__*/ API.make(() => ({
1239
+ input: ListBackupsRequest,
1240
+ output: ListBackupsResponse2,
1241
+ errors: [BadRequest, NotFound, UnknownStackitError],
1242
+ protocol: StackitProtocol,
1243
+ retry: Retry.Retry,
1244
+ }));
1245
+
1246
+ export type ListCredentialsError = BadRequest | NotFound | StackitOpError;
1247
+ /** get list of credentials ids get list all credentials ids for instance */
1248
+ export const listCredentials: API.OperationMethod<
1249
+ ListCredentialsRequest,
1250
+ ListCredentialsResponse,
1251
+ ListCredentialsError,
1252
+ StackitOpContext
1253
+ > = /*@__PURE__*/ API.make(() => ({
1254
+ input: ListCredentialsRequest,
1255
+ output: ListCredentialsResponse,
1256
+ errors: [BadRequest, NotFound, UnknownStackitError],
1257
+ protocol: StackitProtocol,
1258
+ retry: Retry.Retry,
1259
+ }));
1260
+
1261
+ export type ListInstancesError = BadRequest | NotFound | StackitOpError;
1262
+ /** get service instances list Get a list of available instances */
1263
+ export const listInstances: API.OperationMethod<
1264
+ ListInstancesRequest,
1265
+ ListInstancesResponse,
1266
+ ListInstancesError,
1267
+ StackitOpContext
1268
+ > = /*@__PURE__*/ API.make(() => ({
1269
+ input: ListInstancesRequest,
1270
+ output: ListInstancesResponse,
1271
+ errors: [BadRequest, NotFound, UnknownStackitError],
1272
+ protocol: StackitProtocol,
1273
+ retry: Retry.Retry,
1274
+ }));
1275
+
1276
+ export type ListOfferingsError = BadRequest | NotFound | StackitOpError;
1277
+ /** get the service offerings Get the service offerings that the service broker offers. */
1278
+ export const listOfferings: API.OperationMethod<
1279
+ ListOfferingsRequest,
1280
+ ListOfferingsResponse,
1281
+ ListOfferingsError,
1282
+ StackitOpContext
1283
+ > = /*@__PURE__*/ API.make(() => ({
1284
+ input: ListOfferingsRequest,
1285
+ output: ListOfferingsResponse,
1286
+ errors: [BadRequest, NotFound, UnknownStackitError],
1287
+ protocol: StackitProtocol,
1288
+ retry: Retry.Retry,
1289
+ }));
1290
+
1291
+ export type ListRestoresError = BadRequest | NotFound | StackitOpError;
1292
+ /** get latest restore information for provided instanceId */
1293
+ export const listRestores: API.OperationMethod<
1294
+ ListRestoresRequest,
1295
+ ListRestoresResponse,
1296
+ ListRestoresError,
1297
+ StackitOpContext
1298
+ > = /*@__PURE__*/ API.make(() => ({
1299
+ input: ListRestoresRequest,
1300
+ output: ListRestoresResponse,
1301
+ errors: [BadRequest, NotFound, UnknownStackitError],
1302
+ protocol: StackitProtocol,
1303
+ retry: Retry.Retry,
1304
+ }));
1305
+
1306
+ export type PartialUpdateInstanceError = BadRequest | NotFound | StackitOpError;
1307
+ /** update a service instance Update a service instance. This could be a sgw acl update or a plan upgrade. */
1308
+ export const partialUpdateInstance: API.OperationMethod<
1309
+ PartialUpdateInstanceRequest,
1310
+ PartialUpdateInstanceResponse,
1311
+ PartialUpdateInstanceError,
1312
+ StackitOpContext
1313
+ > = /*@__PURE__*/ API.make(() => ({
1314
+ input: PartialUpdateInstanceRequest,
1315
+ output: PartialUpdateInstanceResponse,
1316
+ errors: [BadRequest, NotFound, UnknownStackitError],
1317
+ protocol: StackitProtocol,
1318
+ retry: Retry.Retry,
1319
+ }));
1320
+
1321
+ export type TriggerRecreateError = BadRequest | NotFound | StackitOpError;
1322
+ /** trigger a recreate */
1323
+ export const triggerRecreate: API.OperationMethod<
1324
+ TriggerRecreateRequest,
1325
+ CreateInstanceResponse,
1326
+ TriggerRecreateError,
1327
+ StackitOpContext
1328
+ > = /*@__PURE__*/ API.make(() => ({
1329
+ input: TriggerRecreateRequest,
1330
+ output: CreateInstanceResponse,
1331
+ errors: [BadRequest, NotFound, UnknownStackitError],
1332
+ protocol: StackitProtocol,
1333
+ retry: Retry.Retry,
1334
+ }));
1335
+
1336
+ export type TriggerRestartError = BadRequest | NotFound | StackitOpError;
1337
+ /** trigger a restart */
1338
+ export const triggerRestart: API.OperationMethod<
1339
+ TriggerRestartRequest,
1340
+ CreateInstanceResponse,
1341
+ TriggerRestartError,
1342
+ StackitOpContext
1343
+ > = /*@__PURE__*/ API.make(() => ({
1344
+ input: TriggerRestartRequest,
1345
+ output: CreateInstanceResponse,
1346
+ errors: [BadRequest, NotFound, UnknownStackitError],
1347
+ protocol: StackitProtocol,
1348
+ retry: Retry.Retry,
1349
+ }));
1350
+
1351
+ export type TriggerRestoreError = BadRequest | NotFound | StackitOpError;
1352
+ /** trigger a restore */
1353
+ export const triggerRestore: API.OperationMethod<
1354
+ TriggerRestoreRequest,
1355
+ TriggerRestoreResponse,
1356
+ TriggerRestoreError,
1357
+ StackitOpContext
1358
+ > = /*@__PURE__*/ API.make(() => ({
1359
+ input: TriggerRestoreRequest,
1360
+ output: TriggerRestoreResponse,
1361
+ errors: [BadRequest, NotFound, UnknownStackitError],
1362
+ protocol: StackitProtocol,
1363
+ retry: Retry.Retry,
1364
+ }));
1365
+
1366
+ export type UpdateBackupsConfigError = BadRequest | NotFound | StackitOpError;
1367
+ /** backups configuration update Update the configuration for backups for your instance. */
1368
+ export const updateBackupsConfig: API.OperationMethod<
1369
+ UpdateBackupsConfigRequest,
1370
+ UpdateBackupsConfigResponse,
1371
+ UpdateBackupsConfigError,
1372
+ StackitOpContext
1373
+ > = /*@__PURE__*/ API.make(() => ({
1374
+ input: UpdateBackupsConfigRequest,
1375
+ output: UpdateBackupsConfigResponse,
1376
+ errors: [BadRequest, NotFound, UnknownStackitError],
1377
+ protocol: StackitProtocol,
1378
+ retry: Retry.Retry,
1379
+ }));