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