@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/alb.js
CHANGED
|
@@ -1,513 +1,84 @@
|
|
|
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://alb.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 CookiePersistence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
-
name: S.optional(S.String),
|
|
60
|
-
ttl: S.optional(S.String),
|
|
61
|
-
})).annotate({ identifier: "CookiePersistence" });
|
|
62
|
-
export const HttpHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
-
exactMatch: S.optional(S.String),
|
|
64
|
-
name: S.optional(S.String),
|
|
65
|
-
})).annotate({ identifier: "HttpHeader" });
|
|
66
|
-
export const RuleHeadersList = /*@__PURE__*/ S.Array(HttpHeader);
|
|
67
|
-
export const Path = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
68
|
-
exactMatch: S.optional(S.String),
|
|
69
|
-
prefix: S.optional(S.String),
|
|
70
|
-
})).annotate({ identifier: "Path" });
|
|
71
|
-
export const QueryParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
72
|
-
exactMatch: S.optional(S.String),
|
|
73
|
-
name: S.optional(S.String),
|
|
74
|
-
})).annotate({ identifier: "QueryParameter" });
|
|
75
|
-
export const RuleQueryParametersList = /*@__PURE__*/ S.Array(QueryParameter);
|
|
76
|
-
export const Rule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
77
|
-
cookiePersistence: S.optional(CookiePersistence),
|
|
78
|
-
headers: S.optional(RuleHeadersList),
|
|
79
|
-
path: S.optional(Path),
|
|
80
|
-
queryParameters: S.optional(RuleQueryParametersList),
|
|
81
|
-
targetPool: S.optional(S.String),
|
|
82
|
-
webSocket: S.optional(S.Boolean),
|
|
83
|
-
})).annotate({ identifier: "Rule" });
|
|
84
|
-
export const HostConfigRulesList = /*@__PURE__*/ S.Array(Rule);
|
|
85
|
-
export const HostConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
86
|
-
host: S.optional(S.String),
|
|
87
|
-
rules: S.optional(HostConfigRulesList),
|
|
88
|
-
})).annotate({ identifier: "HostConfig" });
|
|
89
|
-
export const ProtocolOptionsHTTPHostsList = /*@__PURE__*/ S.Array(HostConfig);
|
|
90
|
-
export const ProtocolOptionsHTTP = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
91
|
-
hosts: S.optional(ProtocolOptionsHTTPHostsList),
|
|
92
|
-
})).annotate({ identifier: "ProtocolOptionsHTTP" });
|
|
93
|
-
export const CertificateConfigCertificateIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
94
|
-
export const CertificateConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
95
|
-
certificateIds: S.optional(CertificateConfigCertificateIdsList),
|
|
96
|
-
})).annotate({ identifier: "CertificateConfig" });
|
|
97
|
-
export const ProtocolOptionsHTTPS = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
-
certificateConfig: S.optional(CertificateConfig),
|
|
99
|
-
})).annotate({ identifier: "ProtocolOptionsHTTPS" });
|
|
100
|
-
export const ListenerProtocol = S.String;
|
|
101
|
-
export const Listener = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
102
|
-
http: S.optional(ProtocolOptionsHTTP),
|
|
103
|
-
https: S.optional(ProtocolOptionsHTTPS),
|
|
104
|
-
name: S.optional(S.String),
|
|
105
|
-
port: S.optional(S.Number),
|
|
106
|
-
protocol: S.optional(ListenerProtocol),
|
|
107
|
-
wafConfigName: S.optional(S.String),
|
|
108
|
-
})).annotate({ identifier: "Listener" });
|
|
109
|
-
export const CreateLoadBalancerRequestListenersList = /*@__PURE__*/ S.Array(Listener);
|
|
110
|
-
export const NetworkRole = S.String;
|
|
111
|
-
export const Network = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
112
|
-
networkId: S.optional(S.String),
|
|
113
|
-
role: S.optional(NetworkRole),
|
|
114
|
-
})).annotate({ identifier: "Network" });
|
|
115
|
-
export const CreateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(Network);
|
|
116
|
-
export const LoadbalancerOptionAccessControlAllowedSourceRangesList = /*@__PURE__*/ S.Array(S.String);
|
|
117
|
-
export const LoadbalancerOptionAccessControl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
118
|
-
allowedSourceRanges: S.optional(LoadbalancerOptionAccessControlAllowedSourceRangesList),
|
|
119
|
-
ipBlockListName: S.optional(S.String),
|
|
120
|
-
})).annotate({
|
|
121
|
-
identifier: "LoadbalancerOptionAccessControl",
|
|
122
|
-
});
|
|
123
|
-
export const LoadbalancerOptionLogs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
-
credentialsRef: S.optional(S.String),
|
|
125
|
-
pushUrl: S.optional(S.String),
|
|
126
|
-
})).annotate({ identifier: "LoadbalancerOptionLogs" });
|
|
127
|
-
export const LoadbalancerOptionMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
128
|
-
credentialsRef: S.optional(S.String),
|
|
129
|
-
pushUrl: S.optional(S.String),
|
|
130
|
-
})).annotate({
|
|
131
|
-
identifier: "LoadbalancerOptionMetrics",
|
|
132
|
-
});
|
|
133
|
-
export const LoadbalancerOptionObservability = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
-
logs: S.optional(LoadbalancerOptionLogs),
|
|
135
|
-
metrics: S.optional(LoadbalancerOptionMetrics),
|
|
136
|
-
})).annotate({
|
|
137
|
-
identifier: "LoadbalancerOptionObservability",
|
|
138
|
-
});
|
|
139
|
-
export const LoadBalancerOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
-
accessControl: S.optional(LoadbalancerOptionAccessControl),
|
|
141
|
-
ephemeralAddress: S.optional(S.Boolean),
|
|
142
|
-
observability: S.optional(LoadbalancerOptionObservability),
|
|
143
|
-
privateNetworkOnly: S.optional(S.Boolean),
|
|
144
|
-
})).annotate({ identifier: "LoadBalancerOptions" });
|
|
145
|
-
export const HttpHealthChecksOkStatusesList = /*@__PURE__*/ S.Array(S.String);
|
|
146
|
-
export const TlsConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
147
|
-
customCa: S.optional(S.String),
|
|
148
|
-
enabled: S.optional(S.Boolean),
|
|
149
|
-
skipCertificateValidation: S.optional(S.Boolean),
|
|
150
|
-
})).annotate({ identifier: "TlsConfig" });
|
|
151
|
-
export const HttpHealthChecks = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
152
|
-
okStatuses: S.optional(HttpHealthChecksOkStatusesList),
|
|
153
|
-
path: S.optional(S.String),
|
|
154
|
-
tls: S.optional(TlsConfig),
|
|
155
|
-
})).annotate({ identifier: "HttpHealthChecks" });
|
|
156
|
-
export const ActiveHealthCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
157
|
-
altPort: S.optional(S.Number),
|
|
158
|
-
healthyThreshold: S.optional(S.Number),
|
|
159
|
-
httpHealthChecks: S.optional(HttpHealthChecks),
|
|
160
|
-
interval: S.optional(S.String),
|
|
161
|
-
intervalJitter: S.optional(S.String),
|
|
162
|
-
timeout: S.optional(S.String),
|
|
163
|
-
unhealthyThreshold: S.optional(S.Number),
|
|
164
|
-
})).annotate({ identifier: "ActiveHealthCheck" });
|
|
165
|
-
export const Target = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
166
|
-
displayName: S.optional(S.String),
|
|
167
|
-
ip: S.optional(S.String),
|
|
168
|
-
})).annotate({ identifier: "Target" });
|
|
169
|
-
export const TargetPoolTargetsList = /*@__PURE__*/ S.Array(Target);
|
|
170
|
-
export const TargetPool = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
171
|
-
activeHealthCheck: S.optional(ActiveHealthCheck),
|
|
172
|
-
name: S.optional(S.String),
|
|
173
|
-
targetPort: S.optional(S.Number),
|
|
174
|
-
targets: S.optional(TargetPoolTargetsList),
|
|
175
|
-
tlsConfig: S.optional(TlsConfig),
|
|
176
|
-
})).annotate({ identifier: "TargetPool" });
|
|
177
|
-
export const CreateLoadBalancerRequestTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
|
|
178
|
-
export const CreateLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
179
|
-
projectId: S.String.pipe(T.Label()),
|
|
180
|
-
region: S.String.pipe(T.Label()),
|
|
181
|
-
disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
|
|
182
|
-
externalAddress: S.optional(S.String),
|
|
183
|
-
labels: S.optional(CreateLoadBalancerRequestLabelsMap),
|
|
184
|
-
listeners: S.optional(CreateLoadBalancerRequestListenersList),
|
|
185
|
-
name: S.optional(S.String),
|
|
186
|
-
networks: S.optional(CreateLoadBalancerRequestNetworksList),
|
|
187
|
-
options: S.optional(LoadBalancerOptions),
|
|
188
|
-
planId: S.optional(S.String),
|
|
189
|
-
targetPools: S.optional(CreateLoadBalancerRequestTargetPoolsList),
|
|
190
|
-
}).pipe(T.Http({
|
|
191
|
-
method: "POST",
|
|
192
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
|
|
193
|
-
code: 200,
|
|
194
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
195
|
-
}))).annotate({
|
|
196
|
-
identifier: "CreateLoadBalancerRequest",
|
|
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]]);
|
|
197
29
|
});
|
|
198
|
-
export const
|
|
199
|
-
|
|
200
|
-
description: S.optional(S.String),
|
|
201
|
-
type: S.optional(LoadBalancerErrorType),
|
|
202
|
-
})).annotate({ identifier: "LoadBalancerError" });
|
|
203
|
-
export const LoadBalancerErrorsList = /*@__PURE__*/ S.Array(LoadBalancerError);
|
|
204
|
-
export const LoadBalancerLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
205
|
-
export const LoadBalancerListenersList = /*@__PURE__*/ S.Array(Listener);
|
|
206
|
-
export const SecurityGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
207
|
-
id: S.optional(S.String),
|
|
208
|
-
name: S.optional(S.String),
|
|
209
|
-
})).annotate({ identifier: "SecurityGroup" });
|
|
210
|
-
export const LoadBalancerNetworksList = /*@__PURE__*/ S.Array(Network);
|
|
211
|
-
export const LoadBalancerStatus = S.String;
|
|
212
|
-
export const LoadBalancerTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
|
|
213
|
-
export const LoadBalancer = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
214
|
-
disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
|
|
215
|
-
errors: S.optional(LoadBalancerErrorsList),
|
|
216
|
-
externalAddress: S.optional(S.String),
|
|
217
|
-
labels: S.optional(LoadBalancerLabelsMap),
|
|
218
|
-
listeners: S.optional(LoadBalancerListenersList),
|
|
219
|
-
loadBalancerSecurityGroup: S.optional(SecurityGroup),
|
|
220
|
-
name: S.optional(S.String),
|
|
221
|
-
networks: S.optional(LoadBalancerNetworksList),
|
|
222
|
-
options: S.optional(LoadBalancerOptions),
|
|
223
|
-
planId: S.optional(S.String),
|
|
224
|
-
privateAddress: S.optional(S.String),
|
|
225
|
-
region: S.optional(S.String),
|
|
226
|
-
status: S.optional(LoadBalancerStatus),
|
|
227
|
-
targetPools: S.optional(LoadBalancerTargetPoolsList),
|
|
228
|
-
targetSecurityGroup: S.optional(SecurityGroup),
|
|
229
|
-
version: S.optional(S.String),
|
|
230
|
-
})).annotate({ identifier: "LoadBalancer" });
|
|
231
|
-
export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
-
projectId: S.String.pipe(T.Label()),
|
|
233
|
-
region: S.String.pipe(T.Label()),
|
|
234
|
-
credentialsRef: S.String.pipe(T.Label()),
|
|
235
|
-
}).pipe(T.Http({
|
|
236
|
-
method: "DELETE",
|
|
237
|
-
uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
|
|
238
|
-
code: 200,
|
|
239
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
240
|
-
}))).annotate({ identifier: "DeleteCredentialsRequest" });
|
|
241
|
-
export const DeleteCredentialsResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
242
|
-
identifier: "DeleteCredentialsResponse2",
|
|
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]]);
|
|
243
32
|
});
|
|
244
|
-
export const
|
|
245
|
-
|
|
246
|
-
region: S.String.pipe(T.Label()),
|
|
247
|
-
name: S.String.pipe(T.Label()),
|
|
248
|
-
}).pipe(T.Http({
|
|
249
|
-
method: "DELETE",
|
|
250
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
|
|
251
|
-
code: 200,
|
|
252
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
253
|
-
}))).annotate({
|
|
254
|
-
identifier: "DeleteLoadBalancerRequest",
|
|
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]]);
|
|
255
35
|
});
|
|
256
|
-
export const
|
|
257
|
-
|
|
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]]);
|
|
258
38
|
});
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}))).
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
export const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}).pipe(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
export const
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
code: 200,
|
|
306
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
307
|
-
}))).annotate({ identifier: "ListCredentialsRequest" });
|
|
308
|
-
export const ListCredentialsResponseCredentialsList = /*@__PURE__*/ S.Array(CredentialsResponse);
|
|
309
|
-
export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
310
|
-
credentials: S.optional(ListCredentialsResponseCredentialsList),
|
|
311
|
-
})).annotate({ identifier: "ListCredentialsResponse" });
|
|
312
|
-
export const ListLoadBalancersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
313
|
-
projectId: S.String.pipe(T.Label()),
|
|
314
|
-
region: S.String.pipe(T.Label()),
|
|
315
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
316
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
317
|
-
}).pipe(T.Http({
|
|
318
|
-
method: "GET",
|
|
319
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
|
|
320
|
-
code: 200,
|
|
321
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
322
|
-
}))).annotate({ identifier: "ListLoadBalancersRequest" });
|
|
323
|
-
export const ListLoadBalancersResponseLoadBalancersList = /*@__PURE__*/ S.Array(LoadBalancer);
|
|
324
|
-
export const ListLoadBalancersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
325
|
-
loadBalancers: S.optional(ListLoadBalancersResponseLoadBalancersList),
|
|
326
|
-
nextPageId: S.optional(S.String),
|
|
327
|
-
})).annotate({
|
|
328
|
-
identifier: "ListLoadBalancersResponse",
|
|
329
|
-
});
|
|
330
|
-
export const ListPlansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
331
|
-
region: S.String.pipe(T.Label()),
|
|
332
|
-
}).pipe(T.Http({
|
|
333
|
-
method: "GET",
|
|
334
|
-
uri: "/v2/regions/{region}/plans",
|
|
335
|
-
code: 200,
|
|
336
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
337
|
-
}))).annotate({ identifier: "ListPlansRequest" });
|
|
338
|
-
export const PlanDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
339
|
-
description: S.optional(S.String),
|
|
340
|
-
flavorName: S.optional(S.String),
|
|
341
|
-
maxConnections: S.optional(S.Number),
|
|
342
|
-
name: S.optional(S.String),
|
|
343
|
-
planId: S.optional(S.String),
|
|
344
|
-
region: S.optional(S.String),
|
|
345
|
-
})).annotate({ identifier: "PlanDetails" });
|
|
346
|
-
export const ListPlansResponseValidPlansList = /*@__PURE__*/ S.Array(PlanDetails);
|
|
347
|
-
export const ListPlansResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
348
|
-
validPlans: S.optional(ListPlansResponseValidPlansList),
|
|
349
|
-
})).annotate({ identifier: "ListPlansResponse" });
|
|
350
|
-
export const UpdateCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
351
|
-
projectId: S.String.pipe(T.Label()),
|
|
352
|
-
region: S.String.pipe(T.Label()),
|
|
353
|
-
credentialsRef: S.String.pipe(T.Label()),
|
|
354
|
-
displayName: S.optional(S.String),
|
|
355
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
356
|
-
username: S.optional(S.String),
|
|
357
|
-
}).pipe(T.Http({
|
|
358
|
-
method: "PUT",
|
|
359
|
-
uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
|
|
360
|
-
code: 200,
|
|
361
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
362
|
-
}))).annotate({ identifier: "UpdateCredentialsRequest" });
|
|
363
|
-
export const UpdateCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
364
|
-
credential: S.optional(CredentialsResponse),
|
|
365
|
-
})).annotate({
|
|
366
|
-
identifier: "UpdateCredentialsResponse",
|
|
367
|
-
});
|
|
368
|
-
export const UpdateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
369
|
-
export const UpdateLoadBalancerRequestListenersList = /*@__PURE__*/ S.Array(Listener);
|
|
370
|
-
export const UpdateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(Network);
|
|
371
|
-
export const UpdateLoadBalancerRequestTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
|
|
372
|
-
export const UpdateLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
-
projectId: S.String.pipe(T.Label()),
|
|
374
|
-
region: S.String.pipe(T.Label()),
|
|
375
|
-
name: S.String.pipe(T.Label()),
|
|
376
|
-
disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
|
|
377
|
-
externalAddress: S.optional(S.String),
|
|
378
|
-
labels: S.optional(UpdateLoadBalancerRequestLabelsMap),
|
|
379
|
-
listeners: S.optional(UpdateLoadBalancerRequestListenersList),
|
|
380
|
-
networks: S.optional(UpdateLoadBalancerRequestNetworksList),
|
|
381
|
-
options: S.optional(LoadBalancerOptions),
|
|
382
|
-
planId: S.optional(S.String),
|
|
383
|
-
targetPools: S.optional(UpdateLoadBalancerRequestTargetPoolsList),
|
|
384
|
-
version: S.optional(S.String),
|
|
385
|
-
}).pipe(T.Http({
|
|
386
|
-
method: "PUT",
|
|
387
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
|
|
388
|
-
code: 200,
|
|
389
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
390
|
-
}))).annotate({
|
|
391
|
-
identifier: "UpdateLoadBalancerRequest",
|
|
392
|
-
});
|
|
393
|
-
export const UpdateTargetPoolRequestTargetsList = /*@__PURE__*/ S.Array(Target);
|
|
394
|
-
export const UpdateTargetPoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
395
|
-
projectId: S.String.pipe(T.Label()),
|
|
396
|
-
region: S.String.pipe(T.Label()),
|
|
397
|
-
name: S.String.pipe(T.Label()),
|
|
398
|
-
targetPoolName: S.String.pipe(T.Label()),
|
|
399
|
-
activeHealthCheck: S.optional(ActiveHealthCheck),
|
|
400
|
-
targetPort: S.optional(S.Number),
|
|
401
|
-
targets: S.optional(UpdateTargetPoolRequestTargetsList),
|
|
402
|
-
tlsConfig: S.optional(TlsConfig),
|
|
403
|
-
}).pipe(T.Http({
|
|
404
|
-
method: "PUT",
|
|
405
|
-
uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",
|
|
406
|
-
code: 200,
|
|
407
|
-
baseUrl: "https://alb.api.stackit.cloud",
|
|
408
|
-
}))).annotate({ identifier: "UpdateTargetPoolRequest" });
|
|
409
|
-
/** Create credentials for observability of the Application 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. */
|
|
410
|
-
export const createCredentials = /*@__PURE__*/ API.make(() => ({
|
|
411
|
-
input: CreateCredentialsRequest,
|
|
412
|
-
output: CreateCredentialsResponse,
|
|
413
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
414
|
-
protocol: StackitProtocol,
|
|
415
|
-
retry: Retry.Retry,
|
|
416
|
-
}));
|
|
417
|
-
/** Create an Application Load Balancer in a project Creates an Application Load Balancer. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. */
|
|
418
|
-
export const createLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
419
|
-
input: CreateLoadBalancerRequest,
|
|
420
|
-
output: LoadBalancer,
|
|
421
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
422
|
-
protocol: StackitProtocol,
|
|
423
|
-
retry: Retry.Retry,
|
|
424
|
-
}));
|
|
425
|
-
/** Delete a single credential in a project. Deletes the stored Observability credentials. */
|
|
426
|
-
export const deleteCredentials = /*@__PURE__*/ API.make(() => ({
|
|
427
|
-
input: DeleteCredentialsRequest,
|
|
428
|
-
output: DeleteCredentialsResponse2,
|
|
429
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
430
|
-
protocol: StackitProtocol,
|
|
431
|
-
retry: Retry.Retry,
|
|
432
|
-
}));
|
|
433
|
-
/** Delete a given load balancer in a project. Deletes the specified Application Load Balancer. */
|
|
434
|
-
export const deleteLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
435
|
-
input: DeleteLoadBalancerRequest,
|
|
436
|
-
output: DeleteLoadBalancerResponse2,
|
|
437
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
438
|
-
protocol: StackitProtocol,
|
|
439
|
-
retry: Retry.Retry,
|
|
440
|
-
}));
|
|
441
|
-
/** Get a single credential reference in a project. Gets the stored Observability credentials. */
|
|
442
|
-
export const getCredentials = /*@__PURE__*/ API.make(() => ({
|
|
443
|
-
input: GetCredentialsRequest,
|
|
444
|
-
output: GetCredentialsResponse,
|
|
445
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
446
|
-
protocol: StackitProtocol,
|
|
447
|
-
retry: Retry.Retry,
|
|
448
|
-
}));
|
|
449
|
-
/** Get a single Application Load Balancer in a project. Retrieves details of a specific Application Load Balancer in a project. Includes creation and update information, current status, and any error descriptions. */
|
|
450
|
-
export const getLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
451
|
-
input: GetLoadBalancerRequest,
|
|
452
|
-
output: LoadBalancer,
|
|
453
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
454
|
-
protocol: StackitProtocol,
|
|
455
|
-
retry: Retry.Retry,
|
|
456
|
-
}));
|
|
457
|
-
/** Get the quota of Application Load Balancers in a project. Retrieves the configured Application Load Balancer quota for the project. Limit can be changed via service request. */
|
|
458
|
-
export const getQuota = /*@__PURE__*/ API.make(() => ({
|
|
459
|
-
input: GetQuotaRequest,
|
|
460
|
-
output: GetQuotaResponse,
|
|
461
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
462
|
-
protocol: StackitProtocol,
|
|
463
|
-
retry: Retry.Retry,
|
|
464
|
-
}));
|
|
465
|
-
/** List all credentials in a project. Lists the stored Observability credentials. */
|
|
466
|
-
export const listCredentials = /*@__PURE__*/ API.make(() => ({
|
|
467
|
-
input: ListCredentialsRequest,
|
|
468
|
-
output: ListCredentialsResponse,
|
|
469
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
470
|
-
protocol: StackitProtocol,
|
|
471
|
-
retry: Retry.Retry,
|
|
472
|
-
}));
|
|
473
|
-
/** List Application Load Balancers in a project. Lists all Application Load Balancers in a project. Includes details from creation or updates, along with their status and any error descriptions. */
|
|
474
|
-
export const listLoadBalancers = /*@__PURE__*/ API.make(() => ({
|
|
475
|
-
input: ListLoadBalancersRequest,
|
|
476
|
-
output: ListLoadBalancersResponse,
|
|
477
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
478
|
-
protocol: StackitProtocol,
|
|
479
|
-
retry: Retry.Retry,
|
|
480
|
-
}));
|
|
481
|
-
/** List available service plans. Lists the configured service plans for a project. */
|
|
482
|
-
export const listPlans = /*@__PURE__*/ API.make(() => ({
|
|
483
|
-
input: ListPlansRequest,
|
|
484
|
-
output: ListPlansResponse,
|
|
485
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
486
|
-
protocol: StackitProtocol,
|
|
487
|
-
retry: Retry.Retry,
|
|
488
|
-
}));
|
|
489
|
-
/** Update credentials for observability in a project. Updates the stored Observability credentials. */
|
|
490
|
-
export const updateCredentials = /*@__PURE__*/ API.make(() => ({
|
|
491
|
-
input: UpdateCredentialsRequest,
|
|
492
|
-
output: UpdateCredentialsResponse,
|
|
493
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
494
|
-
protocol: StackitProtocol,
|
|
495
|
-
retry: Retry.Retry,
|
|
496
|
-
}));
|
|
497
|
-
/** Update a load balancer in a project. Updates an existing Application Load Balancer by modifying its listeners and target pools. Ensure the resource version is current to maintain concurrency safety. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. */
|
|
498
|
-
export const updateLoadBalancer = /*@__PURE__*/ API.make(() => ({
|
|
499
|
-
input: UpdateLoadBalancerRequest,
|
|
500
|
-
output: LoadBalancer,
|
|
501
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
502
|
-
protocol: StackitProtocol,
|
|
503
|
-
retry: Retry.Retry,
|
|
504
|
-
}));
|
|
505
|
-
/** Update a single target pool of a load balancer in a project. Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). Only updates the specified target pool, leaving others unchanged. Cannot be used to create or rename target pools. */
|
|
506
|
-
export const updateTargetPool = /*@__PURE__*/ API.make(() => ({
|
|
507
|
-
input: UpdateTargetPoolRequest,
|
|
508
|
-
output: TargetPool,
|
|
509
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
510
|
-
protocol: StackitProtocol,
|
|
511
|
-
retry: Retry.Retry,
|
|
512
|
-
}));
|
|
513
|
-
//# sourceMappingURL=alb.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://alb.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:24,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"CreateLoadBalancerRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),disableTargetSecurityGroupAssignment:$5($4),externalAddress:$5($3),labels:$5(#6:0),listeners:$5(#6:13),name:$5($3),networks:$5(#6:15),options:$5(#6:19),planId:$5($3),targetPools:$5(#6:20)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __11, __7, __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://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, 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://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, 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://alb.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:24,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://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, 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://alb.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://alb.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:24);$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://alb.api.stackit.cloud"}));$6({loadBalancers:$5(#2),nextPageId:$5($3)})', [__0, __1, __2, __3, __9, __7, __4, __5, __d2, __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://alb.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://alb.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:24,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateLoadBalancerRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2()),disableTargetSecurityGroupAssignment:$5($4),externalAddress:$5($3),labels:$5(#6:0),listeners:$5(#6:13),networks:$5(#6:15),options:$5(#6:19),planId:$5($3),targetPools:$5(#6:20),version:$5($3)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __11, __7, __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:6,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),targetPort:$5($6),targets:$5(#4:5),tlsConfig:$5(#4:1)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __d3, __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 ['$2($1,$1);$5(>25)@"CookiePersistence";$5(>26)@"HttpHeader";$6(#2);$5(>27)@"Path";$5(>28)@"Rule";$6(#5);$5(>29)@"HostConfig";$6(#7);$5(>30)@"ProtocolOptionsHTTP";$5(>31)@"CertificateConfig";$5(>32)@"ProtocolOptionsHTTPS";$5(>33)@"Listener";$6(#12);$5(>34)@"Network";$6(#14);$5(>35)@"LoadbalancerOptionAccessControl";$5(>36)@"LoadbalancerOptionLogs";$5(>37)@"LoadbalancerOptionObservability";$5(>38)@"LoadBalancerOptions";$6(#8:6);$5(>39)@"LoadBalancerError";$6(#21);$5(>40)@"SecurityGroup";$5(>41)@"LoadBalancer";$4({name:$3($1),ttl:$3($1)});$4({exactMatch:$3($1),name:$3($1)});$4({exactMatch:$3($1),prefix:$3($1)});$4({cookiePersistence:$3(#1),headers:$3(#3),path:$3(#4),queryParameters:$3(#3),targetPool:$3($1),webSocket:$3($7)});$4({host:$3($1),rules:$3(#6)});$4({hosts:$3(#8)});$4({certificateIds:$3(#8:0)});$4({certificateConfig:$3(#10)});$4({http:$3(#9),https:$3(#11),name:$3($1),port:$3($9),protocol:$3($1),wafConfigName:$3($1)});$4({networkId:$3($1),role:$3($1)});$4({allowedSourceRanges:$3(#8:0),ipBlockListName:$3($1)});$4({credentialsRef:$3($1),pushUrl:$3($1)});$4({logs:$3(#17),metrics:$3(#17)});$4({accessControl:$3(#16),ephemeralAddress:$3($7),observability:$3(#18),privateNetworkOnly:$3($7)});$4({description:$3($1),type:$3($1)});$4({id:$3($1),name:$3($1)});$4({disableTargetSecurityGroupAssignment:$3($7),errors:$3(#22),externalAddress:$3($1),labels:$3(#0),listeners:$3(#13),loadBalancerSecurityGroup:$3(#23),name:$3($1),networks:$3(#15),options:$3(#19),planId:$3($1),privateAddress:$3($1),region:$3($1),status:$3($1),targetPools:$3(#20),targetSecurityGroup:$3(#23),version:$3($1)})', [__0, __3, __12, __7, __4, __5, __8, __11, __d3, __6]];
|
|
78
|
+
}
|
|
79
|
+
function __d3() {
|
|
80
|
+
return ['$2($1);$6(>7)@"TlsConfig";$6(>8)@"HttpHealthChecks";$6(>9)@"ActiveHealthCheck";$6(>10)@"Target";$2(#4);$6(>11)@"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({displayName:$3($1),ip:$3($1)});$5({activeHealthCheck:$3(#3),name:$3($1),targetPort:$3($7),targets:$3(#5),tlsConfig:$3(#1)})', [__0, __3, __8, __7, __11, __4, __5, __6]];
|
|
81
|
+
}
|
|
82
|
+
function __d4() {
|
|
83
|
+
return ['$3(>1)@"DeleteCredentialsResponse2";$2.pipe($1())', [__0, __13, __14, __5]];
|
|
84
|
+
}
|