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