@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,790 +1,125 @@
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";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
6
  import { UnknownStackitError } from "../errors.js";
6
7
  import { StackitProtocol } from "../protocol.js";
7
8
  import * as Retry from "../retry.js";
8
9
  import * as T from "../traits.js";
9
- export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
10
- /*@__PURE__*/ S.TaggedError()("BadRequest", {
11
- code: S.Number,
12
- message: S.String,
13
- }).pipe(C.withBadRequestError), [{ status: 400 }]) {
10
+ const __0 = __L.at;
11
+ const __1 = T.Http;
12
+ const __2 = T.Label;
13
+ const __3 = S.String;
14
+ const __4 = S.optional;
15
+ const __5 = S.Number;
16
+ const __6 = S.Boolean;
17
+ const __7 = S.Struct;
18
+ const __8 = S.suspend;
19
+ const __9 = S.NullOr;
20
+ const __10 = S.Array;
21
+ const __11 = S.Record;
22
+ const __12 = T.Query;
23
+ const __13 = T.RawResponseRoot;
24
+ const __14 = S.Unknown;
25
+ const __15 = S.TaggedError;
26
+ const __16 = T.applyErrorMatchers;
27
+ export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
28
+ return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __5, __3, __15, __16]]);
29
+ });
30
+
31
+ export const createResourcePool = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:0,errors:[$11,$12],protocol:$13,retry:$14};$9(>2)@"CreateResourcePoolRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),availabilityZone:$3,ipAcl:#4:0,labels:$5(#4:1),name:$3,performanceClass:$3,sizeGigabytes:$6,snapshotPolicyId:$5($3),snapshotsAreVisible:$5($7)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __4, __5, __6, __7, __8, __d1, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createResourcePool, i));
32
+
33
+ export const createResourcePoolSnapshot = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11],protocol:$12,retry:$13};$8(>2)@"CreateResourcePoolSnapshotRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),comment:$5($4($3)),name:$5($3),snaplockRetentionHours:$5($4($6))}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __9, __4, __5, __7, __8, __d6, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createResourcePoolSnapshot, i));
34
+
35
+ export const createShare = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:0,errors:[$11,$12],protocol:$13,retry:$14};$9(>2)@"CreateShareRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),exportPolicyName:$5($4($3)),labels:$5(#6:1),name:$3,spaceHardLimitGigabytes:$7}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __9, __4, __d2, __5, __7, __8, __d8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createShare, i));
36
+
37
+ export const createShareExportPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11],protocol:$12,retry:$13};$8(>2)@"CreateShareExportPolicyRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),labels:$5(#4:1),name:$3,rules:$5(#6:1)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/shareExportPolicies",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __4, __d11, __7, __8, __d10, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createShareExportPolicy, i));
38
+
39
+ export const deleteResourcePool = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteResourcePoolRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d12, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteResourcePool, i));
40
+
41
+ export const deleteResourcePoolSnapshot = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteResourcePoolSnapshotRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),snapshotName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d12, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteResourcePoolSnapshot, i));
42
+
43
+ export const deleteShare = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteShareRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),shareId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d12, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteShare, i));
44
+
45
+ export const deleteShareExportPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteShareExportPolicyRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),policyId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d12, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteShareExportPolicy, i));
46
+
47
+ export const disableLock = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DisableLockRequest";$4({region:$3.pipe($2()),projectId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/regions/{region}/project/{projectId}/locks",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d12, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(disableLock, i));
48
+
49
+ export const enableLock = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"EnableLockRequest";$4({region:$3.pipe($2()),projectId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/regions/{region}/project/{projectId}/locks",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d3, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(enableLock, i));
50
+
51
+ export const getLock = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetLockRequest";$4({region:$3.pipe($2()),projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/regions/{region}/project/{projectId}/locks",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d3, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getLock, i));
52
+
53
+ export const getResourcePool = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetResourcePoolRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d1, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getResourcePool, i));
54
+
55
+ export const getResourcePoolSnapshot = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetResourcePoolSnapshotRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),snapshotName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d6, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getResourcePoolSnapshot, i));
56
+
57
+ export const getShare = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetShareRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),shareId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getShare, i));
58
+
59
+ export const getShareExportPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetShareExportPolicyRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),policyId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d10, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getShareExportPolicy, i));
60
+
61
+ export const getSnapshotPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8],protocol:$9,retry:$10};$5(>3)@"GetSnapshotPolicyRequest";$5(>4)@"GetSnapshotPolicyResponse";$4({projectId:$3.pipe($2()),id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/snapshotPolicies/{id}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}));$4({snapshotPolicy:$7(#6:4)})', [__0, __1, __2, __3, __7, __8, __d4, __4, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getSnapshotPolicy, i));
62
+
63
+ export const listPerformanceClasses = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PerformanceClass", '{input:#1,output:#4,errors:[$8,$9],protocol:$10,retry:$11};$3(>5)@"List%esRequest";$3(>6)@"%";$7(#2);$3(>7)@"List%esResponse";$2({}).pipe($1({method:"GET",uri:"/v1/resourcePool%es",code:200,baseUrl:"https://sfs.api.stackit.cloud"}));$2({iops:$5($4),name:$5($6),throughput:$5($4)});$2({performanceClasses:$5(#3)})', [__0, __1, __7, __8, __5, __4, __3, __10, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listPerformanceClasses, i));
64
+
65
+ export const listResourcePools = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"ListResourcePoolsRequest";$7(#6:3);$5(>5)@"ListResourcePoolsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools",code:200,baseUrl:"https://sfs.api.stackit.cloud"}));$4({resourcePools:$8(#2)})', [__0, __1, __2, __3, __7, __8, __d0, __10, __4, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listResourcePools, i));
66
+
67
+ export const listResourcePoolSnapshots = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"ListResourcePoolSnapshotsRequest";$7(#6:0);$5(>5)@"ListResourcePoolSnapshotsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",code:200,baseUrl:"https://sfs.api.stackit.cloud"}));$4({resourcePoolSnapshots:$8(#2)})', [__0, __1, __2, __3, __7, __8, __d5, __10, __4, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listResourcePoolSnapshots, i));
68
+
69
+ export const listShareExportPolicies = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"ListShareExportPoliciesRequest";$7(#6:2);$5(>5)@"ListShareExportPoliciesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/shareExportPolicies",code:200,baseUrl:"https://sfs.api.stackit.cloud"}));$4({shareExportPolicies:$8(#2)})', [__0, __1, __2, __3, __7, __8, __d9, __10, __4, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listShareExportPolicies, i));
70
+
71
+ export const listShares = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"ListSharesRequest";$7(#6:0);$5(>5)@"ListSharesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",code:200,baseUrl:"https://sfs.api.stackit.cloud"}));$4({shares:$8(#2)})', [__0, __1, __2, __3, __7, __8, __d7, __10, __4, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listShares, i));
72
+
73
+ export const listSnapshotPolicies = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11],protocol:$12,retry:$13};$8(>4)@"ListSnapshotPoliciesRequest";$10(#9:4);$8(>5)@"ListSnapshotPoliciesResponse";$7({projectId:$3.pipe($2()),immutable:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/snapshotPolicies",code:200,baseUrl:"https://sfs.api.stackit.cloud"}));$7({snapshotPolicies:$6(#2)})', [__0, __1, __2, __3, __12, __6, __4, __7, __8, __d4, __10, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listSnapshotPolicies, i));
74
+
75
+ export const updateResourcePool = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#11:0,errors:[$12,$13],protocol:$14,retry:$15};$10(>2)@"UpdateResourcePoolRequest";$9({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),ipAcl:$5(#4:0),labels:$5(#4:1),performanceClass:$5($3),sizeGigabytes:$5($7($6)),snapshotPolicyId:$5($7($3)),snapshotsAreVisible:$5($8)}).pipe($1({method:"PATCH",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __4, __5, __9, __6, __7, __8, __d1, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateResourcePool, i));
76
+
77
+ export const updateResourcePoolSnapshot = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"UpdateResourcePoolSnapshotRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),snapshotName:$3.pipe($2()),comment:$5($4($3)),name:$5($4($3))}).pipe($1({method:"PATCH",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __9, __4, __7, __8, __d6, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateResourcePoolSnapshot, i));
78
+
79
+ export const updateShare = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:0,errors:[$11,$12],protocol:$13,retry:$14};$9(>2)@"UpdateShareRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),resourcePoolId:$3.pipe($2()),shareId:$3.pipe($2()),exportPolicyName:$5($4($3)),labels:$5(#6:1),spaceHardLimitGigabytes:$5($4($7))}).pipe($1({method:"PATCH",uri:"/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __9, __4, __d2, __5, __7, __8, __d8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateShare, i));
80
+
81
+ export const updateShareExportPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:0,errors:[$11,$12],protocol:$13,retry:$14};$9(>2)@"UpdateShareExportPolicyRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),policyId:$3.pipe($2()),labels:$5(#4:1),rules:$5($7(#6:1))}).pipe($1({method:"PATCH",uri:"/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",code:200,baseUrl:"https://sfs.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __4, __d11, __9, __7, __8, __d10, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateShareExportPolicy, i));
82
+ // Schema builders: each runs one schema initializer, on that schema's first use.
83
+ // Schema table: entry i is schema j of builder f, made on first reach.
84
+
85
+
86
+ // Shared schema data (see `op` in core/api).
87
+ function __d0() {
88
+ return ['$5(>4)@"ResourcePoolPerformanceClass";$5(>5)@"ResourcePoolSnapshotPolicy";$5(>6)@"ResourcePoolSpace";$5(>7)@"ResourcePool";$4({name:$2($1),peakIops:$2($3),throughput:$2($3)});$4({id:$2($1),name:$2($1)});$4({availableGigabytes:$2($6($3)),sizeGigabytes:$2($3),usedBySnapshotsGigabytes:$2($6($3)),usedGigabytes:$2($6($3))});$4({availabilityZone:$2($1),countShares:$2($3),createdAt:$2($1),id:$2($1),ipAcl:$2(#7:0),labels:$2(#7:1),mountPath:$2($1),name:$2($1),performanceClass:$2(#0),performanceClassDowngradableAt:$2($1),sizeReducibleAt:$2($1),snapshotPolicy:$2($6(#1)),snapshotsAreVisible:$2($8),space:$2(#2),state:$2($1)})', [__0, __3, __4, __5, __7, __8, __9, __d2, __6]];
89
+ }
90
+ function __d1() {
91
+ return ['$4(>1)@"CreateResourcePoolResponse";$3({resourcePool:$2(#1:3)})', [__0, __d0, __4, __7, __8]];
92
+ }
93
+ function __d2() {
94
+ return ['$2($1);$3($1,$1)', [__0, __3, __10, __11]];
95
+ }
96
+ function __d3() {
97
+ return ['$4(>1)@"EnableLockResponse";$3({lockId:$2($1)})', [__0, __3, __4, __7, __8]];
98
+ }
99
+ function __d4() {
100
+ return ['$5(>5)@"SnapshotPolicySchedule";$6(#0);$5(>6)@"SnapshotPolicySnapshotPolicySchedule";$6(#2);$5(>7)@"SnapshotPolicy";$4({count:$2($1),interval:$2($3),prefix:$2($3),retentionPeriod:$2($3),scheduleId:$2($3)});$4({createdAt:$2($3),id:$2($3),interval:$2($3),name:$2($3),prefix:$2($3),retentionCount:$2($1),retentionPeriod:$2($3)});$4({comment:$2($3),createdAt:$2($3),enabled:$2($7),id:$2($3),name:$2($3),schedules:$2(#1),snapshotSchedules:$2(#3)})', [__0, __5, __4, __3, __7, __8, __10, __6]];
101
+ }
102
+ function __d5() {
103
+ return ['$6(>1)@"ResourcePoolSnapshot";$5({comment:$3($2($1)),createdAt:$3($1),logicalSizeGigabytes:$3($4),resourcePoolId:$3($1),sizeGigabytes:$3($4),snaplockExpiryTime:$3($2($1)),snapshotName:$3($1)})', [__0, __3, __9, __4, __5, __7, __8]];
104
+ }
105
+ function __d6() {
106
+ return ['$4(>1)@"CreateResourcePoolSnapshotResponse";$3({resourcePoolSnapshot:$2(#1:0)})', [__0, __d5, __4, __7, __8]];
107
+ }
108
+ function __d7() {
109
+ return ['$8(>1)@"Share";$7({createdAt:$2($1),exportPolicy:$2($4(#3:2)),id:$2($1),labels:$2(#5:1),mountPath:$2($1),name:$2($1),spaceHardLimitGigabytes:$2($6),state:$2($1)})', [__0, __3, __4, __d9, __9, __d2, __5, __7, __8]];
110
+ }
111
+ function __d8() {
112
+ return ['$4(>1)@"CreateShareResponse";$3({share:$2(#1:0)})', [__0, __d7, __4, __7, __8]];
113
+ }
114
+ function __d9() {
115
+ return ['$8(>3)@"ShareExportPolicyRule";$9(#0);$8(>4)@"ShareExportPolicy";$7({createdAt:$2($1),description:$2($3($1)),id:$2($1),ipAcl:$2(#4:0),order:$2($5),readOnly:$2($6),setUuid:$2($6),superUser:$2($6)});$7({createdAt:$2($1),id:$2($1),labels:$2(#4:1),name:$2($1),rules:$2(#1),sharesUsingExportPolicy:$2($5)})', [__0, __3, __4, __9, __d2, __5, __6, __7, __8, __10]];
116
+ }
117
+ function __d10() {
118
+ return ['$4(>1)@"CreateShareExportPolicyResponse";$3({shareExportPolicy:$2(#1:2)})', [__0, __d9, __4, __7, __8]];
119
+ }
120
+ function __d11() {
121
+ return ['$8(>2)@"CreateShareExportPolicyRequestRule";$9(#0);$7({description:$3($2($1)),ipAcl:$3(#4:0),order:$3($5),readOnly:$3($6),setUuid:$3($6),superUser:$3($6)})', [__0, __3, __9, __4, __d2, __5, __6, __7, __8, __10]];
122
+ }
123
+ function __d12() {
124
+ return ['$3(>1)@"DeleteResourcePoolResponse2";$2.pipe($1())', [__0, __13, __14, __8]];
14
125
  }
15
- export const CreateResourcePoolRequestIpAclList = /*@__PURE__*/ S.Array(S.String);
16
- export const CreateResourcePoolRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
17
- export const CreateResourcePoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
18
- projectId: S.String.pipe(T.Label()),
19
- region: S.String.pipe(T.Label()),
20
- availabilityZone: S.String,
21
- ipAcl: CreateResourcePoolRequestIpAclList,
22
- labels: S.optional(CreateResourcePoolRequestLabelsMap),
23
- name: S.String,
24
- performanceClass: S.String,
25
- sizeGigabytes: S.Number,
26
- snapshotPolicyId: S.optional(S.String),
27
- snapshotsAreVisible: S.optional(S.Boolean),
28
- }).pipe(T.Http({
29
- method: "POST",
30
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools",
31
- code: 200,
32
- baseUrl: "https://sfs.api.stackit.cloud",
33
- }))).annotate({
34
- identifier: "CreateResourcePoolRequest",
35
- });
36
- export const ResourcePoolIpAclList = /*@__PURE__*/ S.Array(S.String);
37
- export const ResourcePoolLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
38
- export const ResourcePoolPerformanceClass = /*@__PURE__*/ S.suspend(() => S.Struct({
39
- name: S.optional(S.String),
40
- peakIops: S.optional(S.Number),
41
- throughput: S.optional(S.Number),
42
- })).annotate({
43
- identifier: "ResourcePoolPerformanceClass",
44
- });
45
- export const ResourcePoolSnapshotPolicy = /*@__PURE__*/ S.suspend(() => S.Struct({
46
- id: S.optional(S.String),
47
- name: S.optional(S.String),
48
- })).annotate({
49
- identifier: "ResourcePoolSnapshotPolicy",
50
- });
51
- export const ResourcePoolSpace = /*@__PURE__*/ S.suspend(() => S.Struct({
52
- availableGigabytes: S.optional(S.NullOr(S.Number)),
53
- sizeGigabytes: S.optional(S.Number),
54
- usedBySnapshotsGigabytes: S.optional(S.NullOr(S.Number)),
55
- usedGigabytes: S.optional(S.NullOr(S.Number)),
56
- })).annotate({ identifier: "ResourcePoolSpace" });
57
- export const ResourcePool = /*@__PURE__*/ S.suspend(() => S.Struct({
58
- availabilityZone: S.optional(S.String),
59
- countShares: S.optional(S.Number),
60
- createdAt: S.optional(S.String),
61
- id: S.optional(S.String),
62
- ipAcl: S.optional(ResourcePoolIpAclList),
63
- labels: S.optional(ResourcePoolLabelsMap),
64
- mountPath: S.optional(S.String),
65
- name: S.optional(S.String),
66
- performanceClass: S.optional(ResourcePoolPerformanceClass),
67
- performanceClassDowngradableAt: S.optional(S.String),
68
- sizeReducibleAt: S.optional(S.String),
69
- snapshotPolicy: S.optional(S.NullOr(ResourcePoolSnapshotPolicy)),
70
- snapshotsAreVisible: S.optional(S.Boolean),
71
- space: S.optional(ResourcePoolSpace),
72
- state: S.optional(S.String),
73
- })).annotate({ identifier: "ResourcePool" });
74
- export const CreateResourcePoolResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
75
- resourcePool: S.optional(ResourcePool),
76
- })).annotate({
77
- identifier: "CreateResourcePoolResponse",
78
- });
79
- export const CreateResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
80
- projectId: S.String.pipe(T.Label()),
81
- region: S.String.pipe(T.Label()),
82
- resourcePoolId: S.String.pipe(T.Label()),
83
- comment: S.optional(S.NullOr(S.String)),
84
- name: S.optional(S.String),
85
- snaplockRetentionHours: S.optional(S.NullOr(S.Number)),
86
- }).pipe(T.Http({
87
- method: "POST",
88
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",
89
- code: 200,
90
- baseUrl: "https://sfs.api.stackit.cloud",
91
- }))).annotate({
92
- identifier: "CreateResourcePoolSnapshotRequest",
93
- });
94
- export const ResourcePoolSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
95
- comment: S.optional(S.NullOr(S.String)),
96
- createdAt: S.optional(S.String),
97
- logicalSizeGigabytes: S.optional(S.Number),
98
- resourcePoolId: S.optional(S.String),
99
- sizeGigabytes: S.optional(S.Number),
100
- snaplockExpiryTime: S.optional(S.NullOr(S.String)),
101
- snapshotName: S.optional(S.String),
102
- })).annotate({ identifier: "ResourcePoolSnapshot" });
103
- export const CreateResourcePoolSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
104
- resourcePoolSnapshot: S.optional(ResourcePoolSnapshot),
105
- })).annotate({
106
- identifier: "CreateResourcePoolSnapshotResponse",
107
- });
108
- export const CreateShareRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
109
- export const CreateShareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
110
- projectId: S.String.pipe(T.Label()),
111
- region: S.String.pipe(T.Label()),
112
- resourcePoolId: S.String.pipe(T.Label()),
113
- exportPolicyName: S.optional(S.NullOr(S.String)),
114
- labels: S.optional(CreateShareRequestLabelsMap),
115
- name: S.String,
116
- spaceHardLimitGigabytes: S.Number,
117
- }).pipe(T.Http({
118
- method: "POST",
119
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",
120
- code: 200,
121
- baseUrl: "https://sfs.api.stackit.cloud",
122
- }))).annotate({ identifier: "CreateShareRequest" });
123
- export const ShareExportPolicyLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
124
- export const ShareExportPolicyRuleIpAclList = /*@__PURE__*/ S.Array(S.String);
125
- export const ShareExportPolicyRule = /*@__PURE__*/ S.suspend(() => S.Struct({
126
- createdAt: S.optional(S.String),
127
- description: S.optional(S.NullOr(S.String)),
128
- id: S.optional(S.String),
129
- ipAcl: S.optional(ShareExportPolicyRuleIpAclList),
130
- order: S.optional(S.Number),
131
- readOnly: S.optional(S.Boolean),
132
- setUuid: S.optional(S.Boolean),
133
- superUser: S.optional(S.Boolean),
134
- })).annotate({ identifier: "ShareExportPolicyRule" });
135
- export const ShareExportPolicyRulesList = /*@__PURE__*/ S.Array(ShareExportPolicyRule);
136
- export const ShareExportPolicy = /*@__PURE__*/ S.suspend(() => S.Struct({
137
- createdAt: S.optional(S.String),
138
- id: S.optional(S.String),
139
- labels: S.optional(ShareExportPolicyLabelsMap),
140
- name: S.optional(S.String),
141
- rules: S.optional(ShareExportPolicyRulesList),
142
- sharesUsingExportPolicy: S.optional(S.Number),
143
- })).annotate({ identifier: "ShareExportPolicy" });
144
- export const ShareLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
145
- export const Share = /*@__PURE__*/ S.suspend(() => S.Struct({
146
- createdAt: S.optional(S.String),
147
- exportPolicy: S.optional(S.NullOr(ShareExportPolicy)),
148
- id: S.optional(S.String),
149
- labels: S.optional(ShareLabelsMap),
150
- mountPath: S.optional(S.String),
151
- name: S.optional(S.String),
152
- spaceHardLimitGigabytes: S.optional(S.Number),
153
- state: S.optional(S.String),
154
- })).annotate({ identifier: "Share" });
155
- export const CreateShareResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
156
- share: S.optional(Share),
157
- })).annotate({ identifier: "CreateShareResponse" });
158
- export const CreateShareExportPolicyRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
159
- export const CreateShareExportPolicyRequestRuleIpAclList = /*@__PURE__*/ S.Array(S.String);
160
- export const CreateShareExportPolicyRequestRule = /*@__PURE__*/ S.suspend(() => S.Struct({
161
- description: S.optional(S.NullOr(S.String)),
162
- ipAcl: S.optional(CreateShareExportPolicyRequestRuleIpAclList),
163
- order: S.optional(S.Number),
164
- readOnly: S.optional(S.Boolean),
165
- setUuid: S.optional(S.Boolean),
166
- superUser: S.optional(S.Boolean),
167
- })).annotate({
168
- identifier: "CreateShareExportPolicyRequestRule",
169
- });
170
- export const CreateShareExportPolicyRequestRulesList = /*@__PURE__*/ S.Array(CreateShareExportPolicyRequestRule);
171
- export const CreateShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
172
- projectId: S.String.pipe(T.Label()),
173
- region: S.String.pipe(T.Label()),
174
- labels: S.optional(CreateShareExportPolicyRequestLabelsMap),
175
- name: S.String,
176
- rules: S.optional(CreateShareExportPolicyRequestRulesList),
177
- }).pipe(T.Http({
178
- method: "POST",
179
- uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies",
180
- code: 200,
181
- baseUrl: "https://sfs.api.stackit.cloud",
182
- }))).annotate({
183
- identifier: "CreateShareExportPolicyRequest",
184
- });
185
- export const CreateShareExportPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
186
- shareExportPolicy: S.optional(ShareExportPolicy),
187
- })).annotate({
188
- identifier: "CreateShareExportPolicyResponse",
189
- });
190
- export const DeleteResourcePoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
191
- projectId: S.String.pipe(T.Label()),
192
- region: S.String.pipe(T.Label()),
193
- resourcePoolId: S.String.pipe(T.Label()),
194
- }).pipe(T.Http({
195
- method: "DELETE",
196
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
197
- code: 200,
198
- baseUrl: "https://sfs.api.stackit.cloud",
199
- }))).annotate({
200
- identifier: "DeleteResourcePoolRequest",
201
- });
202
- export const DeleteResourcePoolResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
203
- identifier: "DeleteResourcePoolResponse2",
204
- });
205
- export const DeleteResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
206
- projectId: S.String.pipe(T.Label()),
207
- region: S.String.pipe(T.Label()),
208
- resourcePoolId: S.String.pipe(T.Label()),
209
- snapshotName: S.String.pipe(T.Label()),
210
- }).pipe(T.Http({
211
- method: "DELETE",
212
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
213
- code: 200,
214
- baseUrl: "https://sfs.api.stackit.cloud",
215
- }))).annotate({
216
- identifier: "DeleteResourcePoolSnapshotRequest",
217
- });
218
- export const DeleteResourcePoolSnapshotResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
219
- identifier: "DeleteResourcePoolSnapshotResponse2",
220
- });
221
- export const DeleteShareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
222
- projectId: S.String.pipe(T.Label()),
223
- region: S.String.pipe(T.Label()),
224
- resourcePoolId: S.String.pipe(T.Label()),
225
- shareId: S.String.pipe(T.Label()),
226
- }).pipe(T.Http({
227
- method: "DELETE",
228
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
229
- code: 200,
230
- baseUrl: "https://sfs.api.stackit.cloud",
231
- }))).annotate({ identifier: "DeleteShareRequest" });
232
- export const DeleteShareResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "DeleteShareResponse2" });
233
- export const DeleteShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
234
- projectId: S.String.pipe(T.Label()),
235
- region: S.String.pipe(T.Label()),
236
- policyId: S.String.pipe(T.Label()),
237
- }).pipe(T.Http({
238
- method: "DELETE",
239
- uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
240
- code: 200,
241
- baseUrl: "https://sfs.api.stackit.cloud",
242
- }))).annotate({
243
- identifier: "DeleteShareExportPolicyRequest",
244
- });
245
- export const DeleteShareExportPolicyResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
246
- identifier: "DeleteShareExportPolicyResponse2",
247
- });
248
- export const DisableLockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
249
- region: S.String.pipe(T.Label()),
250
- projectId: S.String.pipe(T.Label()),
251
- }).pipe(T.Http({
252
- method: "DELETE",
253
- uri: "/v1/regions/{region}/project/{projectId}/locks",
254
- code: 200,
255
- baseUrl: "https://sfs.api.stackit.cloud",
256
- }))).annotate({ identifier: "DisableLockRequest" });
257
- export const DisableLockResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "DisableLockResponse2" });
258
- export const EnableLockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
259
- region: S.String.pipe(T.Label()),
260
- projectId: S.String.pipe(T.Label()),
261
- }).pipe(T.Http({
262
- method: "POST",
263
- uri: "/v1/regions/{region}/project/{projectId}/locks",
264
- code: 200,
265
- baseUrl: "https://sfs.api.stackit.cloud",
266
- }))).annotate({ identifier: "EnableLockRequest" });
267
- export const EnableLockResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
268
- lockId: S.optional(S.String),
269
- })).annotate({ identifier: "EnableLockResponse" });
270
- export const GetLockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
271
- region: S.String.pipe(T.Label()),
272
- projectId: S.String.pipe(T.Label()),
273
- }).pipe(T.Http({
274
- method: "GET",
275
- uri: "/v1/regions/{region}/project/{projectId}/locks",
276
- code: 200,
277
- baseUrl: "https://sfs.api.stackit.cloud",
278
- }))).annotate({ identifier: "GetLockRequest" });
279
- export const GetLockResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
280
- lockId: S.optional(S.String),
281
- })).annotate({ identifier: "GetLockResponse" });
282
- export const GetResourcePoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
283
- projectId: S.String.pipe(T.Label()),
284
- region: S.String.pipe(T.Label()),
285
- resourcePoolId: S.String.pipe(T.Label()),
286
- }).pipe(T.Http({
287
- method: "GET",
288
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
289
- code: 200,
290
- baseUrl: "https://sfs.api.stackit.cloud",
291
- }))).annotate({ identifier: "GetResourcePoolRequest" });
292
- export const GetResourcePoolResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
293
- resourcePool: S.optional(ResourcePool),
294
- })).annotate({ identifier: "GetResourcePoolResponse" });
295
- export const GetResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
296
- projectId: S.String.pipe(T.Label()),
297
- region: S.String.pipe(T.Label()),
298
- resourcePoolId: S.String.pipe(T.Label()),
299
- snapshotName: S.String.pipe(T.Label()),
300
- }).pipe(T.Http({
301
- method: "GET",
302
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
303
- code: 200,
304
- baseUrl: "https://sfs.api.stackit.cloud",
305
- }))).annotate({
306
- identifier: "GetResourcePoolSnapshotRequest",
307
- });
308
- export const GetResourcePoolSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
309
- resourcePoolSnapshot: S.optional(ResourcePoolSnapshot),
310
- })).annotate({
311
- identifier: "GetResourcePoolSnapshotResponse",
312
- });
313
- export const GetShareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
314
- projectId: S.String.pipe(T.Label()),
315
- region: S.String.pipe(T.Label()),
316
- resourcePoolId: S.String.pipe(T.Label()),
317
- shareId: S.String.pipe(T.Label()),
318
- }).pipe(T.Http({
319
- method: "GET",
320
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
321
- code: 200,
322
- baseUrl: "https://sfs.api.stackit.cloud",
323
- }))).annotate({ identifier: "GetShareRequest" });
324
- export const GetShareResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
325
- share: S.optional(Share),
326
- })).annotate({ identifier: "GetShareResponse" });
327
- export const GetShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
328
- projectId: S.String.pipe(T.Label()),
329
- region: S.String.pipe(T.Label()),
330
- policyId: S.String.pipe(T.Label()),
331
- }).pipe(T.Http({
332
- method: "GET",
333
- uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
334
- code: 200,
335
- baseUrl: "https://sfs.api.stackit.cloud",
336
- }))).annotate({
337
- identifier: "GetShareExportPolicyRequest",
338
- });
339
- export const GetShareExportPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
340
- shareExportPolicy: S.optional(ShareExportPolicy),
341
- })).annotate({
342
- identifier: "GetShareExportPolicyResponse",
343
- });
344
- export const GetSnapshotPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
345
- projectId: S.String.pipe(T.Label()),
346
- id: S.String.pipe(T.Label()),
347
- }).pipe(T.Http({
348
- method: "GET",
349
- uri: "/v1/projects/{projectId}/snapshotPolicies/{id}",
350
- code: 200,
351
- baseUrl: "https://sfs.api.stackit.cloud",
352
- }))).annotate({ identifier: "GetSnapshotPolicyRequest" });
353
- export const SnapshotPolicySchedule = /*@__PURE__*/ S.suspend(() => S.Struct({
354
- count: S.optional(S.Number),
355
- interval: S.optional(S.String),
356
- prefix: S.optional(S.String),
357
- retentionPeriod: S.optional(S.String),
358
- scheduleId: S.optional(S.String),
359
- })).annotate({ identifier: "SnapshotPolicySchedule" });
360
- export const SnapshotPolicySchedulesList = /*@__PURE__*/ S.Array(SnapshotPolicySchedule);
361
- export const SnapshotPolicySnapshotPolicySchedule = /*@__PURE__*/ S.suspend(() => S.Struct({
362
- createdAt: S.optional(S.String),
363
- id: S.optional(S.String),
364
- interval: S.optional(S.String),
365
- name: S.optional(S.String),
366
- prefix: S.optional(S.String),
367
- retentionCount: S.optional(S.Number),
368
- retentionPeriod: S.optional(S.String),
369
- })).annotate({
370
- identifier: "SnapshotPolicySnapshotPolicySchedule",
371
- });
372
- export const SnapshotPolicySnapshotSchedulesList = /*@__PURE__*/ S.Array(SnapshotPolicySnapshotPolicySchedule);
373
- export const SnapshotPolicy = /*@__PURE__*/ S.suspend(() => S.Struct({
374
- comment: S.optional(S.String),
375
- createdAt: S.optional(S.String),
376
- enabled: S.optional(S.Boolean),
377
- id: S.optional(S.String),
378
- name: S.optional(S.String),
379
- schedules: S.optional(SnapshotPolicySchedulesList),
380
- snapshotSchedules: S.optional(SnapshotPolicySnapshotSchedulesList),
381
- })).annotate({ identifier: "SnapshotPolicy" });
382
- export const GetSnapshotPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
383
- snapshotPolicy: S.optional(SnapshotPolicy),
384
- })).annotate({
385
- identifier: "GetSnapshotPolicyResponse",
386
- });
387
- export const ListPerformanceClassesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
388
- method: "GET",
389
- uri: "/v1/resourcePoolPerformanceClasses",
390
- code: 200,
391
- baseUrl: "https://sfs.api.stackit.cloud",
392
- }))).annotate({
393
- identifier: "ListPerformanceClassesRequest",
394
- });
395
- export const PerformanceClass = /*@__PURE__*/ S.suspend(() => S.Struct({
396
- iops: S.optional(S.Number),
397
- name: S.optional(S.String),
398
- throughput: S.optional(S.Number),
399
- })).annotate({ identifier: "PerformanceClass" });
400
- export const ListPerformanceClassesResponsePerformanceClassesList = /*@__PURE__*/ S.Array(PerformanceClass);
401
- export const ListPerformanceClassesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
402
- performanceClasses: S.optional(ListPerformanceClassesResponsePerformanceClassesList),
403
- })).annotate({
404
- identifier: "ListPerformanceClassesResponse",
405
- });
406
- export const ListResourcePoolsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
407
- projectId: S.String.pipe(T.Label()),
408
- region: S.String.pipe(T.Label()),
409
- }).pipe(T.Http({
410
- method: "GET",
411
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools",
412
- code: 200,
413
- baseUrl: "https://sfs.api.stackit.cloud",
414
- }))).annotate({ identifier: "ListResourcePoolsRequest" });
415
- export const ListResourcePoolsResponseResourcePoolsList = /*@__PURE__*/ S.Array(ResourcePool);
416
- export const ListResourcePoolsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
417
- resourcePools: S.optional(ListResourcePoolsResponseResourcePoolsList),
418
- })).annotate({
419
- identifier: "ListResourcePoolsResponse",
420
- });
421
- export const ListResourcePoolSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
422
- projectId: S.String.pipe(T.Label()),
423
- region: S.String.pipe(T.Label()),
424
- resourcePoolId: S.String.pipe(T.Label()),
425
- }).pipe(T.Http({
426
- method: "GET",
427
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",
428
- code: 200,
429
- baseUrl: "https://sfs.api.stackit.cloud",
430
- }))).annotate({
431
- identifier: "ListResourcePoolSnapshotsRequest",
432
- });
433
- export const ListResourcePoolSnapshotsResponseResourcePoolSnapshotsList = /*@__PURE__*/ S.Array(ResourcePoolSnapshot);
434
- export const ListResourcePoolSnapshotsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
435
- resourcePoolSnapshots: S.optional(ListResourcePoolSnapshotsResponseResourcePoolSnapshotsList),
436
- })).annotate({
437
- identifier: "ListResourcePoolSnapshotsResponse",
438
- });
439
- export const ListShareExportPoliciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
440
- projectId: S.String.pipe(T.Label()),
441
- region: S.String.pipe(T.Label()),
442
- }).pipe(T.Http({
443
- method: "GET",
444
- uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies",
445
- code: 200,
446
- baseUrl: "https://sfs.api.stackit.cloud",
447
- }))).annotate({
448
- identifier: "ListShareExportPoliciesRequest",
449
- });
450
- export const ListShareExportPoliciesResponseShareExportPoliciesList = /*@__PURE__*/ S.Array(ShareExportPolicy);
451
- export const ListShareExportPoliciesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
452
- shareExportPolicies: S.optional(ListShareExportPoliciesResponseShareExportPoliciesList),
453
- })).annotate({
454
- identifier: "ListShareExportPoliciesResponse",
455
- });
456
- export const ListSharesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
457
- projectId: S.String.pipe(T.Label()),
458
- region: S.String.pipe(T.Label()),
459
- resourcePoolId: S.String.pipe(T.Label()),
460
- }).pipe(T.Http({
461
- method: "GET",
462
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",
463
- code: 200,
464
- baseUrl: "https://sfs.api.stackit.cloud",
465
- }))).annotate({ identifier: "ListSharesRequest" });
466
- export const ListSharesResponseSharesList = /*@__PURE__*/ S.Array(Share);
467
- export const ListSharesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
468
- shares: S.optional(ListSharesResponseSharesList),
469
- })).annotate({ identifier: "ListSharesResponse" });
470
- export const ListSnapshotPoliciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
471
- projectId: S.String.pipe(T.Label()),
472
- immutable: S.optional(S.Boolean.pipe(T.Query())),
473
- }).pipe(T.Http({
474
- method: "GET",
475
- uri: "/v1/projects/{projectId}/snapshotPolicies",
476
- code: 200,
477
- baseUrl: "https://sfs.api.stackit.cloud",
478
- }))).annotate({
479
- identifier: "ListSnapshotPoliciesRequest",
480
- });
481
- export const ListSnapshotPoliciesResponseSnapshotPoliciesList = /*@__PURE__*/ S.Array(SnapshotPolicy);
482
- export const ListSnapshotPoliciesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
483
- snapshotPolicies: S.optional(ListSnapshotPoliciesResponseSnapshotPoliciesList),
484
- })).annotate({
485
- identifier: "ListSnapshotPoliciesResponse",
486
- });
487
- export const UpdateResourcePoolRequestIpAclList = /*@__PURE__*/ S.Array(S.String);
488
- export const UpdateResourcePoolRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
489
- export const UpdateResourcePoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
490
- projectId: S.String.pipe(T.Label()),
491
- region: S.String.pipe(T.Label()),
492
- resourcePoolId: S.String.pipe(T.Label()),
493
- ipAcl: S.optional(UpdateResourcePoolRequestIpAclList),
494
- labels: S.optional(UpdateResourcePoolRequestLabelsMap),
495
- performanceClass: S.optional(S.String),
496
- sizeGigabytes: S.optional(S.NullOr(S.Number)),
497
- snapshotPolicyId: S.optional(S.NullOr(S.String)),
498
- snapshotsAreVisible: S.optional(S.Boolean),
499
- }).pipe(T.Http({
500
- method: "PATCH",
501
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
502
- code: 200,
503
- baseUrl: "https://sfs.api.stackit.cloud",
504
- }))).annotate({
505
- identifier: "UpdateResourcePoolRequest",
506
- });
507
- export const UpdateResourcePoolResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
508
- resourcePool: S.optional(ResourcePool),
509
- })).annotate({
510
- identifier: "UpdateResourcePoolResponse",
511
- });
512
- export const UpdateResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
513
- projectId: S.String.pipe(T.Label()),
514
- region: S.String.pipe(T.Label()),
515
- resourcePoolId: S.String.pipe(T.Label()),
516
- snapshotName: S.String.pipe(T.Label()),
517
- comment: S.optional(S.NullOr(S.String)),
518
- name: S.optional(S.NullOr(S.String)),
519
- }).pipe(T.Http({
520
- method: "PATCH",
521
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
522
- code: 200,
523
- baseUrl: "https://sfs.api.stackit.cloud",
524
- }))).annotate({
525
- identifier: "UpdateResourcePoolSnapshotRequest",
526
- });
527
- export const UpdateResourcePoolSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
528
- resourcePoolSnapshot: S.optional(ResourcePoolSnapshot),
529
- })).annotate({
530
- identifier: "UpdateResourcePoolSnapshotResponse",
531
- });
532
- export const UpdateShareRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
533
- export const UpdateShareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
534
- projectId: S.String.pipe(T.Label()),
535
- region: S.String.pipe(T.Label()),
536
- resourcePoolId: S.String.pipe(T.Label()),
537
- shareId: S.String.pipe(T.Label()),
538
- exportPolicyName: S.optional(S.NullOr(S.String)),
539
- labels: S.optional(UpdateShareRequestLabelsMap),
540
- spaceHardLimitGigabytes: S.optional(S.NullOr(S.Number)),
541
- }).pipe(T.Http({
542
- method: "PATCH",
543
- uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
544
- code: 200,
545
- baseUrl: "https://sfs.api.stackit.cloud",
546
- }))).annotate({ identifier: "UpdateShareRequest" });
547
- export const UpdateShareResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
548
- share: S.optional(Share),
549
- })).annotate({ identifier: "UpdateShareResponse" });
550
- export const UpdateShareExportPolicyRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
551
- export const UpdateShareExportPolicyBodyRuleIpAclList = /*@__PURE__*/ S.Array(S.String);
552
- export const UpdateShareExportPolicyBodyRule = /*@__PURE__*/ S.suspend(() => S.Struct({
553
- description: S.optional(S.NullOr(S.String)),
554
- ipAcl: S.optional(UpdateShareExportPolicyBodyRuleIpAclList),
555
- order: S.optional(S.Number),
556
- readOnly: S.optional(S.Boolean),
557
- setUuid: S.optional(S.Boolean),
558
- superUser: S.optional(S.Boolean),
559
- })).annotate({
560
- identifier: "UpdateShareExportPolicyBodyRule",
561
- });
562
- export const UpdateShareExportPolicyRequestRulesList = /*@__PURE__*/ S.Array(UpdateShareExportPolicyBodyRule);
563
- export const UpdateShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
564
- projectId: S.String.pipe(T.Label()),
565
- region: S.String.pipe(T.Label()),
566
- policyId: S.String.pipe(T.Label()),
567
- labels: S.optional(UpdateShareExportPolicyRequestLabelsMap),
568
- rules: S.optional(S.NullOr(UpdateShareExportPolicyRequestRulesList)),
569
- }).pipe(T.Http({
570
- method: "PATCH",
571
- uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
572
- code: 200,
573
- baseUrl: "https://sfs.api.stackit.cloud",
574
- }))).annotate({
575
- identifier: "UpdateShareExportPolicyRequest",
576
- });
577
- export const UpdateShareExportPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
578
- shareExportPolicy: S.optional(ShareExportPolicy),
579
- })).annotate({
580
- identifier: "UpdateShareExportPolicyResponse",
581
- });
582
- /** Create Resource Pool Create a Resource Pool in a project. */
583
- export const createResourcePool = /*@__PURE__*/ API.make(() => ({
584
- input: CreateResourcePoolRequest,
585
- output: CreateResourcePoolResponse,
586
- errors: [BadRequest, UnknownStackitError],
587
- protocol: StackitProtocol,
588
- retry: Retry.Retry,
589
- }));
590
- /** Create Resource Pool Snapshot Creates a Snapshot of a Resource Pool in a project. */
591
- export const createResourcePoolSnapshot = /*@__PURE__*/ API.make(() => ({
592
- input: CreateResourcePoolSnapshotRequest,
593
- output: CreateResourcePoolSnapshotResponse,
594
- errors: [BadRequest, UnknownStackitError],
595
- protocol: StackitProtocol,
596
- retry: Retry.Retry,
597
- }));
598
- /** Create Share Creates a Share in a Resource Pool in a project. */
599
- export const createShare = /*@__PURE__*/ API.make(() => ({
600
- input: CreateShareRequest,
601
- output: CreateShareResponse,
602
- errors: [BadRequest, UnknownStackitError],
603
- protocol: StackitProtocol,
604
- retry: Retry.Retry,
605
- }));
606
- /** Create Share Export Policy Creates a ShareExportPolicy in a Resource Pool in a project. */
607
- export const createShareExportPolicy = /*@__PURE__*/ API.make(() => ({
608
- input: CreateShareExportPolicyRequest,
609
- output: CreateShareExportPolicyResponse,
610
- errors: [BadRequest, UnknownStackitError],
611
- protocol: StackitProtocol,
612
- retry: Retry.Retry,
613
- }));
614
- /** Delete Resource Pool Deletes a Resource Pool in a project. */
615
- export const deleteResourcePool = /*@__PURE__*/ API.make(() => ({
616
- input: DeleteResourcePoolRequest,
617
- output: DeleteResourcePoolResponse2,
618
- errors: [BadRequest, UnknownStackitError],
619
- protocol: StackitProtocol,
620
- retry: Retry.Retry,
621
- }));
622
- /** Delete Resource Pool Snapshot Deletes a Snapshot from a Resource Pool in a project. */
623
- export const deleteResourcePoolSnapshot = /*@__PURE__*/ API.make(() => ({
624
- input: DeleteResourcePoolSnapshotRequest,
625
- output: DeleteResourcePoolSnapshotResponse2,
626
- errors: [BadRequest, UnknownStackitError],
627
- protocol: StackitProtocol,
628
- retry: Retry.Retry,
629
- }));
630
- /** Delete Share Deletes a Shares in a Resource Pool in a project. */
631
- export const deleteShare = /*@__PURE__*/ API.make(() => ({
632
- input: DeleteShareRequest,
633
- output: DeleteShareResponse2,
634
- errors: [BadRequest, UnknownStackitError],
635
- protocol: StackitProtocol,
636
- retry: Retry.Retry,
637
- }));
638
- /** Delete Share Export Policy Deletes a ShareExportPolicies in a Resource Pool in a project. */
639
- export const deleteShareExportPolicy = /*@__PURE__*/ API.make(() => ({
640
- input: DeleteShareExportPolicyRequest,
641
- output: DeleteShareExportPolicyResponse2,
642
- errors: [BadRequest, UnknownStackitError],
643
- protocol: StackitProtocol,
644
- retry: Retry.Retry,
645
- }));
646
- /** Clean up locks for a project so that it can be deleted successfully. */
647
- export const disableLock = /*@__PURE__*/ API.make(() => ({
648
- input: DisableLockRequest,
649
- output: DisableLockResponse2,
650
- errors: [UnknownStackitError],
651
- protocol: StackitProtocol,
652
- retry: Retry.Retry,
653
- }));
654
- /** Enable Lock for a project. Necessary for immutable snapshots and to prevent accidental deletion of resources. */
655
- export const enableLock = /*@__PURE__*/ API.make(() => ({
656
- input: EnableLockRequest,
657
- output: EnableLockResponse,
658
- errors: [UnknownStackitError],
659
- protocol: StackitProtocol,
660
- retry: Retry.Retry,
661
- }));
662
- /** Get lock status for a project. */
663
- export const getLock = /*@__PURE__*/ API.make(() => ({
664
- input: GetLockRequest,
665
- output: GetLockResponse,
666
- errors: [UnknownStackitError],
667
- protocol: StackitProtocol,
668
- retry: Retry.Retry,
669
- }));
670
- /** Get Resource Pool Retrieves a Resource Pool in a project. */
671
- export const getResourcePool = /*@__PURE__*/ API.make(() => ({
672
- input: GetResourcePoolRequest,
673
- output: GetResourcePoolResponse,
674
- errors: [BadRequest, UnknownStackitError],
675
- protocol: StackitProtocol,
676
- retry: Retry.Retry,
677
- }));
678
- /** Get Resource Pool Snapshot Retrieves a Snapshot from a Resource Pool in a project. */
679
- export const getResourcePoolSnapshot = /*@__PURE__*/ API.make(() => ({
680
- input: GetResourcePoolSnapshotRequest,
681
- output: GetResourcePoolSnapshotResponse,
682
- errors: [BadRequest, UnknownStackitError],
683
- protocol: StackitProtocol,
684
- retry: Retry.Retry,
685
- }));
686
- /** Get Share Retrieves a Shares in a Resource Pool in a project. */
687
- export const getShare = /*@__PURE__*/ API.make(() => ({
688
- input: GetShareRequest,
689
- output: GetShareResponse,
690
- errors: [BadRequest, UnknownStackitError],
691
- protocol: StackitProtocol,
692
- retry: Retry.Retry,
693
- }));
694
- /** Get Share Export Policy Retrieves a ShareExportPolicies in a Resource Pool in a project. */
695
- export const getShareExportPolicy = /*@__PURE__*/ API.make(() => ({
696
- input: GetShareExportPolicyRequest,
697
- output: GetShareExportPolicyResponse,
698
- errors: [BadRequest, UnknownStackitError],
699
- protocol: StackitProtocol,
700
- retry: Retry.Retry,
701
- }));
702
- /** Get Snapshot Policy */
703
- export const getSnapshotPolicy = /*@__PURE__*/ API.make(() => ({
704
- input: GetSnapshotPolicyRequest,
705
- output: GetSnapshotPolicyResponse,
706
- errors: [UnknownStackitError],
707
- protocol: StackitProtocol,
708
- retry: Retry.Retry,
709
- }));
710
- /** List Resource Performance Classes Lists all performances classes available */
711
- export const listPerformanceClasses = /*@__PURE__*/ API.make(() => ({
712
- input: ListPerformanceClassesRequest,
713
- output: ListPerformanceClassesResponse,
714
- errors: [BadRequest, UnknownStackitError],
715
- protocol: StackitProtocol,
716
- retry: Retry.Retry,
717
- }));
718
- /** List Resource Pools Lists Resource Pools in a project. */
719
- export const listResourcePools = /*@__PURE__*/ API.make(() => ({
720
- input: ListResourcePoolsRequest,
721
- output: ListResourcePoolsResponse,
722
- errors: [BadRequest, UnknownStackitError],
723
- protocol: StackitProtocol,
724
- retry: Retry.Retry,
725
- }));
726
- /** List Resource Pool Snapshots Lists the Snapshots of a Resource Pool in a project. */
727
- export const listResourcePoolSnapshots = /*@__PURE__*/ API.make(() => ({
728
- input: ListResourcePoolSnapshotsRequest,
729
- output: ListResourcePoolSnapshotsResponse,
730
- errors: [BadRequest, UnknownStackitError],
731
- protocol: StackitProtocol,
732
- retry: Retry.Retry,
733
- }));
734
- /** List Share Export Policies Lists ShareExportPolicies in a Resource Pool in a project. */
735
- export const listShareExportPolicies = /*@__PURE__*/ API.make(() => ({
736
- input: ListShareExportPoliciesRequest,
737
- output: ListShareExportPoliciesResponse,
738
- errors: [BadRequest, UnknownStackitError],
739
- protocol: StackitProtocol,
740
- retry: Retry.Retry,
741
- }));
742
- /** List Shares Lists Shares in a Resource Pool in a project. */
743
- export const listShares = /*@__PURE__*/ API.make(() => ({
744
- input: ListSharesRequest,
745
- output: ListSharesResponse,
746
- errors: [BadRequest, UnknownStackitError],
747
- protocol: StackitProtocol,
748
- retry: Retry.Retry,
749
- }));
750
- /** List Snapshot Policies */
751
- export const listSnapshotPolicies = /*@__PURE__*/ API.make(() => ({
752
- input: ListSnapshotPoliciesRequest,
753
- output: ListSnapshotPoliciesResponse,
754
- errors: [UnknownStackitError],
755
- protocol: StackitProtocol,
756
- retry: Retry.Retry,
757
- }));
758
- /** Update Resource Pool Updates a Resource Pool in a project. */
759
- export const updateResourcePool = /*@__PURE__*/ API.make(() => ({
760
- input: UpdateResourcePoolRequest,
761
- output: UpdateResourcePoolResponse,
762
- errors: [BadRequest, UnknownStackitError],
763
- protocol: StackitProtocol,
764
- retry: Retry.Retry,
765
- }));
766
- /** Update Resource Pool Snapshot Updates a Snapshot from a Resource Pool in a project. */
767
- export const updateResourcePoolSnapshot = /*@__PURE__*/ API.make(() => ({
768
- input: UpdateResourcePoolSnapshotRequest,
769
- output: UpdateResourcePoolSnapshotResponse,
770
- errors: [BadRequest, UnknownStackitError],
771
- protocol: StackitProtocol,
772
- retry: Retry.Retry,
773
- }));
774
- /** Update Share Updates a Shares in a Resource Pool in a project. */
775
- export const updateShare = /*@__PURE__*/ API.make(() => ({
776
- input: UpdateShareRequest,
777
- output: UpdateShareResponse,
778
- errors: [BadRequest, UnknownStackitError],
779
- protocol: StackitProtocol,
780
- retry: Retry.Retry,
781
- }));
782
- /** Update Share Export Policy Updates a ShareExportPolicies in a Resource Pool in a project. */
783
- export const updateShareExportPolicy = /*@__PURE__*/ API.make(() => ({
784
- input: UpdateShareExportPolicyRequest,
785
- output: UpdateShareExportPolicyResponse,
786
- errors: [BadRequest, UnknownStackitError],
787
- protocol: StackitProtocol,
788
- retry: Retry.Retry,
789
- }));
790
- //# sourceMappingURL=sfs.js.map