@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +48 -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 +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.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 +562 -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 +545 -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 +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -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 +992 -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 +197 -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 +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -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 +339 -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 +375 -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 +423 -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 +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -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 +513 -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 +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -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 +542 -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 +636 -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 +498 -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 +611 -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 +356 -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 +319 -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 +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -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 +3407 -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 +623 -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 +789 -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 +1018 -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 +614 -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 +636 -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 +221 -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 +503 -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 +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -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 +718 -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 +659 -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 +474 -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 +364 -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 +523 -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 +159 -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 +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -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 +1087 -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 +393 -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 +550 -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 +523 -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 +301 -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 +627 -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 +1013 -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 +556 -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 +83 -3
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,1408 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
StackitProtocol,
|
|
8
|
+
type StackitOpError,
|
|
9
|
+
type StackitOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { StackitOpError, StackitOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class NotFound
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withBadRequestError),
|
|
31
|
+
[{ status: 404 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export interface CompleteCredentialsRotationRequest {
|
|
35
|
+
projectId: string;
|
|
36
|
+
region: string;
|
|
37
|
+
clusterName: string;
|
|
38
|
+
}
|
|
39
|
+
export const CompleteCredentialsRotationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
40
|
+
S.Struct({
|
|
41
|
+
projectId: S.String.pipe(T.Label()),
|
|
42
|
+
region: S.String.pipe(T.Label()),
|
|
43
|
+
clusterName: S.String.pipe(T.Label()),
|
|
44
|
+
}).pipe(
|
|
45
|
+
T.Http({
|
|
46
|
+
method: "POST",
|
|
47
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/complete-credentials-rotation",
|
|
48
|
+
code: 200,
|
|
49
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
50
|
+
}),
|
|
51
|
+
),
|
|
52
|
+
).annotate({
|
|
53
|
+
identifier: "CompleteCredentialsRotationRequest",
|
|
54
|
+
}) as any as S.Schema<CompleteCredentialsRotationRequest>;
|
|
55
|
+
|
|
56
|
+
export type CompleteCredentialsRotationResponse = unknown;
|
|
57
|
+
export const CompleteCredentialsRotationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
58
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
59
|
+
).annotate({
|
|
60
|
+
identifier: "CompleteCredentialsRotationResponse",
|
|
61
|
+
}) as any as S.Schema<CompleteCredentialsRotationResponse>;
|
|
62
|
+
|
|
63
|
+
export interface CreateKubeconfigRequest {
|
|
64
|
+
projectId: string;
|
|
65
|
+
region: string;
|
|
66
|
+
clusterName: string;
|
|
67
|
+
expirationSeconds?: string;
|
|
68
|
+
}
|
|
69
|
+
export const CreateKubeconfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
70
|
+
S.Struct({
|
|
71
|
+
projectId: S.String.pipe(T.Label()),
|
|
72
|
+
region: S.String.pipe(T.Label()),
|
|
73
|
+
clusterName: S.String.pipe(T.Label()),
|
|
74
|
+
expirationSeconds: S.optional(S.String),
|
|
75
|
+
}).pipe(
|
|
76
|
+
T.Http({
|
|
77
|
+
method: "POST",
|
|
78
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig",
|
|
79
|
+
code: 200,
|
|
80
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
81
|
+
}),
|
|
82
|
+
),
|
|
83
|
+
).annotate({
|
|
84
|
+
identifier: "CreateKubeconfigRequest",
|
|
85
|
+
}) as any as S.Schema<CreateKubeconfigRequest>;
|
|
86
|
+
|
|
87
|
+
export interface Kubeconfig {
|
|
88
|
+
expirationTimestamp?: string;
|
|
89
|
+
kubeconfig?: string;
|
|
90
|
+
}
|
|
91
|
+
export const Kubeconfig = /*@__PURE__*/ S.suspend(() =>
|
|
92
|
+
S.Struct({
|
|
93
|
+
expirationTimestamp: S.optional(S.String),
|
|
94
|
+
kubeconfig: S.optional(S.String),
|
|
95
|
+
}),
|
|
96
|
+
).annotate({ identifier: "Kubeconfig" }) as any as S.Schema<Kubeconfig>;
|
|
97
|
+
|
|
98
|
+
export interface IDP {
|
|
99
|
+
/** Enable IDP integration for the cluster. */
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
/** Possible values: `"stackit"` */
|
|
102
|
+
type: string;
|
|
103
|
+
}
|
|
104
|
+
export const IDP = /*@__PURE__*/ S.suspend(() =>
|
|
105
|
+
S.Struct({
|
|
106
|
+
enabled: S.Boolean,
|
|
107
|
+
type: S.String,
|
|
108
|
+
}),
|
|
109
|
+
).annotate({ identifier: "IDP" }) as any as S.Schema<IDP>;
|
|
110
|
+
|
|
111
|
+
export interface Access {
|
|
112
|
+
idp?: IDP;
|
|
113
|
+
}
|
|
114
|
+
export const Access = /*@__PURE__*/ S.suspend(() =>
|
|
115
|
+
S.Struct({
|
|
116
|
+
idp: S.optional(IDP),
|
|
117
|
+
}),
|
|
118
|
+
).annotate({ identifier: "Access" }) as any as S.Schema<Access>;
|
|
119
|
+
|
|
120
|
+
export interface Audit {
|
|
121
|
+
/** Enable cluster audit log forwarding to a Telemetry Router. ⚠️ Note: This feature is in private preview. Enabling audit logging is only possible for enabled accounts. Otherwise the request will be rejected. */
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
}
|
|
124
|
+
export const Audit = /*@__PURE__*/ S.suspend(() =>
|
|
125
|
+
S.Struct({
|
|
126
|
+
enabled: S.Boolean,
|
|
127
|
+
}),
|
|
128
|
+
).annotate({ identifier: "Audit" }) as any as S.Schema<Audit>;
|
|
129
|
+
|
|
130
|
+
/** Array of CIDRs to allow access to the kubernetes API. */
|
|
131
|
+
export type ACLAllowedCidrsList = Array<string>;
|
|
132
|
+
export const ACLAllowedCidrsList = /*@__PURE__*/ S.Array(
|
|
133
|
+
S.String,
|
|
134
|
+
) as any as S.Schema<ACLAllowedCidrsList>;
|
|
135
|
+
|
|
136
|
+
export interface ACL {
|
|
137
|
+
/** Array of CIDRs to allow access to the kubernetes API. */
|
|
138
|
+
allowedCidrs: ACLAllowedCidrsList;
|
|
139
|
+
/** Enables the acl extension. */
|
|
140
|
+
enabled: boolean;
|
|
141
|
+
}
|
|
142
|
+
export const ACL = /*@__PURE__*/ S.suspend(() =>
|
|
143
|
+
S.Struct({
|
|
144
|
+
allowedCidrs: ACLAllowedCidrsList,
|
|
145
|
+
enabled: S.Boolean,
|
|
146
|
+
}),
|
|
147
|
+
).annotate({ identifier: "ACL" }) as any as S.Schema<ACL>;
|
|
148
|
+
|
|
149
|
+
export interface ApplicationLoadBalancer {
|
|
150
|
+
/** Enables the application load balancer extension. ⚠️ Note: This feature is in private preview. Enabling application load balancer extension is only possible for enabled accounts. Otherwise the request will be rejected. */
|
|
151
|
+
enabled: boolean;
|
|
152
|
+
}
|
|
153
|
+
export const ApplicationLoadBalancer = /*@__PURE__*/ S.suspend(() =>
|
|
154
|
+
S.Struct({
|
|
155
|
+
enabled: S.Boolean,
|
|
156
|
+
}),
|
|
157
|
+
).annotate({
|
|
158
|
+
identifier: "ApplicationLoadBalancer",
|
|
159
|
+
}) as any as S.Schema<ApplicationLoadBalancer>;
|
|
160
|
+
|
|
161
|
+
/** Array of domain filters for ExternalDNS, e.g., *.runs.onstackit.cloud. */
|
|
162
|
+
export type DNSZonesList = Array<string>;
|
|
163
|
+
export const DNSZonesList = /*@__PURE__*/ S.Array(
|
|
164
|
+
S.String,
|
|
165
|
+
) as any as S.Schema<DNSZonesList>;
|
|
166
|
+
|
|
167
|
+
export interface DNS {
|
|
168
|
+
/** Enables the dns extension. */
|
|
169
|
+
enabled: boolean;
|
|
170
|
+
/** Enables Gateway API support for ExternalDNS. The CRDs must be installed by the user. Once installed, ExternalDNS will be configured at the next cluster reconcile. */
|
|
171
|
+
gatewayApi?: boolean;
|
|
172
|
+
/** Array of domain filters for ExternalDNS, e.g., *.runs.onstackit.cloud. */
|
|
173
|
+
zones?: DNSZonesList;
|
|
174
|
+
}
|
|
175
|
+
export const DNS = /*@__PURE__*/ S.suspend(() =>
|
|
176
|
+
S.Struct({
|
|
177
|
+
enabled: S.Boolean,
|
|
178
|
+
gatewayApi: S.optional(S.Boolean),
|
|
179
|
+
zones: S.optional(DNSZonesList),
|
|
180
|
+
}),
|
|
181
|
+
).annotate({ identifier: "DNS" }) as any as S.Schema<DNS>;
|
|
182
|
+
|
|
183
|
+
export interface Observability {
|
|
184
|
+
/** Enables the Observability extension. */
|
|
185
|
+
enabled: boolean;
|
|
186
|
+
/** Instance ID to choose which Observability instance is used. */
|
|
187
|
+
instanceId: string;
|
|
188
|
+
}
|
|
189
|
+
export const Observability = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({
|
|
191
|
+
enabled: S.Boolean,
|
|
192
|
+
instanceId: S.String,
|
|
193
|
+
}),
|
|
194
|
+
).annotate({ identifier: "Observability" }) as any as S.Schema<Observability>;
|
|
195
|
+
|
|
196
|
+
export interface Extension {
|
|
197
|
+
acl?: ACL;
|
|
198
|
+
applicationLoadBalancer?: ApplicationLoadBalancer;
|
|
199
|
+
dns?: DNS;
|
|
200
|
+
observability?: Observability;
|
|
201
|
+
}
|
|
202
|
+
export const Extension = /*@__PURE__*/ S.suspend(() =>
|
|
203
|
+
S.Struct({
|
|
204
|
+
acl: S.optional(ACL),
|
|
205
|
+
applicationLoadBalancer: S.optional(ApplicationLoadBalancer),
|
|
206
|
+
dns: S.optional(DNS),
|
|
207
|
+
observability: S.optional(Observability),
|
|
208
|
+
}),
|
|
209
|
+
).annotate({ identifier: "Extension" }) as any as S.Schema<Extension>;
|
|
210
|
+
|
|
211
|
+
export interface HibernationSchedule {
|
|
212
|
+
end: string;
|
|
213
|
+
start: string;
|
|
214
|
+
timezone?: string;
|
|
215
|
+
}
|
|
216
|
+
export const HibernationSchedule = /*@__PURE__*/ S.suspend(() =>
|
|
217
|
+
S.Struct({
|
|
218
|
+
end: S.String,
|
|
219
|
+
start: S.String,
|
|
220
|
+
timezone: S.optional(S.String),
|
|
221
|
+
}),
|
|
222
|
+
).annotate({
|
|
223
|
+
identifier: "HibernationSchedule",
|
|
224
|
+
}) as any as S.Schema<HibernationSchedule>;
|
|
225
|
+
|
|
226
|
+
export type HibernationSchedulesList = Array<HibernationSchedule>;
|
|
227
|
+
export const HibernationSchedulesList = /*@__PURE__*/ S.Array(
|
|
228
|
+
HibernationSchedule,
|
|
229
|
+
) as any as S.Schema<HibernationSchedulesList>;
|
|
230
|
+
|
|
231
|
+
export interface Hibernation {
|
|
232
|
+
schedules: HibernationSchedulesList;
|
|
233
|
+
}
|
|
234
|
+
export const Hibernation = /*@__PURE__*/ S.suspend(() =>
|
|
235
|
+
S.Struct({
|
|
236
|
+
schedules: HibernationSchedulesList,
|
|
237
|
+
}),
|
|
238
|
+
).annotate({ identifier: "Hibernation" }) as any as S.Schema<Hibernation>;
|
|
239
|
+
|
|
240
|
+
/** For valid versions please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `kubernetesVersions`. */
|
|
241
|
+
export interface Kubernetes {
|
|
242
|
+
version: string;
|
|
243
|
+
}
|
|
244
|
+
export const Kubernetes = /*@__PURE__*/ S.suspend(() =>
|
|
245
|
+
S.Struct({
|
|
246
|
+
version: S.String,
|
|
247
|
+
}),
|
|
248
|
+
).annotate({ identifier: "Kubernetes" }) as any as S.Schema<Kubernetes>;
|
|
249
|
+
|
|
250
|
+
/** Labels are key-value pairs. Keys may contain domain prefix separated by a slash(/) and must begin with an alphanumerical character. Values may be empty and if not empty, they must begin and end with an alphanumerical character. Keys can be between 1-314 characters long, whereas values can be 0-63 characters long. */
|
|
251
|
+
export type CreateOrUpdateClusterRequestLabelsMap = {
|
|
252
|
+
[key: string]: string | undefined;
|
|
253
|
+
};
|
|
254
|
+
export const CreateOrUpdateClusterRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
255
|
+
S.String,
|
|
256
|
+
S.String,
|
|
257
|
+
) as any as S.Schema<CreateOrUpdateClusterRequestLabelsMap>;
|
|
258
|
+
|
|
259
|
+
export interface MaintenanceAutoUpdate {
|
|
260
|
+
kubernetesVersion?: boolean;
|
|
261
|
+
machineImageVersion?: boolean;
|
|
262
|
+
}
|
|
263
|
+
export const MaintenanceAutoUpdate = /*@__PURE__*/ S.suspend(() =>
|
|
264
|
+
S.Struct({
|
|
265
|
+
kubernetesVersion: S.optional(S.Boolean),
|
|
266
|
+
machineImageVersion: S.optional(S.Boolean),
|
|
267
|
+
}),
|
|
268
|
+
).annotate({
|
|
269
|
+
identifier: "MaintenanceAutoUpdate",
|
|
270
|
+
}) as any as S.Schema<MaintenanceAutoUpdate>;
|
|
271
|
+
|
|
272
|
+
export interface TimeWindow {
|
|
273
|
+
end: string;
|
|
274
|
+
start: string;
|
|
275
|
+
}
|
|
276
|
+
export const TimeWindow = /*@__PURE__*/ S.suspend(() =>
|
|
277
|
+
S.Struct({
|
|
278
|
+
end: S.String,
|
|
279
|
+
start: S.String,
|
|
280
|
+
}),
|
|
281
|
+
).annotate({ identifier: "TimeWindow" }) as any as S.Schema<TimeWindow>;
|
|
282
|
+
|
|
283
|
+
export interface Maintenance {
|
|
284
|
+
autoUpdate?: MaintenanceAutoUpdate;
|
|
285
|
+
timeWindow?: TimeWindow;
|
|
286
|
+
}
|
|
287
|
+
export const Maintenance = /*@__PURE__*/ S.suspend(() =>
|
|
288
|
+
S.Struct({
|
|
289
|
+
autoUpdate: S.optional(MaintenanceAutoUpdate),
|
|
290
|
+
timeWindow: S.optional(TimeWindow),
|
|
291
|
+
}),
|
|
292
|
+
).annotate({ identifier: "Maintenance" }) as any as S.Schema<Maintenance>;
|
|
293
|
+
|
|
294
|
+
/** CNI to use for the cluster. Only one type of CNI can be used. The type of CNI is immutable after creation. Defaults to calico */
|
|
295
|
+
export interface CNI {
|
|
296
|
+
/** configuration options for the Calico CNI */
|
|
297
|
+
calico?: unknown;
|
|
298
|
+
}
|
|
299
|
+
export const CNI = /*@__PURE__*/ S.suspend(() =>
|
|
300
|
+
S.Struct({
|
|
301
|
+
calico: S.optional(S.Unknown),
|
|
302
|
+
}),
|
|
303
|
+
).annotate({ identifier: "CNI" }) as any as S.Schema<CNI>;
|
|
304
|
+
|
|
305
|
+
/** The access scope of the Control Plane. It defines if the Kubernetes control plane is public or only available inside a STACKIT Network Area. ⚠️ Warning: Changing the access scope on an existing cluster directly impacts its network exposure (e.g., making a private cluster publicly accessible) ⚠️ Note: This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. */
|
|
306
|
+
export type AccessScope = "PUBLIC" | "SNA";
|
|
307
|
+
export const AccessScope = /*@__PURE__*/ S.String;
|
|
308
|
+
|
|
309
|
+
export interface V2ControlPlaneNetwork {
|
|
310
|
+
accessScope?: AccessScope | (string & {});
|
|
311
|
+
}
|
|
312
|
+
export const V2ControlPlaneNetwork = /*@__PURE__*/ S.suspend(() =>
|
|
313
|
+
S.Struct({
|
|
314
|
+
accessScope: S.optional(AccessScope),
|
|
315
|
+
}),
|
|
316
|
+
).annotate({
|
|
317
|
+
identifier: "V2ControlPlaneNetwork",
|
|
318
|
+
}) as any as S.Schema<V2ControlPlaneNetwork>;
|
|
319
|
+
|
|
320
|
+
export interface Network {
|
|
321
|
+
cni?: CNI;
|
|
322
|
+
controlPlane?: V2ControlPlaneNetwork;
|
|
323
|
+
id?: string;
|
|
324
|
+
}
|
|
325
|
+
export const Network = /*@__PURE__*/ S.suspend(() =>
|
|
326
|
+
S.Struct({
|
|
327
|
+
cni: S.optional(CNI),
|
|
328
|
+
controlPlane: S.optional(V2ControlPlaneNetwork),
|
|
329
|
+
id: S.optional(S.String),
|
|
330
|
+
}),
|
|
331
|
+
).annotate({ identifier: "Network" }) as any as S.Schema<Network>;
|
|
332
|
+
|
|
333
|
+
export type NodepoolAvailabilityZonesList = Array<string>;
|
|
334
|
+
export const NodepoolAvailabilityZonesList = /*@__PURE__*/ S.Array(
|
|
335
|
+
S.String,
|
|
336
|
+
) as any as S.Schema<NodepoolAvailabilityZonesList>;
|
|
337
|
+
|
|
338
|
+
export type CRIName = "containerd";
|
|
339
|
+
export const CRIName = /*@__PURE__*/ S.String;
|
|
340
|
+
|
|
341
|
+
export interface CRI {
|
|
342
|
+
name?: CRIName | (string & {});
|
|
343
|
+
}
|
|
344
|
+
export const CRI = /*@__PURE__*/ S.suspend(() =>
|
|
345
|
+
S.Struct({
|
|
346
|
+
name: S.optional(CRIName),
|
|
347
|
+
}),
|
|
348
|
+
).annotate({ identifier: "CRI" }) as any as S.Schema<CRI>;
|
|
349
|
+
|
|
350
|
+
export interface NodepoolKubernetes {
|
|
351
|
+
/** Override the Kubernetes version for the Kubelet of this Nodepool. Version must be equal or lower than the version of the cluster. Only one minor version difference to the version of the cluster is allowed. Downgrade of existing Nodepools is prohibited. */
|
|
352
|
+
version?: string;
|
|
353
|
+
}
|
|
354
|
+
export const NodepoolKubernetes = /*@__PURE__*/ S.suspend(() =>
|
|
355
|
+
S.Struct({
|
|
356
|
+
version: S.optional(S.String),
|
|
357
|
+
}),
|
|
358
|
+
).annotate({
|
|
359
|
+
identifier: "NodepoolKubernetes",
|
|
360
|
+
}) as any as S.Schema<NodepoolKubernetes>;
|
|
361
|
+
|
|
362
|
+
export type NodepoolLabelsMap = { [key: string]: string | undefined };
|
|
363
|
+
export const NodepoolLabelsMap = /*@__PURE__*/ S.Record(
|
|
364
|
+
S.String,
|
|
365
|
+
S.String,
|
|
366
|
+
) as any as S.Schema<NodepoolLabelsMap>;
|
|
367
|
+
|
|
368
|
+
/** For valid names and versions please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `machineImages`. */
|
|
369
|
+
export interface Image {
|
|
370
|
+
name: string;
|
|
371
|
+
version: string;
|
|
372
|
+
}
|
|
373
|
+
export const Image = /*@__PURE__*/ S.suspend(() =>
|
|
374
|
+
S.Struct({
|
|
375
|
+
name: S.String,
|
|
376
|
+
version: S.String,
|
|
377
|
+
}),
|
|
378
|
+
).annotate({ identifier: "Image" }) as any as S.Schema<Image>;
|
|
379
|
+
|
|
380
|
+
export interface Machine {
|
|
381
|
+
image: Image;
|
|
382
|
+
/** For valid types please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `machineTypes`. */
|
|
383
|
+
type: string;
|
|
384
|
+
}
|
|
385
|
+
export const Machine = /*@__PURE__*/ S.suspend(() =>
|
|
386
|
+
S.Struct({
|
|
387
|
+
image: Image,
|
|
388
|
+
type: S.String,
|
|
389
|
+
}),
|
|
390
|
+
).annotate({ identifier: "Machine" }) as any as S.Schema<Machine>;
|
|
391
|
+
|
|
392
|
+
export type TaintEffect = "NoSchedule" | "PreferNoSchedule" | "NoExecute";
|
|
393
|
+
export const TaintEffect = /*@__PURE__*/ S.String;
|
|
394
|
+
|
|
395
|
+
export interface Taint {
|
|
396
|
+
effect: TaintEffect | (string & {});
|
|
397
|
+
key: string;
|
|
398
|
+
value?: string;
|
|
399
|
+
}
|
|
400
|
+
export const Taint = /*@__PURE__*/ S.suspend(() =>
|
|
401
|
+
S.Struct({
|
|
402
|
+
effect: TaintEffect,
|
|
403
|
+
key: S.String,
|
|
404
|
+
value: S.optional(S.String),
|
|
405
|
+
}),
|
|
406
|
+
).annotate({ identifier: "Taint" }) as any as S.Schema<Taint>;
|
|
407
|
+
|
|
408
|
+
export type NodepoolTaintsList = Array<Taint>;
|
|
409
|
+
export const NodepoolTaintsList = /*@__PURE__*/ S.Array(
|
|
410
|
+
Taint,
|
|
411
|
+
) as any as S.Schema<NodepoolTaintsList>;
|
|
412
|
+
|
|
413
|
+
export interface Volume {
|
|
414
|
+
size: number;
|
|
415
|
+
/** For valid values please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `volumeTypes`. */
|
|
416
|
+
type?: string;
|
|
417
|
+
}
|
|
418
|
+
export const Volume = /*@__PURE__*/ S.suspend(() =>
|
|
419
|
+
S.Struct({
|
|
420
|
+
size: S.Number,
|
|
421
|
+
type: S.optional(S.String),
|
|
422
|
+
}),
|
|
423
|
+
).annotate({ identifier: "Volume" }) as any as S.Schema<Volume>;
|
|
424
|
+
|
|
425
|
+
export interface Nodepool {
|
|
426
|
+
/** This needs to be true for at least one node pool. */
|
|
427
|
+
allowSystemComponents?: boolean;
|
|
428
|
+
availabilityZones: NodepoolAvailabilityZonesList;
|
|
429
|
+
cri?: CRI;
|
|
430
|
+
kubernetes?: NodepoolKubernetes;
|
|
431
|
+
labels?: NodepoolLabelsMap;
|
|
432
|
+
machine: Machine;
|
|
433
|
+
maxSurge?: number;
|
|
434
|
+
maxUnavailable?: number;
|
|
435
|
+
/** Maximum number of nodes in the pool. During runtime, the cluster will never scale beyond 1000 nodes, even if the total maximum would allow for a larger cluster. */
|
|
436
|
+
maximum: number;
|
|
437
|
+
/** Minimum number of nodes in the pool. The sum of all minima must not exceed 1000. */
|
|
438
|
+
minimum: number;
|
|
439
|
+
/** Maximum 15 chars */
|
|
440
|
+
name: string;
|
|
441
|
+
taints?: NodepoolTaintsList;
|
|
442
|
+
volume: Volume;
|
|
443
|
+
}
|
|
444
|
+
export const Nodepool = /*@__PURE__*/ S.suspend(() =>
|
|
445
|
+
S.Struct({
|
|
446
|
+
allowSystemComponents: S.optional(S.Boolean),
|
|
447
|
+
availabilityZones: NodepoolAvailabilityZonesList,
|
|
448
|
+
cri: S.optional(CRI),
|
|
449
|
+
kubernetes: S.optional(NodepoolKubernetes),
|
|
450
|
+
labels: S.optional(NodepoolLabelsMap),
|
|
451
|
+
machine: Machine,
|
|
452
|
+
maxSurge: S.optional(S.Number),
|
|
453
|
+
maxUnavailable: S.optional(S.Number),
|
|
454
|
+
maximum: S.Number,
|
|
455
|
+
minimum: S.Number,
|
|
456
|
+
name: S.String,
|
|
457
|
+
taints: S.optional(NodepoolTaintsList),
|
|
458
|
+
volume: Volume,
|
|
459
|
+
}),
|
|
460
|
+
).annotate({ identifier: "Nodepool" }) as any as S.Schema<Nodepool>;
|
|
461
|
+
|
|
462
|
+
export type CreateOrUpdateClusterRequestNodepoolsList = Array<Nodepool>;
|
|
463
|
+
export const CreateOrUpdateClusterRequestNodepoolsList = /*@__PURE__*/ S.Array(
|
|
464
|
+
Nodepool,
|
|
465
|
+
) as any as S.Schema<CreateOrUpdateClusterRequestNodepoolsList>;
|
|
466
|
+
|
|
467
|
+
/** ClusterStatusState holds information about the current state of the Cluster */
|
|
468
|
+
export type ClusterStatusState =
|
|
469
|
+
| "STATE_HEALTHY"
|
|
470
|
+
| "STATE_CREATING"
|
|
471
|
+
| "STATE_DELETING"
|
|
472
|
+
| "STATE_UNHEALTHY"
|
|
473
|
+
| "STATE_RECONCILING"
|
|
474
|
+
| "STATE_HIBERNATED"
|
|
475
|
+
| "STATE_HIBERNATING"
|
|
476
|
+
| "STATE_WAKINGUP";
|
|
477
|
+
export const ClusterStatusState = /*@__PURE__*/ S.String;
|
|
478
|
+
|
|
479
|
+
/** Phase of the credentials rotation. `NEVER` indicates that no credentials rotation has been performed using the new credentials rotation endpoints yet. */
|
|
480
|
+
export type CredentialsRotationStatePhase =
|
|
481
|
+
| "NEVER"
|
|
482
|
+
| "PREPARING"
|
|
483
|
+
| "PREPARED"
|
|
484
|
+
| "COMPLETING"
|
|
485
|
+
| "COMPLETED";
|
|
486
|
+
export const CredentialsRotationStatePhase = /*@__PURE__*/ S.String;
|
|
487
|
+
|
|
488
|
+
export interface CredentialsRotationState {
|
|
489
|
+
/** Format: `2024-02-15T11:06:29Z` */
|
|
490
|
+
lastCompletionTime?: string;
|
|
491
|
+
/** Format: `2024-02-15T11:06:29Z` */
|
|
492
|
+
lastInitiationTime?: string;
|
|
493
|
+
/** Phase of the credentials rotation. `NEVER` indicates that no credentials rotation has been performed using the new credentials rotation endpoints yet. */
|
|
494
|
+
phase?: CredentialsRotationStatePhase | (string & {});
|
|
495
|
+
}
|
|
496
|
+
export const CredentialsRotationState = /*@__PURE__*/ S.suspend(() =>
|
|
497
|
+
S.Struct({
|
|
498
|
+
lastCompletionTime: S.optional(S.String),
|
|
499
|
+
lastInitiationTime: S.optional(S.String),
|
|
500
|
+
phase: S.optional(CredentialsRotationStatePhase),
|
|
501
|
+
}),
|
|
502
|
+
).annotate({
|
|
503
|
+
identifier: "CredentialsRotationState",
|
|
504
|
+
}) as any as S.Schema<CredentialsRotationState>;
|
|
505
|
+
|
|
506
|
+
/** The outgoing network ranges (in CIDR notation) of traffic originating from workload on the cluster. */
|
|
507
|
+
export type ClusterStatusEgressAddressRangesList = Array<string>;
|
|
508
|
+
export const ClusterStatusEgressAddressRangesList = /*@__PURE__*/ S.Array(
|
|
509
|
+
S.String,
|
|
510
|
+
) as any as S.Schema<ClusterStatusEgressAddressRangesList>;
|
|
511
|
+
|
|
512
|
+
/** - Code: `SKE_UNSPECIFIED` Message: "An error occurred. Please open a support ticket if this error persists." - Code: `SKE_TMP_AUTH_ERROR` Message: "Authentication failed. This is a temporary error. Please wait while the system recovers." - Code: `SKE_QUOTA_EXCEEDED` Message: "Your project's resource quotas are exhausted. Please make sure your quota is sufficient for the ordered cluster." - Code: `SKE_OBSERVABILITY_INSTANCE_NOT_FOUND` Message: "The provided Observability instance could not be found." - Code: `SKE_RATE_LIMITS` Message: "While provisioning your cluster, request rate limits where incurred. Please wait while the system recovers." - Code: `SKE_INFRA_ERROR` Message: "An error occurred with the underlying infrastructure. Please open a support ticket if this error persists." - Code: `SKE_REMAINING_RESOURCES` Message: "There are remaining Kubernetes resources in your cluster that prevent deletion. Please make sure to remove them." - Code: `SKE_CONFIGURATION_PROBLEM` Message: "A configuration error occurred. Please open a support ticket if this error persists." - Code: `SKE_UNREADY_NODES` Message: "Not all worker nodes are ready. Please open a support ticket if this error persists." - Code: `SKE_API_SERVER_ERROR` Message: "The Kubernetes API server is not reporting readiness. Please open a support ticket if this error persists." - Code: `SKE_DNS_ZONE_NOT_FOUND` Message: "The provided DNS zone for the STACKIT DNS extension could not be found. Please ensure you defined a valid domain that belongs to a STACKIT DNS zone." */
|
|
513
|
+
export type RuntimeErrorCode =
|
|
514
|
+
| "SKE_UNSPECIFIED"
|
|
515
|
+
| "SKE_TMP_AUTH_ERROR"
|
|
516
|
+
| "SKE_QUOTA_EXCEEDED"
|
|
517
|
+
| "SKE_OBSERVABILITY_INSTANCE_NOT_FOUND"
|
|
518
|
+
| "SKE_RATE_LIMITS"
|
|
519
|
+
| "SKE_INFRA_ERROR"
|
|
520
|
+
| "SKE_REMAINING_RESOURCES"
|
|
521
|
+
| "SKE_CONFIGURATION_PROBLEM"
|
|
522
|
+
| "SKE_UNREADY_NODES"
|
|
523
|
+
| "SKE_API_SERVER_ERROR"
|
|
524
|
+
| "SKE_DNS_ZONE_NOT_FOUND";
|
|
525
|
+
export const RuntimeErrorCode = /*@__PURE__*/ S.String;
|
|
526
|
+
|
|
527
|
+
export interface RuntimeError {
|
|
528
|
+
/** - Code: `SKE_UNSPECIFIED` Message: "An error occurred. Please open a support ticket if this error persists." - Code: `SKE_TMP_AUTH_ERROR` Message: "Authentication failed. This is a temporary error. Please wait while the system recovers." - Code: `SKE_QUOTA_EXCEEDED` Message: "Your project's resource quotas are exhausted. Please make sure your quota is sufficient for the ordered cluster." - Code: `SKE_OBSERVABILITY_INSTANCE_NOT_FOUND` Message: "The provided Observability instance could not be found." - Code: `SKE_RATE_LIMITS` Message: "While provisioning your cluster, request rate limits where incurred. Please wait while the system recovers." - Code: `SKE_INFRA_ERROR` Message: "An error occurred with the underlying infrastructure. Please open a support ticket if this error persists." - Code: `SKE_REMAINING_RESOURCES` Message: "There are remaining Kubernetes resources in your cluster that prevent deletion. Please make sure to remove them." - Code: `SKE_CONFIGURATION_PROBLEM` Message: "A configuration error occurred. Please open a support ticket if this error persists." - Code: `SKE_UNREADY_NODES` Message: "Not all worker nodes are ready. Please open a support ticket if this error persists." - Code: `SKE_API_SERVER_ERROR` Message: "The Kubernetes API server is not reporting readiness. Please open a support ticket if this error persists." - Code: `SKE_DNS_ZONE_NOT_FOUND` Message: "The provided DNS zone for the STACKIT DNS extension could not be found. Please ensure you defined a valid domain that belongs to a STACKIT DNS zone." */
|
|
529
|
+
code?: RuntimeErrorCode | (string & {});
|
|
530
|
+
details?: string;
|
|
531
|
+
message?: string;
|
|
532
|
+
}
|
|
533
|
+
export const RuntimeError = /*@__PURE__*/ S.suspend(() =>
|
|
534
|
+
S.Struct({
|
|
535
|
+
code: S.optional(RuntimeErrorCode),
|
|
536
|
+
details: S.optional(S.String),
|
|
537
|
+
message: S.optional(S.String),
|
|
538
|
+
}),
|
|
539
|
+
).annotate({ identifier: "RuntimeError" }) as any as S.Schema<RuntimeError>;
|
|
540
|
+
|
|
541
|
+
export interface ClusterError {
|
|
542
|
+
/** Possible values: `"SKE_INFRA_SNA_NETWORK_NOT_FOUND"`, `"SKE_INFRA_SNA_NETWORK_NO_ROUTER"`, `"SKE_NODE_NO_VALID_HOST_FOUND"`, `"SKE_NODE_MISCONFIGURED_PDB"`, `"SKE_NODE_MACHINE_TYPE_NOT_FOUND"`, `"SKE_NETWORK_NO_DNS_CONFIGURED"`, `"SKE_NETWORK_NO_AVAILABLE_IPS"`, `"SKE_NODE_MEMORY_PRESSURE"`, `"SKE_NODE_DISK_PRESSURE"`, `"SKE_NODE_PID_PRESSURE"`, `"SKE_OBSERVABILITY_INSTANCE_NOT_FOUND"`, `"SKE_OBSERVABILITY_INSTANCE_NOT_READY"`, `"SKE_DNS_ZONE_NOT_FOUND"`, `"SKE_SNA_DOES_NOT_SUPPORT_SERVICE_ROUTES"`, `"SKE_FETCHING_ERRORS_NOT_POSSIBLE"` */
|
|
543
|
+
code?: string;
|
|
544
|
+
message?: string;
|
|
545
|
+
}
|
|
546
|
+
export const ClusterError = /*@__PURE__*/ S.suspend(() =>
|
|
547
|
+
S.Struct({
|
|
548
|
+
code: S.optional(S.String),
|
|
549
|
+
message: S.optional(S.String),
|
|
550
|
+
}),
|
|
551
|
+
).annotate({ identifier: "ClusterError" }) as any as S.Schema<ClusterError>;
|
|
552
|
+
|
|
553
|
+
export type ClusterStatusErrorsList = Array<ClusterError>;
|
|
554
|
+
export const ClusterStatusErrorsList = /*@__PURE__*/ S.Array(
|
|
555
|
+
ClusterError,
|
|
556
|
+
) as any as S.Schema<ClusterStatusErrorsList>;
|
|
557
|
+
|
|
558
|
+
export interface ExpirationStatusKubernetes {
|
|
559
|
+
expirationDate?: string;
|
|
560
|
+
version?: string;
|
|
561
|
+
}
|
|
562
|
+
export const ExpirationStatusKubernetes = /*@__PURE__*/ S.suspend(() =>
|
|
563
|
+
S.Struct({
|
|
564
|
+
expirationDate: S.optional(S.String),
|
|
565
|
+
version: S.optional(S.String),
|
|
566
|
+
}),
|
|
567
|
+
).annotate({
|
|
568
|
+
identifier: "ExpirationStatusKubernetes",
|
|
569
|
+
}) as any as S.Schema<ExpirationStatusKubernetes>;
|
|
570
|
+
|
|
571
|
+
export interface ExpirationStatusNodepool {
|
|
572
|
+
kubernetesExpirationDate?: string;
|
|
573
|
+
kubernetesVersion?: string;
|
|
574
|
+
name?: string;
|
|
575
|
+
osExpirationDate?: string;
|
|
576
|
+
osName?: string;
|
|
577
|
+
osVersion?: string;
|
|
578
|
+
}
|
|
579
|
+
export const ExpirationStatusNodepool = /*@__PURE__*/ S.suspend(() =>
|
|
580
|
+
S.Struct({
|
|
581
|
+
kubernetesExpirationDate: S.optional(S.String),
|
|
582
|
+
kubernetesVersion: S.optional(S.String),
|
|
583
|
+
name: S.optional(S.String),
|
|
584
|
+
osExpirationDate: S.optional(S.String),
|
|
585
|
+
osName: S.optional(S.String),
|
|
586
|
+
osVersion: S.optional(S.String),
|
|
587
|
+
}),
|
|
588
|
+
).annotate({
|
|
589
|
+
identifier: "ExpirationStatusNodepool",
|
|
590
|
+
}) as any as S.Schema<ExpirationStatusNodepool>;
|
|
591
|
+
|
|
592
|
+
export type ExpirationStatusNodepoolsList = Array<ExpirationStatusNodepool>;
|
|
593
|
+
export const ExpirationStatusNodepoolsList = /*@__PURE__*/ S.Array(
|
|
594
|
+
ExpirationStatusNodepool,
|
|
595
|
+
) as any as S.Schema<ExpirationStatusNodepoolsList>;
|
|
596
|
+
|
|
597
|
+
export interface ExpirationStatus {
|
|
598
|
+
kubernetes?: ExpirationStatusKubernetes;
|
|
599
|
+
nodepools?: ExpirationStatusNodepoolsList;
|
|
600
|
+
}
|
|
601
|
+
export const ExpirationStatus = /*@__PURE__*/ S.suspend(() =>
|
|
602
|
+
S.Struct({
|
|
603
|
+
kubernetes: S.optional(ExpirationStatusKubernetes),
|
|
604
|
+
nodepools: S.optional(ExpirationStatusNodepoolsList),
|
|
605
|
+
}),
|
|
606
|
+
).annotate({
|
|
607
|
+
identifier: "ExpirationStatus",
|
|
608
|
+
}) as any as S.Schema<ExpirationStatus>;
|
|
609
|
+
|
|
610
|
+
/** The network ranges (in CIDR notation) used by pods of the cluster. */
|
|
611
|
+
export type ClusterStatusPodAddressRangesList = Array<string>;
|
|
612
|
+
export const ClusterStatusPodAddressRangesList = /*@__PURE__*/ S.Array(
|
|
613
|
+
S.String,
|
|
614
|
+
) as any as S.Schema<ClusterStatusPodAddressRangesList>;
|
|
615
|
+
|
|
616
|
+
export interface ClusterStatus {
|
|
617
|
+
aggregated?: ClusterStatusState | (string & {});
|
|
618
|
+
/** Format: `2024-02-15T11:06:29Z` */
|
|
619
|
+
creationTime?: string;
|
|
620
|
+
credentialsRotation?: CredentialsRotationState;
|
|
621
|
+
/** The outgoing network ranges (in CIDR notation) of traffic originating from workload on the cluster. */
|
|
622
|
+
egressAddressRanges?: ClusterStatusEgressAddressRangesList;
|
|
623
|
+
error?: RuntimeError;
|
|
624
|
+
errors?: ClusterStatusErrorsList;
|
|
625
|
+
expiration?: ExpirationStatus;
|
|
626
|
+
hibernated?: boolean;
|
|
627
|
+
identity?: string;
|
|
628
|
+
/** The network ranges (in CIDR notation) used by pods of the cluster. */
|
|
629
|
+
podAddressRanges?: ClusterStatusPodAddressRangesList;
|
|
630
|
+
serviceAccountIssuer?: string;
|
|
631
|
+
}
|
|
632
|
+
export const ClusterStatus = /*@__PURE__*/ S.suspend(() =>
|
|
633
|
+
S.Struct({
|
|
634
|
+
aggregated: S.optional(ClusterStatusState),
|
|
635
|
+
creationTime: S.optional(S.String),
|
|
636
|
+
credentialsRotation: S.optional(CredentialsRotationState),
|
|
637
|
+
egressAddressRanges: S.optional(ClusterStatusEgressAddressRangesList),
|
|
638
|
+
error: S.optional(RuntimeError),
|
|
639
|
+
errors: S.optional(ClusterStatusErrorsList),
|
|
640
|
+
expiration: S.optional(ExpirationStatus),
|
|
641
|
+
hibernated: S.optional(S.Boolean),
|
|
642
|
+
identity: S.optional(S.String),
|
|
643
|
+
podAddressRanges: S.optional(ClusterStatusPodAddressRangesList),
|
|
644
|
+
serviceAccountIssuer: S.optional(S.String),
|
|
645
|
+
}),
|
|
646
|
+
).annotate({ identifier: "ClusterStatus" }) as any as S.Schema<ClusterStatus>;
|
|
647
|
+
|
|
648
|
+
export interface CreateOrUpdateClusterRequest {
|
|
649
|
+
projectId: string;
|
|
650
|
+
region: string;
|
|
651
|
+
/** Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. */
|
|
652
|
+
clusterName: string;
|
|
653
|
+
access?: Access;
|
|
654
|
+
audit?: Audit;
|
|
655
|
+
extensions?: Extension;
|
|
656
|
+
hibernation?: Hibernation;
|
|
657
|
+
kubernetes: Kubernetes;
|
|
658
|
+
/** Labels are key-value pairs. Keys may contain domain prefix separated by a slash(/) and must begin with an alphanumerical character. Values may be empty and if not empty, they must begin and end with an alphanumerical character. Keys can be between 1-314 characters long, whereas values can be 0-63 characters long. */
|
|
659
|
+
labels?: CreateOrUpdateClusterRequestLabelsMap;
|
|
660
|
+
maintenance?: Maintenance;
|
|
661
|
+
network?: Network;
|
|
662
|
+
nodepools: CreateOrUpdateClusterRequestNodepoolsList;
|
|
663
|
+
status?: ClusterStatus;
|
|
664
|
+
}
|
|
665
|
+
export const CreateOrUpdateClusterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
666
|
+
S.Struct({
|
|
667
|
+
projectId: S.String.pipe(T.Label()),
|
|
668
|
+
region: S.String.pipe(T.Label()),
|
|
669
|
+
clusterName: S.String.pipe(T.Label()),
|
|
670
|
+
access: S.optional(Access),
|
|
671
|
+
audit: S.optional(Audit),
|
|
672
|
+
extensions: S.optional(Extension),
|
|
673
|
+
hibernation: S.optional(Hibernation),
|
|
674
|
+
kubernetes: Kubernetes,
|
|
675
|
+
labels: S.optional(CreateOrUpdateClusterRequestLabelsMap),
|
|
676
|
+
maintenance: S.optional(Maintenance),
|
|
677
|
+
network: S.optional(Network),
|
|
678
|
+
nodepools: CreateOrUpdateClusterRequestNodepoolsList,
|
|
679
|
+
status: S.optional(ClusterStatus),
|
|
680
|
+
}).pipe(
|
|
681
|
+
T.Http({
|
|
682
|
+
method: "PUT",
|
|
683
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",
|
|
684
|
+
code: 200,
|
|
685
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
686
|
+
}),
|
|
687
|
+
),
|
|
688
|
+
).annotate({
|
|
689
|
+
identifier: "CreateOrUpdateClusterRequest",
|
|
690
|
+
}) as any as S.Schema<CreateOrUpdateClusterRequest>;
|
|
691
|
+
|
|
692
|
+
/** Labels are key-value pairs. Keys may contain domain prefix separated by a slash(/) and must begin with an alphanumerical character. Values may be empty and if not empty, they must begin and end with an alphanumerical character. Keys can be between 1-314 characters long, whereas values can be 0-63 characters long. */
|
|
693
|
+
export type ClusterLabelsMap = { [key: string]: string | undefined };
|
|
694
|
+
export const ClusterLabelsMap = /*@__PURE__*/ S.Record(
|
|
695
|
+
S.String,
|
|
696
|
+
S.String,
|
|
697
|
+
) as any as S.Schema<ClusterLabelsMap>;
|
|
698
|
+
|
|
699
|
+
export type ClusterNodepoolsList = Array<Nodepool>;
|
|
700
|
+
export const ClusterNodepoolsList = /*@__PURE__*/ S.Array(
|
|
701
|
+
Nodepool,
|
|
702
|
+
) as any as S.Schema<ClusterNodepoolsList>;
|
|
703
|
+
|
|
704
|
+
export interface Cluster {
|
|
705
|
+
access?: Access;
|
|
706
|
+
audit?: Audit;
|
|
707
|
+
extensions?: Extension;
|
|
708
|
+
hibernation?: Hibernation;
|
|
709
|
+
kubernetes: Kubernetes;
|
|
710
|
+
/** Labels are key-value pairs. Keys may contain domain prefix separated by a slash(/) and must begin with an alphanumerical character. Values may be empty and if not empty, they must begin and end with an alphanumerical character. Keys can be between 1-314 characters long, whereas values can be 0-63 characters long. */
|
|
711
|
+
labels?: ClusterLabelsMap;
|
|
712
|
+
maintenance?: Maintenance;
|
|
713
|
+
/** Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. */
|
|
714
|
+
name?: string;
|
|
715
|
+
network?: Network;
|
|
716
|
+
nodepools: ClusterNodepoolsList;
|
|
717
|
+
status?: ClusterStatus;
|
|
718
|
+
}
|
|
719
|
+
export const Cluster = /*@__PURE__*/ S.suspend(() =>
|
|
720
|
+
S.Struct({
|
|
721
|
+
access: S.optional(Access),
|
|
722
|
+
audit: S.optional(Audit),
|
|
723
|
+
extensions: S.optional(Extension),
|
|
724
|
+
hibernation: S.optional(Hibernation),
|
|
725
|
+
kubernetes: Kubernetes,
|
|
726
|
+
labels: S.optional(ClusterLabelsMap),
|
|
727
|
+
maintenance: S.optional(Maintenance),
|
|
728
|
+
name: S.optional(S.String),
|
|
729
|
+
network: S.optional(Network),
|
|
730
|
+
nodepools: ClusterNodepoolsList,
|
|
731
|
+
status: S.optional(ClusterStatus),
|
|
732
|
+
}),
|
|
733
|
+
).annotate({ identifier: "Cluster" }) as any as S.Schema<Cluster>;
|
|
734
|
+
|
|
735
|
+
export interface DeleteClusterRequest {
|
|
736
|
+
projectId: string;
|
|
737
|
+
region: string;
|
|
738
|
+
clusterName: string;
|
|
739
|
+
}
|
|
740
|
+
export const DeleteClusterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
741
|
+
S.Struct({
|
|
742
|
+
projectId: S.String.pipe(T.Label()),
|
|
743
|
+
region: S.String.pipe(T.Label()),
|
|
744
|
+
clusterName: S.String.pipe(T.Label()),
|
|
745
|
+
}).pipe(
|
|
746
|
+
T.Http({
|
|
747
|
+
method: "DELETE",
|
|
748
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",
|
|
749
|
+
code: 200,
|
|
750
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
751
|
+
}),
|
|
752
|
+
),
|
|
753
|
+
).annotate({
|
|
754
|
+
identifier: "DeleteClusterRequest",
|
|
755
|
+
}) as any as S.Schema<DeleteClusterRequest>;
|
|
756
|
+
|
|
757
|
+
export type DeleteClusterResponse = unknown;
|
|
758
|
+
export const DeleteClusterResponse = /*@__PURE__*/ S.suspend(() =>
|
|
759
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
760
|
+
).annotate({
|
|
761
|
+
identifier: "DeleteClusterResponse",
|
|
762
|
+
}) as any as S.Schema<DeleteClusterResponse>;
|
|
763
|
+
|
|
764
|
+
export interface GetClusterRequest {
|
|
765
|
+
projectId: string;
|
|
766
|
+
region: string;
|
|
767
|
+
clusterName: string;
|
|
768
|
+
}
|
|
769
|
+
export const GetClusterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
770
|
+
S.Struct({
|
|
771
|
+
projectId: S.String.pipe(T.Label()),
|
|
772
|
+
region: S.String.pipe(T.Label()),
|
|
773
|
+
clusterName: S.String.pipe(T.Label()),
|
|
774
|
+
}).pipe(
|
|
775
|
+
T.Http({
|
|
776
|
+
method: "GET",
|
|
777
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",
|
|
778
|
+
code: 200,
|
|
779
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
780
|
+
}),
|
|
781
|
+
),
|
|
782
|
+
).annotate({
|
|
783
|
+
identifier: "GetClusterRequest",
|
|
784
|
+
}) as any as S.Schema<GetClusterRequest>;
|
|
785
|
+
|
|
786
|
+
export interface GetIDPKubeconfigRequest {
|
|
787
|
+
projectId: string;
|
|
788
|
+
region: string;
|
|
789
|
+
clusterName: string;
|
|
790
|
+
}
|
|
791
|
+
export const GetIDPKubeconfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
792
|
+
S.Struct({
|
|
793
|
+
projectId: S.String.pipe(T.Label()),
|
|
794
|
+
region: S.String.pipe(T.Label()),
|
|
795
|
+
clusterName: S.String.pipe(T.Label()),
|
|
796
|
+
}).pipe(
|
|
797
|
+
T.Http({
|
|
798
|
+
method: "GET",
|
|
799
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/idp",
|
|
800
|
+
code: 200,
|
|
801
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
802
|
+
}),
|
|
803
|
+
),
|
|
804
|
+
).annotate({
|
|
805
|
+
identifier: "GetIDPKubeconfigRequest",
|
|
806
|
+
}) as any as S.Schema<GetIDPKubeconfigRequest>;
|
|
807
|
+
|
|
808
|
+
export interface IDPKubeconfig {
|
|
809
|
+
kubeconfig?: string;
|
|
810
|
+
}
|
|
811
|
+
export const IDPKubeconfig = /*@__PURE__*/ S.suspend(() =>
|
|
812
|
+
S.Struct({
|
|
813
|
+
kubeconfig: S.optional(S.String),
|
|
814
|
+
}),
|
|
815
|
+
).annotate({ identifier: "IDPKubeconfig" }) as any as S.Schema<IDPKubeconfig>;
|
|
816
|
+
|
|
817
|
+
export interface GetLoginKubeconfigRequest {
|
|
818
|
+
projectId: string;
|
|
819
|
+
region: string;
|
|
820
|
+
clusterName: string;
|
|
821
|
+
}
|
|
822
|
+
export const GetLoginKubeconfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
projectId: S.String.pipe(T.Label()),
|
|
825
|
+
region: S.String.pipe(T.Label()),
|
|
826
|
+
clusterName: S.String.pipe(T.Label()),
|
|
827
|
+
}).pipe(
|
|
828
|
+
T.Http({
|
|
829
|
+
method: "GET",
|
|
830
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/login",
|
|
831
|
+
code: 200,
|
|
832
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
833
|
+
}),
|
|
834
|
+
),
|
|
835
|
+
).annotate({
|
|
836
|
+
identifier: "GetLoginKubeconfigRequest",
|
|
837
|
+
}) as any as S.Schema<GetLoginKubeconfigRequest>;
|
|
838
|
+
|
|
839
|
+
export interface LoginKubeconfig {
|
|
840
|
+
kubeconfig?: string;
|
|
841
|
+
}
|
|
842
|
+
export const LoginKubeconfig = /*@__PURE__*/ S.suspend(() =>
|
|
843
|
+
S.Struct({
|
|
844
|
+
kubeconfig: S.optional(S.String),
|
|
845
|
+
}),
|
|
846
|
+
).annotate({
|
|
847
|
+
identifier: "LoginKubeconfig",
|
|
848
|
+
}) as any as S.Schema<LoginKubeconfig>;
|
|
849
|
+
|
|
850
|
+
export interface ListClustersRequest {
|
|
851
|
+
projectId: string;
|
|
852
|
+
region: string;
|
|
853
|
+
}
|
|
854
|
+
export const ListClustersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
855
|
+
S.Struct({
|
|
856
|
+
projectId: S.String.pipe(T.Label()),
|
|
857
|
+
region: S.String.pipe(T.Label()),
|
|
858
|
+
}).pipe(
|
|
859
|
+
T.Http({
|
|
860
|
+
method: "GET",
|
|
861
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters",
|
|
862
|
+
code: 200,
|
|
863
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
864
|
+
}),
|
|
865
|
+
),
|
|
866
|
+
).annotate({
|
|
867
|
+
identifier: "ListClustersRequest",
|
|
868
|
+
}) as any as S.Schema<ListClustersRequest>;
|
|
869
|
+
|
|
870
|
+
export type ListClustersResponseItemsList = Array<Cluster>;
|
|
871
|
+
export const ListClustersResponseItemsList = /*@__PURE__*/ S.Array(
|
|
872
|
+
Cluster,
|
|
873
|
+
) as any as S.Schema<ListClustersResponseItemsList>;
|
|
874
|
+
|
|
875
|
+
export interface ListClustersResponse {
|
|
876
|
+
items?: ListClustersResponseItemsList;
|
|
877
|
+
}
|
|
878
|
+
export const ListClustersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
879
|
+
S.Struct({
|
|
880
|
+
items: S.optional(ListClustersResponseItemsList),
|
|
881
|
+
}),
|
|
882
|
+
).annotate({
|
|
883
|
+
identifier: "ListClustersResponse",
|
|
884
|
+
}) as any as S.Schema<ListClustersResponse>;
|
|
885
|
+
|
|
886
|
+
export type ListProviderOptionsRequestVersionState = "SUPPORTED";
|
|
887
|
+
export const ListProviderOptionsRequestVersionState = /*@__PURE__*/ S.String;
|
|
888
|
+
|
|
889
|
+
export interface ListProviderOptionsRequest {
|
|
890
|
+
region: string;
|
|
891
|
+
versionState?: ListProviderOptionsRequestVersionState | (string & {});
|
|
892
|
+
}
|
|
893
|
+
export const ListProviderOptionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
894
|
+
S.Struct({
|
|
895
|
+
region: S.String.pipe(T.Label()),
|
|
896
|
+
versionState: S.optional(
|
|
897
|
+
ListProviderOptionsRequestVersionState.pipe(T.Query()),
|
|
898
|
+
),
|
|
899
|
+
}).pipe(
|
|
900
|
+
T.Http({
|
|
901
|
+
method: "GET",
|
|
902
|
+
uri: "/v2/regions/{region}/provider-options",
|
|
903
|
+
code: 200,
|
|
904
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
905
|
+
}),
|
|
906
|
+
),
|
|
907
|
+
).annotate({
|
|
908
|
+
identifier: "ListProviderOptionsRequest",
|
|
909
|
+
}) as any as S.Schema<ListProviderOptionsRequest>;
|
|
910
|
+
|
|
911
|
+
export interface AvailabilityZone {
|
|
912
|
+
name?: string;
|
|
913
|
+
}
|
|
914
|
+
export const AvailabilityZone = /*@__PURE__*/ S.suspend(() =>
|
|
915
|
+
S.Struct({
|
|
916
|
+
name: S.optional(S.String),
|
|
917
|
+
}),
|
|
918
|
+
).annotate({
|
|
919
|
+
identifier: "AvailabilityZone",
|
|
920
|
+
}) as any as S.Schema<AvailabilityZone>;
|
|
921
|
+
|
|
922
|
+
export type ProviderOptionsAvailabilityZonesList = Array<AvailabilityZone>;
|
|
923
|
+
export const ProviderOptionsAvailabilityZonesList = /*@__PURE__*/ S.Array(
|
|
924
|
+
AvailabilityZone,
|
|
925
|
+
) as any as S.Schema<ProviderOptionsAvailabilityZonesList>;
|
|
926
|
+
|
|
927
|
+
export type KubernetesVersionFeatureGatesMap = {
|
|
928
|
+
[key: string]: string | undefined;
|
|
929
|
+
};
|
|
930
|
+
export const KubernetesVersionFeatureGatesMap = /*@__PURE__*/ S.Record(
|
|
931
|
+
S.String,
|
|
932
|
+
S.String,
|
|
933
|
+
) as any as S.Schema<KubernetesVersionFeatureGatesMap>;
|
|
934
|
+
|
|
935
|
+
export interface KubernetesVersion {
|
|
936
|
+
expirationDate?: string;
|
|
937
|
+
featureGates?: KubernetesVersionFeatureGatesMap;
|
|
938
|
+
state?: string;
|
|
939
|
+
version?: string;
|
|
940
|
+
}
|
|
941
|
+
export const KubernetesVersion = /*@__PURE__*/ S.suspend(() =>
|
|
942
|
+
S.Struct({
|
|
943
|
+
expirationDate: S.optional(S.String),
|
|
944
|
+
featureGates: S.optional(KubernetesVersionFeatureGatesMap),
|
|
945
|
+
state: S.optional(S.String),
|
|
946
|
+
version: S.optional(S.String),
|
|
947
|
+
}),
|
|
948
|
+
).annotate({
|
|
949
|
+
identifier: "KubernetesVersion",
|
|
950
|
+
}) as any as S.Schema<KubernetesVersion>;
|
|
951
|
+
|
|
952
|
+
export type ProviderOptionsKubernetesVersionsList = Array<KubernetesVersion>;
|
|
953
|
+
export const ProviderOptionsKubernetesVersionsList = /*@__PURE__*/ S.Array(
|
|
954
|
+
KubernetesVersion,
|
|
955
|
+
) as any as S.Schema<ProviderOptionsKubernetesVersionsList>;
|
|
956
|
+
|
|
957
|
+
export type MachineImageVersionCriList = Array<CRI>;
|
|
958
|
+
export const MachineImageVersionCriList = /*@__PURE__*/ S.Array(
|
|
959
|
+
CRI,
|
|
960
|
+
) as any as S.Schema<MachineImageVersionCriList>;
|
|
961
|
+
|
|
962
|
+
export interface MachineImageVersion {
|
|
963
|
+
cri?: MachineImageVersionCriList;
|
|
964
|
+
expirationDate?: string;
|
|
965
|
+
state?: string;
|
|
966
|
+
version?: string;
|
|
967
|
+
}
|
|
968
|
+
export const MachineImageVersion = /*@__PURE__*/ S.suspend(() =>
|
|
969
|
+
S.Struct({
|
|
970
|
+
cri: S.optional(MachineImageVersionCriList),
|
|
971
|
+
expirationDate: S.optional(S.String),
|
|
972
|
+
state: S.optional(S.String),
|
|
973
|
+
version: S.optional(S.String),
|
|
974
|
+
}),
|
|
975
|
+
).annotate({
|
|
976
|
+
identifier: "MachineImageVersion",
|
|
977
|
+
}) as any as S.Schema<MachineImageVersion>;
|
|
978
|
+
|
|
979
|
+
export type MachineImageVersionsList = Array<MachineImageVersion>;
|
|
980
|
+
export const MachineImageVersionsList = /*@__PURE__*/ S.Array(
|
|
981
|
+
MachineImageVersion,
|
|
982
|
+
) as any as S.Schema<MachineImageVersionsList>;
|
|
983
|
+
|
|
984
|
+
export interface MachineImage {
|
|
985
|
+
name?: string;
|
|
986
|
+
versions?: MachineImageVersionsList;
|
|
987
|
+
}
|
|
988
|
+
export const MachineImage = /*@__PURE__*/ S.suspend(() =>
|
|
989
|
+
S.Struct({
|
|
990
|
+
name: S.optional(S.String),
|
|
991
|
+
versions: S.optional(MachineImageVersionsList),
|
|
992
|
+
}),
|
|
993
|
+
).annotate({ identifier: "MachineImage" }) as any as S.Schema<MachineImage>;
|
|
994
|
+
|
|
995
|
+
export type ProviderOptionsMachineImagesList = Array<MachineImage>;
|
|
996
|
+
export const ProviderOptionsMachineImagesList = /*@__PURE__*/ S.Array(
|
|
997
|
+
MachineImage,
|
|
998
|
+
) as any as S.Schema<ProviderOptionsMachineImagesList>;
|
|
999
|
+
|
|
1000
|
+
export interface MachineType {
|
|
1001
|
+
architecture?: string;
|
|
1002
|
+
cpu?: number;
|
|
1003
|
+
gpu?: number;
|
|
1004
|
+
memory?: number;
|
|
1005
|
+
name?: string;
|
|
1006
|
+
}
|
|
1007
|
+
export const MachineType = /*@__PURE__*/ S.suspend(() =>
|
|
1008
|
+
S.Struct({
|
|
1009
|
+
architecture: S.optional(S.String),
|
|
1010
|
+
cpu: S.optional(S.Number),
|
|
1011
|
+
gpu: S.optional(S.Number),
|
|
1012
|
+
memory: S.optional(S.Number),
|
|
1013
|
+
name: S.optional(S.String),
|
|
1014
|
+
}),
|
|
1015
|
+
).annotate({ identifier: "MachineType" }) as any as S.Schema<MachineType>;
|
|
1016
|
+
|
|
1017
|
+
export type ProviderOptionsMachineTypesList = Array<MachineType>;
|
|
1018
|
+
export const ProviderOptionsMachineTypesList = /*@__PURE__*/ S.Array(
|
|
1019
|
+
MachineType,
|
|
1020
|
+
) as any as S.Schema<ProviderOptionsMachineTypesList>;
|
|
1021
|
+
|
|
1022
|
+
export type VolumeType = AvailabilityZone;
|
|
1023
|
+
export const VolumeType = AvailabilityZone;
|
|
1024
|
+
|
|
1025
|
+
export type ProviderOptionsVolumeTypesList = Array<AvailabilityZone>;
|
|
1026
|
+
export const ProviderOptionsVolumeTypesList = /*@__PURE__*/ S.Array(
|
|
1027
|
+
AvailabilityZone,
|
|
1028
|
+
) as any as S.Schema<ProviderOptionsVolumeTypesList>;
|
|
1029
|
+
|
|
1030
|
+
export interface ProviderOptions {
|
|
1031
|
+
availabilityZones?: ProviderOptionsAvailabilityZonesList;
|
|
1032
|
+
kubernetesVersions?: ProviderOptionsKubernetesVersionsList;
|
|
1033
|
+
machineImages?: ProviderOptionsMachineImagesList;
|
|
1034
|
+
machineTypes?: ProviderOptionsMachineTypesList;
|
|
1035
|
+
volumeTypes?: ProviderOptionsVolumeTypesList;
|
|
1036
|
+
}
|
|
1037
|
+
export const ProviderOptions = /*@__PURE__*/ S.suspend(() =>
|
|
1038
|
+
S.Struct({
|
|
1039
|
+
availabilityZones: S.optional(ProviderOptionsAvailabilityZonesList),
|
|
1040
|
+
kubernetesVersions: S.optional(ProviderOptionsKubernetesVersionsList),
|
|
1041
|
+
machineImages: S.optional(ProviderOptionsMachineImagesList),
|
|
1042
|
+
machineTypes: S.optional(ProviderOptionsMachineTypesList),
|
|
1043
|
+
volumeTypes: S.optional(ProviderOptionsVolumeTypesList),
|
|
1044
|
+
}),
|
|
1045
|
+
).annotate({
|
|
1046
|
+
identifier: "ProviderOptions",
|
|
1047
|
+
}) as any as S.Schema<ProviderOptions>;
|
|
1048
|
+
|
|
1049
|
+
export interface StartCredentialsRotationRequest {
|
|
1050
|
+
projectId: string;
|
|
1051
|
+
region: string;
|
|
1052
|
+
clusterName: string;
|
|
1053
|
+
}
|
|
1054
|
+
export const StartCredentialsRotationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1055
|
+
S.Struct({
|
|
1056
|
+
projectId: S.String.pipe(T.Label()),
|
|
1057
|
+
region: S.String.pipe(T.Label()),
|
|
1058
|
+
clusterName: S.String.pipe(T.Label()),
|
|
1059
|
+
}).pipe(
|
|
1060
|
+
T.Http({
|
|
1061
|
+
method: "POST",
|
|
1062
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/start-credentials-rotation",
|
|
1063
|
+
code: 200,
|
|
1064
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
1065
|
+
}),
|
|
1066
|
+
),
|
|
1067
|
+
).annotate({
|
|
1068
|
+
identifier: "StartCredentialsRotationRequest",
|
|
1069
|
+
}) as any as S.Schema<StartCredentialsRotationRequest>;
|
|
1070
|
+
|
|
1071
|
+
export type StartCredentialsRotationResponse = unknown;
|
|
1072
|
+
export const StartCredentialsRotationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1073
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1074
|
+
).annotate({
|
|
1075
|
+
identifier: "StartCredentialsRotationResponse",
|
|
1076
|
+
}) as any as S.Schema<StartCredentialsRotationResponse>;
|
|
1077
|
+
|
|
1078
|
+
export interface TriggerHibernateRequest {
|
|
1079
|
+
projectId: string;
|
|
1080
|
+
region: string;
|
|
1081
|
+
clusterName: string;
|
|
1082
|
+
}
|
|
1083
|
+
export const TriggerHibernateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1084
|
+
S.Struct({
|
|
1085
|
+
projectId: S.String.pipe(T.Label()),
|
|
1086
|
+
region: S.String.pipe(T.Label()),
|
|
1087
|
+
clusterName: S.String.pipe(T.Label()),
|
|
1088
|
+
}).pipe(
|
|
1089
|
+
T.Http({
|
|
1090
|
+
method: "POST",
|
|
1091
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/hibernate",
|
|
1092
|
+
code: 200,
|
|
1093
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
1094
|
+
}),
|
|
1095
|
+
),
|
|
1096
|
+
).annotate({
|
|
1097
|
+
identifier: "TriggerHibernateRequest",
|
|
1098
|
+
}) as any as S.Schema<TriggerHibernateRequest>;
|
|
1099
|
+
|
|
1100
|
+
export type TriggerHibernateResponse = unknown;
|
|
1101
|
+
export const TriggerHibernateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1102
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1103
|
+
).annotate({
|
|
1104
|
+
identifier: "TriggerHibernateResponse",
|
|
1105
|
+
}) as any as S.Schema<TriggerHibernateResponse>;
|
|
1106
|
+
|
|
1107
|
+
export interface TriggerMaintenanceRequest {
|
|
1108
|
+
projectId: string;
|
|
1109
|
+
region: string;
|
|
1110
|
+
clusterName: string;
|
|
1111
|
+
}
|
|
1112
|
+
export const TriggerMaintenanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1113
|
+
S.Struct({
|
|
1114
|
+
projectId: S.String.pipe(T.Label()),
|
|
1115
|
+
region: S.String.pipe(T.Label()),
|
|
1116
|
+
clusterName: S.String.pipe(T.Label()),
|
|
1117
|
+
}).pipe(
|
|
1118
|
+
T.Http({
|
|
1119
|
+
method: "POST",
|
|
1120
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/maintenance",
|
|
1121
|
+
code: 200,
|
|
1122
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
1123
|
+
}),
|
|
1124
|
+
),
|
|
1125
|
+
).annotate({
|
|
1126
|
+
identifier: "TriggerMaintenanceRequest",
|
|
1127
|
+
}) as any as S.Schema<TriggerMaintenanceRequest>;
|
|
1128
|
+
|
|
1129
|
+
export type TriggerMaintenanceResponse = unknown;
|
|
1130
|
+
export const TriggerMaintenanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1131
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1132
|
+
).annotate({
|
|
1133
|
+
identifier: "TriggerMaintenanceResponse",
|
|
1134
|
+
}) as any as S.Schema<TriggerMaintenanceResponse>;
|
|
1135
|
+
|
|
1136
|
+
export interface TriggerReconcileRequest {
|
|
1137
|
+
projectId: string;
|
|
1138
|
+
region: string;
|
|
1139
|
+
clusterName: string;
|
|
1140
|
+
}
|
|
1141
|
+
export const TriggerReconcileRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1142
|
+
S.Struct({
|
|
1143
|
+
projectId: S.String.pipe(T.Label()),
|
|
1144
|
+
region: S.String.pipe(T.Label()),
|
|
1145
|
+
clusterName: S.String.pipe(T.Label()),
|
|
1146
|
+
}).pipe(
|
|
1147
|
+
T.Http({
|
|
1148
|
+
method: "POST",
|
|
1149
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/reconcile",
|
|
1150
|
+
code: 200,
|
|
1151
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
1152
|
+
}),
|
|
1153
|
+
),
|
|
1154
|
+
).annotate({
|
|
1155
|
+
identifier: "TriggerReconcileRequest",
|
|
1156
|
+
}) as any as S.Schema<TriggerReconcileRequest>;
|
|
1157
|
+
|
|
1158
|
+
export type TriggerReconcileResponse = unknown;
|
|
1159
|
+
export const TriggerReconcileResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1160
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1161
|
+
).annotate({
|
|
1162
|
+
identifier: "TriggerReconcileResponse",
|
|
1163
|
+
}) as any as S.Schema<TriggerReconcileResponse>;
|
|
1164
|
+
|
|
1165
|
+
export interface TriggerWakeupRequest {
|
|
1166
|
+
projectId: string;
|
|
1167
|
+
region: string;
|
|
1168
|
+
clusterName: string;
|
|
1169
|
+
}
|
|
1170
|
+
export const TriggerWakeupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1171
|
+
S.Struct({
|
|
1172
|
+
projectId: S.String.pipe(T.Label()),
|
|
1173
|
+
region: S.String.pipe(T.Label()),
|
|
1174
|
+
clusterName: S.String.pipe(T.Label()),
|
|
1175
|
+
}).pipe(
|
|
1176
|
+
T.Http({
|
|
1177
|
+
method: "POST",
|
|
1178
|
+
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/wakeup",
|
|
1179
|
+
code: 200,
|
|
1180
|
+
baseUrl: "https://ske.api.stackit.cloud",
|
|
1181
|
+
}),
|
|
1182
|
+
),
|
|
1183
|
+
).annotate({
|
|
1184
|
+
identifier: "TriggerWakeupRequest",
|
|
1185
|
+
}) as any as S.Schema<TriggerWakeupRequest>;
|
|
1186
|
+
|
|
1187
|
+
export type TriggerWakeupResponse = unknown;
|
|
1188
|
+
export const TriggerWakeupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1189
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1190
|
+
).annotate({
|
|
1191
|
+
identifier: "TriggerWakeupResponse",
|
|
1192
|
+
}) as any as S.Schema<TriggerWakeupResponse>;
|
|
1193
|
+
|
|
1194
|
+
export type CompleteCredentialsRotationError =
|
|
1195
|
+
| BadRequest
|
|
1196
|
+
| NotFound
|
|
1197
|
+
| StackitOpError;
|
|
1198
|
+
/** Complete cluster credentials rotation Complete cluster credentials rotation. This is step 2 of a two-step process. Start the rotation using [start-credentials-rotation](#tag/Credentials/operation/SkeService_StartClusterCredentialsRotation). */
|
|
1199
|
+
export const completeCredentialsRotation: API.OperationMethod<
|
|
1200
|
+
CompleteCredentialsRotationRequest,
|
|
1201
|
+
CompleteCredentialsRotationResponse,
|
|
1202
|
+
CompleteCredentialsRotationError,
|
|
1203
|
+
StackitOpContext
|
|
1204
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1205
|
+
input: CompleteCredentialsRotationRequest,
|
|
1206
|
+
output: CompleteCredentialsRotationResponse,
|
|
1207
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1208
|
+
protocol: StackitProtocol,
|
|
1209
|
+
retry: Retry.Retry,
|
|
1210
|
+
}));
|
|
1211
|
+
|
|
1212
|
+
export type CreateKubeconfigError = BadRequest | NotFound | StackitOpError;
|
|
1213
|
+
/** Create an admin kubeconfig Create a new admin kubeconfig for the cluster. You can specify the expiration (in seconds) in the request body. Its value must be in the range from 600 (10 min) to 15552000 (6 months). Defaults to 3600. */
|
|
1214
|
+
export const createKubeconfig: API.OperationMethod<
|
|
1215
|
+
CreateKubeconfigRequest,
|
|
1216
|
+
Kubeconfig,
|
|
1217
|
+
CreateKubeconfigError,
|
|
1218
|
+
StackitOpContext
|
|
1219
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1220
|
+
input: CreateKubeconfigRequest,
|
|
1221
|
+
output: Kubeconfig,
|
|
1222
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1223
|
+
protocol: StackitProtocol,
|
|
1224
|
+
retry: Retry.Retry,
|
|
1225
|
+
}));
|
|
1226
|
+
|
|
1227
|
+
export type CreateOrUpdateClusterError = BadRequest | NotFound | StackitOpError;
|
|
1228
|
+
/** Create or update a cluster Create a new cluster in your project or modify an existing one. To get valid values for certain properties please check the [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) endpoint. */
|
|
1229
|
+
export const createOrUpdateCluster: API.OperationMethod<
|
|
1230
|
+
CreateOrUpdateClusterRequest,
|
|
1231
|
+
Cluster,
|
|
1232
|
+
CreateOrUpdateClusterError,
|
|
1233
|
+
StackitOpContext
|
|
1234
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1235
|
+
input: CreateOrUpdateClusterRequest,
|
|
1236
|
+
output: Cluster,
|
|
1237
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1238
|
+
protocol: StackitProtocol,
|
|
1239
|
+
retry: Retry.Retry,
|
|
1240
|
+
}));
|
|
1241
|
+
|
|
1242
|
+
export type DeleteClusterError = BadRequest | NotFound | StackitOpError;
|
|
1243
|
+
/** Delete a cluster Delete Kubernetes cluster specified by the identifier, belonging to the project specified by `projectId`. */
|
|
1244
|
+
export const deleteCluster: API.OperationMethod<
|
|
1245
|
+
DeleteClusterRequest,
|
|
1246
|
+
DeleteClusterResponse,
|
|
1247
|
+
DeleteClusterError,
|
|
1248
|
+
StackitOpContext
|
|
1249
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1250
|
+
input: DeleteClusterRequest,
|
|
1251
|
+
output: DeleteClusterResponse,
|
|
1252
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1253
|
+
protocol: StackitProtocol,
|
|
1254
|
+
retry: Retry.Retry,
|
|
1255
|
+
}));
|
|
1256
|
+
|
|
1257
|
+
export type GetClusterError = BadRequest | NotFound | StackitOpError;
|
|
1258
|
+
/** Get a cluster Get Kubernetes cluster for the specified identifier, belonging to the project specified by `projectId`. */
|
|
1259
|
+
export const getCluster: API.OperationMethod<
|
|
1260
|
+
GetClusterRequest,
|
|
1261
|
+
Cluster,
|
|
1262
|
+
GetClusterError,
|
|
1263
|
+
StackitOpContext
|
|
1264
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1265
|
+
input: GetClusterRequest,
|
|
1266
|
+
output: Cluster,
|
|
1267
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1268
|
+
protocol: StackitProtocol,
|
|
1269
|
+
retry: Retry.Retry,
|
|
1270
|
+
}));
|
|
1271
|
+
|
|
1272
|
+
export type GetIDPKubeconfigError = BadRequest | NotFound | StackitOpError;
|
|
1273
|
+
/** Get a kubeconfig to authenticate via IDP for use with the STACKIT CLI A kubeconfig retrieved using this endpoint does not contain any credentials and instead obtains valid credentials via the STACKIT CLI. Permissions must be granted to the user beforehand using an admin kubeconfig. */
|
|
1274
|
+
export const getIDPKubeconfig: API.OperationMethod<
|
|
1275
|
+
GetIDPKubeconfigRequest,
|
|
1276
|
+
IDPKubeconfig,
|
|
1277
|
+
GetIDPKubeconfigError,
|
|
1278
|
+
StackitOpContext
|
|
1279
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1280
|
+
input: GetIDPKubeconfigRequest,
|
|
1281
|
+
output: IDPKubeconfig,
|
|
1282
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1283
|
+
protocol: StackitProtocol,
|
|
1284
|
+
retry: Retry.Retry,
|
|
1285
|
+
}));
|
|
1286
|
+
|
|
1287
|
+
export type GetLoginKubeconfigError = BadRequest | NotFound | StackitOpError;
|
|
1288
|
+
/** Get an admin kubeconfig for use with the STACKIT CLI A admin kubeconfig retrieved using this endpoint does not contain any credentials and instead obtains valid credentials via the STACKIT CLI. */
|
|
1289
|
+
export const getLoginKubeconfig: API.OperationMethod<
|
|
1290
|
+
GetLoginKubeconfigRequest,
|
|
1291
|
+
LoginKubeconfig,
|
|
1292
|
+
GetLoginKubeconfigError,
|
|
1293
|
+
StackitOpContext
|
|
1294
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1295
|
+
input: GetLoginKubeconfigRequest,
|
|
1296
|
+
output: LoginKubeconfig,
|
|
1297
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1298
|
+
protocol: StackitProtocol,
|
|
1299
|
+
retry: Retry.Retry,
|
|
1300
|
+
}));
|
|
1301
|
+
|
|
1302
|
+
export type ListClustersError = BadRequest | NotFound | StackitOpError;
|
|
1303
|
+
/** List all clusters Return a list of Kubernetes clusters in the project specified by `projectId`. */
|
|
1304
|
+
export const listClusters: API.OperationMethod<
|
|
1305
|
+
ListClustersRequest,
|
|
1306
|
+
ListClustersResponse,
|
|
1307
|
+
ListClustersError,
|
|
1308
|
+
StackitOpContext
|
|
1309
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1310
|
+
input: ListClustersRequest,
|
|
1311
|
+
output: ListClustersResponse,
|
|
1312
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1313
|
+
protocol: StackitProtocol,
|
|
1314
|
+
retry: Retry.Retry,
|
|
1315
|
+
}));
|
|
1316
|
+
|
|
1317
|
+
export type ListProviderOptionsError = BadRequest | StackitOpError;
|
|
1318
|
+
/** List provider options Returns available Kubernetes versions, availability zones, machine types, OS versions and volume types for the cluster nodes. */
|
|
1319
|
+
export const listProviderOptions: API.OperationMethod<
|
|
1320
|
+
ListProviderOptionsRequest,
|
|
1321
|
+
ProviderOptions,
|
|
1322
|
+
ListProviderOptionsError,
|
|
1323
|
+
StackitOpContext
|
|
1324
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1325
|
+
input: ListProviderOptionsRequest,
|
|
1326
|
+
output: ProviderOptions,
|
|
1327
|
+
errors: [BadRequest, UnknownStackitError],
|
|
1328
|
+
protocol: StackitProtocol,
|
|
1329
|
+
retry: Retry.Retry,
|
|
1330
|
+
}));
|
|
1331
|
+
|
|
1332
|
+
export type StartCredentialsRotationError =
|
|
1333
|
+
| BadRequest
|
|
1334
|
+
| NotFound
|
|
1335
|
+
| StackitOpError;
|
|
1336
|
+
/** Start cluster credentials rotation Start cluster credentials rotation. This is step 1 of a two-step process. Complete the rotation using [complete-credentials-rotation](#tag/Credentials/operation/SkeService_CompleteClusterCredentialsRotation). */
|
|
1337
|
+
export const startCredentialsRotation: API.OperationMethod<
|
|
1338
|
+
StartCredentialsRotationRequest,
|
|
1339
|
+
StartCredentialsRotationResponse,
|
|
1340
|
+
StartCredentialsRotationError,
|
|
1341
|
+
StackitOpContext
|
|
1342
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1343
|
+
input: StartCredentialsRotationRequest,
|
|
1344
|
+
output: StartCredentialsRotationResponse,
|
|
1345
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1346
|
+
protocol: StackitProtocol,
|
|
1347
|
+
retry: Retry.Retry,
|
|
1348
|
+
}));
|
|
1349
|
+
|
|
1350
|
+
export type TriggerHibernateError = BadRequest | NotFound | StackitOpError;
|
|
1351
|
+
/** Trigger cluster hibernation Trigger immediate hibernation of the cluster. If the cluster is already in hibernation state, this endpoint does nothing. */
|
|
1352
|
+
export const triggerHibernate: API.OperationMethod<
|
|
1353
|
+
TriggerHibernateRequest,
|
|
1354
|
+
TriggerHibernateResponse,
|
|
1355
|
+
TriggerHibernateError,
|
|
1356
|
+
StackitOpContext
|
|
1357
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1358
|
+
input: TriggerHibernateRequest,
|
|
1359
|
+
output: TriggerHibernateResponse,
|
|
1360
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1361
|
+
protocol: StackitProtocol,
|
|
1362
|
+
retry: Retry.Retry,
|
|
1363
|
+
}));
|
|
1364
|
+
|
|
1365
|
+
export type TriggerMaintenanceError = BadRequest | NotFound | StackitOpError;
|
|
1366
|
+
/** Trigger cluster maintenance Trigger immediate maintenance of the cluster. The autoUpdate configuration specified in the Maintenance object of the cluster spec defines what is updated during the immediate maintenance operation. */
|
|
1367
|
+
export const triggerMaintenance: API.OperationMethod<
|
|
1368
|
+
TriggerMaintenanceRequest,
|
|
1369
|
+
TriggerMaintenanceResponse,
|
|
1370
|
+
TriggerMaintenanceError,
|
|
1371
|
+
StackitOpContext
|
|
1372
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1373
|
+
input: TriggerMaintenanceRequest,
|
|
1374
|
+
output: TriggerMaintenanceResponse,
|
|
1375
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1376
|
+
protocol: StackitProtocol,
|
|
1377
|
+
retry: Retry.Retry,
|
|
1378
|
+
}));
|
|
1379
|
+
|
|
1380
|
+
export type TriggerReconcileError = BadRequest | NotFound | StackitOpError;
|
|
1381
|
+
/** Trigger cluster reconciliation Trigger immediate reconciliation of the complete cluster without changing the cluster specification. */
|
|
1382
|
+
export const triggerReconcile: API.OperationMethod<
|
|
1383
|
+
TriggerReconcileRequest,
|
|
1384
|
+
TriggerReconcileResponse,
|
|
1385
|
+
TriggerReconcileError,
|
|
1386
|
+
StackitOpContext
|
|
1387
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1388
|
+
input: TriggerReconcileRequest,
|
|
1389
|
+
output: TriggerReconcileResponse,
|
|
1390
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1391
|
+
protocol: StackitProtocol,
|
|
1392
|
+
retry: Retry.Retry,
|
|
1393
|
+
}));
|
|
1394
|
+
|
|
1395
|
+
export type TriggerWakeupError = BadRequest | NotFound | StackitOpError;
|
|
1396
|
+
/** Trigger cluster wakeup Trigger immediate wake up of the cluster. If the cluster is already in running state, this endpoint does nothing. */
|
|
1397
|
+
export const triggerWakeup: API.OperationMethod<
|
|
1398
|
+
TriggerWakeupRequest,
|
|
1399
|
+
TriggerWakeupResponse,
|
|
1400
|
+
TriggerWakeupError,
|
|
1401
|
+
StackitOpContext
|
|
1402
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1403
|
+
input: TriggerWakeupRequest,
|
|
1404
|
+
output: TriggerWakeupResponse,
|
|
1405
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1406
|
+
protocol: StackitProtocol,
|
|
1407
|
+
retry: Retry.Retry,
|
|
1408
|
+
}));
|