@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14
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/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +45 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +147 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +513 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +521 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +323 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +321 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +363 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +906 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +179 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +177 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +842 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +726 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +317 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +357 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +399 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +520 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2986 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3543 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +475 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +663 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +160 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +154 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +497 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +574 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +475 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +551 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +336 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +287 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +803 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +470 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +540 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3158 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +563 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +736 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +853 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +519 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +574 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +198 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +473 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +185 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +553 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +445 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +670 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +613 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +454 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +352 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +506 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +157 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +790 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +562 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +558 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +936 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +379 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +532 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +484 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +279 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +567 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +931 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +508 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +85 -3
- package/src/credentials.ts +84 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +57 -0
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +225 -0
- package/src/retry.ts +47 -0
- package/src/services/alb.ts +1326 -0
- package/src/services/alb_waf.ts +1288 -0
- package/src/services/authorization.ts +704 -0
- package/src/services/automation.ts +796 -0
- package/src/services/cdn.ts +2576 -0
- package/src/services/certificates.ts +418 -0
- package/src/services/cost.ts +449 -0
- package/src/services/dns.ts +1936 -0
- package/src/services/dremio.ts +753 -0
- package/src/services/edge.ts +780 -0
- package/src/services/functions.ts +957 -0
- package/src/services/git.ts +1194 -0
- package/src/services/iaas.ts +7878 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1166 -0
- package/src/services/kms.ts +1537 -0
- package/src/services/lb_ip_lists.ts +342 -0
- package/src/services/load_balancer.ts +1266 -0
- package/src/services/logme.ts +1284 -0
- package/src/services/logs.ts +1049 -0
- package/src/services/mariadb.ts +1212 -0
- package/src/services/model_experiments.ts +741 -0
- package/src/services/model_serving.ts +654 -0
- package/src/services/mongodb_flex.ts +1932 -0
- package/src/services/object_storage.ts +1195 -0
- package/src/services/observability.ts +7364 -0
- package/src/services/opensearch.ts +1265 -0
- package/src/services/pim.ts +1985 -0
- package/src/services/postgres_flex.ts +2080 -0
- package/src/services/pubsub.ts +1193 -0
- package/src/services/rabbitmq.ts +1310 -0
- package/src/services/registry.ts +446 -0
- package/src/services/resource_manager.ts +1072 -0
- package/src/services/run_command.ts +413 -0
- package/src/services/sca.ts +1187 -0
- package/src/services/scf.ts +1396 -0
- package/src/services/secrets_manager.ts +1317 -0
- package/src/services/server_backup.ts +983 -0
- package/src/services/server_update.ts +738 -0
- package/src/services/service_account.ts +1121 -0
- package/src/services/service_enablement.ts +330 -0
- package/src/services/sfs.ts +1831 -0
- package/src/services/ske.ts +1386 -0
- package/src/services/sqlserverflex.ts +2307 -0
- package/src/services/stackit_marketplace.ts +787 -0
- package/src/services/telemetry_link.ts +1166 -0
- package/src/services/telemetry_router.ts +1110 -0
- package/src/services/ufw.ts +654 -0
- package/src/services/valkey.ts +1266 -0
- package/src/services/vpn.ts +2365 -0
- package/src/services/workflows.ts +1249 -0
- package/src/traits.ts +60 -0
|
@@ -0,0 +1,741 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
6
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
|
+
import * as Retry from "../retry.ts";
|
|
8
|
+
import * as T from "../traits.ts";
|
|
9
|
+
|
|
10
|
+
export type { StackitOpError, StackitOpContext };
|
|
11
|
+
|
|
12
|
+
export class BadRequest
|
|
13
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
14
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
15
|
+
code: S.Number,
|
|
16
|
+
message: S.String,
|
|
17
|
+
}).pipe(C.withBadRequestError),
|
|
18
|
+
[{ status: 400 }],
|
|
19
|
+
) {}
|
|
20
|
+
|
|
21
|
+
export class Conflict
|
|
22
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withConflictError),
|
|
27
|
+
[{ status: 409 }],
|
|
28
|
+
) {}
|
|
29
|
+
|
|
30
|
+
export class Forbidden
|
|
31
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
32
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
33
|
+
code: S.Number,
|
|
34
|
+
message: S.String,
|
|
35
|
+
}).pipe(C.withAuthError),
|
|
36
|
+
[{ status: 403 }],
|
|
37
|
+
) {}
|
|
38
|
+
|
|
39
|
+
export class NotFound
|
|
40
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
41
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
42
|
+
code: S.Number,
|
|
43
|
+
message: S.String,
|
|
44
|
+
}).pipe(C.withBadRequestError),
|
|
45
|
+
[{ status: 404 }],
|
|
46
|
+
) {}
|
|
47
|
+
|
|
48
|
+
export type CreateInstanceRequestRegionId = "eu01";
|
|
49
|
+
export const CreateInstanceRequestRegionId = S.String;
|
|
50
|
+
|
|
51
|
+
/** 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
|
+
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
|
+
export interface CreateInstanceRequest {
|
|
56
|
+
/** portal project id */
|
|
57
|
+
projectId: string;
|
|
58
|
+
/** region id */
|
|
59
|
+
regionId: CreateInstanceRequestRegionId | (string & {});
|
|
60
|
+
deletedExperimentRetention?: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
labels?: Labels;
|
|
63
|
+
name: string;
|
|
64
|
+
}
|
|
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
|
+
export type InstanceState =
|
|
84
|
+
| "pending"
|
|
85
|
+
| "creating"
|
|
86
|
+
| "updating"
|
|
87
|
+
| "active"
|
|
88
|
+
| "deleting"
|
|
89
|
+
| "impaired"
|
|
90
|
+
| "reconciling";
|
|
91
|
+
export const InstanceState = S.String;
|
|
92
|
+
|
|
93
|
+
export interface Instance {
|
|
94
|
+
bucketName?: string;
|
|
95
|
+
deletedExperimentRetention?: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
errorMessage?: string;
|
|
98
|
+
id: string;
|
|
99
|
+
labels?: Labels;
|
|
100
|
+
name: string;
|
|
101
|
+
region?: string;
|
|
102
|
+
state: InstanceState;
|
|
103
|
+
url: string;
|
|
104
|
+
}
|
|
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
|
+
export interface CreateInstanceResponse {
|
|
121
|
+
instance: Instance;
|
|
122
|
+
message?: string;
|
|
123
|
+
}
|
|
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
|
+
export type CreateInstanceTokenRequestRegionId = "eu01";
|
|
132
|
+
export const CreateInstanceTokenRequestRegionId = S.String;
|
|
133
|
+
|
|
134
|
+
export interface CreateInstanceTokenRequest {
|
|
135
|
+
/** portal project id */
|
|
136
|
+
projectId: string;
|
|
137
|
+
/** region id */
|
|
138
|
+
regionId: CreateInstanceTokenRequestRegionId | (string & {});
|
|
139
|
+
/** instance id */
|
|
140
|
+
instanceId: string;
|
|
141
|
+
description?: string;
|
|
142
|
+
labels?: Labels;
|
|
143
|
+
name: string;
|
|
144
|
+
/** time to live duration. Must be valid duration string. Maximum allowed duration is 6 months. If not set, defaults to 6 months. */
|
|
145
|
+
ttlDuration?: string;
|
|
146
|
+
}
|
|
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
|
+
/** The lifecycle state of the token. */
|
|
169
|
+
export type TokenState = "creating" | "active" | "deleting" | "inactive";
|
|
170
|
+
export const TokenState = S.String;
|
|
171
|
+
|
|
172
|
+
export interface Token {
|
|
173
|
+
content: string;
|
|
174
|
+
description?: string;
|
|
175
|
+
id: string;
|
|
176
|
+
labels?: Labels;
|
|
177
|
+
name: string;
|
|
178
|
+
region: string;
|
|
179
|
+
state: TokenState;
|
|
180
|
+
validUntil: string;
|
|
181
|
+
}
|
|
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
|
+
export interface CreateInstanceTokenResponse {
|
|
196
|
+
message?: string;
|
|
197
|
+
token: Token;
|
|
198
|
+
}
|
|
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
|
+
export type DeleteInstanceRequestRegionId = "eu01";
|
|
209
|
+
export const DeleteInstanceRequestRegionId = S.String;
|
|
210
|
+
|
|
211
|
+
export interface DeleteInstanceRequest {
|
|
212
|
+
/** portal project id */
|
|
213
|
+
projectId: string;
|
|
214
|
+
/** region id */
|
|
215
|
+
regionId: DeleteInstanceRequestRegionId | (string & {});
|
|
216
|
+
/** instance id */
|
|
217
|
+
instanceId: string;
|
|
218
|
+
}
|
|
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
|
+
export interface DeleteInstanceResponse {
|
|
235
|
+
instance: Instance;
|
|
236
|
+
message?: string;
|
|
237
|
+
}
|
|
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
|
+
export type DeleteInstanceTokenRequestRegionId = "eu01";
|
|
246
|
+
export const DeleteInstanceTokenRequestRegionId = S.String;
|
|
247
|
+
|
|
248
|
+
export interface DeleteInstanceTokenRequest {
|
|
249
|
+
/** portal project id */
|
|
250
|
+
projectId: string;
|
|
251
|
+
/** region id */
|
|
252
|
+
regionId: DeleteInstanceTokenRequestRegionId | (string & {});
|
|
253
|
+
/** instance id */
|
|
254
|
+
instanceId: string;
|
|
255
|
+
/** token id */
|
|
256
|
+
tokenId: string;
|
|
257
|
+
}
|
|
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
|
+
export interface TokenMetadata {
|
|
277
|
+
description?: string;
|
|
278
|
+
id: string;
|
|
279
|
+
labels?: Labels;
|
|
280
|
+
name: string;
|
|
281
|
+
region: string;
|
|
282
|
+
state: TokenState;
|
|
283
|
+
validUntil: string;
|
|
284
|
+
}
|
|
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
|
+
export interface DeleteInstanceTokenResponse {
|
|
298
|
+
message?: string;
|
|
299
|
+
token: TokenMetadata;
|
|
300
|
+
}
|
|
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
|
+
export type GetInstanceRequestRegionId = "eu01";
|
|
311
|
+
export const GetInstanceRequestRegionId = S.String;
|
|
312
|
+
|
|
313
|
+
export interface GetInstanceRequest {
|
|
314
|
+
/** portal project id */
|
|
315
|
+
projectId: string;
|
|
316
|
+
/** region id */
|
|
317
|
+
regionId: GetInstanceRequestRegionId | (string & {});
|
|
318
|
+
/** instance id */
|
|
319
|
+
instanceId: string;
|
|
320
|
+
}
|
|
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
|
+
export interface GetInstanceResponse {
|
|
337
|
+
instance: Instance;
|
|
338
|
+
message?: string;
|
|
339
|
+
}
|
|
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
|
+
export type GetInstanceTokenRequestRegionId = "eu01";
|
|
348
|
+
export const GetInstanceTokenRequestRegionId = S.String;
|
|
349
|
+
|
|
350
|
+
export interface GetInstanceTokenRequest {
|
|
351
|
+
/** portal project id */
|
|
352
|
+
projectId: string;
|
|
353
|
+
/** region id */
|
|
354
|
+
regionId: GetInstanceTokenRequestRegionId | (string & {});
|
|
355
|
+
/** instance id */
|
|
356
|
+
instanceId: string;
|
|
357
|
+
/** token id */
|
|
358
|
+
tokenId: string;
|
|
359
|
+
}
|
|
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
|
+
export interface GetInstanceTokenResponse {
|
|
377
|
+
message?: string;
|
|
378
|
+
token: TokenMetadata;
|
|
379
|
+
}
|
|
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
|
+
export type ListInstancesRequestRegionId = "eu01";
|
|
388
|
+
export const ListInstancesRequestRegionId = S.String;
|
|
389
|
+
|
|
390
|
+
export interface ListInstancesRequest {
|
|
391
|
+
/** portal project id */
|
|
392
|
+
projectId: string;
|
|
393
|
+
/** region id */
|
|
394
|
+
regionId: ListInstancesRequestRegionId | (string & {});
|
|
395
|
+
}
|
|
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
|
+
export type ListInstancesResponseInstancesList = Array<Instance>;
|
|
411
|
+
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
412
|
+
Instance,
|
|
413
|
+
) as any as S.Schema<ListInstancesResponseInstancesList>;
|
|
414
|
+
|
|
415
|
+
export interface ListInstancesResponse {
|
|
416
|
+
instances: ListInstancesResponseInstancesList;
|
|
417
|
+
message?: string;
|
|
418
|
+
}
|
|
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
|
+
export type ListInstanceTokensRequestRegionId = "eu01";
|
|
427
|
+
export const ListInstanceTokensRequestRegionId = S.String;
|
|
428
|
+
|
|
429
|
+
export interface ListInstanceTokensRequest {
|
|
430
|
+
/** portal project id */
|
|
431
|
+
projectId: string;
|
|
432
|
+
/** region id */
|
|
433
|
+
regionId: ListInstanceTokensRequestRegionId | (string & {});
|
|
434
|
+
/** instance id */
|
|
435
|
+
instanceId: string;
|
|
436
|
+
}
|
|
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
|
+
export type ListInstanceTokensResponseTokensList = Array<TokenMetadata>;
|
|
455
|
+
export const ListInstanceTokensResponseTokensList = /*@__PURE__*/ S.Array(
|
|
456
|
+
TokenMetadata,
|
|
457
|
+
) as any as S.Schema<ListInstanceTokensResponseTokensList>;
|
|
458
|
+
|
|
459
|
+
export interface ListInstanceTokensResponse {
|
|
460
|
+
message?: string;
|
|
461
|
+
tokens: ListInstanceTokensResponseTokensList;
|
|
462
|
+
}
|
|
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
|
+
export type PartialUpdateInstanceRequestRegionId = "eu01";
|
|
473
|
+
export const PartialUpdateInstanceRequestRegionId = S.String;
|
|
474
|
+
|
|
475
|
+
/** 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
|
+
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
|
+
export interface PartialUpdateInstanceRequest {
|
|
483
|
+
/** portal project id */
|
|
484
|
+
projectId: string;
|
|
485
|
+
/** region id */
|
|
486
|
+
regionId: PartialUpdateInstanceRequestRegionId | (string & {});
|
|
487
|
+
/** instance id */
|
|
488
|
+
instanceId: string;
|
|
489
|
+
deletedExperimentRetention?: string;
|
|
490
|
+
description?: string;
|
|
491
|
+
labels?: LabelPatch;
|
|
492
|
+
name?: string;
|
|
493
|
+
}
|
|
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
|
+
export interface PartialUpdateInstanceResponse {
|
|
516
|
+
instance: Instance;
|
|
517
|
+
message?: string;
|
|
518
|
+
}
|
|
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
|
+
export type PartialUpdateInstanceTokenRequestRegionId = "eu01";
|
|
529
|
+
export const PartialUpdateInstanceTokenRequestRegionId = S.String;
|
|
530
|
+
|
|
531
|
+
export interface PartialUpdateInstanceTokenRequest {
|
|
532
|
+
/** portal project id */
|
|
533
|
+
projectId: string;
|
|
534
|
+
/** region id */
|
|
535
|
+
regionId: PartialUpdateInstanceTokenRequestRegionId | (string & {});
|
|
536
|
+
/** instance id */
|
|
537
|
+
instanceId: string;
|
|
538
|
+
/** token id */
|
|
539
|
+
tokenId: string;
|
|
540
|
+
description?: string;
|
|
541
|
+
labels?: LabelPatch;
|
|
542
|
+
name?: string;
|
|
543
|
+
}
|
|
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
|
+
export interface PartialUpdateInstanceTokenResponse {
|
|
566
|
+
message?: string;
|
|
567
|
+
token: TokenMetadata;
|
|
568
|
+
}
|
|
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
|
+
export type CreateInstanceError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
579
|
+
/** create an instance in a project create an instance in a project */
|
|
580
|
+
export const createInstance: API.OperationMethod<
|
|
581
|
+
CreateInstanceRequest,
|
|
582
|
+
CreateInstanceResponse,
|
|
583
|
+
CreateInstanceError,
|
|
584
|
+
StackitOpContext
|
|
585
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
586
|
+
input: CreateInstanceRequest,
|
|
587
|
+
output: CreateInstanceResponse,
|
|
588
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
589
|
+
protocol: StackitProtocol,
|
|
590
|
+
retry: Retry.Retry,
|
|
591
|
+
}));
|
|
592
|
+
|
|
593
|
+
export type CreateInstanceTokenError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
594
|
+
/** create an auth token for an instance create an auth token for an instance */
|
|
595
|
+
export const createInstanceToken: API.OperationMethod<
|
|
596
|
+
CreateInstanceTokenRequest,
|
|
597
|
+
CreateInstanceTokenResponse,
|
|
598
|
+
CreateInstanceTokenError,
|
|
599
|
+
StackitOpContext
|
|
600
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
601
|
+
input: CreateInstanceTokenRequest,
|
|
602
|
+
output: CreateInstanceTokenResponse,
|
|
603
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
604
|
+
protocol: StackitProtocol,
|
|
605
|
+
retry: Retry.Retry,
|
|
606
|
+
}));
|
|
607
|
+
|
|
608
|
+
export type DeleteInstanceError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
609
|
+
/** delete an instance in a project delete an instance in a project */
|
|
610
|
+
export const deleteInstance: API.OperationMethod<
|
|
611
|
+
DeleteInstanceRequest,
|
|
612
|
+
DeleteInstanceResponse,
|
|
613
|
+
DeleteInstanceError,
|
|
614
|
+
StackitOpContext
|
|
615
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
616
|
+
input: DeleteInstanceRequest,
|
|
617
|
+
output: DeleteInstanceResponse,
|
|
618
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
619
|
+
protocol: StackitProtocol,
|
|
620
|
+
retry: Retry.Retry,
|
|
621
|
+
}));
|
|
622
|
+
|
|
623
|
+
export type DeleteInstanceTokenError =
|
|
624
|
+
| BadRequest
|
|
625
|
+
| Forbidden
|
|
626
|
+
| NotFound
|
|
627
|
+
| Conflict
|
|
628
|
+
| StackitOpError;
|
|
629
|
+
/** delete an auth token in an instance delete an auth token in an instance */
|
|
630
|
+
export const deleteInstanceToken: API.OperationMethod<
|
|
631
|
+
DeleteInstanceTokenRequest,
|
|
632
|
+
DeleteInstanceTokenResponse,
|
|
633
|
+
DeleteInstanceTokenError,
|
|
634
|
+
StackitOpContext
|
|
635
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
636
|
+
input: DeleteInstanceTokenRequest,
|
|
637
|
+
output: DeleteInstanceTokenResponse,
|
|
638
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
639
|
+
protocol: StackitProtocol,
|
|
640
|
+
retry: Retry.Retry,
|
|
641
|
+
}));
|
|
642
|
+
|
|
643
|
+
export type GetInstanceError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
644
|
+
/** get an instance in a project get an instance in a project */
|
|
645
|
+
export const getInstance: API.OperationMethod<
|
|
646
|
+
GetInstanceRequest,
|
|
647
|
+
GetInstanceResponse,
|
|
648
|
+
GetInstanceError,
|
|
649
|
+
StackitOpContext
|
|
650
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
651
|
+
input: GetInstanceRequest,
|
|
652
|
+
output: GetInstanceResponse,
|
|
653
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
654
|
+
protocol: StackitProtocol,
|
|
655
|
+
retry: Retry.Retry,
|
|
656
|
+
}));
|
|
657
|
+
|
|
658
|
+
export type GetInstanceTokenError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
659
|
+
/** get an auth token for an instance get an auth token for an instance */
|
|
660
|
+
export const getInstanceToken: API.OperationMethod<
|
|
661
|
+
GetInstanceTokenRequest,
|
|
662
|
+
GetInstanceTokenResponse,
|
|
663
|
+
GetInstanceTokenError,
|
|
664
|
+
StackitOpContext
|
|
665
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
666
|
+
input: GetInstanceTokenRequest,
|
|
667
|
+
output: GetInstanceTokenResponse,
|
|
668
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
669
|
+
protocol: StackitProtocol,
|
|
670
|
+
retry: Retry.Retry,
|
|
671
|
+
}));
|
|
672
|
+
|
|
673
|
+
export type ListInstancesError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
674
|
+
/** list instances in a project list instances in a project */
|
|
675
|
+
export const listInstances: API.OperationMethod<
|
|
676
|
+
ListInstancesRequest,
|
|
677
|
+
ListInstancesResponse,
|
|
678
|
+
ListInstancesError,
|
|
679
|
+
StackitOpContext
|
|
680
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
681
|
+
input: ListInstancesRequest,
|
|
682
|
+
output: ListInstancesResponse,
|
|
683
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
684
|
+
protocol: StackitProtocol,
|
|
685
|
+
retry: Retry.Retry,
|
|
686
|
+
}));
|
|
687
|
+
|
|
688
|
+
export type ListInstanceTokensError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
689
|
+
/** list all auth tokens for an instance list all auth tokens for an instance */
|
|
690
|
+
export const listInstanceTokens: API.OperationMethod<
|
|
691
|
+
ListInstanceTokensRequest,
|
|
692
|
+
ListInstanceTokensResponse,
|
|
693
|
+
ListInstanceTokensError,
|
|
694
|
+
StackitOpContext
|
|
695
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
696
|
+
input: ListInstanceTokensRequest,
|
|
697
|
+
output: ListInstanceTokensResponse,
|
|
698
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
699
|
+
protocol: StackitProtocol,
|
|
700
|
+
retry: Retry.Retry,
|
|
701
|
+
}));
|
|
702
|
+
|
|
703
|
+
export type PartialUpdateInstanceError =
|
|
704
|
+
| BadRequest
|
|
705
|
+
| Forbidden
|
|
706
|
+
| NotFound
|
|
707
|
+
| Conflict
|
|
708
|
+
| StackitOpError;
|
|
709
|
+
/** partial update an instance in a project partial update an instance in a project */
|
|
710
|
+
export const partialUpdateInstance: API.OperationMethod<
|
|
711
|
+
PartialUpdateInstanceRequest,
|
|
712
|
+
PartialUpdateInstanceResponse,
|
|
713
|
+
PartialUpdateInstanceError,
|
|
714
|
+
StackitOpContext
|
|
715
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
716
|
+
input: PartialUpdateInstanceRequest,
|
|
717
|
+
output: PartialUpdateInstanceResponse,
|
|
718
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
719
|
+
protocol: StackitProtocol,
|
|
720
|
+
retry: Retry.Retry,
|
|
721
|
+
}));
|
|
722
|
+
|
|
723
|
+
export type PartialUpdateInstanceTokenError =
|
|
724
|
+
| BadRequest
|
|
725
|
+
| Forbidden
|
|
726
|
+
| NotFound
|
|
727
|
+
| Conflict
|
|
728
|
+
| StackitOpError;
|
|
729
|
+
/** partial update an auth token for an instance partial update an auth token for an instance */
|
|
730
|
+
export const partialUpdateInstanceToken: API.OperationMethod<
|
|
731
|
+
PartialUpdateInstanceTokenRequest,
|
|
732
|
+
PartialUpdateInstanceTokenResponse,
|
|
733
|
+
PartialUpdateInstanceTokenError,
|
|
734
|
+
StackitOpContext
|
|
735
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
736
|
+
input: PartialUpdateInstanceTokenRequest,
|
|
737
|
+
output: PartialUpdateInstanceTokenResponse,
|
|
738
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
739
|
+
protocol: StackitProtocol,
|
|
740
|
+
retry: Retry.Retry,
|
|
741
|
+
}));
|