@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/lib/services/ske.js
CHANGED
|
@@ -1,558 +1,76 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/complete-credentials-rotation",
|
|
28
|
-
code: 200,
|
|
29
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
30
|
-
}))).annotate({
|
|
31
|
-
identifier: "CompleteCredentialsRotationRequest",
|
|
32
|
-
});
|
|
33
|
-
export const CompleteCredentialsRotationResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
34
|
-
identifier: "CompleteCredentialsRotationResponse",
|
|
35
|
-
});
|
|
36
|
-
export const CreateKubeconfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
37
|
-
projectId: S.String.pipe(T.Label()),
|
|
38
|
-
region: S.String.pipe(T.Label()),
|
|
39
|
-
clusterName: S.String.pipe(T.Label()),
|
|
40
|
-
expirationSeconds: S.optional(S.String),
|
|
41
|
-
}).pipe(T.Http({
|
|
42
|
-
method: "POST",
|
|
43
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig",
|
|
44
|
-
code: 200,
|
|
45
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
46
|
-
}))).annotate({ identifier: "CreateKubeconfigRequest" });
|
|
47
|
-
export const Kubeconfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
48
|
-
expirationTimestamp: S.optional(S.String),
|
|
49
|
-
kubeconfig: S.optional(S.String),
|
|
50
|
-
})).annotate({ identifier: "Kubeconfig" });
|
|
51
|
-
export const IDP = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
-
enabled: S.Boolean,
|
|
53
|
-
type: S.String,
|
|
54
|
-
})).annotate({ identifier: "IDP" });
|
|
55
|
-
export const Access = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
56
|
-
idp: S.optional(IDP),
|
|
57
|
-
})).annotate({ identifier: "Access" });
|
|
58
|
-
export const Audit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
-
enabled: S.Boolean,
|
|
60
|
-
})).annotate({ identifier: "Audit" });
|
|
61
|
-
export const ACLAllowedCidrsList = /*@__PURE__*/ S.Array(S.String);
|
|
62
|
-
export const ACL = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
-
allowedCidrs: ACLAllowedCidrsList,
|
|
64
|
-
enabled: S.Boolean,
|
|
65
|
-
})).annotate({ identifier: "ACL" });
|
|
66
|
-
export const ApplicationLoadBalancer = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
|
-
enabled: S.Boolean,
|
|
68
|
-
})).annotate({ identifier: "ApplicationLoadBalancer" });
|
|
69
|
-
export const DNSZonesList = /*@__PURE__*/ S.Array(S.String);
|
|
70
|
-
export const DNS = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
71
|
-
enabled: S.Boolean,
|
|
72
|
-
gatewayApi: S.optional(S.Boolean),
|
|
73
|
-
zones: S.optional(DNSZonesList),
|
|
74
|
-
})).annotate({ identifier: "DNS" });
|
|
75
|
-
export const Observability = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
76
|
-
enabled: S.Boolean,
|
|
77
|
-
instanceId: S.String,
|
|
78
|
-
})).annotate({ identifier: "Observability" });
|
|
79
|
-
export const Extension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
acl: S.optional(ACL),
|
|
81
|
-
applicationLoadBalancer: S.optional(ApplicationLoadBalancer),
|
|
82
|
-
dns: S.optional(DNS),
|
|
83
|
-
observability: S.optional(Observability),
|
|
84
|
-
})).annotate({ identifier: "Extension" });
|
|
85
|
-
export const HibernationSchedule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
86
|
-
end: S.String,
|
|
87
|
-
start: S.String,
|
|
88
|
-
timezone: S.optional(S.String),
|
|
89
|
-
})).annotate({ identifier: "HibernationSchedule" });
|
|
90
|
-
export const HibernationSchedulesList = /*@__PURE__*/ S.Array(HibernationSchedule);
|
|
91
|
-
export const Hibernation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
schedules: HibernationSchedulesList,
|
|
93
|
-
})).annotate({ identifier: "Hibernation" });
|
|
94
|
-
export const Kubernetes = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
95
|
-
version: S.String,
|
|
96
|
-
})).annotate({ identifier: "Kubernetes" });
|
|
97
|
-
export const CreateOrUpdateClusterRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
98
|
-
export const MaintenanceAutoUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
-
kubernetesVersion: S.optional(S.Boolean),
|
|
100
|
-
machineImageVersion: S.optional(S.Boolean),
|
|
101
|
-
})).annotate({ identifier: "MaintenanceAutoUpdate" });
|
|
102
|
-
export const TimeWindow = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
-
end: S.String,
|
|
104
|
-
start: S.String,
|
|
105
|
-
})).annotate({ identifier: "TimeWindow" });
|
|
106
|
-
export const Maintenance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
107
|
-
autoUpdate: S.optional(MaintenanceAutoUpdate),
|
|
108
|
-
timeWindow: S.optional(TimeWindow),
|
|
109
|
-
})).annotate({ identifier: "Maintenance" });
|
|
110
|
-
export const CNI = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
-
calico: S.optional(S.Unknown),
|
|
112
|
-
})).annotate({ identifier: "CNI" });
|
|
113
|
-
export const AccessScope = S.String;
|
|
114
|
-
export const V2ControlPlaneNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
115
|
-
accessScope: S.optional(AccessScope),
|
|
116
|
-
})).annotate({ identifier: "V2ControlPlaneNetwork" });
|
|
117
|
-
export const NetworkPodAddressRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
118
|
-
export const NetworkServiceAddressRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
119
|
-
export const Network = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
cni: S.optional(CNI),
|
|
121
|
-
controlPlane: S.optional(V2ControlPlaneNetwork),
|
|
122
|
-
id: S.optional(S.String),
|
|
123
|
-
podAddressRanges: S.optional(NetworkPodAddressRangesList),
|
|
124
|
-
serviceAddressRanges: S.optional(NetworkServiceAddressRangesList),
|
|
125
|
-
})).annotate({ identifier: "Network" });
|
|
126
|
-
export const NodepoolAvailabilityZonesList = /*@__PURE__*/ S.Array(S.String);
|
|
127
|
-
export const Kata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
128
|
-
enabled: S.Boolean,
|
|
129
|
-
})).annotate({ identifier: "Kata" });
|
|
130
|
-
export const CRIName = S.String;
|
|
131
|
-
export const CRI = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
132
|
-
kata: S.optional(Kata),
|
|
133
|
-
name: S.optional(CRIName),
|
|
134
|
-
})).annotate({ identifier: "CRI" });
|
|
135
|
-
export const NodepoolKubernetes = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
-
version: S.optional(S.String),
|
|
137
|
-
})).annotate({ identifier: "NodepoolKubernetes" });
|
|
138
|
-
export const NodepoolLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
139
|
-
export const Image = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
-
name: S.String,
|
|
141
|
-
version: S.String,
|
|
142
|
-
})).annotate({ identifier: "Image" });
|
|
143
|
-
export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
144
|
-
image: Image,
|
|
145
|
-
type: S.String,
|
|
146
|
-
})).annotate({ identifier: "Machine" });
|
|
147
|
-
export const TaintEffect = S.String;
|
|
148
|
-
export const Taint = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
149
|
-
effect: TaintEffect,
|
|
150
|
-
key: S.String,
|
|
151
|
-
value: S.optional(S.String),
|
|
152
|
-
})).annotate({ identifier: "Taint" });
|
|
153
|
-
export const NodepoolTaintsList = /*@__PURE__*/ S.Array(Taint);
|
|
154
|
-
export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
|
-
size: S.Number,
|
|
156
|
-
type: S.optional(S.String),
|
|
157
|
-
})).annotate({ identifier: "Volume" });
|
|
158
|
-
export const Nodepool = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
159
|
-
allowSystemComponents: S.optional(S.Boolean),
|
|
160
|
-
availabilityZones: NodepoolAvailabilityZonesList,
|
|
161
|
-
cri: S.optional(CRI),
|
|
162
|
-
kubernetes: S.optional(NodepoolKubernetes),
|
|
163
|
-
labels: S.optional(NodepoolLabelsMap),
|
|
164
|
-
machine: Machine,
|
|
165
|
-
maxSurge: S.optional(S.Number),
|
|
166
|
-
maxUnavailable: S.optional(S.Number),
|
|
167
|
-
maximum: S.Number,
|
|
168
|
-
minimum: S.Number,
|
|
169
|
-
name: S.String,
|
|
170
|
-
taints: S.optional(NodepoolTaintsList),
|
|
171
|
-
volume: Volume,
|
|
172
|
-
})).annotate({ identifier: "Nodepool" });
|
|
173
|
-
export const CreateOrUpdateClusterRequestNodepoolsList = /*@__PURE__*/ S.Array(Nodepool);
|
|
174
|
-
export const ClusterStatusState = S.String;
|
|
175
|
-
export const CredentialsRotationStatePhase = S.String;
|
|
176
|
-
export const CredentialsRotationState = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
177
|
-
lastCompletionTime: S.optional(S.String),
|
|
178
|
-
lastInitiationTime: S.optional(S.String),
|
|
179
|
-
phase: S.optional(CredentialsRotationStatePhase),
|
|
180
|
-
})).annotate({ identifier: "CredentialsRotationState" });
|
|
181
|
-
export const ClusterStatusEgressAddressRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
182
|
-
export const RuntimeErrorCode = S.String;
|
|
183
|
-
export const RuntimeError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
184
|
-
code: S.optional(RuntimeErrorCode),
|
|
185
|
-
details: S.optional(S.String),
|
|
186
|
-
message: S.optional(S.String),
|
|
187
|
-
})).annotate({ identifier: "RuntimeError" });
|
|
188
|
-
export const ClusterError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
189
|
-
code: S.optional(S.String),
|
|
190
|
-
message: S.optional(S.String),
|
|
191
|
-
})).annotate({ identifier: "ClusterError" });
|
|
192
|
-
export const ClusterStatusErrorsList = /*@__PURE__*/ S.Array(ClusterError);
|
|
193
|
-
export const ExpirationStatusKubernetes = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
194
|
-
expirationDate: S.optional(S.String),
|
|
195
|
-
version: S.optional(S.String),
|
|
196
|
-
})).annotate({
|
|
197
|
-
identifier: "ExpirationStatusKubernetes",
|
|
198
|
-
});
|
|
199
|
-
export const ExpirationStatusNodepool = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
200
|
-
kubernetesExpirationDate: S.optional(S.String),
|
|
201
|
-
kubernetesVersion: S.optional(S.String),
|
|
202
|
-
name: S.optional(S.String),
|
|
203
|
-
osExpirationDate: S.optional(S.String),
|
|
204
|
-
osName: S.optional(S.String),
|
|
205
|
-
osVersion: S.optional(S.String),
|
|
206
|
-
})).annotate({ identifier: "ExpirationStatusNodepool" });
|
|
207
|
-
export const ExpirationStatusNodepoolsList = /*@__PURE__*/ S.Array(ExpirationStatusNodepool);
|
|
208
|
-
export const ExpirationStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
209
|
-
kubernetes: S.optional(ExpirationStatusKubernetes),
|
|
210
|
-
nodepools: S.optional(ExpirationStatusNodepoolsList),
|
|
211
|
-
})).annotate({ identifier: "ExpirationStatus" });
|
|
212
|
-
export const ClusterStatusNodeAddressRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
213
|
-
export const ClusterStatusPodAddressRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
214
|
-
export const ClusterStatusServiceAddressRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
215
|
-
export const ClusterStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
216
|
-
aggregated: S.optional(ClusterStatusState),
|
|
217
|
-
creationTime: S.optional(S.String),
|
|
218
|
-
credentialsRotation: S.optional(CredentialsRotationState),
|
|
219
|
-
egressAddressRanges: S.optional(ClusterStatusEgressAddressRangesList),
|
|
220
|
-
error: S.optional(RuntimeError),
|
|
221
|
-
errors: S.optional(ClusterStatusErrorsList),
|
|
222
|
-
expiration: S.optional(ExpirationStatus),
|
|
223
|
-
hibernated: S.optional(S.Boolean),
|
|
224
|
-
identity: S.optional(S.String),
|
|
225
|
-
nodeAddressRanges: S.optional(ClusterStatusNodeAddressRangesList),
|
|
226
|
-
podAddressRanges: S.optional(ClusterStatusPodAddressRangesList),
|
|
227
|
-
serviceAccountIssuer: S.optional(S.String),
|
|
228
|
-
serviceAddressRanges: S.optional(ClusterStatusServiceAddressRangesList),
|
|
229
|
-
})).annotate({ identifier: "ClusterStatus" });
|
|
230
|
-
export const CreateOrUpdateClusterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
231
|
-
projectId: S.String.pipe(T.Label()),
|
|
232
|
-
region: S.String.pipe(T.Label()),
|
|
233
|
-
clusterName: S.String.pipe(T.Label()),
|
|
234
|
-
access: S.optional(Access),
|
|
235
|
-
audit: S.optional(Audit),
|
|
236
|
-
extensions: S.optional(Extension),
|
|
237
|
-
hibernation: S.optional(Hibernation),
|
|
238
|
-
kubernetes: Kubernetes,
|
|
239
|
-
labels: S.optional(CreateOrUpdateClusterRequestLabelsMap),
|
|
240
|
-
maintenance: S.optional(Maintenance),
|
|
241
|
-
network: S.optional(Network),
|
|
242
|
-
nodepools: CreateOrUpdateClusterRequestNodepoolsList,
|
|
243
|
-
status: S.optional(ClusterStatus),
|
|
244
|
-
}).pipe(T.Http({
|
|
245
|
-
method: "PUT",
|
|
246
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",
|
|
247
|
-
code: 200,
|
|
248
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
249
|
-
}))).annotate({
|
|
250
|
-
identifier: "CreateOrUpdateClusterRequest",
|
|
251
|
-
});
|
|
252
|
-
export const ClusterLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
253
|
-
export const ClusterNodepoolsList = /*@__PURE__*/ S.Array(Nodepool);
|
|
254
|
-
export const Cluster = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
255
|
-
access: S.optional(Access),
|
|
256
|
-
audit: S.optional(Audit),
|
|
257
|
-
extensions: S.optional(Extension),
|
|
258
|
-
hibernation: S.optional(Hibernation),
|
|
259
|
-
kubernetes: Kubernetes,
|
|
260
|
-
labels: S.optional(ClusterLabelsMap),
|
|
261
|
-
maintenance: S.optional(Maintenance),
|
|
262
|
-
name: S.optional(S.String),
|
|
263
|
-
network: S.optional(Network),
|
|
264
|
-
nodepools: ClusterNodepoolsList,
|
|
265
|
-
status: S.optional(ClusterStatus),
|
|
266
|
-
})).annotate({ identifier: "Cluster" });
|
|
267
|
-
export const DeleteClusterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
268
|
-
projectId: S.String.pipe(T.Label()),
|
|
269
|
-
region: S.String.pipe(T.Label()),
|
|
270
|
-
clusterName: S.String.pipe(T.Label()),
|
|
271
|
-
}).pipe(T.Http({
|
|
272
|
-
method: "DELETE",
|
|
273
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",
|
|
274
|
-
code: 200,
|
|
275
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
276
|
-
}))).annotate({ identifier: "DeleteClusterRequest" });
|
|
277
|
-
export const DeleteClusterResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "DeleteClusterResponse" });
|
|
278
|
-
export const GetClusterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
279
|
-
projectId: S.String.pipe(T.Label()),
|
|
280
|
-
region: S.String.pipe(T.Label()),
|
|
281
|
-
clusterName: S.String.pipe(T.Label()),
|
|
282
|
-
}).pipe(T.Http({
|
|
283
|
-
method: "GET",
|
|
284
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",
|
|
285
|
-
code: 200,
|
|
286
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
287
|
-
}))).annotate({ identifier: "GetClusterRequest" });
|
|
288
|
-
export const GetIDPKubeconfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
289
|
-
projectId: S.String.pipe(T.Label()),
|
|
290
|
-
region: S.String.pipe(T.Label()),
|
|
291
|
-
clusterName: S.String.pipe(T.Label()),
|
|
292
|
-
}).pipe(T.Http({
|
|
293
|
-
method: "GET",
|
|
294
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/idp",
|
|
295
|
-
code: 200,
|
|
296
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
297
|
-
}))).annotate({ identifier: "GetIDPKubeconfigRequest" });
|
|
298
|
-
export const IDPKubeconfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
|
-
kubeconfig: S.optional(S.String),
|
|
300
|
-
})).annotate({ identifier: "IDPKubeconfig" });
|
|
301
|
-
export const GetLoginKubeconfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
-
projectId: S.String.pipe(T.Label()),
|
|
303
|
-
region: S.String.pipe(T.Label()),
|
|
304
|
-
clusterName: S.String.pipe(T.Label()),
|
|
305
|
-
}).pipe(T.Http({
|
|
306
|
-
method: "GET",
|
|
307
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/login",
|
|
308
|
-
code: 200,
|
|
309
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
310
|
-
}))).annotate({
|
|
311
|
-
identifier: "GetLoginKubeconfigRequest",
|
|
312
|
-
});
|
|
313
|
-
export const LoginKubeconfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
314
|
-
kubeconfig: S.optional(S.String),
|
|
315
|
-
})).annotate({ identifier: "LoginKubeconfig" });
|
|
316
|
-
export const ListClustersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
317
|
-
projectId: S.String.pipe(T.Label()),
|
|
318
|
-
region: S.String.pipe(T.Label()),
|
|
319
|
-
}).pipe(T.Http({
|
|
320
|
-
method: "GET",
|
|
321
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters",
|
|
322
|
-
code: 200,
|
|
323
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
324
|
-
}))).annotate({ identifier: "ListClustersRequest" });
|
|
325
|
-
export const ListClustersResponseItemsList = /*@__PURE__*/ S.Array(Cluster);
|
|
326
|
-
export const ListClustersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
-
items: S.optional(ListClustersResponseItemsList),
|
|
328
|
-
})).annotate({ identifier: "ListClustersResponse" });
|
|
329
|
-
export const ListProviderOptionsRequestVersionState = S.String;
|
|
330
|
-
export const ListProviderOptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
331
|
-
region: S.String.pipe(T.Label()),
|
|
332
|
-
versionState: S.optional(ListProviderOptionsRequestVersionState.pipe(T.Query())),
|
|
333
|
-
}).pipe(T.Http({
|
|
334
|
-
method: "GET",
|
|
335
|
-
uri: "/v2/regions/{region}/provider-options",
|
|
336
|
-
code: 200,
|
|
337
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
338
|
-
}))).annotate({
|
|
339
|
-
identifier: "ListProviderOptionsRequest",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = T.Query;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Struct;
|
|
17
|
+
const __7 = S.suspend;
|
|
18
|
+
const __8 = S.Array;
|
|
19
|
+
const __9 = S.Number;
|
|
20
|
+
const __10 = T.RawResponseRoot;
|
|
21
|
+
const __11 = S.Unknown;
|
|
22
|
+
const __12 = S.Boolean;
|
|
23
|
+
const __13 = S.Record;
|
|
24
|
+
const __14 = S.TaggedError;
|
|
25
|
+
const __15 = T.applyErrorMatchers;
|
|
26
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __9, __3, __14, __15]]);
|
|
340
28
|
});
|
|
341
|
-
export const
|
|
342
|
-
|
|
343
|
-
})).annotate({ identifier: "AvailabilityZone" });
|
|
344
|
-
export const ProviderOptionsAvailabilityZonesList = /*@__PURE__*/ S.Array(AvailabilityZone);
|
|
345
|
-
export const KubernetesVersionFeatureGatesMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
346
|
-
export const KubernetesVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
347
|
-
expirationDate: S.optional(S.String),
|
|
348
|
-
featureGates: S.optional(KubernetesVersionFeatureGatesMap),
|
|
349
|
-
state: S.optional(S.String),
|
|
350
|
-
version: S.optional(S.String),
|
|
351
|
-
})).annotate({ identifier: "KubernetesVersion" });
|
|
352
|
-
export const ProviderOptionsKubernetesVersionsList = /*@__PURE__*/ S.Array(KubernetesVersion);
|
|
353
|
-
export const MachineImageVersionCriList = /*@__PURE__*/ S.Array(CRI);
|
|
354
|
-
export const MachineImageVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
355
|
-
cri: S.optional(MachineImageVersionCriList),
|
|
356
|
-
expirationDate: S.optional(S.String),
|
|
357
|
-
state: S.optional(S.String),
|
|
358
|
-
version: S.optional(S.String),
|
|
359
|
-
})).annotate({ identifier: "MachineImageVersion" });
|
|
360
|
-
export const MachineImageVersionsList = /*@__PURE__*/ S.Array(MachineImageVersion);
|
|
361
|
-
export const MachineImage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
362
|
-
name: S.optional(S.String),
|
|
363
|
-
versions: S.optional(MachineImageVersionsList),
|
|
364
|
-
})).annotate({ identifier: "MachineImage" });
|
|
365
|
-
export const ProviderOptionsMachineImagesList = /*@__PURE__*/ S.Array(MachineImage);
|
|
366
|
-
export const MachineType = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
367
|
-
architecture: S.optional(S.String),
|
|
368
|
-
cpu: S.optional(S.Number),
|
|
369
|
-
gpu: S.optional(S.Number),
|
|
370
|
-
memory: S.optional(S.Number),
|
|
371
|
-
name: S.optional(S.String),
|
|
372
|
-
})).annotate({ identifier: "MachineType" });
|
|
373
|
-
export const ProviderOptionsMachineTypesList = /*@__PURE__*/ S.Array(MachineType);
|
|
374
|
-
export const VolumeType = AvailabilityZone;
|
|
375
|
-
export const ProviderOptionsVolumeTypesList = /*@__PURE__*/ S.Array(AvailabilityZone);
|
|
376
|
-
export const ProviderOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
377
|
-
availabilityZones: S.optional(ProviderOptionsAvailabilityZonesList),
|
|
378
|
-
kubernetesVersions: S.optional(ProviderOptionsKubernetesVersionsList),
|
|
379
|
-
machineImages: S.optional(ProviderOptionsMachineImagesList),
|
|
380
|
-
machineTypes: S.optional(ProviderOptionsMachineTypesList),
|
|
381
|
-
volumeTypes: S.optional(ProviderOptionsVolumeTypesList),
|
|
382
|
-
})).annotate({ identifier: "ProviderOptions" });
|
|
383
|
-
export const StartCredentialsRotationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
384
|
-
projectId: S.String.pipe(T.Label()),
|
|
385
|
-
region: S.String.pipe(T.Label()),
|
|
386
|
-
clusterName: S.String.pipe(T.Label()),
|
|
387
|
-
}).pipe(T.Http({
|
|
388
|
-
method: "POST",
|
|
389
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/start-credentials-rotation",
|
|
390
|
-
code: 200,
|
|
391
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
392
|
-
}))).annotate({
|
|
393
|
-
identifier: "StartCredentialsRotationRequest",
|
|
29
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
30
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __9, __3, __14, __15]]);
|
|
394
31
|
});
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
export const
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
}).pipe(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
export const
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}))).
|
|
419
|
-
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
440
|
-
method: "POST",
|
|
441
|
-
uri: "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/wakeup",
|
|
442
|
-
code: 200,
|
|
443
|
-
baseUrl: "https://ske.api.stackit.cloud",
|
|
444
|
-
}))).annotate({ identifier: "TriggerWakeupRequest" });
|
|
445
|
-
export const TriggerWakeupResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "TriggerWakeupResponse" });
|
|
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). */
|
|
447
|
-
export const completeCredentialsRotation = /*@__PURE__*/ API.make(() => ({
|
|
448
|
-
input: CompleteCredentialsRotationRequest,
|
|
449
|
-
output: CompleteCredentialsRotationResponse,
|
|
450
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
451
|
-
protocol: StackitProtocol,
|
|
452
|
-
retry: Retry.Retry,
|
|
453
|
-
}));
|
|
454
|
-
/** Create an admin kubeconfig Create a new admin kubeconfig for the cluster. You can specify the expiration (in seconds) in the request body. Its value must be in the range from 600 (10 min) to 15552000 (6 months). Defaults to 3600. */
|
|
455
|
-
export const createKubeconfig = /*@__PURE__*/ API.make(() => ({
|
|
456
|
-
input: CreateKubeconfigRequest,
|
|
457
|
-
output: Kubeconfig,
|
|
458
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
459
|
-
protocol: StackitProtocol,
|
|
460
|
-
retry: Retry.Retry,
|
|
461
|
-
}));
|
|
462
|
-
/** Create or update a cluster Create a new cluster in your project or modify an existing one. To get valid values for certain properties please check the [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) endpoint. */
|
|
463
|
-
export const createOrUpdateCluster = /*@__PURE__*/ API.make(() => ({
|
|
464
|
-
input: CreateOrUpdateClusterRequest,
|
|
465
|
-
output: Cluster,
|
|
466
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
467
|
-
protocol: StackitProtocol,
|
|
468
|
-
retry: Retry.Retry,
|
|
469
|
-
}));
|
|
470
|
-
/** Delete a cluster Delete Kubernetes cluster specified by the identifier, belonging to the project specified by `projectId`. */
|
|
471
|
-
export const deleteCluster = /*@__PURE__*/ API.make(() => ({
|
|
472
|
-
input: DeleteClusterRequest,
|
|
473
|
-
output: DeleteClusterResponse,
|
|
474
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
475
|
-
protocol: StackitProtocol,
|
|
476
|
-
retry: Retry.Retry,
|
|
477
|
-
}));
|
|
478
|
-
/** Get a cluster Get Kubernetes cluster for the specified identifier, belonging to the project specified by `projectId`. */
|
|
479
|
-
export const getCluster = /*@__PURE__*/ API.make(() => ({
|
|
480
|
-
input: GetClusterRequest,
|
|
481
|
-
output: Cluster,
|
|
482
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
483
|
-
protocol: StackitProtocol,
|
|
484
|
-
retry: Retry.Retry,
|
|
485
|
-
}));
|
|
486
|
-
/** Get a kubeconfig to authenticate via IDP for use with the STACKIT CLI A kubeconfig retrieved using this endpoint does not contain any credentials and instead obtains valid credentials via the STACKIT CLI. Permissions must be granted to the user beforehand using an admin kubeconfig. */
|
|
487
|
-
export const getIDPKubeconfig = /*@__PURE__*/ API.make(() => ({
|
|
488
|
-
input: GetIDPKubeconfigRequest,
|
|
489
|
-
output: IDPKubeconfig,
|
|
490
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
491
|
-
protocol: StackitProtocol,
|
|
492
|
-
retry: Retry.Retry,
|
|
493
|
-
}));
|
|
494
|
-
/** Get an admin kubeconfig for use with the STACKIT CLI A admin kubeconfig retrieved using this endpoint does not contain any credentials and instead obtains valid credentials via the STACKIT CLI. */
|
|
495
|
-
export const getLoginKubeconfig = /*@__PURE__*/ API.make(() => ({
|
|
496
|
-
input: GetLoginKubeconfigRequest,
|
|
497
|
-
output: LoginKubeconfig,
|
|
498
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
499
|
-
protocol: StackitProtocol,
|
|
500
|
-
retry: Retry.Retry,
|
|
501
|
-
}));
|
|
502
|
-
/** List all clusters Return a list of Kubernetes clusters in the project specified by `projectId`. */
|
|
503
|
-
export const listClusters = /*@__PURE__*/ API.make(() => ({
|
|
504
|
-
input: ListClustersRequest,
|
|
505
|
-
output: ListClustersResponse,
|
|
506
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
507
|
-
protocol: StackitProtocol,
|
|
508
|
-
retry: Retry.Retry,
|
|
509
|
-
}));
|
|
510
|
-
/** List provider options Returns available Kubernetes versions, availability zones, machine types, OS versions and volume types for the cluster nodes. */
|
|
511
|
-
export const listProviderOptions = /*@__PURE__*/ API.make(() => ({
|
|
512
|
-
input: ListProviderOptionsRequest,
|
|
513
|
-
output: ProviderOptions,
|
|
514
|
-
errors: [BadRequest, UnknownStackitError],
|
|
515
|
-
protocol: StackitProtocol,
|
|
516
|
-
retry: Retry.Retry,
|
|
517
|
-
}));
|
|
518
|
-
/** Start cluster credentials rotation Start cluster credentials rotation. This is step 1 of a two-step process. Complete the rotation using [complete-credentials-rotation](#tag/Credentials/operation/SkeService_CompleteClusterCredentialsRotation). */
|
|
519
|
-
export const startCredentialsRotation = /*@__PURE__*/ API.make(() => ({
|
|
520
|
-
input: StartCredentialsRotationRequest,
|
|
521
|
-
output: StartCredentialsRotationResponse,
|
|
522
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
523
|
-
protocol: StackitProtocol,
|
|
524
|
-
retry: Retry.Retry,
|
|
525
|
-
}));
|
|
526
|
-
/** Trigger cluster hibernation Trigger immediate hibernation of the cluster. If the cluster is already in hibernation state, this endpoint does nothing. */
|
|
527
|
-
export const triggerHibernate = /*@__PURE__*/ API.make(() => ({
|
|
528
|
-
input: TriggerHibernateRequest,
|
|
529
|
-
output: TriggerHibernateResponse,
|
|
530
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
531
|
-
protocol: StackitProtocol,
|
|
532
|
-
retry: Retry.Retry,
|
|
533
|
-
}));
|
|
534
|
-
/** Trigger cluster maintenance Trigger immediate maintenance of the cluster. The autoUpdate configuration specified in the Maintenance object of the cluster spec defines what is updated during the immediate maintenance operation. */
|
|
535
|
-
export const triggerMaintenance = /*@__PURE__*/ API.make(() => ({
|
|
536
|
-
input: TriggerMaintenanceRequest,
|
|
537
|
-
output: TriggerMaintenanceResponse,
|
|
538
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
539
|
-
protocol: StackitProtocol,
|
|
540
|
-
retry: Retry.Retry,
|
|
541
|
-
}));
|
|
542
|
-
/** Trigger cluster reconciliation Trigger immediate reconciliation of the complete cluster without changing the cluster specification. */
|
|
543
|
-
export const triggerReconcile = /*@__PURE__*/ API.make(() => ({
|
|
544
|
-
input: TriggerReconcileRequest,
|
|
545
|
-
output: TriggerReconcileResponse,
|
|
546
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
547
|
-
protocol: StackitProtocol,
|
|
548
|
-
retry: Retry.Retry,
|
|
549
|
-
}));
|
|
550
|
-
/** Trigger cluster wakeup Trigger immediate wake up of the cluster. If the cluster is already in running state, this endpoint does nothing. */
|
|
551
|
-
export const triggerWakeup = /*@__PURE__*/ API.make(() => ({
|
|
552
|
-
input: TriggerWakeupRequest,
|
|
553
|
-
output: TriggerWakeupResponse,
|
|
554
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
555
|
-
protocol: StackitProtocol,
|
|
556
|
-
retry: Retry.Retry,
|
|
557
|
-
}));
|
|
558
|
-
//# sourceMappingURL=ske.js.map
|
|
32
|
+
|
|
33
|
+
export const completeCredentialsRotation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"CompleteCredentialsRotationRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/complete-credentials-rotation",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(completeCredentialsRotation, i));
|
|
34
|
+
|
|
35
|
+
export const createKubeconfig = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Kubeconfig", '{input:#1,output:#2,errors:[$7,$8,$9],protocol:$10,retry:$11};$6(>3)@"Create%Request";$6(>4)@"%";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2()),expirationSeconds:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig",code:200,baseUrl:"https://ske.api.stackit.cloud"}));$5({expirationTimestamp:$4($3),kubeconfig:$4($3)})', [__0, __1, __2, __3, __5, __6, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(createKubeconfig, i));
|
|
36
|
+
|
|
37
|
+
export const createOrUpdateCluster = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:34,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>2)@"CreateOrUpdateClusterRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2()),access:$5(#4:1),audit:$5(#6:0),extensions:$5(#4:6),hibernation:$5(#4:9),kubernetes:#4:10,labels:$5(#6:1),maintenance:$5(#4:13),network:$5(#4:16),nodepools:#4:24,status:$5(#4:33)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __d1, __5, __d2, __6, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createOrUpdateCluster, i));
|
|
38
|
+
|
|
39
|
+
export const deleteCluster = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteClusterRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteCluster, i));
|
|
40
|
+
|
|
41
|
+
export const getCluster = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:34,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetClusterRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCluster, i));
|
|
42
|
+
|
|
43
|
+
export const getIDPKubeconfig = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetIDPKubeconfigRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/idp",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getIDPKubeconfig, i));
|
|
44
|
+
|
|
45
|
+
export const getLoginKubeconfig = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetLoginKubeconfigRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/login",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getLoginKubeconfig, i));
|
|
46
|
+
|
|
47
|
+
export const listClusters = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListClustersRequest";$7(#6:34);$5(>5)@"ListClustersResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/clusters",code:200,baseUrl:"https://ske.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __6, __7, __d1, __8, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listClusters, i));
|
|
48
|
+
|
|
49
|
+
export const listProviderOptions = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ProviderOptions", '{input:#1,output:#13,errors:[$11,$12],protocol:$13,retry:$14};$7(>14)@"List%Request";$7(>15)@"AvailabilityZone";$8(#2);$7(>16)@"KubernetesVersion";$8(#4);$8(#9:2);$7(>17)@"MachineImageVersion";$8(#7);$7(>18)@"MachineImage";$8(#9);$7(>19)@"MachineType";$8(#11);$7(>20)@"%";$6({region:$3.pipe($2()),versionState:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/regions/{region}/provider-options",code:200,baseUrl:"https://ske.api.stackit.cloud"}));$6({name:$5($3)});$6({expirationDate:$5($3),featureGates:$5(#9:1),state:$5($3),version:$5($3)});$6({cri:$5(#6),expirationDate:$5($3),state:$5($3),version:$5($3)});$6({name:$5($3),versions:$5(#8)});$6({architecture:$5($3),cpu:$5($10),gpu:$5($10),memory:$5($10),name:$5($3)});$6({availabilityZones:$5(#3),kubernetesVersions:$5(#5),machineImages:$5(#10),machineTypes:$5(#12),volumeTypes:$5(#3)})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __d2, __9, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listProviderOptions, i));
|
|
50
|
+
|
|
51
|
+
export const startCredentialsRotation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"StartCredentialsRotationRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/start-credentials-rotation",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(startCredentialsRotation, i));
|
|
52
|
+
|
|
53
|
+
export const triggerHibernate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"TriggerHibernateRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/hibernate",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(triggerHibernate, i));
|
|
54
|
+
|
|
55
|
+
export const triggerMaintenance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"TriggerMaintenanceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/maintenance",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(triggerMaintenance, i));
|
|
56
|
+
|
|
57
|
+
export const triggerReconcile = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"TriggerReconcileRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/reconcile",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(triggerReconcile, i));
|
|
58
|
+
|
|
59
|
+
export const triggerWakeup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"TriggerWakeupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),clusterName:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/wakeup",code:200,baseUrl:"https://ske.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(triggerWakeup, i));
|
|
60
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
61
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
// Shared schema data (see `op` in core/api).
|
|
65
|
+
function __d0() {
|
|
66
|
+
return ['$3(>1)@"CompleteCredentialsRotationResponse";$2.pipe($1())', [__0, __10, __11, __7]];
|
|
67
|
+
}
|
|
68
|
+
function __d1() {
|
|
69
|
+
return ['$4(>35)@"IDP";$4(>36)@"Access";$6($2);$4(>37)@"ACL";$4(>38)@"DNS";$4(>39)@"Observability";$4(>40)@"Extension";$4(>41)@"HibernationSchedule";$6(#7);$4(>42)@"Hibernation";$4(>43)@"Kubernetes";$4(>44)@"MaintenanceAutoUpdate";$4(>45)@"TimeWindow";$4(>46)@"Maintenance";$4(>47)@"CNI";$4(>48)@"V2ControlPlaneNetwork";$4(>49)@"Network";$4(>50)@"NodepoolKubernetes";$4(>51)@"Image";$4(>52)@"Machine";$4(>53)@"Taint";$6(#20);$4(>54)@"Volume";$4(>55)@"Nodepool";$6(#23);$4(>56)@"CredentialsRotationState";$4(>57)@"RuntimeError";$4(>58)@"ClusterError";$6(#27);$4(>59)@"ExpirationStatusKubernetes";$4(>60)@"ExpirationStatusNodepool";$6(#30);$4(>61)@"ExpirationStatus";$4(>62)@"ClusterStatus";$4(>63)@"Cluster";$3({enabled:$1,type:$2});$3({idp:$5(#0)});$3({allowedCidrs:#2,enabled:$1});$3({enabled:$1,gatewayApi:$5($1),zones:$5(#2)});$3({enabled:$1,instanceId:$2});$3({acl:$5(#3),applicationLoadBalancer:$5(#7:0),dns:$5(#4),observability:$5(#5)});$3({end:$2,start:$2,timezone:$5($2)});$3({schedules:#8});$3({version:$2});$3({kubernetesVersion:$5($1),machineImageVersion:$5($1)});$3({end:$2,start:$2});$3({autoUpdate:$5(#11),timeWindow:$5(#12)});$3({calico:$5($8)});$3({accessScope:$5($2)});$3({cni:$5(#14),controlPlane:$5(#15),id:$5($2),podAddressRanges:$5(#2),serviceAddressRanges:$5(#2)});$3({version:$5($2)});$3({name:$2,version:$2});$3({image:#18,type:$2});$3({effect:$2,key:$2,value:$5($2)});$3({size:$9,type:$5($2)});$3({allowSystemComponents:$5($1),availabilityZones:#2,cri:$5(#7:2),kubernetes:$5(#17),labels:$5(#7:1),machine:#19,maxSurge:$5($9),maxUnavailable:$5($9),maximum:$9,minimum:$9,name:$2,taints:$5(#21),volume:#22});$3({lastCompletionTime:$5($2),lastInitiationTime:$5($2),phase:$5($2)});$3({code:$5($2),details:$5($2),message:$5($2)});$3({code:$5($2),message:$5($2)});$3({expirationDate:$5($2),version:$5($2)});$3({kubernetesExpirationDate:$5($2),kubernetesVersion:$5($2),name:$5($2),osExpirationDate:$5($2),osName:$5($2),osVersion:$5($2)});$3({kubernetes:$5(#29),nodepools:$5(#31)});$3({aggregated:$5($2),creationTime:$5($2),credentialsRotation:$5(#25),egressAddressRanges:$5(#2),error:$5(#26),errors:$5(#28),expiration:$5(#32),hibernated:$5($1),identity:$5($2),nodeAddressRanges:$5(#2),podAddressRanges:$5(#2),serviceAccountIssuer:$5($2),serviceAddressRanges:$5(#2)});$3({access:$5(#1),audit:$5(#7:0),extensions:$5(#6),hibernation:$5(#9),kubernetes:#10,labels:$5(#7:1),maintenance:$5(#13),name:$5($2),network:$5(#16),nodepools:#24,status:$5(#33)})', [__0, __12, __3, __6, __7, __5, __8, __d2, __11, __9]];
|
|
70
|
+
}
|
|
71
|
+
function __d2() {
|
|
72
|
+
return ['$3(>3)@"Audit";$5($4,$4);$3(>4)@"CRI";$2({enabled:$1});$2({kata:$6(#0),name:$6($4)})', [__0, __12, __6, __7, __3, __13, __5]];
|
|
73
|
+
}
|
|
74
|
+
function __d3() {
|
|
75
|
+
return ['$4(>1)@"IDPKubeconfig";$3({kubeconfig:$2($1)})', [__0, __3, __5, __6, __7]];
|
|
76
|
+
}
|