@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
|
@@ -1,497 +1,87 @@
|
|
|
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";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
6
|
import { UnknownStackitError } from "../errors.js";
|
|
7
7
|
import { StackitProtocol } from "../protocol.js";
|
|
8
8
|
import * as Retry from "../retry.js";
|
|
9
9
|
import * as T from "../traits.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
30
|
-
code: S.Number,
|
|
31
|
-
message: S.String,
|
|
32
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
33
|
-
}
|
|
34
|
-
export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
-
projectId: S.String.pipe(T.Label()),
|
|
36
|
-
region: S.String.pipe(T.Label()),
|
|
37
|
-
displayName: S.optional(S.String),
|
|
38
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
39
|
-
username: S.optional(S.String),
|
|
40
|
-
}).pipe(T.Http({
|
|
41
|
-
method: "POST",
|
|
42
|
-
uri: "/v2/projects/{projectId}/regions/{region}/credentials",
|
|
43
|
-
code: 200,
|
|
44
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
45
|
-
}))).annotate({ identifier: "CreateCredentialsRequest" });
|
|
46
|
-
export const CredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
-
credentialsRef: S.optional(S.String),
|
|
48
|
-
displayName: S.optional(S.String),
|
|
49
|
-
region: S.optional(S.String),
|
|
50
|
-
username: S.optional(S.String),
|
|
51
|
-
})).annotate({ identifier: "CredentialsResponse" });
|
|
52
|
-
export const CreateCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
53
|
-
credential: S.optional(CredentialsResponse),
|
|
54
|
-
})).annotate({
|
|
55
|
-
identifier: "CreateCredentialsResponse",
|
|
56
|
-
});
|
|
57
|
-
export const CreateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
58
|
-
export const ListenerInputProtocol = S.String;
|
|
59
|
-
export const ServerNameIndicator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
|
-
name: S.optional(S.String),
|
|
61
|
-
})).annotate({ identifier: "ServerNameIndicator" });
|
|
62
|
-
export const ListenerInputServerNameIndicatorsList = /*@__PURE__*/ S.Array(ServerNameIndicator);
|
|
63
|
-
export const OptionsTCP = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
64
|
-
idleTimeout: S.optional(S.String),
|
|
65
|
-
})).annotate({ identifier: "OptionsTCP" });
|
|
66
|
-
export const OptionsUDP = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
|
-
idleTimeout: S.optional(S.String),
|
|
68
|
-
})).annotate({ identifier: "OptionsUDP" });
|
|
69
|
-
export const ListenerInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
70
|
-
displayName: S.optional(S.String),
|
|
71
|
-
port: S.optional(S.Number),
|
|
72
|
-
protocol: S.optional(ListenerInputProtocol),
|
|
73
|
-
serverNameIndicators: S.optional(ListenerInputServerNameIndicatorsList),
|
|
74
|
-
targetPool: S.optional(S.String),
|
|
75
|
-
tcp: S.optional(OptionsTCP),
|
|
76
|
-
udp: S.optional(OptionsUDP),
|
|
77
|
-
})).annotate({ identifier: "ListenerInput" });
|
|
78
|
-
export const CreateLoadBalancerRequestListenersList = /*@__PURE__*/ S.Array(ListenerInput);
|
|
79
|
-
export const NetworkRole = S.String;
|
|
80
|
-
export const Network = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
81
|
-
networkId: S.optional(S.String),
|
|
82
|
-
role: S.optional(NetworkRole),
|
|
83
|
-
})).annotate({ identifier: "Network" });
|
|
84
|
-
export const CreateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(Network);
|
|
85
|
-
export const LoadbalancerOptionAccessControlAllowedSourceRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
86
|
-
export const LoadbalancerOptionAccessControl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
-
allowedSourceRanges: S.optional(LoadbalancerOptionAccessControlAllowedSourceRangesList),
|
|
88
|
-
})).annotate({
|
|
89
|
-
identifier: "LoadbalancerOptionAccessControl",
|
|
90
|
-
});
|
|
91
|
-
export const LoadbalancerOptionLogs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
credentialsRef: S.optional(S.String),
|
|
93
|
-
pushUrl: S.optional(S.String),
|
|
94
|
-
})).annotate({ identifier: "LoadbalancerOptionLogs" });
|
|
95
|
-
export const LoadbalancerOptionMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
96
|
-
credentialsRef: S.optional(S.String),
|
|
97
|
-
pushUrl: S.optional(S.String),
|
|
98
|
-
})).annotate({
|
|
99
|
-
identifier: "LoadbalancerOptionMetrics",
|
|
100
|
-
});
|
|
101
|
-
export const LoadbalancerOptionObservability = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
102
|
-
logs: S.optional(LoadbalancerOptionLogs),
|
|
103
|
-
metrics: S.optional(LoadbalancerOptionMetrics),
|
|
104
|
-
})).annotate({
|
|
105
|
-
identifier: "LoadbalancerOptionObservability",
|
|
106
|
-
});
|
|
107
|
-
export const LoadBalancerOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
108
|
-
accessControl: S.optional(LoadbalancerOptionAccessControl),
|
|
109
|
-
ephemeralAddress: S.optional(S.Boolean),
|
|
110
|
-
observability: S.optional(LoadbalancerOptionObservability),
|
|
111
|
-
privateNetworkOnly: S.optional(S.Boolean),
|
|
112
|
-
})).annotate({ identifier: "LoadBalancerOptions" });
|
|
113
|
-
export const HttpHealthChecksOkStatusesList = /*@__PURE__*/ S.Array(S.String);
|
|
114
|
-
export const TlsConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
115
|
-
customCa: S.optional(S.String),
|
|
116
|
-
enabled: S.optional(S.Boolean),
|
|
117
|
-
skipCertificateValidation: S.optional(S.Boolean),
|
|
118
|
-
})).annotate({ identifier: "TlsConfig" });
|
|
119
|
-
export const HttpHealthChecks = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
okStatuses: S.optional(HttpHealthChecksOkStatusesList),
|
|
121
|
-
path: S.optional(S.String),
|
|
122
|
-
tls: S.optional(TlsConfig),
|
|
123
|
-
})).annotate({ identifier: "HttpHealthChecks" });
|
|
124
|
-
export const ActiveHealthCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
125
|
-
altPort: S.optional(S.Number),
|
|
126
|
-
healthyThreshold: S.optional(S.Number),
|
|
127
|
-
httpHealthChecks: S.optional(HttpHealthChecks),
|
|
128
|
-
interval: S.optional(S.String),
|
|
129
|
-
intervalJitter: S.optional(S.String),
|
|
130
|
-
timeout: S.optional(S.String),
|
|
131
|
-
unhealthyThreshold: S.optional(S.Number),
|
|
132
|
-
})).annotate({ identifier: "ActiveHealthCheck" });
|
|
133
|
-
export const SessionPersistence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
-
useSourceIpAddress: S.optional(S.Boolean),
|
|
135
|
-
})).annotate({ identifier: "SessionPersistence" });
|
|
136
|
-
export const Target = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
-
displayName: S.optional(S.String),
|
|
138
|
-
ip: S.optional(S.String),
|
|
139
|
-
})).annotate({ identifier: "Target" });
|
|
140
|
-
export const TargetPoolTargetsList = /*@__PURE__*/ S.Array(Target);
|
|
141
|
-
export const TargetPool = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
142
|
-
activeHealthCheck: S.optional(ActiveHealthCheck),
|
|
143
|
-
name: S.optional(S.String),
|
|
144
|
-
sessionPersistence: S.optional(SessionPersistence),
|
|
145
|
-
targetPort: S.optional(S.Number),
|
|
146
|
-
targets: S.optional(TargetPoolTargetsList),
|
|
147
|
-
})).annotate({ identifier: "TargetPool" });
|
|
148
|
-
export const CreateLoadBalancerRequestTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
|
|
149
|
-
export const CreateLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
-
projectId: S.String.pipe(T.Label()),
|
|
151
|
-
region: S.String.pipe(T.Label()),
|
|
152
|
-
disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
|
|
153
|
-
externalAddress: S.optional(S.String),
|
|
154
|
-
labels: S.optional(CreateLoadBalancerRequestLabelsMap),
|
|
155
|
-
listeners: S.optional(CreateLoadBalancerRequestListenersList),
|
|
156
|
-
name: S.optional(S.String),
|
|
157
|
-
networks: S.optional(CreateLoadBalancerRequestNetworksList),
|
|
158
|
-
options: S.optional(LoadBalancerOptions),
|
|
159
|
-
planId: S.optional(S.String),
|
|
160
|
-
targetPools: S.optional(CreateLoadBalancerRequestTargetPoolsList),
|
|
161
|
-
version: S.optional(S.String),
|
|
162
|
-
}).pipe(T.Http({
|
|
163
|
-
method: "POST",
|
|
164
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
|
|
165
|
-
code: 200,
|
|
166
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
167
|
-
}))).annotate({
|
|
168
|
-
identifier: "CreateLoadBalancerRequest",
|
|
169
|
-
});
|
|
170
|
-
export const LoadBalancerErrorType = S.String;
|
|
171
|
-
export const LoadBalancerError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
172
|
-
description: S.optional(S.String),
|
|
173
|
-
type: S.optional(LoadBalancerErrorType),
|
|
174
|
-
})).annotate({ identifier: "LoadBalancerError" });
|
|
175
|
-
export const LoadBalancerErrorsList = /*@__PURE__*/ S.Array(LoadBalancerError);
|
|
176
|
-
export const LoadBalancerLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
177
|
-
export const ListenerProtocol = S.String;
|
|
178
|
-
export const ListenerServerNameIndicatorsList = /*@__PURE__*/ S.Array(ServerNameIndicator);
|
|
179
|
-
export const Listener = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
-
displayName: S.optional(S.String),
|
|
181
|
-
name: S.optional(S.String),
|
|
182
|
-
port: S.optional(S.Number),
|
|
183
|
-
protocol: S.optional(ListenerProtocol),
|
|
184
|
-
serverNameIndicators: S.optional(ListenerServerNameIndicatorsList),
|
|
185
|
-
targetPool: S.optional(S.String),
|
|
186
|
-
tcp: S.optional(OptionsTCP),
|
|
187
|
-
udp: S.optional(OptionsUDP),
|
|
188
|
-
})).annotate({ identifier: "Listener" });
|
|
189
|
-
export const LoadBalancerListenersList = /*@__PURE__*/ S.Array(Listener);
|
|
190
|
-
export const SecurityGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
191
|
-
id: S.optional(S.String),
|
|
192
|
-
name: S.optional(S.String),
|
|
193
|
-
})).annotate({ identifier: "SecurityGroup" });
|
|
194
|
-
export const LoadBalancerNetworksList = /*@__PURE__*/ S.Array(Network);
|
|
195
|
-
export const LoadBalancerStatus = S.String;
|
|
196
|
-
export const LoadBalancerTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
|
|
197
|
-
export const LoadBalancer2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
-
disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
|
|
199
|
-
errors: S.optional(LoadBalancerErrorsList),
|
|
200
|
-
externalAddress: S.optional(S.String),
|
|
201
|
-
labels: S.optional(LoadBalancerLabelsMap),
|
|
202
|
-
listeners: S.optional(LoadBalancerListenersList),
|
|
203
|
-
loadBalancerSecurityGroup: S.optional(SecurityGroup),
|
|
204
|
-
name: S.optional(S.String),
|
|
205
|
-
networks: S.optional(LoadBalancerNetworksList),
|
|
206
|
-
options: S.optional(LoadBalancerOptions),
|
|
207
|
-
planId: S.optional(S.String),
|
|
208
|
-
privateAddress: S.optional(S.String),
|
|
209
|
-
region: S.optional(S.String),
|
|
210
|
-
status: S.optional(LoadBalancerStatus),
|
|
211
|
-
targetPools: S.optional(LoadBalancerTargetPoolsList),
|
|
212
|
-
targetSecurityGroup: S.optional(SecurityGroup),
|
|
213
|
-
version: S.optional(S.String),
|
|
214
|
-
})).annotate({ identifier: "LoadBalancer2" });
|
|
215
|
-
export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
216
|
-
projectId: S.String.pipe(T.Label()),
|
|
217
|
-
region: S.String.pipe(T.Label()),
|
|
218
|
-
credentialsRef: S.String.pipe(T.Label()),
|
|
219
|
-
}).pipe(T.Http({
|
|
220
|
-
method: "DELETE",
|
|
221
|
-
uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
|
|
222
|
-
code: 200,
|
|
223
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
224
|
-
}))).annotate({ identifier: "DeleteCredentialsRequest" });
|
|
225
|
-
export const DeleteCredentialsResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
226
|
-
identifier: "DeleteCredentialsResponse2",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Struct;
|
|
15
|
+
const __5 = S.suspend;
|
|
16
|
+
const __6 = S.Number;
|
|
17
|
+
const __7 = S.optional;
|
|
18
|
+
const __8 = S.Array;
|
|
19
|
+
const __9 = T.Query;
|
|
20
|
+
const __10 = T.SensitiveValue;
|
|
21
|
+
const __11 = S.Boolean;
|
|
22
|
+
const __12 = S.Record;
|
|
23
|
+
const __13 = T.RawResponseRoot;
|
|
24
|
+
const __14 = S.Unknown;
|
|
25
|
+
const __15 = S.TaggedError;
|
|
26
|
+
const __16 = T.applyErrorMatchers;
|
|
27
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
28
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __6, __3, __15, __16]]);
|
|
227
29
|
});
|
|
228
|
-
export const
|
|
229
|
-
|
|
230
|
-
region: S.String.pipe(T.Label()),
|
|
231
|
-
name: S.String.pipe(T.Label()),
|
|
232
|
-
}).pipe(T.Http({
|
|
233
|
-
method: "DELETE",
|
|
234
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
|
|
235
|
-
code: 200,
|
|
236
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
237
|
-
}))).annotate({
|
|
238
|
-
identifier: "DeleteLoadBalancerRequest",
|
|
30
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
31
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __6, __3, __15, __16]]);
|
|
239
32
|
});
|
|
240
|
-
export const
|
|
241
|
-
|
|
33
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
34
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __6, __3, __15, __16]]);
|
|
242
35
|
});
|
|
243
|
-
export const
|
|
244
|
-
|
|
245
|
-
region: S.String.pipe(T.Label()),
|
|
246
|
-
credentialsRef: S.String.pipe(T.Label()),
|
|
247
|
-
}).pipe(T.Http({
|
|
248
|
-
method: "GET",
|
|
249
|
-
uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
|
|
250
|
-
code: 200,
|
|
251
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
252
|
-
}))).annotate({ identifier: "GetCredentialsRequest" });
|
|
253
|
-
export const GetCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
-
credential: S.optional(CredentialsResponse),
|
|
255
|
-
})).annotate({ identifier: "GetCredentialsResponse" });
|
|
256
|
-
export const GetLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
257
|
-
projectId: S.String.pipe(T.Label()),
|
|
258
|
-
region: S.String.pipe(T.Label()),
|
|
259
|
-
name: S.String.pipe(T.Label()),
|
|
260
|
-
}).pipe(T.Http({
|
|
261
|
-
method: "GET",
|
|
262
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
|
|
263
|
-
code: 200,
|
|
264
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
265
|
-
}))).annotate({ identifier: "GetLoadBalancerRequest" });
|
|
266
|
-
export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
267
|
-
projectId: S.String.pipe(T.Label()),
|
|
268
|
-
region: S.String.pipe(T.Label()),
|
|
269
|
-
}).pipe(T.Http({
|
|
270
|
-
method: "GET",
|
|
271
|
-
uri: "/v2/projects/{projectId}/regions/{region}/quota",
|
|
272
|
-
code: 200,
|
|
273
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
274
|
-
}))).annotate({ identifier: "GetQuotaRequest" });
|
|
275
|
-
export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
276
|
-
maxCredentials: S.optional(S.Number),
|
|
277
|
-
maxLoadBalancers: S.optional(S.Number),
|
|
278
|
-
projectId: S.optional(S.String),
|
|
279
|
-
region: S.optional(S.String),
|
|
280
|
-
usedCredentials: S.optional(S.Number),
|
|
281
|
-
usedLoadBalancers: S.optional(S.Number),
|
|
282
|
-
})).annotate({ identifier: "GetQuotaResponse" });
|
|
283
|
-
export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
284
|
-
projectId: S.String.pipe(T.Label()),
|
|
285
|
-
region: S.String.pipe(T.Label()),
|
|
286
|
-
}).pipe(T.Http({
|
|
287
|
-
method: "GET",
|
|
288
|
-
uri: "/v2/projects/{projectId}/regions/{region}/credentials",
|
|
289
|
-
code: 200,
|
|
290
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
291
|
-
}))).annotate({ identifier: "ListCredentialsRequest" });
|
|
292
|
-
export const ListCredentialsResponseCredentialsList = /*@__PURE__*/ S.Array(CredentialsResponse);
|
|
293
|
-
export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
294
|
-
credentials: S.optional(ListCredentialsResponseCredentialsList),
|
|
295
|
-
})).annotate({ identifier: "ListCredentialsResponse" });
|
|
296
|
-
export const ListLoadBalancersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
297
|
-
projectId: S.String.pipe(T.Label()),
|
|
298
|
-
region: S.String.pipe(T.Label()),
|
|
299
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
300
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
301
|
-
}).pipe(T.Http({
|
|
302
|
-
method: "GET",
|
|
303
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
|
|
304
|
-
code: 200,
|
|
305
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
306
|
-
}))).annotate({ identifier: "ListLoadBalancersRequest" });
|
|
307
|
-
export const ListLoadBalancersResponseLoadBalancersList = /*@__PURE__*/ S.Array(LoadBalancer2);
|
|
308
|
-
export const ListLoadBalancersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
309
|
-
loadBalancers: S.optional(ListLoadBalancersResponseLoadBalancersList),
|
|
310
|
-
nextPageId: S.optional(S.String),
|
|
311
|
-
})).annotate({
|
|
312
|
-
identifier: "ListLoadBalancersResponse",
|
|
36
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
37
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __6, __3, __15, __16]]);
|
|
313
38
|
});
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}))).
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
})).
|
|
330
|
-
|
|
331
|
-
export const
|
|
332
|
-
|
|
333
|
-
})).
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
listeners: S.optional(UpdateLoadBalancerRequestListenersList),
|
|
364
|
-
networks: S.optional(UpdateLoadBalancerRequestNetworksList),
|
|
365
|
-
options: S.optional(LoadBalancerOptions),
|
|
366
|
-
planId: S.optional(S.String),
|
|
367
|
-
targetPools: S.optional(UpdateLoadBalancerRequestTargetPoolsList),
|
|
368
|
-
version: S.optional(S.String),
|
|
369
|
-
}).pipe(T.Http({
|
|
370
|
-
method: "PUT",
|
|
371
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
|
|
372
|
-
code: 200,
|
|
373
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
374
|
-
}))).annotate({
|
|
375
|
-
identifier: "UpdateLoadBalancerRequest",
|
|
376
|
-
});
|
|
377
|
-
export const UpdateTargetPoolRequestTargetsList = /*@__PURE__*/ S.Array(Target);
|
|
378
|
-
export const UpdateTargetPoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
379
|
-
projectId: S.String.pipe(T.Label()),
|
|
380
|
-
region: S.String.pipe(T.Label()),
|
|
381
|
-
name: S.String.pipe(T.Label()),
|
|
382
|
-
targetPoolName: S.String.pipe(T.Label()),
|
|
383
|
-
activeHealthCheck: S.optional(ActiveHealthCheck),
|
|
384
|
-
sessionPersistence: S.optional(SessionPersistence),
|
|
385
|
-
targetPort: S.optional(S.Number),
|
|
386
|
-
targets: S.optional(UpdateTargetPoolRequestTargetsList),
|
|
387
|
-
}).pipe(T.Http({
|
|
388
|
-
method: "PUT",
|
|
389
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",
|
|
390
|
-
code: 200,
|
|
391
|
-
baseUrl: "https://load-balancer.api.stackit.cloud",
|
|
392
|
-
}))).annotate({ identifier: "UpdateTargetPoolRequest" });
|
|
393
|
-
/** Create credentials for observability of the Load Balancer Created credentials can be stored and used for the load balancer observability. For example, when using STACKIT Observability, credentials first must be created for that STACKIT Observability instance (by using their API or the STACKIT Portal) and then can be provided to the load balancer by storing them with this endpoint. */
|
|
394
|
-
export const createCredentials = /*@__PURE__*/ API.make(() => ({
|
|
395
|
-
input: CreateCredentialsRequest,
|
|
396
|
-
output: CreateCredentialsResponse,
|
|
397
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
398
|
-
protocol: StackitProtocol,
|
|
399
|
-
retry: Retry.Retry,
|
|
400
|
-
}));
|
|
401
|
-
/** Create a load balancer in a project Create Load Balancer will create a load balancer. The default load balancing algorithm is round robin unless useSourceIpAddress in session persistence is enabled for a target pool then it is Maglev. */
|
|
402
|
-
export const createLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
403
|
-
input: CreateLoadBalancerRequest,
|
|
404
|
-
output: LoadBalancer2,
|
|
405
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
406
|
-
protocol: StackitProtocol,
|
|
407
|
-
retry: Retry.Retry,
|
|
408
|
-
}));
|
|
409
|
-
/** Delete a single credential in a project. Delete Credential */
|
|
410
|
-
export const deleteCredentials = /*@__PURE__*/ API.make(() => ({
|
|
411
|
-
input: DeleteCredentialsRequest,
|
|
412
|
-
output: DeleteCredentialsResponse2,
|
|
413
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
414
|
-
protocol: StackitProtocol,
|
|
415
|
-
retry: Retry.Retry,
|
|
416
|
-
}));
|
|
417
|
-
/** Delete a given load balancer in a project. DeleteLoadBalancer will delete a given load balancer. */
|
|
418
|
-
export const deleteLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
419
|
-
input: DeleteLoadBalancerRequest,
|
|
420
|
-
output: DeleteLoadBalancerResponse2,
|
|
421
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
422
|
-
protocol: StackitProtocol,
|
|
423
|
-
retry: Retry.Retry,
|
|
424
|
-
}));
|
|
425
|
-
/** Get a single credential reference in a project. Get Credentials */
|
|
426
|
-
export const getCredentials = /*@__PURE__*/ API.make(() => ({
|
|
427
|
-
input: GetCredentialsRequest,
|
|
428
|
-
output: GetCredentialsResponse,
|
|
429
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
430
|
-
protocol: StackitProtocol,
|
|
431
|
-
retry: Retry.Retry,
|
|
432
|
-
}));
|
|
433
|
-
/** Get a single load balancer in a project. Get Load Balancer will get a single load balancer of a project. This contains all the information set during creation or updates. Additionally, it will have information about the state of the load balancer in the form of a status field and error description feedback. */
|
|
434
|
-
export const getLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
435
|
-
input: GetLoadBalancerRequest,
|
|
436
|
-
output: LoadBalancer2,
|
|
437
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
438
|
-
protocol: StackitProtocol,
|
|
439
|
-
retry: Retry.Retry,
|
|
440
|
-
}));
|
|
441
|
-
/** Get the quota of Network Load Balancers in a project. Retrieves the configured Network Load Balancer quota for the project. Limit can be changed via service request. */
|
|
442
|
-
export const getQuota = /*@__PURE__*/ API.make(() => ({
|
|
443
|
-
input: GetQuotaRequest,
|
|
444
|
-
output: GetQuotaResponse,
|
|
445
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
446
|
-
protocol: StackitProtocol,
|
|
447
|
-
retry: Retry.Retry,
|
|
448
|
-
}));
|
|
449
|
-
/** List all credentials in a project. List Credentials */
|
|
450
|
-
export const listCredentials = /*@__PURE__*/ API.make(() => ({
|
|
451
|
-
input: ListCredentialsRequest,
|
|
452
|
-
output: ListCredentialsResponse,
|
|
453
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
454
|
-
protocol: StackitProtocol,
|
|
455
|
-
retry: Retry.Retry,
|
|
456
|
-
}));
|
|
457
|
-
/** List load balancers in a project. ListLoadBalancer will list load balancers of a project. This contains information set during creation or updates for every load balancer in the project. Additionally, it will have information about the state of the load balancer in the form of a status field and error description feedback. */
|
|
458
|
-
export const listLoadBalancers = /*@__PURE__*/ API.make(() => ({
|
|
459
|
-
input: ListLoadBalancersRequest,
|
|
460
|
-
output: ListLoadBalancersResponse,
|
|
461
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
462
|
-
protocol: StackitProtocol,
|
|
463
|
-
retry: Retry.Retry,
|
|
464
|
-
}));
|
|
465
|
-
/** List available service plans. ListPlans returns for the configured service plans for a project. */
|
|
466
|
-
export const listPlans = /*@__PURE__*/ API.make(() => ({
|
|
467
|
-
input: ListPlansRequest,
|
|
468
|
-
output: ListPlansResponse,
|
|
469
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
470
|
-
protocol: StackitProtocol,
|
|
471
|
-
retry: Retry.Retry,
|
|
472
|
-
}));
|
|
473
|
-
/** Update credentials for observability in a project. Update Credentials */
|
|
474
|
-
export const updateCredentials = /*@__PURE__*/ API.make(() => ({
|
|
475
|
-
input: UpdateCredentialsRequest,
|
|
476
|
-
output: UpdateCredentialsResponse,
|
|
477
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
478
|
-
protocol: StackitProtocol,
|
|
479
|
-
retry: Retry.Retry,
|
|
480
|
-
}));
|
|
481
|
-
/** Update a load balancer in a project. Update Load Balancer allows the change of listeners and target pools of an existing Load Balancer. The Load balancer resource version needs to be the current version to ensure concurrency safe updates. The default load balancing algorithm is round robin unless useSourceIpAddress in session persistence is enabled for a target pool then it is Maglev. */
|
|
482
|
-
export const updateLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
483
|
-
input: UpdateLoadBalancerRequest,
|
|
484
|
-
output: LoadBalancer2,
|
|
485
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
486
|
-
protocol: StackitProtocol,
|
|
487
|
-
retry: Retry.Retry,
|
|
488
|
-
}));
|
|
489
|
-
/** Update a single target pool of a load balancer in a project. ReplaceTargetPool will replace a specific target pool of a load balancer with new content. Useful to add/remove target servers. will update a load balancer. Only replaces the mentioned target pools and leaves others unchanged. Cannot be used to create or rename a target pool. */
|
|
490
|
-
export const updateTargetPool = /*@__PURE__*/ API.make(() => ({
|
|
491
|
-
input: UpdateTargetPoolRequest,
|
|
492
|
-
output: TargetPool,
|
|
493
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
494
|
-
protocol: StackitProtocol,
|
|
495
|
-
retry: Retry.Retry,
|
|
496
|
-
}));
|
|
497
|
-
//# sourceMappingURL=load_balancer.js.map
|
|
39
|
+
|
|
40
|
+
export const createCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateCredentialsRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),displayName:$4($3),password:$4($3.pipe($5({}))),username:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/credentials",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __10, __4, __5, __d1, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createCredentials, i));
|
|
41
|
+
|
|
42
|
+
export const createLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:16,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"CreateLoadBalancerRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),disableTargetSecurityGroupAssignment:$5($4),externalAddress:$5($3),labels:$5(#6:0),listeners:$5(#7:1),name:$5($3),networks:$5(#6:5),options:$5(#6:9),planId:$5($3),targetPools:$5(#6:10),version:$5($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __11, __7, __d3, __d2, __4, __5, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createLoadBalancer, i));
|
|
43
|
+
|
|
44
|
+
export const deleteCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteCredentialsRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),credentialsRef:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteCredentials, i));
|
|
45
|
+
|
|
46
|
+
export const deleteLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteLoadBalancerRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteLoadBalancer, i));
|
|
47
|
+
|
|
48
|
+
export const getCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetCredentialsRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),credentialsRef:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCredentials, i));
|
|
49
|
+
|
|
50
|
+
export const getLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:16,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetLoadBalancerRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getLoadBalancer, i));
|
|
51
|
+
|
|
52
|
+
export const getQuota = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetQuotaRequest";$5(>4)@"GetQuotaResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/quota",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}));$4({maxCredentials:$7($6),maxLoadBalancers:$7($6),projectId:$7($3),region:$7($3),usedCredentials:$7($6),usedLoadBalancers:$7($6)})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getQuota, i));
|
|
53
|
+
|
|
54
|
+
export const listCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListCredentialsRequest";$7(#6:0);$5(>5)@"ListCredentialsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/credentials",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}));$4({credentials:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d0, __8, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCredentials, i));
|
|
55
|
+
|
|
56
|
+
export const listLoadBalancers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>4)@"ListLoadBalancersRequest";$9(#8:16);$7(>5)@"ListLoadBalancersResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),pageSize:$5($3.pipe($4())),pageId:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}));$6({loadBalancers:$5(#2),nextPageId:$5($3)})', [__0, __1, __2, __3, __9, __7, __4, __5, __d3, __8, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listLoadBalancers, i));
|
|
57
|
+
|
|
58
|
+
export const listPlans = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"ListPlansRequest";$5(>6)@"PlanDetails";$8(#2);$5(>7)@"ListPlansResponse";$4({region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/regions/{region}/plans",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}));$4({description:$6($3),flavorName:$6($3),maxConnections:$6($7),name:$6($3),planId:$6($3),region:$6($3)});$4({validPlans:$6(#3)})', [__0, __1, __2, __3, __4, __5, __7, __6, __8, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listPlans, i));
|
|
59
|
+
|
|
60
|
+
export const updateCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"UpdateCredentialsRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),credentialsRef:$3.pipe($2()),displayName:$4($3),password:$4($3.pipe($5({}))),username:$4($3)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __10, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateCredentials, i));
|
|
61
|
+
|
|
62
|
+
export const updateLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:16,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"UpdateLoadBalancerRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2()),disableTargetSecurityGroupAssignment:$5($4),externalAddress:$5($3),labels:$5(#6:0),listeners:$5(#7:1),networks:$5(#6:5),options:$5(#6:9),planId:$5($3),targetPools:$5(#6:10),version:$5($3)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __11, __7, __d3, __d2, __4, __5, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateLoadBalancer, i));
|
|
63
|
+
|
|
64
|
+
export const updateTargetPool = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:7,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>2)@"UpdateTargetPoolRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2()),targetPoolName:$3.pipe($2()),activeHealthCheck:$5(#4:3),sessionPersistence:$5(#4:4),targetPort:$5($6),targets:$5(#4:6)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",code:200,baseUrl:"https://load-balancer.api.stackit.cloud"}))', [__0, __1, __2, __3, __d4, __7, __6, __4, __5, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateTargetPool, i));
|
|
65
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
66
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
// Shared schema data (see `op` in core/api).
|
|
70
|
+
function __d0() {
|
|
71
|
+
return ['$4(>1)@"CredentialsResponse";$3({credentialsRef:$2($1),displayName:$2($1),region:$2($1),username:$2($1)})', [__0, __3, __7, __4, __5]];
|
|
72
|
+
}
|
|
73
|
+
function __d1() {
|
|
74
|
+
return ['$4(>1)@"CreateCredentialsResponse";$3({credential:$2(#1:0)})', [__0, __d0, __7, __4, __5]];
|
|
75
|
+
}
|
|
76
|
+
function __d2() {
|
|
77
|
+
return ['$6(>2)@"ListenerInput";$7(#0);$5({displayName:$2($1),port:$2($3),protocol:$2($1),serverNameIndicators:$2(#4:2),targetPool:$2($1),tcp:$2(#4:3),udp:$2(#4:3)})', [__0, __3, __7, __6, __d3, __4, __5, __8]];
|
|
78
|
+
}
|
|
79
|
+
function __d3() {
|
|
80
|
+
return ['$2($1,$1);$5(>17)@"ServerNameIndicator";$6(#1);$5(>18)@"OptionsTCP";$5(>19)@"Network";$6(#4);$5(>20)@"LoadbalancerOptionAccessControl";$5(>21)@"LoadbalancerOptionLogs";$5(>22)@"LoadbalancerOptionObservability";$5(>23)@"LoadBalancerOptions";$6(#7:7);$5(>24)@"LoadBalancerError";$6(#11);$5(>25)@"Listener";$6(#13);$5(>26)@"SecurityGroup";$5(>27)@"LoadBalancer2";$4({name:$3($1)});$4({idleTimeout:$3($1)});$4({networkId:$3($1),role:$3($1)});$4({allowedSourceRanges:$3(#7:0)});$4({credentialsRef:$3($1),pushUrl:$3($1)});$4({logs:$3(#7),metrics:$3(#7)});$4({accessControl:$3(#6),ephemeralAddress:$3($8),observability:$3(#8),privateNetworkOnly:$3($8)});$4({description:$3($1),type:$3($1)});$4({displayName:$3($1),name:$3($1),port:$3($9),protocol:$3($1),serverNameIndicators:$3(#2),targetPool:$3($1),tcp:$3(#3),udp:$3(#3)});$4({id:$3($1),name:$3($1)});$4({disableTargetSecurityGroupAssignment:$3($8),errors:$3(#12),externalAddress:$3($1),labels:$3(#0),listeners:$3(#14),loadBalancerSecurityGroup:$3(#15),name:$3($1),networks:$3(#5),options:$3(#9),planId:$3($1),privateAddress:$3($1),region:$3($1),status:$3($1),targetPools:$3(#10),targetSecurityGroup:$3(#15),version:$3($1)})', [__0, __3, __12, __7, __4, __5, __8, __d4, __11, __6]];
|
|
81
|
+
}
|
|
82
|
+
function __d4() {
|
|
83
|
+
return ['$2($1);$6(>8)@"TlsConfig";$6(>9)@"HttpHealthChecks";$6(>10)@"ActiveHealthCheck";$6(>11)@"SessionPersistence";$6(>12)@"Target";$2(#5);$6(>13)@"TargetPool";$5({customCa:$3($1),enabled:$3($4),skipCertificateValidation:$3($4)});$5({okStatuses:$3(#0),path:$3($1),tls:$3(#1)});$5({altPort:$3($7),healthyThreshold:$3($7),httpHealthChecks:$3(#2),interval:$3($1),intervalJitter:$3($1),timeout:$3($1),unhealthyThreshold:$3($7)});$5({useSourceIpAddress:$3($4)});$5({displayName:$3($1),ip:$3($1)});$5({activeHealthCheck:$3(#3),name:$3($1),sessionPersistence:$3(#4),targetPort:$3($7),targets:$3(#6)})', [__0, __3, __8, __7, __11, __4, __5, __6]];
|
|
84
|
+
}
|
|
85
|
+
function __d5() {
|
|
86
|
+
return ['$3(>1)@"DeleteCredentialsResponse2";$2.pipe($1())', [__0, __13, __14, __5]];
|
|
87
|
+
}
|