@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17
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.
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -49
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -26
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -24
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +1 -45
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -147
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -31
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +28 -512
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +33 -520
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -322
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +1 -362
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +31 -905
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -178
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -176
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -725
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -316
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +1 -356
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -398
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +35 -519
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +181 -3542
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +29 -474
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +41 -662
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +1 -153
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +29 -496
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +33 -573
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -474
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +34 -550
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -335
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -286
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +42 -802
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +38 -539
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +159 -3157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +34 -562
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +31 -735
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +47 -852
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +37 -518
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +35 -573
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -197
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +36 -472
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -184
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +25 -444
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +40 -669
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +42 -612
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +29 -453
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -351
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +30 -505
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -156
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -789
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +26 -557
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +46 -935
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +26 -378
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -531
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +29 -483
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -278
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +34 -566
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +43 -930
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -507
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +4 -0
- package/lib/services.lazy/alb_waf.js +4 -0
- package/lib/services.lazy/authorization.js +1 -0
- package/lib/services.lazy/automation.js +1 -0
- package/lib/services.lazy/cdn.js +4 -0
- package/lib/services.lazy/certificates.js +1 -0
- package/lib/services.lazy/cost.js +1 -0
- package/lib/services.lazy/dns.js +4 -0
- package/lib/services.lazy/dremio.js +1 -0
- package/lib/services.lazy/edge.js +1 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/git.js +4 -0
- package/lib/services.lazy/iaas.js +4 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/intake.js +4 -0
- package/lib/services.lazy/kms.js +4 -0
- package/lib/services.lazy/lb_ip_lists.js +1 -0
- package/lib/services.lazy/load_balancer.js +4 -0
- package/lib/services.lazy/logme.js +4 -0
- package/lib/services.lazy/logs.js +4 -0
- package/lib/services.lazy/mariadb.js +4 -0
- package/lib/services.lazy/model_experiments.js +1 -0
- package/lib/services.lazy/model_serving.js +1 -0
- package/lib/services.lazy/mongodb_flex.js +4 -0
- package/lib/services.lazy/object_storage.js +4 -0
- package/lib/services.lazy/observability.js +4 -0
- package/lib/services.lazy/opensearch.js +4 -0
- package/lib/services.lazy/pim.js +4 -0
- package/lib/services.lazy/postgres_flex.js +4 -0
- package/lib/services.lazy/pubsub.js +4 -0
- package/lib/services.lazy/rabbitmq.js +4 -0
- package/lib/services.lazy/registry.js +1 -0
- package/lib/services.lazy/resource_manager.js +4 -0
- package/lib/services.lazy/run_command.js +1 -0
- package/lib/services.lazy/sca.js +4 -0
- package/lib/services.lazy/scf.js +4 -0
- package/lib/services.lazy/secrets_manager.js +4 -0
- package/lib/services.lazy/server_backup.js +4 -0
- package/lib/services.lazy/server_update.js +1 -0
- package/lib/services.lazy/service_account.js +4 -0
- package/lib/services.lazy/service_enablement.js +1 -0
- package/lib/services.lazy/sfs.js +4 -0
- package/lib/services.lazy/ske.js +4 -0
- package/lib/services.lazy/sqlserverflex.js +4 -0
- package/lib/services.lazy/stackit_marketplace.js +4 -0
- package/lib/services.lazy/telemetry_link.js +4 -0
- package/lib/services.lazy/telemetry_router.js +4 -0
- package/lib/services.lazy/ufw.js +1 -0
- package/lib/services.lazy/valkey.js +4 -0
- package/lib/services.lazy/vpn.js +4 -0
- package/lib/services.lazy/workflows.js +4 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +1 -15
- package/package.json +9 -7
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- package/src/protocol.test.ts +0 -304
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
|
@@ -1,11 +1,14 @@
|
|
|
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.ts";
|
|
6
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { StackitOpError, StackitOpContext };
|
|
11
14
|
|
|
@@ -46,12 +49,8 @@ export class NotFound
|
|
|
46
49
|
) {}
|
|
47
50
|
|
|
48
51
|
export type CreateInstanceRequestRegionId = "eu01";
|
|
49
|
-
export const CreateInstanceRequestRegionId = S.String;
|
|
50
|
-
|
|
51
52
|
/** Object that represents the labels of an object. Regex for keys: `^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys. */
|
|
52
53
|
export type Labels = { [key: string]: string | undefined };
|
|
53
|
-
export const Labels = /*@__PURE__*/ S.Record(S.String, S.String) as any as S.Schema<Labels>;
|
|
54
|
-
|
|
55
54
|
export interface CreateInstanceRequest {
|
|
56
55
|
/** portal project id */
|
|
57
56
|
projectId: string;
|
|
@@ -62,24 +61,6 @@ export interface CreateInstanceRequest {
|
|
|
62
61
|
labels?: Labels;
|
|
63
62
|
name: string;
|
|
64
63
|
}
|
|
65
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
66
|
-
S.Struct({
|
|
67
|
-
projectId: S.String.pipe(T.Label()),
|
|
68
|
-
regionId: CreateInstanceRequestRegionId.pipe(T.Label()),
|
|
69
|
-
deletedExperimentRetention: S.optional(S.String),
|
|
70
|
-
description: S.optional(S.String),
|
|
71
|
-
labels: S.optional(Labels),
|
|
72
|
-
name: S.String,
|
|
73
|
-
}).pipe(
|
|
74
|
-
T.Http({
|
|
75
|
-
method: "POST",
|
|
76
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
|
|
77
|
-
code: 200,
|
|
78
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
79
|
-
}),
|
|
80
|
-
),
|
|
81
|
-
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
82
|
-
|
|
83
64
|
export type InstanceState =
|
|
84
65
|
| "pending"
|
|
85
66
|
| "creating"
|
|
@@ -88,8 +69,6 @@ export type InstanceState =
|
|
|
88
69
|
| "deleting"
|
|
89
70
|
| "impaired"
|
|
90
71
|
| "reconciling";
|
|
91
|
-
export const InstanceState = S.String;
|
|
92
|
-
|
|
93
72
|
export interface Instance {
|
|
94
73
|
bucketName?: string;
|
|
95
74
|
deletedExperimentRetention?: string;
|
|
@@ -102,35 +81,11 @@ export interface Instance {
|
|
|
102
81
|
state: InstanceState;
|
|
103
82
|
url: string;
|
|
104
83
|
}
|
|
105
|
-
export const Instance = /*@__PURE__*/ S.suspend(() =>
|
|
106
|
-
S.Struct({
|
|
107
|
-
bucketName: S.optional(S.String),
|
|
108
|
-
deletedExperimentRetention: S.optional(S.String),
|
|
109
|
-
description: S.optional(S.String),
|
|
110
|
-
errorMessage: S.optional(S.String),
|
|
111
|
-
id: S.String,
|
|
112
|
-
labels: S.optional(Labels),
|
|
113
|
-
name: S.String,
|
|
114
|
-
region: S.optional(S.String),
|
|
115
|
-
state: InstanceState,
|
|
116
|
-
url: S.String,
|
|
117
|
-
}),
|
|
118
|
-
).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
|
|
119
|
-
|
|
120
84
|
export interface CreateInstanceResponse {
|
|
121
85
|
instance: Instance;
|
|
122
86
|
message?: string;
|
|
123
87
|
}
|
|
124
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
125
|
-
S.Struct({
|
|
126
|
-
instance: Instance,
|
|
127
|
-
message: S.optional(S.String),
|
|
128
|
-
}),
|
|
129
|
-
).annotate({ identifier: "CreateInstanceResponse" }) as any as S.Schema<CreateInstanceResponse>;
|
|
130
|
-
|
|
131
88
|
export type CreateInstanceTokenRequestRegionId = "eu01";
|
|
132
|
-
export const CreateInstanceTokenRequestRegionId = S.String;
|
|
133
|
-
|
|
134
89
|
export interface CreateInstanceTokenRequest {
|
|
135
90
|
/** portal project id */
|
|
136
91
|
projectId: string;
|
|
@@ -144,31 +99,8 @@ export interface CreateInstanceTokenRequest {
|
|
|
144
99
|
/** time to live duration. Must be valid duration string. Maximum allowed duration is 6 months. If not set, defaults to 6 months. */
|
|
145
100
|
ttlDuration?: string;
|
|
146
101
|
}
|
|
147
|
-
export const CreateInstanceTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
148
|
-
S.Struct({
|
|
149
|
-
projectId: S.String.pipe(T.Label()),
|
|
150
|
-
regionId: CreateInstanceTokenRequestRegionId.pipe(T.Label()),
|
|
151
|
-
instanceId: S.String.pipe(T.Label()),
|
|
152
|
-
description: S.optional(S.String),
|
|
153
|
-
labels: S.optional(Labels),
|
|
154
|
-
name: S.String,
|
|
155
|
-
ttlDuration: S.optional(S.String),
|
|
156
|
-
}).pipe(
|
|
157
|
-
T.Http({
|
|
158
|
-
method: "POST",
|
|
159
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",
|
|
160
|
-
code: 200,
|
|
161
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
162
|
-
}),
|
|
163
|
-
),
|
|
164
|
-
).annotate({
|
|
165
|
-
identifier: "CreateInstanceTokenRequest",
|
|
166
|
-
}) as any as S.Schema<CreateInstanceTokenRequest>;
|
|
167
|
-
|
|
168
102
|
/** The lifecycle state of the token. */
|
|
169
103
|
export type TokenState = "creating" | "active" | "deleting" | "inactive";
|
|
170
|
-
export const TokenState = S.String;
|
|
171
|
-
|
|
172
104
|
export interface Token {
|
|
173
105
|
content: string;
|
|
174
106
|
description?: string;
|
|
@@ -179,35 +111,11 @@ export interface Token {
|
|
|
179
111
|
state: TokenState;
|
|
180
112
|
validUntil: string;
|
|
181
113
|
}
|
|
182
|
-
export const Token = /*@__PURE__*/ S.suspend(() =>
|
|
183
|
-
S.Struct({
|
|
184
|
-
content: S.String,
|
|
185
|
-
description: S.optional(S.String),
|
|
186
|
-
id: S.String,
|
|
187
|
-
labels: S.optional(Labels),
|
|
188
|
-
name: S.String,
|
|
189
|
-
region: S.String,
|
|
190
|
-
state: TokenState,
|
|
191
|
-
validUntil: S.String,
|
|
192
|
-
}),
|
|
193
|
-
).annotate({ identifier: "Token" }) as any as S.Schema<Token>;
|
|
194
|
-
|
|
195
114
|
export interface CreateInstanceTokenResponse {
|
|
196
115
|
message?: string;
|
|
197
116
|
token: Token;
|
|
198
117
|
}
|
|
199
|
-
export const CreateInstanceTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
200
|
-
S.Struct({
|
|
201
|
-
message: S.optional(S.String),
|
|
202
|
-
token: Token,
|
|
203
|
-
}),
|
|
204
|
-
).annotate({
|
|
205
|
-
identifier: "CreateInstanceTokenResponse",
|
|
206
|
-
}) as any as S.Schema<CreateInstanceTokenResponse>;
|
|
207
|
-
|
|
208
118
|
export type DeleteInstanceRequestRegionId = "eu01";
|
|
209
|
-
export const DeleteInstanceRequestRegionId = S.String;
|
|
210
|
-
|
|
211
119
|
export interface DeleteInstanceRequest {
|
|
212
120
|
/** portal project id */
|
|
213
121
|
projectId: string;
|
|
@@ -216,35 +124,11 @@ export interface DeleteInstanceRequest {
|
|
|
216
124
|
/** instance id */
|
|
217
125
|
instanceId: string;
|
|
218
126
|
}
|
|
219
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
220
|
-
S.Struct({
|
|
221
|
-
projectId: S.String.pipe(T.Label()),
|
|
222
|
-
regionId: DeleteInstanceRequestRegionId.pipe(T.Label()),
|
|
223
|
-
instanceId: S.String.pipe(T.Label()),
|
|
224
|
-
}).pipe(
|
|
225
|
-
T.Http({
|
|
226
|
-
method: "DELETE",
|
|
227
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
228
|
-
code: 200,
|
|
229
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
230
|
-
}),
|
|
231
|
-
),
|
|
232
|
-
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
233
|
-
|
|
234
127
|
export interface DeleteInstanceResponse {
|
|
235
128
|
instance: Instance;
|
|
236
129
|
message?: string;
|
|
237
130
|
}
|
|
238
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
239
|
-
S.Struct({
|
|
240
|
-
instance: Instance,
|
|
241
|
-
message: S.optional(S.String),
|
|
242
|
-
}),
|
|
243
|
-
).annotate({ identifier: "DeleteInstanceResponse" }) as any as S.Schema<DeleteInstanceResponse>;
|
|
244
|
-
|
|
245
131
|
export type DeleteInstanceTokenRequestRegionId = "eu01";
|
|
246
|
-
export const DeleteInstanceTokenRequestRegionId = S.String;
|
|
247
|
-
|
|
248
132
|
export interface DeleteInstanceTokenRequest {
|
|
249
133
|
/** portal project id */
|
|
250
134
|
projectId: string;
|
|
@@ -255,24 +139,6 @@ export interface DeleteInstanceTokenRequest {
|
|
|
255
139
|
/** token id */
|
|
256
140
|
tokenId: string;
|
|
257
141
|
}
|
|
258
|
-
export const DeleteInstanceTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
259
|
-
S.Struct({
|
|
260
|
-
projectId: S.String.pipe(T.Label()),
|
|
261
|
-
regionId: DeleteInstanceTokenRequestRegionId.pipe(T.Label()),
|
|
262
|
-
instanceId: S.String.pipe(T.Label()),
|
|
263
|
-
tokenId: S.String.pipe(T.Label()),
|
|
264
|
-
}).pipe(
|
|
265
|
-
T.Http({
|
|
266
|
-
method: "DELETE",
|
|
267
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
268
|
-
code: 200,
|
|
269
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
270
|
-
}),
|
|
271
|
-
),
|
|
272
|
-
).annotate({
|
|
273
|
-
identifier: "DeleteInstanceTokenRequest",
|
|
274
|
-
}) as any as S.Schema<DeleteInstanceTokenRequest>;
|
|
275
|
-
|
|
276
142
|
export interface TokenMetadata {
|
|
277
143
|
description?: string;
|
|
278
144
|
id: string;
|
|
@@ -282,34 +148,11 @@ export interface TokenMetadata {
|
|
|
282
148
|
state: TokenState;
|
|
283
149
|
validUntil: string;
|
|
284
150
|
}
|
|
285
|
-
export const TokenMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
286
|
-
S.Struct({
|
|
287
|
-
description: S.optional(S.String),
|
|
288
|
-
id: S.String,
|
|
289
|
-
labels: S.optional(Labels),
|
|
290
|
-
name: S.String,
|
|
291
|
-
region: S.String,
|
|
292
|
-
state: TokenState,
|
|
293
|
-
validUntil: S.String,
|
|
294
|
-
}),
|
|
295
|
-
).annotate({ identifier: "TokenMetadata" }) as any as S.Schema<TokenMetadata>;
|
|
296
|
-
|
|
297
151
|
export interface DeleteInstanceTokenResponse {
|
|
298
152
|
message?: string;
|
|
299
153
|
token: TokenMetadata;
|
|
300
154
|
}
|
|
301
|
-
export const DeleteInstanceTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
302
|
-
S.Struct({
|
|
303
|
-
message: S.optional(S.String),
|
|
304
|
-
token: TokenMetadata,
|
|
305
|
-
}),
|
|
306
|
-
).annotate({
|
|
307
|
-
identifier: "DeleteInstanceTokenResponse",
|
|
308
|
-
}) as any as S.Schema<DeleteInstanceTokenResponse>;
|
|
309
|
-
|
|
310
155
|
export type GetInstanceRequestRegionId = "eu01";
|
|
311
|
-
export const GetInstanceRequestRegionId = S.String;
|
|
312
|
-
|
|
313
156
|
export interface GetInstanceRequest {
|
|
314
157
|
/** portal project id */
|
|
315
158
|
projectId: string;
|
|
@@ -318,35 +161,11 @@ export interface GetInstanceRequest {
|
|
|
318
161
|
/** instance id */
|
|
319
162
|
instanceId: string;
|
|
320
163
|
}
|
|
321
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
322
|
-
S.Struct({
|
|
323
|
-
projectId: S.String.pipe(T.Label()),
|
|
324
|
-
regionId: GetInstanceRequestRegionId.pipe(T.Label()),
|
|
325
|
-
instanceId: S.String.pipe(T.Label()),
|
|
326
|
-
}).pipe(
|
|
327
|
-
T.Http({
|
|
328
|
-
method: "GET",
|
|
329
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
330
|
-
code: 200,
|
|
331
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
332
|
-
}),
|
|
333
|
-
),
|
|
334
|
-
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
335
|
-
|
|
336
164
|
export interface GetInstanceResponse {
|
|
337
165
|
instance: Instance;
|
|
338
166
|
message?: string;
|
|
339
167
|
}
|
|
340
|
-
export const GetInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
341
|
-
S.Struct({
|
|
342
|
-
instance: Instance,
|
|
343
|
-
message: S.optional(S.String),
|
|
344
|
-
}),
|
|
345
|
-
).annotate({ identifier: "GetInstanceResponse" }) as any as S.Schema<GetInstanceResponse>;
|
|
346
|
-
|
|
347
168
|
export type GetInstanceTokenRequestRegionId = "eu01";
|
|
348
|
-
export const GetInstanceTokenRequestRegionId = S.String;
|
|
349
|
-
|
|
350
169
|
export interface GetInstanceTokenRequest {
|
|
351
170
|
/** portal project id */
|
|
352
171
|
projectId: string;
|
|
@@ -357,75 +176,23 @@ export interface GetInstanceTokenRequest {
|
|
|
357
176
|
/** token id */
|
|
358
177
|
tokenId: string;
|
|
359
178
|
}
|
|
360
|
-
export const GetInstanceTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
361
|
-
S.Struct({
|
|
362
|
-
projectId: S.String.pipe(T.Label()),
|
|
363
|
-
regionId: GetInstanceTokenRequestRegionId.pipe(T.Label()),
|
|
364
|
-
instanceId: S.String.pipe(T.Label()),
|
|
365
|
-
tokenId: S.String.pipe(T.Label()),
|
|
366
|
-
}).pipe(
|
|
367
|
-
T.Http({
|
|
368
|
-
method: "GET",
|
|
369
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
370
|
-
code: 200,
|
|
371
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
372
|
-
}),
|
|
373
|
-
),
|
|
374
|
-
).annotate({ identifier: "GetInstanceTokenRequest" }) as any as S.Schema<GetInstanceTokenRequest>;
|
|
375
|
-
|
|
376
179
|
export interface GetInstanceTokenResponse {
|
|
377
180
|
message?: string;
|
|
378
181
|
token: TokenMetadata;
|
|
379
182
|
}
|
|
380
|
-
export const GetInstanceTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
381
|
-
S.Struct({
|
|
382
|
-
message: S.optional(S.String),
|
|
383
|
-
token: TokenMetadata,
|
|
384
|
-
}),
|
|
385
|
-
).annotate({ identifier: "GetInstanceTokenResponse" }) as any as S.Schema<GetInstanceTokenResponse>;
|
|
386
|
-
|
|
387
183
|
export type ListInstancesRequestRegionId = "eu01";
|
|
388
|
-
export const ListInstancesRequestRegionId = S.String;
|
|
389
|
-
|
|
390
184
|
export interface ListInstancesRequest {
|
|
391
185
|
/** portal project id */
|
|
392
186
|
projectId: string;
|
|
393
187
|
/** region id */
|
|
394
188
|
regionId: ListInstancesRequestRegionId | (string & {});
|
|
395
189
|
}
|
|
396
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
397
|
-
S.Struct({
|
|
398
|
-
projectId: S.String.pipe(T.Label()),
|
|
399
|
-
regionId: ListInstancesRequestRegionId.pipe(T.Label()),
|
|
400
|
-
}).pipe(
|
|
401
|
-
T.Http({
|
|
402
|
-
method: "GET",
|
|
403
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
|
|
404
|
-
code: 200,
|
|
405
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
406
|
-
}),
|
|
407
|
-
),
|
|
408
|
-
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
409
|
-
|
|
410
190
|
export type ListInstancesResponseInstancesList = Array<Instance>;
|
|
411
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
412
|
-
Instance,
|
|
413
|
-
) as any as S.Schema<ListInstancesResponseInstancesList>;
|
|
414
|
-
|
|
415
191
|
export interface ListInstancesResponse {
|
|
416
192
|
instances: ListInstancesResponseInstancesList;
|
|
417
193
|
message?: string;
|
|
418
194
|
}
|
|
419
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
420
|
-
S.Struct({
|
|
421
|
-
instances: ListInstancesResponseInstancesList,
|
|
422
|
-
message: S.optional(S.String),
|
|
423
|
-
}),
|
|
424
|
-
).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
|
|
425
|
-
|
|
426
195
|
export type ListInstanceTokensRequestRegionId = "eu01";
|
|
427
|
-
export const ListInstanceTokensRequestRegionId = S.String;
|
|
428
|
-
|
|
429
196
|
export interface ListInstanceTokensRequest {
|
|
430
197
|
/** portal project id */
|
|
431
198
|
projectId: string;
|
|
@@ -434,51 +201,14 @@ export interface ListInstanceTokensRequest {
|
|
|
434
201
|
/** instance id */
|
|
435
202
|
instanceId: string;
|
|
436
203
|
}
|
|
437
|
-
export const ListInstanceTokensRequest = /*@__PURE__*/ S.suspend(() =>
|
|
438
|
-
S.Struct({
|
|
439
|
-
projectId: S.String.pipe(T.Label()),
|
|
440
|
-
regionId: ListInstanceTokensRequestRegionId.pipe(T.Label()),
|
|
441
|
-
instanceId: S.String.pipe(T.Label()),
|
|
442
|
-
}).pipe(
|
|
443
|
-
T.Http({
|
|
444
|
-
method: "GET",
|
|
445
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",
|
|
446
|
-
code: 200,
|
|
447
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
448
|
-
}),
|
|
449
|
-
),
|
|
450
|
-
).annotate({
|
|
451
|
-
identifier: "ListInstanceTokensRequest",
|
|
452
|
-
}) as any as S.Schema<ListInstanceTokensRequest>;
|
|
453
|
-
|
|
454
204
|
export type ListInstanceTokensResponseTokensList = Array<TokenMetadata>;
|
|
455
|
-
export const ListInstanceTokensResponseTokensList = /*@__PURE__*/ S.Array(
|
|
456
|
-
TokenMetadata,
|
|
457
|
-
) as any as S.Schema<ListInstanceTokensResponseTokensList>;
|
|
458
|
-
|
|
459
205
|
export interface ListInstanceTokensResponse {
|
|
460
206
|
message?: string;
|
|
461
207
|
tokens: ListInstanceTokensResponseTokensList;
|
|
462
208
|
}
|
|
463
|
-
export const ListInstanceTokensResponse = /*@__PURE__*/ S.suspend(() =>
|
|
464
|
-
S.Struct({
|
|
465
|
-
message: S.optional(S.String),
|
|
466
|
-
tokens: ListInstanceTokensResponseTokensList,
|
|
467
|
-
}),
|
|
468
|
-
).annotate({
|
|
469
|
-
identifier: "ListInstanceTokensResponse",
|
|
470
|
-
}) as any as S.Schema<ListInstanceTokensResponse>;
|
|
471
|
-
|
|
472
209
|
export type PartialUpdateInstanceRequestRegionId = "eu01";
|
|
473
|
-
export const PartialUpdateInstanceRequestRegionId = S.String;
|
|
474
|
-
|
|
475
210
|
/** Object that represents the labels of an object. Regex for keys: `^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys. */
|
|
476
211
|
export type LabelPatch = { [key: string]: string | null | undefined };
|
|
477
|
-
export const LabelPatch = /*@__PURE__*/ S.Record(
|
|
478
|
-
S.String,
|
|
479
|
-
S.NullOr(S.String),
|
|
480
|
-
) as any as S.Schema<LabelPatch>;
|
|
481
|
-
|
|
482
212
|
export interface PartialUpdateInstanceRequest {
|
|
483
213
|
/** portal project id */
|
|
484
214
|
projectId: string;
|
|
@@ -491,43 +221,11 @@ export interface PartialUpdateInstanceRequest {
|
|
|
491
221
|
labels?: LabelPatch;
|
|
492
222
|
name?: string;
|
|
493
223
|
}
|
|
494
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
495
|
-
S.Struct({
|
|
496
|
-
projectId: S.String.pipe(T.Label()),
|
|
497
|
-
regionId: PartialUpdateInstanceRequestRegionId.pipe(T.Label()),
|
|
498
|
-
instanceId: S.String.pipe(T.Label()),
|
|
499
|
-
deletedExperimentRetention: S.optional(S.String),
|
|
500
|
-
description: S.optional(S.String),
|
|
501
|
-
labels: S.optional(LabelPatch),
|
|
502
|
-
name: S.optional(S.String),
|
|
503
|
-
}).pipe(
|
|
504
|
-
T.Http({
|
|
505
|
-
method: "PATCH",
|
|
506
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
507
|
-
code: 200,
|
|
508
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
509
|
-
}),
|
|
510
|
-
),
|
|
511
|
-
).annotate({
|
|
512
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
513
|
-
}) as any as S.Schema<PartialUpdateInstanceRequest>;
|
|
514
|
-
|
|
515
224
|
export interface PartialUpdateInstanceResponse {
|
|
516
225
|
instance: Instance;
|
|
517
226
|
message?: string;
|
|
518
227
|
}
|
|
519
|
-
export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
520
|
-
S.Struct({
|
|
521
|
-
instance: Instance,
|
|
522
|
-
message: S.optional(S.String),
|
|
523
|
-
}),
|
|
524
|
-
).annotate({
|
|
525
|
-
identifier: "PartialUpdateInstanceResponse",
|
|
526
|
-
}) as any as S.Schema<PartialUpdateInstanceResponse>;
|
|
527
|
-
|
|
528
228
|
export type PartialUpdateInstanceTokenRequestRegionId = "eu01";
|
|
529
|
-
export const PartialUpdateInstanceTokenRequestRegionId = S.String;
|
|
530
|
-
|
|
531
229
|
export interface PartialUpdateInstanceTokenRequest {
|
|
532
230
|
/** portal project id */
|
|
533
231
|
projectId: string;
|
|
@@ -541,40 +239,10 @@ export interface PartialUpdateInstanceTokenRequest {
|
|
|
541
239
|
labels?: LabelPatch;
|
|
542
240
|
name?: string;
|
|
543
241
|
}
|
|
544
|
-
export const PartialUpdateInstanceTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
545
|
-
S.Struct({
|
|
546
|
-
projectId: S.String.pipe(T.Label()),
|
|
547
|
-
regionId: PartialUpdateInstanceTokenRequestRegionId.pipe(T.Label()),
|
|
548
|
-
instanceId: S.String.pipe(T.Label()),
|
|
549
|
-
tokenId: S.String.pipe(T.Label()),
|
|
550
|
-
description: S.optional(S.String),
|
|
551
|
-
labels: S.optional(LabelPatch),
|
|
552
|
-
name: S.optional(S.String),
|
|
553
|
-
}).pipe(
|
|
554
|
-
T.Http({
|
|
555
|
-
method: "PATCH",
|
|
556
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
557
|
-
code: 200,
|
|
558
|
-
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
559
|
-
}),
|
|
560
|
-
),
|
|
561
|
-
).annotate({
|
|
562
|
-
identifier: "PartialUpdateInstanceTokenRequest",
|
|
563
|
-
}) as any as S.Schema<PartialUpdateInstanceTokenRequest>;
|
|
564
|
-
|
|
565
242
|
export interface PartialUpdateInstanceTokenResponse {
|
|
566
243
|
message?: string;
|
|
567
244
|
token: TokenMetadata;
|
|
568
245
|
}
|
|
569
|
-
export const PartialUpdateInstanceTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
570
|
-
S.Struct({
|
|
571
|
-
message: S.optional(S.String),
|
|
572
|
-
token: TokenMetadata,
|
|
573
|
-
}),
|
|
574
|
-
).annotate({
|
|
575
|
-
identifier: "PartialUpdateInstanceTokenResponse",
|
|
576
|
-
}) as any as S.Schema<PartialUpdateInstanceTokenResponse>;
|
|
577
|
-
|
|
578
246
|
export type CreateInstanceError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
579
247
|
/** create an instance in a project create an instance in a project */
|
|
580
248
|
export const createInstance: API.OperationMethod<
|
|
@@ -583,8 +251,8 @@ export const createInstance: API.OperationMethod<
|
|
|
583
251
|
CreateInstanceError,
|
|
584
252
|
StackitOpContext
|
|
585
253
|
> = /*@__PURE__*/ API.make(() => ({
|
|
586
|
-
input: CreateInstanceRequest
|
|
587
|
-
output: CreateInstanceResponse
|
|
254
|
+
input: __S(20, __c5, 0) as any as S.Schema<CreateInstanceRequest>,
|
|
255
|
+
output: __S(32, __c8, 0) as any as S.Schema<CreateInstanceResponse>,
|
|
588
256
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
589
257
|
protocol: StackitProtocol,
|
|
590
258
|
retry: Retry.Retry,
|
|
@@ -598,8 +266,8 @@ export const createInstanceToken: API.OperationMethod<
|
|
|
598
266
|
CreateInstanceTokenError,
|
|
599
267
|
StackitOpContext
|
|
600
268
|
> = /*@__PURE__*/ API.make(() => ({
|
|
601
|
-
input: CreateInstanceTokenRequest
|
|
602
|
-
output: CreateInstanceTokenResponse
|
|
269
|
+
input: __S(36, __c9, 0) as any as S.Schema<CreateInstanceTokenRequest>,
|
|
270
|
+
output: __S(38, __c9, 2) as any as S.Schema<CreateInstanceTokenResponse>,
|
|
603
271
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
604
272
|
protocol: StackitProtocol,
|
|
605
273
|
retry: Retry.Retry,
|
|
@@ -613,8 +281,8 @@ export const deleteInstance: API.OperationMethod<
|
|
|
613
281
|
DeleteInstanceError,
|
|
614
282
|
StackitOpContext
|
|
615
283
|
> = /*@__PURE__*/ API.make(() => ({
|
|
616
|
-
input: DeleteInstanceRequest
|
|
617
|
-
output: DeleteInstanceResponse
|
|
284
|
+
input: __S(40, __c10, 0) as any as S.Schema<DeleteInstanceRequest>,
|
|
285
|
+
output: __S(32, __c8, 0) as any as S.Schema<DeleteInstanceResponse>,
|
|
618
286
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
619
287
|
protocol: StackitProtocol,
|
|
620
288
|
retry: Retry.Retry,
|
|
@@ -633,8 +301,8 @@ export const deleteInstanceToken: API.OperationMethod<
|
|
|
633
301
|
DeleteInstanceTokenError,
|
|
634
302
|
StackitOpContext
|
|
635
303
|
> = /*@__PURE__*/ API.make(() => ({
|
|
636
|
-
input: DeleteInstanceTokenRequest
|
|
637
|
-
output: DeleteInstanceTokenResponse
|
|
304
|
+
input: __S(44, __c11, 0) as any as S.Schema<DeleteInstanceTokenRequest>,
|
|
305
|
+
output: __S(52, __c13, 0) as any as S.Schema<DeleteInstanceTokenResponse>,
|
|
638
306
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
639
307
|
protocol: StackitProtocol,
|
|
640
308
|
retry: Retry.Retry,
|
|
@@ -648,8 +316,8 @@ export const getInstance: API.OperationMethod<
|
|
|
648
316
|
GetInstanceError,
|
|
649
317
|
StackitOpContext
|
|
650
318
|
> = /*@__PURE__*/ API.make(() => ({
|
|
651
|
-
input: GetInstanceRequest
|
|
652
|
-
output: GetInstanceResponse
|
|
319
|
+
input: __S(56, __c14, 0) as any as S.Schema<GetInstanceRequest>,
|
|
320
|
+
output: __S(32, __c8, 0) as any as S.Schema<GetInstanceResponse>,
|
|
653
321
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
654
322
|
protocol: StackitProtocol,
|
|
655
323
|
retry: Retry.Retry,
|
|
@@ -663,8 +331,8 @@ export const getInstanceToken: API.OperationMethod<
|
|
|
663
331
|
GetInstanceTokenError,
|
|
664
332
|
StackitOpContext
|
|
665
333
|
> = /*@__PURE__*/ API.make(() => ({
|
|
666
|
-
input: GetInstanceTokenRequest
|
|
667
|
-
output: GetInstanceTokenResponse
|
|
334
|
+
input: __S(60, __c15, 0) as any as S.Schema<GetInstanceTokenRequest>,
|
|
335
|
+
output: __S(52, __c13, 0) as any as S.Schema<GetInstanceTokenResponse>,
|
|
668
336
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
669
337
|
protocol: StackitProtocol,
|
|
670
338
|
retry: Retry.Retry,
|
|
@@ -678,8 +346,8 @@ export const listInstances: API.OperationMethod<
|
|
|
678
346
|
ListInstancesError,
|
|
679
347
|
StackitOpContext
|
|
680
348
|
> = /*@__PURE__*/ API.make(() => ({
|
|
681
|
-
input: ListInstancesRequest
|
|
682
|
-
output: ListInstancesResponse
|
|
349
|
+
input: __S(0, __c0, 0) as any as S.Schema<ListInstancesRequest>,
|
|
350
|
+
output: __S(2, __c0, 2) as any as S.Schema<ListInstancesResponse>,
|
|
683
351
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
684
352
|
protocol: StackitProtocol,
|
|
685
353
|
retry: Retry.Retry,
|
|
@@ -693,8 +361,8 @@ export const listInstanceTokens: API.OperationMethod<
|
|
|
693
361
|
ListInstanceTokensError,
|
|
694
362
|
StackitOpContext
|
|
695
363
|
> = /*@__PURE__*/ API.make(() => ({
|
|
696
|
-
input: ListInstanceTokensRequest
|
|
697
|
-
output: ListInstanceTokensResponse
|
|
364
|
+
input: __S(4, __c1, 0) as any as S.Schema<ListInstanceTokensRequest>,
|
|
365
|
+
output: __S(6, __c1, 2) as any as S.Schema<ListInstanceTokensResponse>,
|
|
698
366
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
699
367
|
protocol: StackitProtocol,
|
|
700
368
|
retry: Retry.Retry,
|
|
@@ -713,8 +381,8 @@ export const partialUpdateInstance: API.OperationMethod<
|
|
|
713
381
|
PartialUpdateInstanceError,
|
|
714
382
|
StackitOpContext
|
|
715
383
|
> = /*@__PURE__*/ API.make(() => ({
|
|
716
|
-
input: PartialUpdateInstanceRequest
|
|
717
|
-
output: PartialUpdateInstanceResponse
|
|
384
|
+
input: __S(8, __c2, 0) as any as S.Schema<PartialUpdateInstanceRequest>,
|
|
385
|
+
output: __S(32, __c8, 0) as any as S.Schema<PartialUpdateInstanceResponse>,
|
|
718
386
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
719
387
|
protocol: StackitProtocol,
|
|
720
388
|
retry: Retry.Retry,
|
|
@@ -733,9 +401,328 @@ export const partialUpdateInstanceToken: API.OperationMethod<
|
|
|
733
401
|
PartialUpdateInstanceTokenError,
|
|
734
402
|
StackitOpContext
|
|
735
403
|
> = /*@__PURE__*/ API.make(() => ({
|
|
736
|
-
input: PartialUpdateInstanceTokenRequest
|
|
737
|
-
output: PartialUpdateInstanceTokenResponse
|
|
404
|
+
input: __S(16, __c4, 0) as any as S.Schema<PartialUpdateInstanceTokenRequest>,
|
|
405
|
+
output: __S(52, __c13, 0) as any as S.Schema<PartialUpdateInstanceTokenResponse>,
|
|
738
406
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
739
407
|
protocol: StackitProtocol,
|
|
740
408
|
retry: Retry.Retry,
|
|
741
409
|
}));
|
|
410
|
+
|
|
411
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
412
|
+
function __c0(j: number): any {
|
|
413
|
+
switch (j) {
|
|
414
|
+
case 0:
|
|
415
|
+
return S.suspend(() =>
|
|
416
|
+
S.Struct({
|
|
417
|
+
projectId: S.String.pipe(T.Label()),
|
|
418
|
+
regionId: S.String.pipe(T.Label()),
|
|
419
|
+
}).pipe(
|
|
420
|
+
T.Http({
|
|
421
|
+
method: "GET",
|
|
422
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
|
|
423
|
+
code: 200,
|
|
424
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
425
|
+
}),
|
|
426
|
+
),
|
|
427
|
+
).annotate({ identifier: "ListInstancesRequest" });
|
|
428
|
+
case 1:
|
|
429
|
+
return S.Array(__S(28, __c7, 0));
|
|
430
|
+
case 2:
|
|
431
|
+
return S.suspend(() =>
|
|
432
|
+
S.Struct({
|
|
433
|
+
instances: __S(1, __c0, 1),
|
|
434
|
+
message: S.optional(S.String),
|
|
435
|
+
}),
|
|
436
|
+
).annotate({ identifier: "ListInstancesResponse" });
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
function __c1(j: number): any {
|
|
440
|
+
switch (j) {
|
|
441
|
+
case 0:
|
|
442
|
+
return S.suspend(() =>
|
|
443
|
+
S.Struct({
|
|
444
|
+
projectId: S.String.pipe(T.Label()),
|
|
445
|
+
regionId: S.String.pipe(T.Label()),
|
|
446
|
+
instanceId: S.String.pipe(T.Label()),
|
|
447
|
+
}).pipe(
|
|
448
|
+
T.Http({
|
|
449
|
+
method: "GET",
|
|
450
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",
|
|
451
|
+
code: 200,
|
|
452
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
453
|
+
}),
|
|
454
|
+
),
|
|
455
|
+
).annotate({ identifier: "ListInstanceTokensRequest" });
|
|
456
|
+
case 1:
|
|
457
|
+
return S.Array(__S(48, __c12, 0));
|
|
458
|
+
case 2:
|
|
459
|
+
return S.suspend(() =>
|
|
460
|
+
S.Struct({
|
|
461
|
+
message: S.optional(S.String),
|
|
462
|
+
tokens: __S(5, __c1, 1),
|
|
463
|
+
}),
|
|
464
|
+
).annotate({ identifier: "ListInstanceTokensResponse" });
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
function __c2(j: number): any {
|
|
468
|
+
switch (j) {
|
|
469
|
+
case 0:
|
|
470
|
+
return S.suspend(() =>
|
|
471
|
+
S.Struct({
|
|
472
|
+
projectId: S.String.pipe(T.Label()),
|
|
473
|
+
regionId: S.String.pipe(T.Label()),
|
|
474
|
+
instanceId: S.String.pipe(T.Label()),
|
|
475
|
+
deletedExperimentRetention: S.optional(S.String),
|
|
476
|
+
description: S.optional(S.String),
|
|
477
|
+
labels: S.optional(__S(12, __c3, 0)),
|
|
478
|
+
name: S.optional(S.String),
|
|
479
|
+
}).pipe(
|
|
480
|
+
T.Http({
|
|
481
|
+
method: "PATCH",
|
|
482
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
483
|
+
code: 200,
|
|
484
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
485
|
+
}),
|
|
486
|
+
),
|
|
487
|
+
).annotate({ identifier: "PartialUpdateInstanceRequest" });
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function __c3(j: number): any {
|
|
491
|
+
switch (j) {
|
|
492
|
+
case 0:
|
|
493
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.String));
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
function __c4(j: number): any {
|
|
497
|
+
switch (j) {
|
|
498
|
+
case 0:
|
|
499
|
+
return S.suspend(() =>
|
|
500
|
+
S.Struct({
|
|
501
|
+
projectId: S.String.pipe(T.Label()),
|
|
502
|
+
regionId: S.String.pipe(T.Label()),
|
|
503
|
+
instanceId: S.String.pipe(T.Label()),
|
|
504
|
+
tokenId: S.String.pipe(T.Label()),
|
|
505
|
+
description: S.optional(S.String),
|
|
506
|
+
labels: S.optional(__S(12, __c3, 0)),
|
|
507
|
+
name: S.optional(S.String),
|
|
508
|
+
}).pipe(
|
|
509
|
+
T.Http({
|
|
510
|
+
method: "PATCH",
|
|
511
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
512
|
+
code: 200,
|
|
513
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
514
|
+
}),
|
|
515
|
+
),
|
|
516
|
+
).annotate({ identifier: "PartialUpdateInstanceTokenRequest" });
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
function __c5(j: number): any {
|
|
520
|
+
switch (j) {
|
|
521
|
+
case 0:
|
|
522
|
+
return S.suspend(() =>
|
|
523
|
+
S.Struct({
|
|
524
|
+
projectId: S.String.pipe(T.Label()),
|
|
525
|
+
regionId: S.String.pipe(T.Label()),
|
|
526
|
+
deletedExperimentRetention: S.optional(S.String),
|
|
527
|
+
description: S.optional(S.String),
|
|
528
|
+
labels: S.optional(__S(24, __c6, 0)),
|
|
529
|
+
name: S.String,
|
|
530
|
+
}).pipe(
|
|
531
|
+
T.Http({
|
|
532
|
+
method: "POST",
|
|
533
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
|
|
534
|
+
code: 200,
|
|
535
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
536
|
+
}),
|
|
537
|
+
),
|
|
538
|
+
).annotate({ identifier: "CreateInstanceRequest" });
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
function __c6(j: number): any {
|
|
542
|
+
switch (j) {
|
|
543
|
+
case 0:
|
|
544
|
+
return S.Record(S.String, S.String);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function __c7(j: number): any {
|
|
548
|
+
switch (j) {
|
|
549
|
+
case 0:
|
|
550
|
+
return S.suspend(() =>
|
|
551
|
+
S.Struct({
|
|
552
|
+
bucketName: S.optional(S.String),
|
|
553
|
+
deletedExperimentRetention: S.optional(S.String),
|
|
554
|
+
description: S.optional(S.String),
|
|
555
|
+
errorMessage: S.optional(S.String),
|
|
556
|
+
id: S.String,
|
|
557
|
+
labels: S.optional(__S(24, __c6, 0)),
|
|
558
|
+
name: S.String,
|
|
559
|
+
region: S.optional(S.String),
|
|
560
|
+
state: S.String,
|
|
561
|
+
url: S.String,
|
|
562
|
+
}),
|
|
563
|
+
).annotate({ identifier: "Instance" });
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function __c8(j: number): any {
|
|
567
|
+
switch (j) {
|
|
568
|
+
case 0:
|
|
569
|
+
return S.suspend(() =>
|
|
570
|
+
S.Struct({
|
|
571
|
+
instance: __S(28, __c7, 0),
|
|
572
|
+
message: S.optional(S.String),
|
|
573
|
+
}),
|
|
574
|
+
).annotate({ identifier: "CreateInstanceResponse" });
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
function __c9(j: number): any {
|
|
578
|
+
switch (j) {
|
|
579
|
+
case 0:
|
|
580
|
+
return S.suspend(() =>
|
|
581
|
+
S.Struct({
|
|
582
|
+
projectId: S.String.pipe(T.Label()),
|
|
583
|
+
regionId: S.String.pipe(T.Label()),
|
|
584
|
+
instanceId: S.String.pipe(T.Label()),
|
|
585
|
+
description: S.optional(S.String),
|
|
586
|
+
labels: S.optional(__S(24, __c6, 0)),
|
|
587
|
+
name: S.String,
|
|
588
|
+
ttlDuration: S.optional(S.String),
|
|
589
|
+
}).pipe(
|
|
590
|
+
T.Http({
|
|
591
|
+
method: "POST",
|
|
592
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens",
|
|
593
|
+
code: 200,
|
|
594
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
595
|
+
}),
|
|
596
|
+
),
|
|
597
|
+
).annotate({ identifier: "CreateInstanceTokenRequest" });
|
|
598
|
+
case 1:
|
|
599
|
+
return S.suspend(() =>
|
|
600
|
+
S.Struct({
|
|
601
|
+
content: S.String,
|
|
602
|
+
description: S.optional(S.String),
|
|
603
|
+
id: S.String,
|
|
604
|
+
labels: S.optional(__S(24, __c6, 0)),
|
|
605
|
+
name: S.String,
|
|
606
|
+
region: S.String,
|
|
607
|
+
state: S.String,
|
|
608
|
+
validUntil: S.String,
|
|
609
|
+
}),
|
|
610
|
+
).annotate({ identifier: "Token" });
|
|
611
|
+
case 2:
|
|
612
|
+
return S.suspend(() =>
|
|
613
|
+
S.Struct({
|
|
614
|
+
message: S.optional(S.String),
|
|
615
|
+
token: __S(37, __c9, 1),
|
|
616
|
+
}),
|
|
617
|
+
).annotate({ identifier: "CreateInstanceTokenResponse" });
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
function __c10(j: number): any {
|
|
621
|
+
switch (j) {
|
|
622
|
+
case 0:
|
|
623
|
+
return S.suspend(() =>
|
|
624
|
+
S.Struct({
|
|
625
|
+
projectId: S.String.pipe(T.Label()),
|
|
626
|
+
regionId: S.String.pipe(T.Label()),
|
|
627
|
+
instanceId: S.String.pipe(T.Label()),
|
|
628
|
+
}).pipe(
|
|
629
|
+
T.Http({
|
|
630
|
+
method: "DELETE",
|
|
631
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
632
|
+
code: 200,
|
|
633
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
634
|
+
}),
|
|
635
|
+
),
|
|
636
|
+
).annotate({ identifier: "DeleteInstanceRequest" });
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
function __c11(j: number): any {
|
|
640
|
+
switch (j) {
|
|
641
|
+
case 0:
|
|
642
|
+
return S.suspend(() =>
|
|
643
|
+
S.Struct({
|
|
644
|
+
projectId: S.String.pipe(T.Label()),
|
|
645
|
+
regionId: S.String.pipe(T.Label()),
|
|
646
|
+
instanceId: S.String.pipe(T.Label()),
|
|
647
|
+
tokenId: S.String.pipe(T.Label()),
|
|
648
|
+
}).pipe(
|
|
649
|
+
T.Http({
|
|
650
|
+
method: "DELETE",
|
|
651
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
652
|
+
code: 200,
|
|
653
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
654
|
+
}),
|
|
655
|
+
),
|
|
656
|
+
).annotate({ identifier: "DeleteInstanceTokenRequest" });
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
function __c12(j: number): any {
|
|
660
|
+
switch (j) {
|
|
661
|
+
case 0:
|
|
662
|
+
return S.suspend(() =>
|
|
663
|
+
S.Struct({
|
|
664
|
+
description: S.optional(S.String),
|
|
665
|
+
id: S.String,
|
|
666
|
+
labels: S.optional(__S(24, __c6, 0)),
|
|
667
|
+
name: S.String,
|
|
668
|
+
region: S.String,
|
|
669
|
+
state: S.String,
|
|
670
|
+
validUntil: S.String,
|
|
671
|
+
}),
|
|
672
|
+
).annotate({ identifier: "TokenMetadata" });
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
function __c13(j: number): any {
|
|
676
|
+
switch (j) {
|
|
677
|
+
case 0:
|
|
678
|
+
return S.suspend(() =>
|
|
679
|
+
S.Struct({
|
|
680
|
+
message: S.optional(S.String),
|
|
681
|
+
token: __S(48, __c12, 0),
|
|
682
|
+
}),
|
|
683
|
+
).annotate({ identifier: "DeleteInstanceTokenResponse" });
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
function __c14(j: number): any {
|
|
687
|
+
switch (j) {
|
|
688
|
+
case 0:
|
|
689
|
+
return S.suspend(() =>
|
|
690
|
+
S.Struct({
|
|
691
|
+
projectId: S.String.pipe(T.Label()),
|
|
692
|
+
regionId: S.String.pipe(T.Label()),
|
|
693
|
+
instanceId: S.String.pipe(T.Label()),
|
|
694
|
+
}).pipe(
|
|
695
|
+
T.Http({
|
|
696
|
+
method: "GET",
|
|
697
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
698
|
+
code: 200,
|
|
699
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
700
|
+
}),
|
|
701
|
+
),
|
|
702
|
+
).annotate({ identifier: "GetInstanceRequest" });
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
function __c15(j: number): any {
|
|
706
|
+
switch (j) {
|
|
707
|
+
case 0:
|
|
708
|
+
return S.suspend(() =>
|
|
709
|
+
S.Struct({
|
|
710
|
+
projectId: S.String.pipe(T.Label()),
|
|
711
|
+
regionId: S.String.pipe(T.Label()),
|
|
712
|
+
instanceId: S.String.pipe(T.Label()),
|
|
713
|
+
tokenId: S.String.pipe(T.Label()),
|
|
714
|
+
}).pipe(
|
|
715
|
+
T.Http({
|
|
716
|
+
method: "GET",
|
|
717
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/tokens/{tokenId}",
|
|
718
|
+
code: 200,
|
|
719
|
+
baseUrl: "https://model-experiments.api.stackit.cloud",
|
|
720
|
+
}),
|
|
721
|
+
),
|
|
722
|
+
).annotate({ identifier: "GetInstanceTokenRequest" });
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
726
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
727
|
+
return (__s[i] ??= __L.at(f, j));
|
|
728
|
+
}
|