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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,12 +1,15 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
5
- import * as Redacted from "effect/Redacted";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
6
7
  import { UnknownStackitError } from "../errors.ts";
7
8
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
10
13
 
11
14
  export type { StackitOpError, StackitOpContext };
12
15
 
@@ -45,32 +48,10 @@ export interface CreateBackupRequest {
45
48
  /** Instance id */
46
49
  instanceId: string;
47
50
  }
48
- export const CreateBackupRequest = /*@__PURE__*/ S.suspend(() =>
49
- S.Struct({
50
- projectId: S.String.pipe(T.Label()),
51
- regionId: S.String.pipe(T.Label()),
52
- instanceId: S.String.pipe(T.Label()),
53
- }).pipe(
54
- T.Http({
55
- method: "POST",
56
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
57
- code: 200,
58
- baseUrl: "https://mariadb.api.stackit.cloud",
59
- }),
60
- ),
61
- ).annotate({ identifier: "CreateBackupRequest" }) as any as S.Schema<CreateBackupRequest>;
62
-
63
51
  export interface CreateBackupResponseItem {
64
52
  id: number;
65
53
  message: string;
66
54
  }
67
- export const CreateBackupResponseItem = /*@__PURE__*/ S.suspend(() =>
68
- S.Struct({
69
- id: S.Number,
70
- message: S.String,
71
- }),
72
- ).annotate({ identifier: "CreateBackupResponseItem" }) as any as S.Schema<CreateBackupResponseItem>;
73
-
74
55
  export interface CreateCredentialsRequest {
75
56
  /** Project id on which user has permissions */
76
57
  projectId: string;
@@ -80,27 +61,7 @@ export interface CreateCredentialsRequest {
80
61
  instanceId: string;
81
62
  parameters?: unknown;
82
63
  }
83
- export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
84
- S.Struct({
85
- projectId: S.String.pipe(T.Label()),
86
- regionId: S.String.pipe(T.Label()),
87
- instanceId: S.String.pipe(T.Label()),
88
- parameters: S.optional(S.Unknown),
89
- }).pipe(
90
- T.Http({
91
- method: "POST",
92
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
93
- code: 200,
94
- baseUrl: "https://mariadb.api.stackit.cloud",
95
- }),
96
- ),
97
- ).annotate({ identifier: "CreateCredentialsRequest" }) as any as S.Schema<CreateCredentialsRequest>;
98
-
99
64
  export type CredentialsHostsList = Array<string>;
100
- export const CredentialsHostsList = /*@__PURE__*/ S.Array(
101
- S.String,
102
- ) as any as S.Schema<CredentialsHostsList>;
103
-
104
65
  export interface Credentials {
105
66
  host: string;
106
67
  hosts?: CredentialsHostsList;
@@ -110,45 +71,15 @@ export interface Credentials {
110
71
  uri?: string;
111
72
  username: string;
112
73
  }
113
- export const Credentials = /*@__PURE__*/ S.suspend(() =>
114
- S.Struct({
115
- host: S.String,
116
- hosts: S.optional(CredentialsHostsList),
117
- name: S.optional(S.String),
118
- password: S.String.pipe(T.SensitiveValue({})),
119
- port: S.optional(S.Number),
120
- uri: S.optional(S.String),
121
- username: S.String,
122
- }),
123
- ).annotate({ identifier: "Credentials" }) as any as S.Schema<Credentials>;
124
-
125
74
  export interface RawCredentials {
126
75
  credentials: Credentials;
127
76
  }
128
- export const RawCredentials = /*@__PURE__*/ S.suspend(() =>
129
- S.Struct({
130
- credentials: Credentials,
131
- }),
132
- ).annotate({ identifier: "RawCredentials" }) as any as S.Schema<RawCredentials>;
133
-
134
77
  export interface CredentialsResponse {
135
78
  id: string;
136
79
  raw?: RawCredentials;
137
80
  uri: string;
138
81
  }
139
- export const CredentialsResponse = /*@__PURE__*/ S.suspend(() =>
140
- S.Struct({
141
- id: S.String,
142
- raw: S.optional(RawCredentials),
143
- uri: S.String,
144
- }),
145
- ).annotate({ identifier: "CredentialsResponse" }) as any as S.Schema<CredentialsResponse>;
146
-
147
82
  export type InstanceParametersSyslogList = Array<string>;
148
- export const InstanceParametersSyslogList = /*@__PURE__*/ S.Array(
149
- S.String,
150
- ) as any as S.Schema<InstanceParametersSyslogList>;
151
-
152
83
  export interface InstanceParameters {
153
84
  enable_monitoring?: boolean;
154
85
  /** 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. */
@@ -164,19 +95,6 @@ export interface InstanceParameters {
164
95
  sgw_acl?: string;
165
96
  syslog?: InstanceParametersSyslogList;
166
97
  }
167
- export const InstanceParameters = /*@__PURE__*/ S.suspend(() =>
168
- S.Struct({
169
- enable_monitoring: S.optional(S.Boolean),
170
- graphite: S.optional(S.String),
171
- max_disk_threshold: S.optional(S.Number),
172
- metrics_frequency: S.optional(S.Number),
173
- metrics_prefix: S.optional(S.String),
174
- monitoring_instance_id: S.optional(S.String),
175
- sgw_acl: S.optional(S.String),
176
- syslog: S.optional(InstanceParametersSyslogList),
177
- }),
178
- ).annotate({ identifier: "InstanceParameters" }) as any as S.Schema<InstanceParameters>;
179
-
180
98
  export interface CreateInstanceRequest {
181
99
  /** Project id on which user has permissions */
182
100
  projectId: string;
@@ -186,32 +104,9 @@ export interface CreateInstanceRequest {
186
104
  parameters?: InstanceParameters;
187
105
  planId: string;
188
106
  }
189
- export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
190
- S.Struct({
191
- projectId: S.String.pipe(T.Label()),
192
- regionId: S.String.pipe(T.Label()),
193
- instanceName: S.String,
194
- parameters: S.optional(InstanceParameters),
195
- planId: S.String,
196
- }).pipe(
197
- T.Http({
198
- method: "POST",
199
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
200
- code: 200,
201
- baseUrl: "https://mariadb.api.stackit.cloud",
202
- }),
203
- ),
204
- ).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
205
-
206
107
  export interface CreateInstanceResponse {
207
108
  instanceId: string;
208
109
  }
209
- export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
210
- S.Struct({
211
- instanceId: S.String,
212
- }),
213
- ).annotate({ identifier: "CreateInstanceResponse" }) as any as S.Schema<CreateInstanceResponse>;
214
-
215
110
  export interface DeleteCredentialsRequest {
216
111
  /** Project id on which user has permissions */
217
112
  projectId: string;
@@ -222,27 +117,7 @@ export interface DeleteCredentialsRequest {
222
117
  /** Id of the credentials being deleted */
223
118
  credentialsId: string;
224
119
  }
225
- export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
226
- S.Struct({
227
- projectId: S.String.pipe(T.Label()),
228
- regionId: S.String.pipe(T.Label()),
229
- instanceId: S.String.pipe(T.Label()),
230
- credentialsId: S.String.pipe(T.Label()),
231
- }).pipe(
232
- T.Http({
233
- method: "DELETE",
234
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
235
- code: 200,
236
- baseUrl: "https://mariadb.api.stackit.cloud",
237
- }),
238
- ),
239
- ).annotate({ identifier: "DeleteCredentialsRequest" }) as any as S.Schema<DeleteCredentialsRequest>;
240
-
241
120
  export interface DeleteCredentialsResponse {}
242
- export const DeleteCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
243
- identifier: "DeleteCredentialsResponse",
244
- }) as any as S.Schema<DeleteCredentialsResponse>;
245
-
246
121
  export interface DeleteInstanceRequest {
247
122
  /** Project id on which user has permissions */
248
123
  projectId: string;
@@ -251,26 +126,7 @@ export interface DeleteInstanceRequest {
251
126
  /** Instance id */
252
127
  instanceId: string;
253
128
  }
254
- export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
255
- S.Struct({
256
- projectId: S.String.pipe(T.Label()),
257
- regionId: S.String.pipe(T.Label()),
258
- instanceId: S.String.pipe(T.Label()),
259
- }).pipe(
260
- T.Http({
261
- method: "DELETE",
262
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
263
- code: 200,
264
- baseUrl: "https://mariadb.api.stackit.cloud",
265
- }),
266
- ),
267
- ).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
268
-
269
129
  export interface DeleteInstanceResponse {}
270
- export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
271
- identifier: "DeleteInstanceResponse",
272
- }) as any as S.Schema<DeleteInstanceResponse>;
273
-
274
130
  export interface DownloadBackupRequest {
275
131
  /** Project id on which user has permissions */
276
132
  projectId: string;
@@ -281,27 +137,7 @@ export interface DownloadBackupRequest {
281
137
  /** Backup id */
282
138
  backupId: number;
283
139
  }
284
- export const DownloadBackupRequest = /*@__PURE__*/ S.suspend(() =>
285
- S.Struct({
286
- projectId: S.String.pipe(T.Label()),
287
- regionId: S.String.pipe(T.Label()),
288
- instanceId: S.String.pipe(T.Label()),
289
- backupId: S.Number.pipe(T.Label()),
290
- }).pipe(
291
- T.Http({
292
- method: "GET",
293
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
294
- code: 200,
295
- baseUrl: "https://mariadb.api.stackit.cloud",
296
- }),
297
- ),
298
- ).annotate({ identifier: "DownloadBackupRequest" }) as any as S.Schema<DownloadBackupRequest>;
299
-
300
140
  export interface DownloadBackupResponse {}
301
- export const DownloadBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
302
- identifier: "DownloadBackupResponse",
303
- }) as any as S.Schema<DownloadBackupResponse>;
304
-
305
141
  export interface GetCredentialsRequest {
306
142
  /** Project id on which user has permissions */
307
143
  projectId: string;
@@ -312,22 +148,6 @@ export interface GetCredentialsRequest {
312
148
  /** Credentials id of credentials to fetch */
313
149
  credentialsId: string;
314
150
  }
315
- export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
316
- S.Struct({
317
- projectId: S.String.pipe(T.Label()),
318
- regionId: S.String.pipe(T.Label()),
319
- instanceId: S.String.pipe(T.Label()),
320
- credentialsId: S.String.pipe(T.Label()),
321
- }).pipe(
322
- T.Http({
323
- method: "GET",
324
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
325
- code: 200,
326
- baseUrl: "https://mariadb.api.stackit.cloud",
327
- }),
328
- ),
329
- ).annotate({ identifier: "GetCredentialsRequest" }) as any as S.Schema<GetCredentialsRequest>;
330
-
331
151
  export interface GetInstanceRequest {
332
152
  /** Project id on which user has permissions */
333
153
  projectId: string;
@@ -336,43 +156,14 @@ export interface GetInstanceRequest {
336
156
  /** Instance id */
337
157
  instanceId: string;
338
158
  }
339
- export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
340
- S.Struct({
341
- projectId: S.String.pipe(T.Label()),
342
- regionId: S.String.pipe(T.Label()),
343
- instanceId: S.String.pipe(T.Label()),
344
- }).pipe(
345
- T.Http({
346
- method: "GET",
347
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
348
- code: 200,
349
- baseUrl: "https://mariadb.api.stackit.cloud",
350
- }),
351
- ),
352
- ).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
353
-
354
159
  export type InstanceLastOperationState = "in progress" | "succeeded" | "failed";
355
- export const InstanceLastOperationState = S.String;
356
-
357
160
  export type InstanceLastOperationType = "create" | "update" | "delete";
358
- export const InstanceLastOperationType = S.String;
359
-
360
161
  export interface InstanceLastOperation {
361
162
  description: string;
362
163
  state: InstanceLastOperationState;
363
164
  type: InstanceLastOperationType;
364
165
  }
365
- export const InstanceLastOperation = /*@__PURE__*/ S.suspend(() =>
366
- S.Struct({
367
- description: S.String,
368
- state: InstanceLastOperationState,
369
- type: InstanceLastOperationType,
370
- }),
371
- ).annotate({ identifier: "InstanceLastOperation" }) as any as S.Schema<InstanceLastOperation>;
372
-
373
166
  export type InstanceStatus = "active" | "failed" | "stopped" | "creating" | "deleting" | "updating";
374
- export const InstanceStatus = S.String;
375
-
376
167
  export interface Instance {
377
168
  cfGuid: string;
378
169
  cfOrganizationGuid: string;
@@ -389,25 +180,6 @@ export interface Instance {
389
180
  planName: string;
390
181
  status?: InstanceStatus;
391
182
  }
392
- export const Instance = /*@__PURE__*/ S.suspend(() =>
393
- S.Struct({
394
- cfGuid: S.String,
395
- cfOrganizationGuid: S.String,
396
- cfSpaceGuid: S.String,
397
- dashboardUrl: S.String,
398
- imageUrl: S.String,
399
- instanceId: S.optional(S.String),
400
- lastOperation: InstanceLastOperation,
401
- name: S.String,
402
- offeringName: S.String,
403
- offeringVersion: S.String,
404
- parameters: S.Unknown,
405
- planId: S.String,
406
- planName: S.String,
407
- status: S.optional(InstanceStatus),
408
- }),
409
- ).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
410
-
411
183
  export interface GetMetricsRequest {
412
184
  /** Project id on which user has permissions */
413
185
  projectId: string;
@@ -416,21 +188,6 @@ export interface GetMetricsRequest {
416
188
  /** Instance id */
417
189
  instanceId: string;
418
190
  }
419
- export const GetMetricsRequest = /*@__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
- }).pipe(
425
- T.Http({
426
- method: "GET",
427
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
428
- code: 200,
429
- baseUrl: "https://mariadb.api.stackit.cloud",
430
- }),
431
- ),
432
- ).annotate({ identifier: "GetMetricsRequest" }) as any as S.Schema<GetMetricsRequest>;
433
-
434
191
  export interface GetMetricsResponse {
435
192
  cpuIdleTime?: number;
436
193
  cpuLoadPercent: number;
@@ -456,34 +213,6 @@ export interface GetMetricsResponse {
456
213
  parachuteDiskPersistentUsedPercent: number;
457
214
  parachuteDiskPersistentUsedThreshold: number;
458
215
  }
459
- export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() =>
460
- S.Struct({
461
- cpuIdleTime: S.optional(S.Number),
462
- cpuLoadPercent: S.Number,
463
- cpuSystemTime: S.optional(S.Number),
464
- cpuUserTime: S.optional(S.Number),
465
- diskEphemeralTotal: S.Number,
466
- diskEphemeralUsed: S.Number,
467
- diskPersistentTotal: S.Number,
468
- diskPersistentUsed: S.Number,
469
- load1: S.Number,
470
- load15: S.Number,
471
- load5: S.Number,
472
- memoryTotal: S.Number,
473
- memoryUsed: S.Number,
474
- parachuteDiskEphemeralActivated: S.Boolean,
475
- parachuteDiskEphemeralTotal: S.Number,
476
- parachuteDiskEphemeralUsed: S.Number,
477
- parachuteDiskEphemeralUsedPercent: S.Number,
478
- parachuteDiskEphemeralUsedThreshold: S.Number,
479
- parachuteDiskPersistentActivated: S.Boolean,
480
- parachuteDiskPersistentTotal: S.Number,
481
- parachuteDiskPersistentUsed: S.Number,
482
- parachuteDiskPersistentUsedPercent: S.Number,
483
- parachuteDiskPersistentUsedThreshold: S.Number,
484
- }),
485
- ).annotate({ identifier: "GetMetricsResponse" }) as any as S.Schema<GetMetricsResponse>;
486
-
487
216
  export interface ListBackupsRequest {
488
217
  /** Project id on which user has permissions */
489
218
  projectId: string;
@@ -492,21 +221,6 @@ export interface ListBackupsRequest {
492
221
  /** Instance id */
493
222
  instanceId: string;
494
223
  }
495
- export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
496
- S.Struct({
497
- projectId: S.String.pipe(T.Label()),
498
- regionId: S.String.pipe(T.Label()),
499
- instanceId: S.String.pipe(T.Label()),
500
- }).pipe(
501
- T.Http({
502
- method: "GET",
503
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
504
- code: 200,
505
- baseUrl: "https://mariadb.api.stackit.cloud",
506
- }),
507
- ),
508
- ).annotate({ identifier: "ListBackupsRequest" }) as any as S.Schema<ListBackupsRequest>;
509
-
510
224
  export interface Backup {
511
225
  downloadable?: boolean;
512
226
  finished_at: string;
@@ -515,27 +229,8 @@ export interface Backup {
515
229
  status: string;
516
230
  triggered_at?: string;
517
231
  }
518
- export const Backup = /*@__PURE__*/ S.suspend(() =>
519
- S.Struct({
520
- downloadable: S.optional(S.Boolean),
521
- finished_at: S.String,
522
- id: S.Number,
523
- size: S.optional(S.Number),
524
- status: S.String,
525
- triggered_at: S.optional(S.String),
526
- }),
527
- ).annotate({ identifier: "Backup" }) as any as S.Schema<Backup>;
528
-
529
232
  export type ListBackupsResponse = Array<Backup>;
530
- export const ListBackupsResponse = /*@__PURE__*/ S.Array(
531
- Backup,
532
- ) as any as S.Schema<ListBackupsResponse>;
533
-
534
233
  export type ListBackupsResponse2 = ListBackupsResponse;
535
- export const ListBackupsResponse2 = /*@__PURE__*/ S.suspend(() =>
536
- ListBackupsResponse.pipe(T.RawResponseRoot()),
537
- ).annotate({ identifier: "ListBackupsResponse2" }) as any as S.Schema<ListBackupsResponse2>;
538
-
539
234
  export interface ListCredentialsRequest {
540
235
  /** Project id on which user has permissions */
541
236
  projectId: string;
@@ -544,98 +239,29 @@ export interface ListCredentialsRequest {
544
239
  /** Instance id */
545
240
  instanceId: string;
546
241
  }
547
- export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
548
- S.Struct({
549
- projectId: S.String.pipe(T.Label()),
550
- regionId: S.String.pipe(T.Label()),
551
- instanceId: S.String.pipe(T.Label()),
552
- }).pipe(
553
- T.Http({
554
- method: "GET",
555
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
556
- code: 200,
557
- baseUrl: "https://mariadb.api.stackit.cloud",
558
- }),
559
- ),
560
- ).annotate({ identifier: "ListCredentialsRequest" }) as any as S.Schema<ListCredentialsRequest>;
561
-
562
242
  export interface CredentialsListItem {
563
243
  id: string;
564
244
  }
565
- export const CredentialsListItem = /*@__PURE__*/ S.suspend(() =>
566
- S.Struct({
567
- id: S.String,
568
- }),
569
- ).annotate({ identifier: "CredentialsListItem" }) as any as S.Schema<CredentialsListItem>;
570
-
571
245
  export type ListCredentialsResponseCredentialsListList = Array<CredentialsListItem>;
572
- export const ListCredentialsResponseCredentialsListList = /*@__PURE__*/ S.Array(
573
- CredentialsListItem,
574
- ) as any as S.Schema<ListCredentialsResponseCredentialsListList>;
575
-
576
246
  export interface ListCredentialsResponse {
577
247
  credentialsList: ListCredentialsResponseCredentialsListList;
578
248
  }
579
- export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
580
- S.Struct({
581
- credentialsList: ListCredentialsResponseCredentialsListList,
582
- }),
583
- ).annotate({ identifier: "ListCredentialsResponse" }) as any as S.Schema<ListCredentialsResponse>;
584
-
585
249
  export interface ListInstancesRequest {
586
250
  /** Project id on which user has permissions */
587
251
  projectId: string;
588
252
  /** region in which the project resides */
589
253
  regionId: string;
590
254
  }
591
- export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
592
- S.Struct({
593
- projectId: S.String.pipe(T.Label()),
594
- regionId: S.String.pipe(T.Label()),
595
- }).pipe(
596
- T.Http({
597
- method: "GET",
598
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
599
- code: 200,
600
- baseUrl: "https://mariadb.api.stackit.cloud",
601
- }),
602
- ),
603
- ).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
604
-
605
255
  export type ListInstancesResponseInstancesList = Array<Instance>;
606
- export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
607
- Instance,
608
- ) as any as S.Schema<ListInstancesResponseInstancesList>;
609
-
610
256
  export interface ListInstancesResponse {
611
257
  instances: ListInstancesResponseInstancesList;
612
258
  }
613
- export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
614
- S.Struct({
615
- instances: ListInstancesResponseInstancesList,
616
- }),
617
- ).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
618
-
619
259
  export interface ListOfferingsRequest {
620
260
  /** Project id on which user has permissions */
621
261
  projectId: string;
622
262
  /** region in which the project resides */
623
263
  regionId: string;
624
264
  }
625
- export const ListOfferingsRequest = /*@__PURE__*/ S.suspend(() =>
626
- S.Struct({
627
- projectId: S.String.pipe(T.Label()),
628
- regionId: S.String.pipe(T.Label()),
629
- }).pipe(
630
- T.Http({
631
- method: "GET",
632
- uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
633
- code: 200,
634
- baseUrl: "https://mariadb.api.stackit.cloud",
635
- }),
636
- ),
637
- ).annotate({ identifier: "ListOfferingsRequest" }) as any as S.Schema<ListOfferingsRequest>;
638
-
639
265
  export interface Plan {
640
266
  description: string;
641
267
  free: boolean;
@@ -643,39 +269,14 @@ export interface Plan {
643
269
  name: string;
644
270
  skuName: string;
645
271
  }
646
- export const Plan = /*@__PURE__*/ S.suspend(() =>
647
- S.Struct({
648
- description: S.String,
649
- free: S.Boolean,
650
- id: S.String,
651
- name: S.String,
652
- skuName: S.String,
653
- }),
654
- ).annotate({ identifier: "Plan" }) as any as S.Schema<Plan>;
655
-
656
272
  export type OfferingPlansList = Array<Plan>;
657
- export const OfferingPlansList = /*@__PURE__*/ S.Array(Plan) as any as S.Schema<OfferingPlansList>;
658
-
659
273
  export interface Schema {
660
274
  parameters: unknown;
661
275
  }
662
- export const Schema = /*@__PURE__*/ S.suspend(() =>
663
- S.Struct({
664
- parameters: S.Unknown,
665
- }),
666
- ).annotate({ identifier: "Schema" }) as any as S.Schema<Schema>;
667
-
668
276
  export interface InstanceSchema {
669
277
  create: Schema;
670
278
  update: Schema;
671
279
  }
672
- export const InstanceSchema = /*@__PURE__*/ S.suspend(() =>
673
- S.Struct({
674
- create: Schema,
675
- update: Schema,
676
- }),
677
- ).annotate({ identifier: "InstanceSchema" }) as any as S.Schema<InstanceSchema>;
678
-
679
280
  export interface Offering {
680
281
  description: string;
681
282
  documentationUrl: string;
@@ -688,35 +289,10 @@ export interface Offering {
688
289
  schema?: InstanceSchema;
689
290
  version: string;
690
291
  }
691
- export const Offering = /*@__PURE__*/ S.suspend(() =>
692
- S.Struct({
693
- description: S.String,
694
- documentationUrl: S.String,
695
- imageUrl: S.String,
696
- latest: S.Boolean,
697
- lifecycle: S.optional(S.String),
698
- name: S.String,
699
- plans: OfferingPlansList,
700
- quotaCount: S.Number,
701
- schema: S.optional(InstanceSchema),
702
- version: S.String,
703
- }),
704
- ).annotate({ identifier: "Offering" }) as any as S.Schema<Offering>;
705
-
706
292
  export type ListOfferingsResponseOfferingsList = Array<Offering>;
707
- export const ListOfferingsResponseOfferingsList = /*@__PURE__*/ S.Array(
708
- Offering,
709
- ) as any as S.Schema<ListOfferingsResponseOfferingsList>;
710
-
711
293
  export interface ListOfferingsResponse {
712
294
  offerings: ListOfferingsResponseOfferingsList;
713
295
  }
714
- export const ListOfferingsResponse = /*@__PURE__*/ S.suspend(() =>
715
- S.Struct({
716
- offerings: ListOfferingsResponseOfferingsList,
717
- }),
718
- ).annotate({ identifier: "ListOfferingsResponse" }) as any as S.Schema<ListOfferingsResponse>;
719
-
720
296
  export interface ListRestoresRequest {
721
297
  /** Project id on which user has permissions */
722
298
  projectId: string;
@@ -725,21 +301,6 @@ export interface ListRestoresRequest {
725
301
  /** Instance id */
726
302
  instanceId: string;
727
303
  }
728
- export const ListRestoresRequest = /*@__PURE__*/ S.suspend(() =>
729
- S.Struct({
730
- projectId: S.String.pipe(T.Label()),
731
- regionId: S.String.pipe(T.Label()),
732
- instanceId: S.String.pipe(T.Label()),
733
- }).pipe(
734
- T.Http({
735
- method: "GET",
736
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
737
- code: 200,
738
- baseUrl: "https://mariadb.api.stackit.cloud",
739
- }),
740
- ),
741
- ).annotate({ identifier: "ListRestoresRequest" }) as any as S.Schema<ListRestoresRequest>;
742
-
743
304
  export interface Restore {
744
305
  backup_id: number;
745
306
  finished_at: string;
@@ -747,30 +308,10 @@ export interface Restore {
747
308
  status: string;
748
309
  triggered_at?: string;
749
310
  }
750
- export const Restore = /*@__PURE__*/ S.suspend(() =>
751
- S.Struct({
752
- backup_id: S.Number,
753
- finished_at: S.String,
754
- id: S.Number,
755
- status: S.String,
756
- triggered_at: S.optional(S.String),
757
- }),
758
- ).annotate({ identifier: "Restore" }) as any as S.Schema<Restore>;
759
-
760
311
  export type ListRestoresResponseInstanceRestoresList = Array<Restore>;
761
- export const ListRestoresResponseInstanceRestoresList = /*@__PURE__*/ S.Array(
762
- Restore,
763
- ) as any as S.Schema<ListRestoresResponseInstanceRestoresList>;
764
-
765
312
  export interface ListRestoresResponse {
766
313
  instanceRestores: ListRestoresResponseInstanceRestoresList;
767
314
  }
768
- export const ListRestoresResponse = /*@__PURE__*/ S.suspend(() =>
769
- S.Struct({
770
- instanceRestores: ListRestoresResponseInstanceRestoresList,
771
- }),
772
- ).annotate({ identifier: "ListRestoresResponse" }) as any as S.Schema<ListRestoresResponse>;
773
-
774
315
  export interface PartialUpdateInstanceRequest {
775
316
  /** Project id on which user has permissions */
776
317
  projectId: string;
@@ -782,31 +323,7 @@ export interface PartialUpdateInstanceRequest {
782
323
  parameters?: InstanceParameters;
783
324
  planId?: string;
784
325
  }
785
- export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
786
- S.Struct({
787
- projectId: S.String.pipe(T.Label()),
788
- regionId: S.String.pipe(T.Label()),
789
- instanceId: S.String.pipe(T.Label()),
790
- instanceName: S.optional(S.String),
791
- parameters: S.optional(InstanceParameters),
792
- planId: S.optional(S.String),
793
- }).pipe(
794
- T.Http({
795
- method: "PATCH",
796
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
797
- code: 200,
798
- baseUrl: "https://mariadb.api.stackit.cloud",
799
- }),
800
- ),
801
- ).annotate({
802
- identifier: "PartialUpdateInstanceRequest",
803
- }) as any as S.Schema<PartialUpdateInstanceRequest>;
804
-
805
326
  export interface PartialUpdateInstanceResponse {}
806
- export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
807
- identifier: "PartialUpdateInstanceResponse",
808
- }) as any as S.Schema<PartialUpdateInstanceResponse>;
809
-
810
327
  export interface TriggerRecreateRequest {
811
328
  /** Project id on which user has permissions */
812
329
  projectId: string;
@@ -815,21 +332,6 @@ export interface TriggerRecreateRequest {
815
332
  /** Instance id */
816
333
  instanceId: string;
817
334
  }
818
- export const TriggerRecreateRequest = /*@__PURE__*/ S.suspend(() =>
819
- S.Struct({
820
- projectId: S.String.pipe(T.Label()),
821
- regionId: S.String.pipe(T.Label()),
822
- instanceId: S.String.pipe(T.Label()),
823
- }).pipe(
824
- T.Http({
825
- method: "PATCH",
826
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
827
- code: 200,
828
- baseUrl: "https://mariadb.api.stackit.cloud",
829
- }),
830
- ),
831
- ).annotate({ identifier: "TriggerRecreateRequest" }) as any as S.Schema<TriggerRecreateRequest>;
832
-
833
335
  export interface TriggerRestartRequest {
834
336
  /** Project id on which user has permissions */
835
337
  projectId: string;
@@ -838,21 +340,6 @@ export interface TriggerRestartRequest {
838
340
  /** Instance id */
839
341
  instanceId: string;
840
342
  }
841
- export const TriggerRestartRequest = /*@__PURE__*/ S.suspend(() =>
842
- S.Struct({
843
- projectId: S.String.pipe(T.Label()),
844
- regionId: S.String.pipe(T.Label()),
845
- instanceId: S.String.pipe(T.Label()),
846
- }).pipe(
847
- T.Http({
848
- method: "PATCH",
849
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
850
- code: 200,
851
- baseUrl: "https://mariadb.api.stackit.cloud",
852
- }),
853
- ),
854
- ).annotate({ identifier: "TriggerRestartRequest" }) as any as S.Schema<TriggerRestartRequest>;
855
-
856
343
  export interface TriggerRestoreRequest {
857
344
  /** Project id on which user has permissions */
858
345
  projectId: string;
@@ -863,31 +350,9 @@ export interface TriggerRestoreRequest {
863
350
  /** Backup id */
864
351
  backupId: number;
865
352
  }
866
- export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() =>
867
- S.Struct({
868
- projectId: S.String.pipe(T.Label()),
869
- regionId: S.String.pipe(T.Label()),
870
- instanceId: S.String.pipe(T.Label()),
871
- backupId: S.Number.pipe(T.Label()),
872
- }).pipe(
873
- T.Http({
874
- method: "POST",
875
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
876
- code: 200,
877
- baseUrl: "https://mariadb.api.stackit.cloud",
878
- }),
879
- ),
880
- ).annotate({ identifier: "TriggerRestoreRequest" }) as any as S.Schema<TriggerRestoreRequest>;
881
-
882
353
  export interface TriggerRestoreResponse {
883
354
  id: number;
884
355
  }
885
- export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() =>
886
- S.Struct({
887
- id: S.Number,
888
- }),
889
- ).annotate({ identifier: "TriggerRestoreResponse" }) as any as S.Schema<TriggerRestoreResponse>;
890
-
891
356
  export interface UpdateBackupsConfigRequest {
892
357
  /** Project id on which user has permissions */
893
358
  projectId: string;
@@ -897,35 +362,9 @@ export interface UpdateBackupsConfigRequest {
897
362
  instanceId: string;
898
363
  encryption_key?: string;
899
364
  }
900
- export const UpdateBackupsConfigRequest = /*@__PURE__*/ S.suspend(() =>
901
- S.Struct({
902
- projectId: S.String.pipe(T.Label()),
903
- regionId: S.String.pipe(T.Label()),
904
- instanceId: S.String.pipe(T.Label()),
905
- encryption_key: S.optional(S.String),
906
- }).pipe(
907
- T.Http({
908
- method: "PATCH",
909
- uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
910
- code: 200,
911
- baseUrl: "https://mariadb.api.stackit.cloud",
912
- }),
913
- ),
914
- ).annotate({
915
- identifier: "UpdateBackupsConfigRequest",
916
- }) as any as S.Schema<UpdateBackupsConfigRequest>;
917
-
918
365
  export interface UpdateBackupsConfigResponse {
919
366
  message: string;
920
367
  }
921
- export const UpdateBackupsConfigResponse = /*@__PURE__*/ S.suspend(() =>
922
- S.Struct({
923
- message: S.String,
924
- }),
925
- ).annotate({
926
- identifier: "UpdateBackupsConfigResponse",
927
- }) as any as S.Schema<UpdateBackupsConfigResponse>;
928
-
929
368
  export type CreateBackupError = BadRequest | NotFound | StackitOpError;
930
369
  /** create a backup */
931
370
  export const createBackup: API.OperationMethod<
@@ -934,8 +373,8 @@ export const createBackup: API.OperationMethod<
934
373
  CreateBackupError,
935
374
  StackitOpContext
936
375
  > = /*@__PURE__*/ API.make(() => ({
937
- input: CreateBackupRequest,
938
- output: CreateBackupResponseItem,
376
+ input: __S(104, __c13, 0) as any as S.Schema<CreateBackupRequest>,
377
+ output: __S(105, __c13, 1) as any as S.Schema<CreateBackupResponseItem>,
939
378
  errors: [BadRequest, NotFound, UnknownStackitError],
940
379
  protocol: StackitProtocol,
941
380
  retry: Retry.Retry,
@@ -949,8 +388,8 @@ export const createCredentials: API.OperationMethod<
949
388
  CreateCredentialsError,
950
389
  StackitOpContext
951
390
  > = /*@__PURE__*/ API.make(() => ({
952
- input: CreateCredentialsRequest,
953
- output: CredentialsResponse,
391
+ input: __S(112, __c14, 0) as any as S.Schema<CreateCredentialsRequest>,
392
+ output: __S(130, __c16, 2) as any as S.Schema<CredentialsResponse>,
954
393
  errors: [BadRequest, UnknownStackitError],
955
394
  protocol: StackitProtocol,
956
395
  retry: Retry.Retry,
@@ -964,8 +403,8 @@ export const createInstance: API.OperationMethod<
964
403
  CreateInstanceError,
965
404
  StackitOpContext
966
405
  > = /*@__PURE__*/ API.make(() => ({
967
- input: CreateInstanceRequest,
968
- output: CreateInstanceResponse,
406
+ input: __S(136, __c17, 0) as any as S.Schema<CreateInstanceRequest>,
407
+ output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
969
408
  errors: [BadRequest, Conflict, UnknownStackitError],
970
409
  protocol: StackitProtocol,
971
410
  retry: Retry.Retry,
@@ -979,8 +418,8 @@ export const deleteCredentials: API.OperationMethod<
979
418
  DeleteCredentialsError,
980
419
  StackitOpContext
981
420
  > = /*@__PURE__*/ API.make(() => ({
982
- input: DeleteCredentialsRequest,
983
- output: DeleteCredentialsResponse,
421
+ input: __S(160, __c20, 0) as any as S.Schema<DeleteCredentialsRequest>,
422
+ output: __S(168, __c21, 0) as any as S.Schema<DeleteCredentialsResponse>,
984
423
  errors: [BadRequest, NotFound, UnknownStackitError],
985
424
  protocol: StackitProtocol,
986
425
  retry: Retry.Retry,
@@ -994,8 +433,8 @@ export const deleteInstance: API.OperationMethod<
994
433
  DeleteInstanceError,
995
434
  StackitOpContext
996
435
  > = /*@__PURE__*/ API.make(() => ({
997
- input: DeleteInstanceRequest,
998
- output: DeleteInstanceResponse,
436
+ input: __S(176, __c22, 0) as any as S.Schema<DeleteInstanceRequest>,
437
+ output: __S(168, __c21, 0) as any as S.Schema<DeleteInstanceResponse>,
999
438
  errors: [BadRequest, NotFound, UnknownStackitError],
1000
439
  protocol: StackitProtocol,
1001
440
  retry: Retry.Retry,
@@ -1009,8 +448,8 @@ export const downloadBackup: API.OperationMethod<
1009
448
  DownloadBackupError,
1010
449
  StackitOpContext
1011
450
  > = /*@__PURE__*/ API.make(() => ({
1012
- input: DownloadBackupRequest,
1013
- output: DownloadBackupResponse,
451
+ input: __S(184, __c23, 0) as any as S.Schema<DownloadBackupRequest>,
452
+ output: __S(168, __c21, 0) as any as S.Schema<DownloadBackupResponse>,
1014
453
  errors: [BadRequest, NotFound, UnknownStackitError],
1015
454
  protocol: StackitProtocol,
1016
455
  retry: Retry.Retry,
@@ -1024,8 +463,8 @@ export const getCredentials: API.OperationMethod<
1024
463
  GetCredentialsError,
1025
464
  StackitOpContext
1026
465
  > = /*@__PURE__*/ API.make(() => ({
1027
- input: GetCredentialsRequest,
1028
- output: CredentialsResponse,
466
+ input: __S(192, __c24, 0) as any as S.Schema<GetCredentialsRequest>,
467
+ output: __S(130, __c16, 2) as any as S.Schema<CredentialsResponse>,
1029
468
  errors: [BadRequest, NotFound, UnknownStackitError],
1030
469
  protocol: StackitProtocol,
1031
470
  retry: Retry.Retry,
@@ -1039,8 +478,8 @@ export const getInstance: API.OperationMethod<
1039
478
  GetInstanceError,
1040
479
  StackitOpContext
1041
480
  > = /*@__PURE__*/ API.make(() => ({
1042
- input: GetInstanceRequest,
1043
- output: Instance,
481
+ input: __S(0, __c0, 0) as any as S.Schema<GetInstanceRequest>,
482
+ output: __S(9, __c1, 1) as any as S.Schema<Instance>,
1044
483
  errors: [BadRequest, NotFound, UnknownStackitError],
1045
484
  protocol: StackitProtocol,
1046
485
  retry: Retry.Retry,
@@ -1054,8 +493,8 @@ export const getMetrics: API.OperationMethod<
1054
493
  GetMetricsError,
1055
494
  StackitOpContext
1056
495
  > = /*@__PURE__*/ API.make(() => ({
1057
- input: GetMetricsRequest,
1058
- output: GetMetricsResponse,
496
+ input: __S(16, __c2, 0) as any as S.Schema<GetMetricsRequest>,
497
+ output: __S(17, __c2, 1) as any as S.Schema<GetMetricsResponse>,
1059
498
  errors: [BadRequest, NotFound, UnknownStackitError],
1060
499
  protocol: StackitProtocol,
1061
500
  retry: Retry.Retry,
@@ -1069,8 +508,8 @@ export const listBackups: API.OperationMethod<
1069
508
  ListBackupsError,
1070
509
  StackitOpContext
1071
510
  > = /*@__PURE__*/ API.make(() => ({
1072
- input: ListBackupsRequest,
1073
- output: ListBackupsResponse2,
511
+ input: __S(24, __c3, 0) as any as S.Schema<ListBackupsRequest>,
512
+ output: __S(27, __c3, 3) as any as S.Schema<ListBackupsResponse2>,
1074
513
  errors: [BadRequest, NotFound, UnknownStackitError],
1075
514
  protocol: StackitProtocol,
1076
515
  retry: Retry.Retry,
@@ -1084,8 +523,8 @@ export const listCredentials: API.OperationMethod<
1084
523
  ListCredentialsError,
1085
524
  StackitOpContext
1086
525
  > = /*@__PURE__*/ API.make(() => ({
1087
- input: ListCredentialsRequest,
1088
- output: ListCredentialsResponse,
526
+ input: __S(32, __c4, 0) as any as S.Schema<ListCredentialsRequest>,
527
+ output: __S(35, __c4, 3) as any as S.Schema<ListCredentialsResponse>,
1089
528
  errors: [BadRequest, NotFound, UnknownStackitError],
1090
529
  protocol: StackitProtocol,
1091
530
  retry: Retry.Retry,
@@ -1099,8 +538,8 @@ export const listInstances: API.OperationMethod<
1099
538
  ListInstancesError,
1100
539
  StackitOpContext
1101
540
  > = /*@__PURE__*/ API.make(() => ({
1102
- input: ListInstancesRequest,
1103
- output: ListInstancesResponse,
541
+ input: __S(40, __c5, 0) as any as S.Schema<ListInstancesRequest>,
542
+ output: __S(42, __c5, 2) as any as S.Schema<ListInstancesResponse>,
1104
543
  errors: [BadRequest, NotFound, UnknownStackitError],
1105
544
  protocol: StackitProtocol,
1106
545
  retry: Retry.Retry,
@@ -1114,8 +553,8 @@ export const listOfferings: API.OperationMethod<
1114
553
  ListOfferingsError,
1115
554
  StackitOpContext
1116
555
  > = /*@__PURE__*/ API.make(() => ({
1117
- input: ListOfferingsRequest,
1118
- output: ListOfferingsResponse,
556
+ input: __S(48, __c6, 0) as any as S.Schema<ListOfferingsRequest>,
557
+ output: __S(55, __c6, 7) as any as S.Schema<ListOfferingsResponse>,
1119
558
  errors: [BadRequest, NotFound, UnknownStackitError],
1120
559
  protocol: StackitProtocol,
1121
560
  retry: Retry.Retry,
@@ -1129,8 +568,8 @@ export const listRestores: API.OperationMethod<
1129
568
  ListRestoresError,
1130
569
  StackitOpContext
1131
570
  > = /*@__PURE__*/ API.make(() => ({
1132
- input: ListRestoresRequest,
1133
- output: ListRestoresResponse,
571
+ input: __S(56, __c7, 0) as any as S.Schema<ListRestoresRequest>,
572
+ output: __S(59, __c7, 3) as any as S.Schema<ListRestoresResponse>,
1134
573
  errors: [BadRequest, NotFound, UnknownStackitError],
1135
574
  protocol: StackitProtocol,
1136
575
  retry: Retry.Retry,
@@ -1144,8 +583,8 @@ export const partialUpdateInstance: API.OperationMethod<
1144
583
  PartialUpdateInstanceError,
1145
584
  StackitOpContext
1146
585
  > = /*@__PURE__*/ API.make(() => ({
1147
- input: PartialUpdateInstanceRequest,
1148
- output: PartialUpdateInstanceResponse,
586
+ input: __S(64, __c8, 0) as any as S.Schema<PartialUpdateInstanceRequest>,
587
+ output: __S(168, __c21, 0) as any as S.Schema<PartialUpdateInstanceResponse>,
1149
588
  errors: [BadRequest, NotFound, UnknownStackitError],
1150
589
  protocol: StackitProtocol,
1151
590
  retry: Retry.Retry,
@@ -1159,8 +598,8 @@ export const triggerRecreate: API.OperationMethod<
1159
598
  TriggerRecreateError,
1160
599
  StackitOpContext
1161
600
  > = /*@__PURE__*/ API.make(() => ({
1162
- input: TriggerRecreateRequest,
1163
- output: CreateInstanceResponse,
601
+ input: __S(72, __c9, 0) as any as S.Schema<TriggerRecreateRequest>,
602
+ output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
1164
603
  errors: [BadRequest, NotFound, UnknownStackitError],
1165
604
  protocol: StackitProtocol,
1166
605
  retry: Retry.Retry,
@@ -1174,8 +613,8 @@ export const triggerRestart: API.OperationMethod<
1174
613
  TriggerRestartError,
1175
614
  StackitOpContext
1176
615
  > = /*@__PURE__*/ API.make(() => ({
1177
- input: TriggerRestartRequest,
1178
- output: CreateInstanceResponse,
616
+ input: __S(80, __c10, 0) as any as S.Schema<TriggerRestartRequest>,
617
+ output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
1179
618
  errors: [BadRequest, NotFound, UnknownStackitError],
1180
619
  protocol: StackitProtocol,
1181
620
  retry: Retry.Retry,
@@ -1189,8 +628,8 @@ export const triggerRestore: API.OperationMethod<
1189
628
  TriggerRestoreError,
1190
629
  StackitOpContext
1191
630
  > = /*@__PURE__*/ API.make(() => ({
1192
- input: TriggerRestoreRequest,
1193
- output: TriggerRestoreResponse,
631
+ input: __S(88, __c11, 0) as any as S.Schema<TriggerRestoreRequest>,
632
+ output: __S(89, __c11, 1) as any as S.Schema<TriggerRestoreResponse>,
1194
633
  errors: [BadRequest, NotFound, UnknownStackitError],
1195
634
  protocol: StackitProtocol,
1196
635
  retry: Retry.Retry,
@@ -1204,9 +643,637 @@ export const updateBackupsConfig: API.OperationMethod<
1204
643
  UpdateBackupsConfigError,
1205
644
  StackitOpContext
1206
645
  > = /*@__PURE__*/ API.make(() => ({
1207
- input: UpdateBackupsConfigRequest,
1208
- output: UpdateBackupsConfigResponse,
646
+ input: __S(96, __c12, 0) as any as S.Schema<UpdateBackupsConfigRequest>,
647
+ output: __S(97, __c12, 1) as any as S.Schema<UpdateBackupsConfigResponse>,
1209
648
  errors: [BadRequest, NotFound, UnknownStackitError],
1210
649
  protocol: StackitProtocol,
1211
650
  retry: Retry.Retry,
1212
651
  }));
652
+
653
+ // Schema builders: each runs one schema initializer, on that schema's first use.
654
+ function __c0(j: number): any {
655
+ switch (j) {
656
+ case 0:
657
+ return S.suspend(() =>
658
+ S.Struct({
659
+ projectId: S.String.pipe(T.Label()),
660
+ regionId: S.String.pipe(T.Label()),
661
+ instanceId: S.String.pipe(T.Label()),
662
+ }).pipe(
663
+ T.Http({
664
+ method: "GET",
665
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
666
+ code: 200,
667
+ baseUrl: "https://mariadb.api.stackit.cloud",
668
+ }),
669
+ ),
670
+ ).annotate({ identifier: "GetInstanceRequest" });
671
+ }
672
+ }
673
+ function __c1(j: number): any {
674
+ switch (j) {
675
+ case 0:
676
+ return S.suspend(() =>
677
+ S.Struct({
678
+ description: S.String,
679
+ state: S.String,
680
+ type: S.String,
681
+ }),
682
+ ).annotate({ identifier: "InstanceLastOperation" });
683
+ case 1:
684
+ return S.suspend(() =>
685
+ S.Struct({
686
+ cfGuid: S.String,
687
+ cfOrganizationGuid: S.String,
688
+ cfSpaceGuid: S.String,
689
+ dashboardUrl: S.String,
690
+ imageUrl: S.String,
691
+ instanceId: S.optional(S.String),
692
+ lastOperation: __S(8, __c1, 0),
693
+ name: S.String,
694
+ offeringName: S.String,
695
+ offeringVersion: S.String,
696
+ parameters: S.Unknown,
697
+ planId: S.String,
698
+ planName: S.String,
699
+ status: S.optional(S.String),
700
+ }),
701
+ ).annotate({ identifier: "Instance" });
702
+ }
703
+ }
704
+ function __c2(j: number): any {
705
+ switch (j) {
706
+ case 0:
707
+ return S.suspend(() =>
708
+ S.Struct({
709
+ projectId: S.String.pipe(T.Label()),
710
+ regionId: S.String.pipe(T.Label()),
711
+ instanceId: S.String.pipe(T.Label()),
712
+ }).pipe(
713
+ T.Http({
714
+ method: "GET",
715
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
716
+ code: 200,
717
+ baseUrl: "https://mariadb.api.stackit.cloud",
718
+ }),
719
+ ),
720
+ ).annotate({ identifier: "GetMetricsRequest" });
721
+ case 1:
722
+ return S.suspend(() =>
723
+ S.Struct({
724
+ cpuIdleTime: S.optional(S.Number),
725
+ cpuLoadPercent: S.Number,
726
+ cpuSystemTime: S.optional(S.Number),
727
+ cpuUserTime: S.optional(S.Number),
728
+ diskEphemeralTotal: S.Number,
729
+ diskEphemeralUsed: S.Number,
730
+ diskPersistentTotal: S.Number,
731
+ diskPersistentUsed: S.Number,
732
+ load1: S.Number,
733
+ load15: S.Number,
734
+ load5: S.Number,
735
+ memoryTotal: S.Number,
736
+ memoryUsed: S.Number,
737
+ parachuteDiskEphemeralActivated: S.Boolean,
738
+ parachuteDiskEphemeralTotal: S.Number,
739
+ parachuteDiskEphemeralUsed: S.Number,
740
+ parachuteDiskEphemeralUsedPercent: S.Number,
741
+ parachuteDiskEphemeralUsedThreshold: S.Number,
742
+ parachuteDiskPersistentActivated: S.Boolean,
743
+ parachuteDiskPersistentTotal: S.Number,
744
+ parachuteDiskPersistentUsed: S.Number,
745
+ parachuteDiskPersistentUsedPercent: S.Number,
746
+ parachuteDiskPersistentUsedThreshold: S.Number,
747
+ }),
748
+ ).annotate({ identifier: "GetMetricsResponse" });
749
+ }
750
+ }
751
+ function __c3(j: number): any {
752
+ switch (j) {
753
+ case 0:
754
+ return S.suspend(() =>
755
+ S.Struct({
756
+ projectId: S.String.pipe(T.Label()),
757
+ regionId: S.String.pipe(T.Label()),
758
+ instanceId: S.String.pipe(T.Label()),
759
+ }).pipe(
760
+ T.Http({
761
+ method: "GET",
762
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
763
+ code: 200,
764
+ baseUrl: "https://mariadb.api.stackit.cloud",
765
+ }),
766
+ ),
767
+ ).annotate({ identifier: "ListBackupsRequest" });
768
+ case 1:
769
+ return S.suspend(() =>
770
+ S.Struct({
771
+ downloadable: S.optional(S.Boolean),
772
+ finished_at: S.String,
773
+ id: S.Number,
774
+ size: S.optional(S.Number),
775
+ status: S.String,
776
+ triggered_at: S.optional(S.String),
777
+ }),
778
+ ).annotate({ identifier: "Backup" });
779
+ case 2:
780
+ return S.Array(__S(25, __c3, 1));
781
+ case 3:
782
+ return S.suspend(() => __S(26, __c3, 2).pipe(T.RawResponseRoot())).annotate({
783
+ identifier: "ListBackupsResponse2",
784
+ });
785
+ }
786
+ }
787
+ function __c4(j: number): any {
788
+ switch (j) {
789
+ case 0:
790
+ return S.suspend(() =>
791
+ S.Struct({
792
+ projectId: S.String.pipe(T.Label()),
793
+ regionId: S.String.pipe(T.Label()),
794
+ instanceId: S.String.pipe(T.Label()),
795
+ }).pipe(
796
+ T.Http({
797
+ method: "GET",
798
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
799
+ code: 200,
800
+ baseUrl: "https://mariadb.api.stackit.cloud",
801
+ }),
802
+ ),
803
+ ).annotate({ identifier: "ListCredentialsRequest" });
804
+ case 1:
805
+ return S.suspend(() =>
806
+ S.Struct({
807
+ id: S.String,
808
+ }),
809
+ ).annotate({ identifier: "CredentialsListItem" });
810
+ case 2:
811
+ return S.Array(__S(33, __c4, 1));
812
+ case 3:
813
+ return S.suspend(() =>
814
+ S.Struct({
815
+ credentialsList: __S(34, __c4, 2),
816
+ }),
817
+ ).annotate({ identifier: "ListCredentialsResponse" });
818
+ }
819
+ }
820
+ function __c5(j: number): any {
821
+ switch (j) {
822
+ case 0:
823
+ return S.suspend(() =>
824
+ S.Struct({
825
+ projectId: S.String.pipe(T.Label()),
826
+ regionId: S.String.pipe(T.Label()),
827
+ }).pipe(
828
+ T.Http({
829
+ method: "GET",
830
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
831
+ code: 200,
832
+ baseUrl: "https://mariadb.api.stackit.cloud",
833
+ }),
834
+ ),
835
+ ).annotate({ identifier: "ListInstancesRequest" });
836
+ case 1:
837
+ return S.Array(__S(9, __c1, 1));
838
+ case 2:
839
+ return S.suspend(() =>
840
+ S.Struct({
841
+ instances: __S(41, __c5, 1),
842
+ }),
843
+ ).annotate({ identifier: "ListInstancesResponse" });
844
+ }
845
+ }
846
+ function __c6(j: number): any {
847
+ switch (j) {
848
+ case 0:
849
+ return S.suspend(() =>
850
+ S.Struct({
851
+ projectId: S.String.pipe(T.Label()),
852
+ regionId: S.String.pipe(T.Label()),
853
+ }).pipe(
854
+ T.Http({
855
+ method: "GET",
856
+ uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
857
+ code: 200,
858
+ baseUrl: "https://mariadb.api.stackit.cloud",
859
+ }),
860
+ ),
861
+ ).annotate({ identifier: "ListOfferingsRequest" });
862
+ case 1:
863
+ return S.suspend(() =>
864
+ S.Struct({
865
+ description: S.String,
866
+ free: S.Boolean,
867
+ id: S.String,
868
+ name: S.String,
869
+ skuName: S.String,
870
+ }),
871
+ ).annotate({ identifier: "Plan" });
872
+ case 2:
873
+ return S.Array(__S(49, __c6, 1));
874
+ case 3:
875
+ return S.suspend(() =>
876
+ S.Struct({
877
+ parameters: S.Unknown,
878
+ }),
879
+ ).annotate({ identifier: "Schema" });
880
+ case 4:
881
+ return S.suspend(() =>
882
+ S.Struct({
883
+ create: __S(51, __c6, 3),
884
+ update: __S(51, __c6, 3),
885
+ }),
886
+ ).annotate({ identifier: "InstanceSchema" });
887
+ case 5:
888
+ return S.suspend(() =>
889
+ S.Struct({
890
+ description: S.String,
891
+ documentationUrl: S.String,
892
+ imageUrl: S.String,
893
+ latest: S.Boolean,
894
+ lifecycle: S.optional(S.String),
895
+ name: S.String,
896
+ plans: __S(50, __c6, 2),
897
+ quotaCount: S.Number,
898
+ schema: S.optional(__S(52, __c6, 4)),
899
+ version: S.String,
900
+ }),
901
+ ).annotate({ identifier: "Offering" });
902
+ case 6:
903
+ return S.Array(__S(53, __c6, 5));
904
+ case 7:
905
+ return S.suspend(() =>
906
+ S.Struct({
907
+ offerings: __S(54, __c6, 6),
908
+ }),
909
+ ).annotate({ identifier: "ListOfferingsResponse" });
910
+ }
911
+ }
912
+ function __c7(j: number): any {
913
+ switch (j) {
914
+ case 0:
915
+ return S.suspend(() =>
916
+ S.Struct({
917
+ projectId: S.String.pipe(T.Label()),
918
+ regionId: S.String.pipe(T.Label()),
919
+ instanceId: S.String.pipe(T.Label()),
920
+ }).pipe(
921
+ T.Http({
922
+ method: "GET",
923
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
924
+ code: 200,
925
+ baseUrl: "https://mariadb.api.stackit.cloud",
926
+ }),
927
+ ),
928
+ ).annotate({ identifier: "ListRestoresRequest" });
929
+ case 1:
930
+ return S.suspend(() =>
931
+ S.Struct({
932
+ backup_id: S.Number,
933
+ finished_at: S.String,
934
+ id: S.Number,
935
+ status: S.String,
936
+ triggered_at: S.optional(S.String),
937
+ }),
938
+ ).annotate({ identifier: "Restore" });
939
+ case 2:
940
+ return S.Array(__S(57, __c7, 1));
941
+ case 3:
942
+ return S.suspend(() =>
943
+ S.Struct({
944
+ instanceRestores: __S(58, __c7, 2),
945
+ }),
946
+ ).annotate({ identifier: "ListRestoresResponse" });
947
+ }
948
+ }
949
+ function __c8(j: number): any {
950
+ switch (j) {
951
+ case 0:
952
+ return S.suspend(() =>
953
+ S.Struct({
954
+ projectId: S.String.pipe(T.Label()),
955
+ regionId: S.String.pipe(T.Label()),
956
+ instanceId: S.String.pipe(T.Label()),
957
+ instanceName: S.optional(S.String),
958
+ parameters: S.optional(__S(144, __c18, 0)),
959
+ planId: S.optional(S.String),
960
+ }).pipe(
961
+ T.Http({
962
+ method: "PATCH",
963
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
964
+ code: 200,
965
+ baseUrl: "https://mariadb.api.stackit.cloud",
966
+ }),
967
+ ),
968
+ ).annotate({ identifier: "PartialUpdateInstanceRequest" });
969
+ }
970
+ }
971
+ function __c9(j: number): any {
972
+ switch (j) {
973
+ case 0:
974
+ return S.suspend(() =>
975
+ S.Struct({
976
+ projectId: S.String.pipe(T.Label()),
977
+ regionId: S.String.pipe(T.Label()),
978
+ instanceId: S.String.pipe(T.Label()),
979
+ }).pipe(
980
+ T.Http({
981
+ method: "PATCH",
982
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
983
+ code: 200,
984
+ baseUrl: "https://mariadb.api.stackit.cloud",
985
+ }),
986
+ ),
987
+ ).annotate({ identifier: "TriggerRecreateRequest" });
988
+ }
989
+ }
990
+ function __c10(j: number): any {
991
+ switch (j) {
992
+ case 0:
993
+ return S.suspend(() =>
994
+ S.Struct({
995
+ projectId: S.String.pipe(T.Label()),
996
+ regionId: S.String.pipe(T.Label()),
997
+ instanceId: S.String.pipe(T.Label()),
998
+ }).pipe(
999
+ T.Http({
1000
+ method: "PATCH",
1001
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
1002
+ code: 200,
1003
+ baseUrl: "https://mariadb.api.stackit.cloud",
1004
+ }),
1005
+ ),
1006
+ ).annotate({ identifier: "TriggerRestartRequest" });
1007
+ }
1008
+ }
1009
+ function __c11(j: number): any {
1010
+ switch (j) {
1011
+ case 0:
1012
+ return S.suspend(() =>
1013
+ S.Struct({
1014
+ projectId: S.String.pipe(T.Label()),
1015
+ regionId: S.String.pipe(T.Label()),
1016
+ instanceId: S.String.pipe(T.Label()),
1017
+ backupId: S.Number.pipe(T.Label()),
1018
+ }).pipe(
1019
+ T.Http({
1020
+ method: "POST",
1021
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
1022
+ code: 200,
1023
+ baseUrl: "https://mariadb.api.stackit.cloud",
1024
+ }),
1025
+ ),
1026
+ ).annotate({ identifier: "TriggerRestoreRequest" });
1027
+ case 1:
1028
+ return S.suspend(() =>
1029
+ S.Struct({
1030
+ id: S.Number,
1031
+ }),
1032
+ ).annotate({ identifier: "TriggerRestoreResponse" });
1033
+ }
1034
+ }
1035
+ function __c12(j: number): any {
1036
+ switch (j) {
1037
+ case 0:
1038
+ return S.suspend(() =>
1039
+ S.Struct({
1040
+ projectId: S.String.pipe(T.Label()),
1041
+ regionId: S.String.pipe(T.Label()),
1042
+ instanceId: S.String.pipe(T.Label()),
1043
+ encryption_key: S.optional(S.String),
1044
+ }).pipe(
1045
+ T.Http({
1046
+ method: "PATCH",
1047
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
1048
+ code: 200,
1049
+ baseUrl: "https://mariadb.api.stackit.cloud",
1050
+ }),
1051
+ ),
1052
+ ).annotate({ identifier: "UpdateBackupsConfigRequest" });
1053
+ case 1:
1054
+ return S.suspend(() =>
1055
+ S.Struct({
1056
+ message: S.String,
1057
+ }),
1058
+ ).annotate({ identifier: "UpdateBackupsConfigResponse" });
1059
+ }
1060
+ }
1061
+ function __c13(j: number): any {
1062
+ switch (j) {
1063
+ case 0:
1064
+ return S.suspend(() =>
1065
+ S.Struct({
1066
+ projectId: S.String.pipe(T.Label()),
1067
+ regionId: S.String.pipe(T.Label()),
1068
+ instanceId: S.String.pipe(T.Label()),
1069
+ }).pipe(
1070
+ T.Http({
1071
+ method: "POST",
1072
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
1073
+ code: 200,
1074
+ baseUrl: "https://mariadb.api.stackit.cloud",
1075
+ }),
1076
+ ),
1077
+ ).annotate({ identifier: "CreateBackupRequest" });
1078
+ case 1:
1079
+ return S.suspend(() =>
1080
+ S.Struct({
1081
+ id: S.Number,
1082
+ message: S.String,
1083
+ }),
1084
+ ).annotate({ identifier: "CreateBackupResponseItem" });
1085
+ }
1086
+ }
1087
+ function __c14(j: number): any {
1088
+ switch (j) {
1089
+ case 0:
1090
+ return 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
+ parameters: S.optional(S.Unknown),
1096
+ }).pipe(
1097
+ T.Http({
1098
+ method: "POST",
1099
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
1100
+ code: 200,
1101
+ baseUrl: "https://mariadb.api.stackit.cloud",
1102
+ }),
1103
+ ),
1104
+ ).annotate({ identifier: "CreateCredentialsRequest" });
1105
+ }
1106
+ }
1107
+ function __c15(j: number): any {
1108
+ switch (j) {
1109
+ case 0:
1110
+ return S.Array(S.String);
1111
+ }
1112
+ }
1113
+ function __c16(j: number): any {
1114
+ switch (j) {
1115
+ case 0:
1116
+ return S.suspend(() =>
1117
+ S.Struct({
1118
+ host: S.String,
1119
+ hosts: S.optional(__S(120, __c15, 0)),
1120
+ name: S.optional(S.String),
1121
+ password: S.String.pipe(T.SensitiveValue({})),
1122
+ port: S.optional(S.Number),
1123
+ uri: S.optional(S.String),
1124
+ username: S.String,
1125
+ }),
1126
+ ).annotate({ identifier: "Credentials" });
1127
+ case 1:
1128
+ return S.suspend(() =>
1129
+ S.Struct({
1130
+ credentials: __S(128, __c16, 0),
1131
+ }),
1132
+ ).annotate({ identifier: "RawCredentials" });
1133
+ case 2:
1134
+ return S.suspend(() =>
1135
+ S.Struct({
1136
+ id: S.String,
1137
+ raw: S.optional(__S(129, __c16, 1)),
1138
+ uri: S.String,
1139
+ }),
1140
+ ).annotate({ identifier: "CredentialsResponse" });
1141
+ }
1142
+ }
1143
+ function __c17(j: number): any {
1144
+ switch (j) {
1145
+ case 0:
1146
+ return S.suspend(() =>
1147
+ S.Struct({
1148
+ projectId: S.String.pipe(T.Label()),
1149
+ regionId: S.String.pipe(T.Label()),
1150
+ instanceName: S.String,
1151
+ parameters: S.optional(__S(144, __c18, 0)),
1152
+ planId: S.String,
1153
+ }).pipe(
1154
+ T.Http({
1155
+ method: "POST",
1156
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
1157
+ code: 200,
1158
+ baseUrl: "https://mariadb.api.stackit.cloud",
1159
+ }),
1160
+ ),
1161
+ ).annotate({ identifier: "CreateInstanceRequest" });
1162
+ }
1163
+ }
1164
+ function __c18(j: number): any {
1165
+ switch (j) {
1166
+ case 0:
1167
+ return S.suspend(() =>
1168
+ S.Struct({
1169
+ enable_monitoring: S.optional(S.Boolean),
1170
+ graphite: S.optional(S.String),
1171
+ max_disk_threshold: S.optional(S.Number),
1172
+ metrics_frequency: S.optional(S.Number),
1173
+ metrics_prefix: S.optional(S.String),
1174
+ monitoring_instance_id: S.optional(S.String),
1175
+ sgw_acl: S.optional(S.String),
1176
+ syslog: S.optional(__S(120, __c15, 0)),
1177
+ }),
1178
+ ).annotate({ identifier: "InstanceParameters" });
1179
+ }
1180
+ }
1181
+ function __c19(j: number): any {
1182
+ switch (j) {
1183
+ case 0:
1184
+ return S.suspend(() =>
1185
+ S.Struct({
1186
+ instanceId: S.String,
1187
+ }),
1188
+ ).annotate({ identifier: "CreateInstanceResponse" });
1189
+ }
1190
+ }
1191
+ function __c20(j: number): any {
1192
+ switch (j) {
1193
+ case 0:
1194
+ return S.suspend(() =>
1195
+ S.Struct({
1196
+ projectId: S.String.pipe(T.Label()),
1197
+ regionId: S.String.pipe(T.Label()),
1198
+ instanceId: S.String.pipe(T.Label()),
1199
+ credentialsId: S.String.pipe(T.Label()),
1200
+ }).pipe(
1201
+ T.Http({
1202
+ method: "DELETE",
1203
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
1204
+ code: 200,
1205
+ baseUrl: "https://mariadb.api.stackit.cloud",
1206
+ }),
1207
+ ),
1208
+ ).annotate({ identifier: "DeleteCredentialsRequest" });
1209
+ }
1210
+ }
1211
+ function __c21(j: number): any {
1212
+ switch (j) {
1213
+ case 0:
1214
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteCredentialsResponse" });
1215
+ }
1216
+ }
1217
+ function __c22(j: number): any {
1218
+ switch (j) {
1219
+ case 0:
1220
+ return S.suspend(() =>
1221
+ S.Struct({
1222
+ projectId: S.String.pipe(T.Label()),
1223
+ regionId: S.String.pipe(T.Label()),
1224
+ instanceId: S.String.pipe(T.Label()),
1225
+ }).pipe(
1226
+ T.Http({
1227
+ method: "DELETE",
1228
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
1229
+ code: 200,
1230
+ baseUrl: "https://mariadb.api.stackit.cloud",
1231
+ }),
1232
+ ),
1233
+ ).annotate({ identifier: "DeleteInstanceRequest" });
1234
+ }
1235
+ }
1236
+ function __c23(j: number): any {
1237
+ switch (j) {
1238
+ case 0:
1239
+ return S.suspend(() =>
1240
+ S.Struct({
1241
+ projectId: S.String.pipe(T.Label()),
1242
+ regionId: S.String.pipe(T.Label()),
1243
+ instanceId: S.String.pipe(T.Label()),
1244
+ backupId: S.Number.pipe(T.Label()),
1245
+ }).pipe(
1246
+ T.Http({
1247
+ method: "GET",
1248
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
1249
+ code: 200,
1250
+ baseUrl: "https://mariadb.api.stackit.cloud",
1251
+ }),
1252
+ ),
1253
+ ).annotate({ identifier: "DownloadBackupRequest" });
1254
+ }
1255
+ }
1256
+ function __c24(j: number): any {
1257
+ switch (j) {
1258
+ case 0:
1259
+ return S.suspend(() =>
1260
+ S.Struct({
1261
+ projectId: S.String.pipe(T.Label()),
1262
+ regionId: S.String.pipe(T.Label()),
1263
+ instanceId: S.String.pipe(T.Label()),
1264
+ credentialsId: S.String.pipe(T.Label()),
1265
+ }).pipe(
1266
+ T.Http({
1267
+ method: "GET",
1268
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
1269
+ code: 200,
1270
+ baseUrl: "https://mariadb.api.stackit.cloud",
1271
+ }),
1272
+ ),
1273
+ ).annotate({ identifier: "GetCredentialsRequest" });
1274
+ }
1275
+ }
1276
+ // Schema table: entry i is schema j of builder f, made on first reach.
1277
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1278
+ return (__s[i] ??= __L.at(f, j));
1279
+ }