@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,803 @@
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 type CreateDremioInstanceRequestRegionId = "eu01" | "eu02";
45
+ export const CreateDremioInstanceRequestRegionId = /*@__PURE__*/ S.String;
46
+
47
+ /** Azure Active Directory authentication configuration. */
48
+ export interface AzureadInput {
49
+ /** The Azure AD authority URL. */
50
+ authorityUrl: string;
51
+ /** The Azure AD client ID. */
52
+ clientId: string;
53
+ /** The Azure AD client secret. */
54
+ clientSecret?: string | Redacted.Redacted<string>;
55
+ }
56
+ export const AzureadInput = /*@__PURE__*/ S.suspend(() =>
57
+ S.Struct({
58
+ authorityUrl: S.String,
59
+ clientId: S.String,
60
+ clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
61
+ }),
62
+ ).annotate({ identifier: "AzureadInput" }) as any as S.Schema<AzureadInput>;
63
+
64
+ /** Maps fields from the JWT token to fields Dremio requires. */
65
+ export interface OauthInputJwtClaims {
66
+ userName: string;
67
+ }
68
+ export const OauthInputJwtClaims = /*@__PURE__*/ S.suspend(() =>
69
+ S.Struct({
70
+ userName: S.String,
71
+ }),
72
+ ).annotate({
73
+ identifier: "OauthInputJwtClaims",
74
+ }) as any as S.Schema<OauthInputJwtClaims>;
75
+
76
+ /** An additional parameter the Identity Provider requires. */
77
+ export interface AuthParameters {
78
+ name: string;
79
+ value: string;
80
+ }
81
+ export const AuthParameters = /*@__PURE__*/ S.suspend(() =>
82
+ S.Struct({
83
+ name: S.String,
84
+ value: S.String,
85
+ }),
86
+ ).annotate({ identifier: "AuthParameters" }) as any as S.Schema<AuthParameters>;
87
+
88
+ /** Any additional parameters the Identity Provider requires. */
89
+ export type OauthInputParametersList = Array<AuthParameters>;
90
+ export const OauthInputParametersList = /*@__PURE__*/ S.Array(
91
+ AuthParameters,
92
+ ) as any as S.Schema<OauthInputParametersList>;
93
+
94
+ /** OIDC authentication configuration. */
95
+ export interface OauthInput {
96
+ /** The Issuer location URI, where the OIDC provider configuration can be found. */
97
+ authorityUrl: string;
98
+ /** The client ID assigned by the Identity Provider. */
99
+ clientId: string;
100
+ /** The client secret generated by the Identity Provider. */
101
+ clientSecret?: string | Redacted.Redacted<string>;
102
+ /** Maps fields from the JWT token to fields Dremio requires. */
103
+ jwtClaims: OauthInputJwtClaims;
104
+ /** Any additional parameters the Identity Provider requires. */
105
+ parameters?: OauthInputParametersList;
106
+ /** A list of space-separated scopes. The `openid` scope is always required; other scopes can vary by provider. */
107
+ scope?: string;
108
+ }
109
+ export const OauthInput = /*@__PURE__*/ S.suspend(() =>
110
+ S.Struct({
111
+ authorityUrl: S.String,
112
+ clientId: S.String,
113
+ clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
114
+ jwtClaims: OauthInputJwtClaims,
115
+ parameters: S.optional(OauthInputParametersList),
116
+ scope: S.optional(S.String),
117
+ }),
118
+ ).annotate({ identifier: "OauthInput" }) as any as S.Schema<OauthInput>;
119
+
120
+ export type AuthenticationInputType = "local-only" | "azuread" | "oauth";
121
+ export const AuthenticationInputType = /*@__PURE__*/ S.String;
122
+
123
+ /** Dremio instance authentication settings. A change here triggers a Dremio restart and will incur downtime. */
124
+ export interface AuthenticationInput {
125
+ azuread?: AzureadInput;
126
+ oauth?: OauthInput;
127
+ type: AuthenticationInputType | (string & {});
128
+ }
129
+ export const AuthenticationInput = /*@__PURE__*/ S.suspend(() =>
130
+ S.Struct({
131
+ azuread: S.optional(AzureadInput),
132
+ oauth: S.optional(OauthInput),
133
+ type: AuthenticationInputType,
134
+ }),
135
+ ).annotate({
136
+ identifier: "AuthenticationInput",
137
+ }) as any as S.Schema<AuthenticationInput>;
138
+
139
+ export interface CreateDremioInstanceRequest {
140
+ /** The STACKIT portal project UUID the resource is located in. */
141
+ projectId: string;
142
+ /** The STACKIT region name the resource is located in. */
143
+ regionId: CreateDremioInstanceRequestRegionId | (string & {});
144
+ authentication?: AuthenticationInput;
145
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
146
+ description?: string;
147
+ /** The display name is a short name chosen by the user to identify the resource. */
148
+ displayName: string;
149
+ }
150
+ export const CreateDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
151
+ S.Struct({
152
+ projectId: S.String.pipe(T.Label()),
153
+ regionId: CreateDremioInstanceRequestRegionId.pipe(T.Label()),
154
+ authentication: S.optional(AuthenticationInput),
155
+ description: S.optional(S.String),
156
+ displayName: S.String,
157
+ }).pipe(
158
+ T.Http({
159
+ method: "POST",
160
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
161
+ code: 200,
162
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
163
+ }),
164
+ ),
165
+ ).annotate({
166
+ identifier: "CreateDremioInstanceRequest",
167
+ }) as any as S.Schema<CreateDremioInstanceRequest>;
168
+
169
+ /** Azure Active Directory authentication configuration. */
170
+ export interface AzureadOutput {
171
+ /** The Azure AD authority URL. */
172
+ authorityUrl: string;
173
+ /** The Azure AD client ID. */
174
+ clientId: string;
175
+ /** The Azure AD redirect URL. */
176
+ redirectUrl?: string;
177
+ }
178
+ export const AzureadOutput = /*@__PURE__*/ S.suspend(() =>
179
+ S.Struct({
180
+ authorityUrl: S.String,
181
+ clientId: S.String,
182
+ redirectUrl: S.optional(S.String),
183
+ }),
184
+ ).annotate({ identifier: "AzureadOutput" }) as any as S.Schema<AzureadOutput>;
185
+
186
+ /** Maps fields from the JWT token to fields Dremio requires. */
187
+ export type OauthOutputJwtClaims = OauthInputJwtClaims;
188
+ export const OauthOutputJwtClaims = OauthInputJwtClaims;
189
+
190
+ /** Any additional parameters the Identity Provider requires. */
191
+ export type OauthOutputParametersList = Array<AuthParameters>;
192
+ export const OauthOutputParametersList = /*@__PURE__*/ S.Array(
193
+ AuthParameters,
194
+ ) as any as S.Schema<OauthOutputParametersList>;
195
+
196
+ /** OIDC authentication configuration. */
197
+ export interface OauthOutput {
198
+ /** The Issuer location URI, where the OIDC provider configuration can be found. */
199
+ authorityUrl: string;
200
+ /** The client ID assigned by the Identity Provider. */
201
+ clientId: string;
202
+ /** Maps fields from the JWT token to fields Dremio requires. */
203
+ jwtClaims: OauthInputJwtClaims;
204
+ /** Any additional parameters the Identity Provider requires. */
205
+ parameters?: OauthOutputParametersList;
206
+ /** The URL where the Dremio instance is hosted. The URL must match the redirect URL set in the Identity Provider. */
207
+ redirectUrl?: string;
208
+ /** A list of space-separated scopes. The `openid` scope is always required; other scopes can vary by provider. */
209
+ scope?: string;
210
+ }
211
+ export const OauthOutput = /*@__PURE__*/ S.suspend(() =>
212
+ S.Struct({
213
+ authorityUrl: S.String,
214
+ clientId: S.String,
215
+ jwtClaims: OauthInputJwtClaims,
216
+ parameters: S.optional(OauthOutputParametersList),
217
+ redirectUrl: S.optional(S.String),
218
+ scope: S.optional(S.String),
219
+ }),
220
+ ).annotate({ identifier: "OauthOutput" }) as any as S.Schema<OauthOutput>;
221
+
222
+ export type AuthenticationOutputType = "local-only" | "azuread" | "oauth";
223
+ export const AuthenticationOutputType = /*@__PURE__*/ S.String;
224
+
225
+ /** Dremio instance authentication settings. A change here triggers a Dremio restart and will incur downtime. */
226
+ export interface AuthenticationOutput {
227
+ azuread?: AzureadOutput;
228
+ oauth?: OauthOutput;
229
+ type: AuthenticationOutputType;
230
+ }
231
+ export const AuthenticationOutput = /*@__PURE__*/ S.suspend(() =>
232
+ S.Struct({
233
+ azuread: S.optional(AzureadOutput),
234
+ oauth: S.optional(OauthOutput),
235
+ type: AuthenticationOutputType,
236
+ }),
237
+ ).annotate({
238
+ identifier: "AuthenticationOutput",
239
+ }) as any as S.Schema<AuthenticationOutput>;
240
+
241
+ /** A collection of endpoints offered by the Dremio instance. */
242
+ export interface Endpoints {
243
+ /** The URL for the Arrow Flight endpoint of the Dremio instance. */
244
+ arrowFlight: string;
245
+ /** The URL for the Catalog endpoint of the Dremio instance. */
246
+ catalog: string;
247
+ /** The URL for the UI of the Dremio instance. */
248
+ ui: string;
249
+ }
250
+ export const Endpoints = /*@__PURE__*/ S.suspend(() =>
251
+ S.Struct({
252
+ arrowFlight: S.String,
253
+ catalog: S.String,
254
+ ui: S.String,
255
+ }),
256
+ ).annotate({ identifier: "Endpoints" }) as any as S.Schema<Endpoints>;
257
+
258
+ /** The current state of the resource. */
259
+ export type DremioResponseOutputState =
260
+ | "reconciling"
261
+ | "active"
262
+ | "deleting"
263
+ | "error";
264
+ export const DremioResponseOutputState = /*@__PURE__*/ S.String;
265
+
266
+ export interface DremioResponseOutput {
267
+ authentication: AuthenticationOutput;
268
+ /** The point in time the resource was created. */
269
+ create_time: string;
270
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
271
+ description?: string;
272
+ /** The display name is a short name chosen by the user to identify the resource. */
273
+ displayName: string;
274
+ endpoints: Endpoints;
275
+ /** A message describing an actionable error the user can resolve. This field is empty if no such error exists. */
276
+ errorMessage?: string;
277
+ /** A auto generated unique id which identifies the resource. */
278
+ id: string;
279
+ /** The current state of the resource. */
280
+ state: DremioResponseOutputState;
281
+ }
282
+ export const DremioResponseOutput = /*@__PURE__*/ S.suspend(() =>
283
+ S.Struct({
284
+ authentication: AuthenticationOutput,
285
+ create_time: S.String,
286
+ description: S.optional(S.String),
287
+ displayName: S.String,
288
+ endpoints: Endpoints,
289
+ errorMessage: S.optional(S.String),
290
+ id: S.String,
291
+ state: DremioResponseOutputState,
292
+ }),
293
+ ).annotate({
294
+ identifier: "DremioResponseOutput",
295
+ }) as any as S.Schema<DremioResponseOutput>;
296
+
297
+ export type CreateDremioUserRequestRegionId = "eu01" | "eu02";
298
+ export const CreateDremioUserRequestRegionId = /*@__PURE__*/ S.String;
299
+
300
+ export interface CreateDremioUserRequest {
301
+ /** The STACKIT portal project UUID the resource is located in. */
302
+ projectId: string;
303
+ /** The STACKIT region name the resource is located in. */
304
+ regionId: CreateDremioUserRequestRegionId | (string & {});
305
+ /** The Dremio instance UUID. */
306
+ dremioId: string;
307
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
308
+ description?: string;
309
+ /** This is the admin user's email address. */
310
+ email: string;
311
+ /** This is the admin user's first name. */
312
+ firstName: string;
313
+ /** This is the admin user's last name. */
314
+ lastName: string;
315
+ /** This is the username used to login the admin user. */
316
+ name: string;
317
+ /** A password chosen by the user. */
318
+ password: string | Redacted.Redacted<string>;
319
+ }
320
+ export const CreateDremioUserRequest = /*@__PURE__*/ S.suspend(() =>
321
+ S.Struct({
322
+ projectId: S.String.pipe(T.Label()),
323
+ regionId: CreateDremioUserRequestRegionId.pipe(T.Label()),
324
+ dremioId: S.String.pipe(T.Label()),
325
+ description: S.optional(S.String),
326
+ email: S.String,
327
+ firstName: S.String,
328
+ lastName: S.String,
329
+ name: S.String,
330
+ password: S.String.pipe(T.SensitiveValue({})),
331
+ }).pipe(
332
+ T.Http({
333
+ method: "POST",
334
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
335
+ code: 200,
336
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
337
+ }),
338
+ ),
339
+ ).annotate({
340
+ identifier: "CreateDremioUserRequest",
341
+ }) as any as S.Schema<CreateDremioUserRequest>;
342
+
343
+ /** The current state of the resource. */
344
+ export type DremioUserResponseState =
345
+ | "reconciling"
346
+ | "active"
347
+ | "deleting"
348
+ | "error";
349
+ export const DremioUserResponseState = /*@__PURE__*/ S.String;
350
+
351
+ export interface DremioUserResponse {
352
+ /** The point in time the resource was created. */
353
+ create_time?: string;
354
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
355
+ description?: string;
356
+ /** This is the admin user's email address. */
357
+ email: string;
358
+ /** A message describing an actionable error the user can resolve. This field is empty if no such error exists. */
359
+ errorMessage?: string;
360
+ /** This is the admin user's first name. */
361
+ firstName: string;
362
+ /** A auto generated unique id which identifies the resource. */
363
+ id: string;
364
+ /** This is the admin user's last name. */
365
+ lastName: string;
366
+ /** This is the username used to login the admin user. */
367
+ name: string;
368
+ /** The current state of the resource. */
369
+ state: DremioUserResponseState;
370
+ }
371
+ export const DremioUserResponse = /*@__PURE__*/ S.suspend(() =>
372
+ S.Struct({
373
+ create_time: S.optional(S.String),
374
+ description: S.optional(S.String),
375
+ email: S.String,
376
+ errorMessage: S.optional(S.String),
377
+ firstName: S.String,
378
+ id: S.String,
379
+ lastName: S.String,
380
+ name: S.String,
381
+ state: DremioUserResponseState,
382
+ }),
383
+ ).annotate({
384
+ identifier: "DremioUserResponse",
385
+ }) as any as S.Schema<DremioUserResponse>;
386
+
387
+ export type DeleteDremioInstanceRequestRegionId = "eu01" | "eu02";
388
+ export const DeleteDremioInstanceRequestRegionId = /*@__PURE__*/ S.String;
389
+
390
+ export interface DeleteDremioInstanceRequest {
391
+ /** The STACKIT portal project UUID the resource is located in. */
392
+ projectId: string;
393
+ /** The STACKIT region name the resource is located in. */
394
+ regionId: DeleteDremioInstanceRequestRegionId | (string & {});
395
+ /** The Dremio instance UUID. */
396
+ dremioId: string;
397
+ }
398
+ export const DeleteDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
399
+ S.Struct({
400
+ projectId: S.String.pipe(T.Label()),
401
+ regionId: DeleteDremioInstanceRequestRegionId.pipe(T.Label()),
402
+ dremioId: S.String.pipe(T.Label()),
403
+ }).pipe(
404
+ T.Http({
405
+ method: "DELETE",
406
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
407
+ code: 200,
408
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
409
+ }),
410
+ ),
411
+ ).annotate({
412
+ identifier: "DeleteDremioInstanceRequest",
413
+ }) as any as S.Schema<DeleteDremioInstanceRequest>;
414
+
415
+ export interface DeleteDremioInstanceResponse {}
416
+ export const DeleteDremioInstanceResponse = /*@__PURE__*/ S.suspend(() =>
417
+ S.Struct({}),
418
+ ).annotate({
419
+ identifier: "DeleteDremioInstanceResponse",
420
+ }) as any as S.Schema<DeleteDremioInstanceResponse>;
421
+
422
+ export type DeleteDremioUserRequestRegionId = "eu01" | "eu02";
423
+ export const DeleteDremioUserRequestRegionId = /*@__PURE__*/ S.String;
424
+
425
+ export interface DeleteDremioUserRequest {
426
+ /** The STACKIT portal project UUID the resource is located in. */
427
+ projectId: string;
428
+ /** The STACKIT region name the resource is located in. */
429
+ regionId: DeleteDremioUserRequestRegionId | (string & {});
430
+ /** The Dremio instance UUID. */
431
+ dremioId: string;
432
+ /** The Dremio user UUID. */
433
+ dremioUserId: string;
434
+ }
435
+ export const DeleteDremioUserRequest = /*@__PURE__*/ S.suspend(() =>
436
+ S.Struct({
437
+ projectId: S.String.pipe(T.Label()),
438
+ regionId: DeleteDremioUserRequestRegionId.pipe(T.Label()),
439
+ dremioId: S.String.pipe(T.Label()),
440
+ dremioUserId: S.String.pipe(T.Label()),
441
+ }).pipe(
442
+ T.Http({
443
+ method: "DELETE",
444
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
445
+ code: 200,
446
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
447
+ }),
448
+ ),
449
+ ).annotate({
450
+ identifier: "DeleteDremioUserRequest",
451
+ }) as any as S.Schema<DeleteDremioUserRequest>;
452
+
453
+ export interface DeleteDremioUserResponse {}
454
+ export const DeleteDremioUserResponse = /*@__PURE__*/ S.suspend(() =>
455
+ S.Struct({}),
456
+ ).annotate({
457
+ identifier: "DeleteDremioUserResponse",
458
+ }) as any as S.Schema<DeleteDremioUserResponse>;
459
+
460
+ export type GetDremioInstanceRequestRegionId = "eu01" | "eu02";
461
+ export const GetDremioInstanceRequestRegionId = /*@__PURE__*/ S.String;
462
+
463
+ export interface GetDremioInstanceRequest {
464
+ /** The STACKIT portal project UUID the resource is located in. */
465
+ projectId: string;
466
+ /** The STACKIT region name the resource is located in. */
467
+ regionId: GetDremioInstanceRequestRegionId | (string & {});
468
+ /** The Dremio instance UUID. */
469
+ dremioId: string;
470
+ }
471
+ export const GetDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
472
+ S.Struct({
473
+ projectId: S.String.pipe(T.Label()),
474
+ regionId: GetDremioInstanceRequestRegionId.pipe(T.Label()),
475
+ dremioId: S.String.pipe(T.Label()),
476
+ }).pipe(
477
+ T.Http({
478
+ method: "GET",
479
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
480
+ code: 200,
481
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
482
+ }),
483
+ ),
484
+ ).annotate({
485
+ identifier: "GetDremioInstanceRequest",
486
+ }) as any as S.Schema<GetDremioInstanceRequest>;
487
+
488
+ export type GetDremioUserRequestRegionId = "eu01" | "eu02";
489
+ export const GetDremioUserRequestRegionId = /*@__PURE__*/ S.String;
490
+
491
+ export interface GetDremioUserRequest {
492
+ /** The STACKIT portal project UUID the resource is located in. */
493
+ projectId: string;
494
+ /** The STACKIT region name the resource is located in. */
495
+ regionId: GetDremioUserRequestRegionId | (string & {});
496
+ /** The Dremio instance UUID. */
497
+ dremioId: string;
498
+ /** The Dremio user UUID. */
499
+ dremioUserId: string;
500
+ }
501
+ export const GetDremioUserRequest = /*@__PURE__*/ S.suspend(() =>
502
+ S.Struct({
503
+ projectId: S.String.pipe(T.Label()),
504
+ regionId: GetDremioUserRequestRegionId.pipe(T.Label()),
505
+ dremioId: S.String.pipe(T.Label()),
506
+ dremioUserId: S.String.pipe(T.Label()),
507
+ }).pipe(
508
+ T.Http({
509
+ method: "GET",
510
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
511
+ code: 200,
512
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
513
+ }),
514
+ ),
515
+ ).annotate({
516
+ identifier: "GetDremioUserRequest",
517
+ }) as any as S.Schema<GetDremioUserRequest>;
518
+
519
+ export type ListDremioInstancesRequestRegionId = "eu01" | "eu02";
520
+ export const ListDremioInstancesRequestRegionId = /*@__PURE__*/ S.String;
521
+
522
+ export interface ListDremioInstancesRequest {
523
+ /** The STACKIT portal project UUID the resource is located in. */
524
+ projectId: string;
525
+ /** The STACKIT region name the resource is located in. */
526
+ regionId: ListDremioInstancesRequestRegionId | (string & {});
527
+ /** A token to retrieve the next page of results. */
528
+ pageToken?: string;
529
+ /** Maximum number of items to return. */
530
+ pageSize?: number;
531
+ }
532
+ export const ListDremioInstancesRequest = /*@__PURE__*/ S.suspend(() =>
533
+ S.Struct({
534
+ projectId: S.String.pipe(T.Label()),
535
+ regionId: ListDremioInstancesRequestRegionId.pipe(T.Label()),
536
+ pageToken: S.optional(S.String.pipe(T.Query())),
537
+ pageSize: S.optional(S.Number.pipe(T.Query())),
538
+ }).pipe(
539
+ T.Http({
540
+ method: "GET",
541
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
542
+ code: 200,
543
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
544
+ }),
545
+ ),
546
+ ).annotate({
547
+ identifier: "ListDremioInstancesRequest",
548
+ }) as any as S.Schema<ListDremioInstancesRequest>;
549
+
550
+ export type ListDremiosResponseOutputDremiosList = Array<DremioResponseOutput>;
551
+ export const ListDremiosResponseOutputDremiosList = /*@__PURE__*/ S.Array(
552
+ DremioResponseOutput,
553
+ ) as any as S.Schema<ListDremiosResponseOutputDremiosList>;
554
+
555
+ export interface ListDremiosResponseOutput {
556
+ dremios: ListDremiosResponseOutputDremiosList;
557
+ /** A token to retrieve the next page of results. */
558
+ nextPageToken?: string;
559
+ }
560
+ export const ListDremiosResponseOutput = /*@__PURE__*/ S.suspend(() =>
561
+ S.Struct({
562
+ dremios: ListDremiosResponseOutputDremiosList,
563
+ nextPageToken: S.optional(S.String),
564
+ }),
565
+ ).annotate({
566
+ identifier: "ListDremiosResponseOutput",
567
+ }) as any as S.Schema<ListDremiosResponseOutput>;
568
+
569
+ export type ListDremioUsersRequestRegionId = "eu01" | "eu02";
570
+ export const ListDremioUsersRequestRegionId = /*@__PURE__*/ S.String;
571
+
572
+ export interface ListDremioUsersRequest {
573
+ /** The STACKIT portal project UUID the resource is located in. */
574
+ projectId: string;
575
+ /** The STACKIT region name the resource is located in. */
576
+ regionId: ListDremioUsersRequestRegionId | (string & {});
577
+ /** The Dremio instance UUID. */
578
+ dremioId: string;
579
+ /** A token to retrieve the next page of results. */
580
+ pageToken?: string;
581
+ /** Maximum number of items to return. */
582
+ pageSize?: number;
583
+ }
584
+ export const ListDremioUsersRequest = /*@__PURE__*/ S.suspend(() =>
585
+ S.Struct({
586
+ projectId: S.String.pipe(T.Label()),
587
+ regionId: ListDremioUsersRequestRegionId.pipe(T.Label()),
588
+ dremioId: S.String.pipe(T.Label()),
589
+ pageToken: S.optional(S.String.pipe(T.Query())),
590
+ pageSize: S.optional(S.Number.pipe(T.Query())),
591
+ }).pipe(
592
+ T.Http({
593
+ method: "GET",
594
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
595
+ code: 200,
596
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
597
+ }),
598
+ ),
599
+ ).annotate({
600
+ identifier: "ListDremioUsersRequest",
601
+ }) as any as S.Schema<ListDremioUsersRequest>;
602
+
603
+ export type ListDremioUsersResponseDremioUsersList = Array<DremioUserResponse>;
604
+ export const ListDremioUsersResponseDremioUsersList = /*@__PURE__*/ S.Array(
605
+ DremioUserResponse,
606
+ ) as any as S.Schema<ListDremioUsersResponseDremioUsersList>;
607
+
608
+ export interface ListDremioUsersResponse {
609
+ dremioUsers: ListDremioUsersResponseDremioUsersList;
610
+ /** A token to retrieve the next page of results. */
611
+ nextPageToken?: string;
612
+ }
613
+ export const ListDremioUsersResponse = /*@__PURE__*/ S.suspend(() =>
614
+ S.Struct({
615
+ dremioUsers: ListDremioUsersResponseDremioUsersList,
616
+ nextPageToken: S.optional(S.String),
617
+ }),
618
+ ).annotate({
619
+ identifier: "ListDremioUsersResponse",
620
+ }) as any as S.Schema<ListDremioUsersResponse>;
621
+
622
+ export type UpdateDremioInstanceRequestRegionId = "eu01" | "eu02";
623
+ export const UpdateDremioInstanceRequestRegionId = /*@__PURE__*/ S.String;
624
+
625
+ export interface UpdateDremioInstanceRequest {
626
+ /** The STACKIT portal project UUID the resource is located in. */
627
+ projectId: string;
628
+ /** The STACKIT region name the resource is located in. */
629
+ regionId: UpdateDremioInstanceRequestRegionId | (string & {});
630
+ /** The Dremio instance UUID. */
631
+ dremioId: string;
632
+ authentication?: AuthenticationInput;
633
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
634
+ description?: string;
635
+ /** The display name is a short name chosen by the user to identify the resource. */
636
+ displayName?: string;
637
+ }
638
+ export const UpdateDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
639
+ S.Struct({
640
+ projectId: S.String.pipe(T.Label()),
641
+ regionId: UpdateDremioInstanceRequestRegionId.pipe(T.Label()),
642
+ dremioId: S.String.pipe(T.Label()),
643
+ authentication: S.optional(AuthenticationInput),
644
+ description: S.optional(S.String),
645
+ displayName: S.optional(S.String),
646
+ }).pipe(
647
+ T.Http({
648
+ method: "PUT",
649
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
650
+ code: 200,
651
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
652
+ }),
653
+ ),
654
+ ).annotate({
655
+ identifier: "UpdateDremioInstanceRequest",
656
+ }) as any as S.Schema<UpdateDremioInstanceRequest>;
657
+
658
+ export type CreateDremioInstanceError = BadRequest | Conflict | StackitOpError;
659
+ /** Creates a new Dremio instance within the project. */
660
+ export const createDremioInstance: API.OperationMethod<
661
+ CreateDremioInstanceRequest,
662
+ DremioResponseOutput,
663
+ CreateDremioInstanceError,
664
+ StackitOpContext
665
+ > = /*@__PURE__*/ API.make(() => ({
666
+ input: CreateDremioInstanceRequest,
667
+ output: DremioResponseOutput,
668
+ errors: [BadRequest, Conflict, UnknownStackitError],
669
+ protocol: StackitProtocol,
670
+ retry: Retry.Retry,
671
+ }));
672
+
673
+ export type CreateDremioUserError = BadRequest | Conflict | StackitOpError;
674
+ /** Creates a new Dremio admin user for the given Dremio instance. */
675
+ export const createDremioUser: API.OperationMethod<
676
+ CreateDremioUserRequest,
677
+ DremioUserResponse,
678
+ CreateDremioUserError,
679
+ StackitOpContext
680
+ > = /*@__PURE__*/ API.make(() => ({
681
+ input: CreateDremioUserRequest,
682
+ output: DremioUserResponse,
683
+ errors: [BadRequest, Conflict, UnknownStackitError],
684
+ protocol: StackitProtocol,
685
+ retry: Retry.Retry,
686
+ }));
687
+
688
+ export type DeleteDremioInstanceError =
689
+ | BadRequest
690
+ | NotFound
691
+ | Conflict
692
+ | StackitOpError;
693
+ /** Deletes the given Dremio instance. */
694
+ export const deleteDremioInstance: API.OperationMethod<
695
+ DeleteDremioInstanceRequest,
696
+ DeleteDremioInstanceResponse,
697
+ DeleteDremioInstanceError,
698
+ StackitOpContext
699
+ > = /*@__PURE__*/ API.make(() => ({
700
+ input: DeleteDremioInstanceRequest,
701
+ output: DeleteDremioInstanceResponse,
702
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
703
+ protocol: StackitProtocol,
704
+ retry: Retry.Retry,
705
+ }));
706
+
707
+ export type DeleteDremioUserError =
708
+ | BadRequest
709
+ | NotFound
710
+ | Conflict
711
+ | StackitOpError;
712
+ /** Deletes the given dremio admin user. */
713
+ export const deleteDremioUser: API.OperationMethod<
714
+ DeleteDremioUserRequest,
715
+ DeleteDremioUserResponse,
716
+ DeleteDremioUserError,
717
+ StackitOpContext
718
+ > = /*@__PURE__*/ API.make(() => ({
719
+ input: DeleteDremioUserRequest,
720
+ output: DeleteDremioUserResponse,
721
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
722
+ protocol: StackitProtocol,
723
+ retry: Retry.Retry,
724
+ }));
725
+
726
+ export type GetDremioInstanceError = BadRequest | NotFound | StackitOpError;
727
+ /** Returns the details for the given Dremio instance. */
728
+ export const getDremioInstance: API.OperationMethod<
729
+ GetDremioInstanceRequest,
730
+ DremioResponseOutput,
731
+ GetDremioInstanceError,
732
+ StackitOpContext
733
+ > = /*@__PURE__*/ API.make(() => ({
734
+ input: GetDremioInstanceRequest,
735
+ output: DremioResponseOutput,
736
+ errors: [BadRequest, NotFound, UnknownStackitError],
737
+ protocol: StackitProtocol,
738
+ retry: Retry.Retry,
739
+ }));
740
+
741
+ export type GetDremioUserError = BadRequest | NotFound | StackitOpError;
742
+ /** Returns the details for the given dremio admin user */
743
+ export const getDremioUser: API.OperationMethod<
744
+ GetDremioUserRequest,
745
+ DremioUserResponse,
746
+ GetDremioUserError,
747
+ StackitOpContext
748
+ > = /*@__PURE__*/ API.make(() => ({
749
+ input: GetDremioUserRequest,
750
+ output: DremioUserResponse,
751
+ errors: [BadRequest, NotFound, UnknownStackitError],
752
+ protocol: StackitProtocol,
753
+ retry: Retry.Retry,
754
+ }));
755
+
756
+ export type ListDremioInstancesError = BadRequest | StackitOpError;
757
+ /** Returns a list of all Dremio instances within the project. */
758
+ export const listDremioInstances: API.OperationMethod<
759
+ ListDremioInstancesRequest,
760
+ ListDremiosResponseOutput,
761
+ ListDremioInstancesError,
762
+ StackitOpContext
763
+ > = /*@__PURE__*/ API.make(() => ({
764
+ input: ListDremioInstancesRequest,
765
+ output: ListDremiosResponseOutput,
766
+ errors: [BadRequest, UnknownStackitError],
767
+ protocol: StackitProtocol,
768
+ retry: Retry.Retry,
769
+ }));
770
+
771
+ export type ListDremioUsersError = BadRequest | StackitOpError;
772
+ /** Returns a list of all Dremio admin users for the given dremio instance. */
773
+ export const listDremioUsers: API.OperationMethod<
774
+ ListDremioUsersRequest,
775
+ ListDremioUsersResponse,
776
+ ListDremioUsersError,
777
+ StackitOpContext
778
+ > = /*@__PURE__*/ API.make(() => ({
779
+ input: ListDremioUsersRequest,
780
+ output: ListDremioUsersResponse,
781
+ errors: [BadRequest, UnknownStackitError],
782
+ protocol: StackitProtocol,
783
+ retry: Retry.Retry,
784
+ }));
785
+
786
+ export type UpdateDremioInstanceError =
787
+ | BadRequest
788
+ | NotFound
789
+ | Conflict
790
+ | StackitOpError;
791
+ /** Updates the given Dremio instance. Please note that changing certain fields will trigger a Dremio restart and will incur downtime. See the request body information for more details. */
792
+ export const updateDremioInstance: API.OperationMethod<
793
+ UpdateDremioInstanceRequest,
794
+ DremioResponseOutput,
795
+ UpdateDremioInstanceError,
796
+ StackitOpContext
797
+ > = /*@__PURE__*/ API.make(() => ({
798
+ input: UpdateDremioInstanceRequest,
799
+ output: DremioResponseOutput,
800
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
801
+ protocol: StackitProtocol,
802
+ retry: Retry.Retry,
803
+ }));