@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/vpn.js
CHANGED
|
@@ -1,931 +1,116 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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.optional;
|
|
17
|
+
const __7 = S.Boolean;
|
|
18
|
+
const __8 = S.Array;
|
|
19
|
+
const __9 = S.Number;
|
|
20
|
+
const __10 = S.NullOr;
|
|
21
|
+
const __11 = T.Query;
|
|
22
|
+
const __12 = S.Record;
|
|
23
|
+
const __13 = S.TaggedError;
|
|
24
|
+
const __14 = T.applyErrorMatchers;
|
|
25
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
26
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __9, __3, __13, __14]]);
|
|
27
|
+
});
|
|
28
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
29
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __9, __3, __13, __14]]);
|
|
30
|
+
});
|
|
31
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
32
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __9, __3, __13, __14]]);
|
|
33
|
+
});
|
|
34
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
35
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __9, __3, __13, __14]]);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const createGateway = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:3,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"CreateGatewayRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),availabilityZones:#4:0,bgp:$5(#4:1),displayName:$3,labels:$5(#6:0),networkConfig:$5(#4:2),planId:$3,routingType:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/gateways",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __d1, __6, __d3, __4, __5, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createGateway, i));
|
|
39
|
+
|
|
40
|
+
export const createGatewayBGPFilter = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$5(>2)@"CreateGatewayBGPFilterRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),displayName:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createGatewayBGPFilter, i));
|
|
41
|
+
|
|
42
|
+
export const createGatewayBGPFilterRule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:3,errors:[$9,$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"CreateGatewayBGPFilterRuleRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2()),action:$3,match:$5(#4:1),sequence:$5($6),set:$5(#4:2)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __d5, __6, __9, __4, __5, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createGatewayBGPFilterRule, i));
|
|
43
|
+
|
|
44
|
+
export const createGatewayConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#11:6,errors:[$12,$13,$14,$15],protocol:$16,retry:$17};$10(>2)@"CreateGatewayConnectionRequest";$9({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),displayName:$3,enabled:$5($4),labels:$5(#6:0),localSubnets:$5(#7:0),remoteSubnets:$5(#7:0),staticRoutes:$5(#7:0),tunnel1:#8:0,tunnel2:#8:0}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __6, __d3, __d2, __d7, __4, __5, __d6, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createGatewayConnection, i));
|
|
45
|
+
|
|
46
|
+
export const deleteGateway = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteGatewayRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteGateway, i));
|
|
47
|
+
|
|
48
|
+
export const deleteGatewayBGPFilter = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$5(>2)@"DeleteGatewayBGPFilterRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteGatewayBGPFilter, i));
|
|
49
|
+
|
|
50
|
+
export const deleteGatewayBGPFilterRule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteGatewayBGPFilterRuleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2()),ruleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteGatewayBGPFilterRule, i));
|
|
51
|
+
|
|
52
|
+
export const deleteGatewayConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteGatewayConnectionRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),connectionId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteGatewayConnection, i));
|
|
53
|
+
|
|
54
|
+
export const getGateway = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetGatewayRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getGateway, i));
|
|
55
|
+
|
|
56
|
+
export const getGatewayBGPFilter = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetGatewayBGPFilterRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getGatewayBGPFilter, i));
|
|
57
|
+
|
|
58
|
+
export const getGatewayBGPFilterRule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetGatewayBGPFilterRuleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2()),ruleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getGatewayBGPFilterRule, i));
|
|
59
|
+
|
|
60
|
+
export const getGatewayConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:6,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetGatewayConnectionRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),connectionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d6, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getGatewayConnection, i));
|
|
61
|
+
|
|
62
|
+
export const getGatewayConnectionStatus = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:4,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetGatewayConnectionStatusRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),connectionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}/status",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getGatewayConnectionStatus, i));
|
|
63
|
+
|
|
64
|
+
export const getGatewayStatus = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("BGPStatus", '{input:#1,output:#10,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$5(>11)@"GetGatewayStatusRequest";$7(#6:4);$5(>12)@"%Peers";$7(#3);$5(>13)@"%Routes";$7(#5);$5(>14)@"%";$5(>15)@"VPNTunnels";$7(#8);$5(>16)@"GatewayStatusResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/status",code:200,baseUrl:"https://vpn.api.stackit.cloud"}));$4({localAs:$8,peerUptime:$3,pfxRcd:$8,pfxSnt:$8,remoteAs:$8,remoteIP:$3,state:$3});$4({network:$3,origin:$3,path:$3,peerId:$3,weight:$8});$4({peers:$9(#4),routes:$9(#6)});$4({bgpStatus:$9($10(#7)),instanceState:$9($3),internalNextHopIP:$9($3),name:$9($3),publicIP:$9($3)});$4({connections:$9(#2),displayName:$9($3),errorMessage:$9($3),gatewayStatus:$9($3),id:$9($3),tunnels:$9(#9)})', [__0, __1, __2, __3, __4, __5, __d0, __8, __9, __6, __10, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(getGatewayStatus, i));
|
|
65
|
+
|
|
66
|
+
export const listGatewayBGPFilterRules = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListGatewayBGPFilterRulesRequest";$7(#6:3);$5(>5)@"BGPFilterRuleList";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules",code:200,baseUrl:"https://vpn.api.stackit.cloud"}));$4({rules:#2})', [__0, __1, __2, __3, __4, __5, __d5, __8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listGatewayBGPFilterRules, i));
|
|
67
|
+
|
|
68
|
+
export const listGatewayBGPFilters = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListGatewayBGPFiltersRequest";$7(#6:0);$5(>5)@"BGPFilterList";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters",code:200,baseUrl:"https://vpn.api.stackit.cloud"}));$4({bgpFilters:#2})', [__0, __1, __2, __3, __4, __5, __d4, __8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listGatewayBGPFilters, i));
|
|
69
|
+
|
|
70
|
+
export const listGatewayConnections = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>4)@"ListGatewayConnectionsRequest";$10(#9:6);$8(>5)@"ConnectionListOutput";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),label_selector:$6(#5:0.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections",code:200,baseUrl:"https://vpn.api.stackit.cloud"}));$7({connections:#2})', [__0, __1, __2, __3, __11, __d3, __6, __4, __5, __d6, __8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listGatewayConnections, i));
|
|
71
|
+
|
|
72
|
+
export const listGateways = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13],protocol:$14,retry:$15};$8(>4)@"ListGatewaysRequest";$10(#9:3);$8(>5)@"GatewayList";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),label_selector:$6(#5:0.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/gateways",code:200,baseUrl:"https://vpn.api.stackit.cloud"}));$7({gateways:#2})', [__0, __1, __2, __3, __11, __d3, __6, __4, __5, __d1, __8, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listGateways, i));
|
|
73
|
+
|
|
74
|
+
export const listPlans = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Plan", '{input:#1,output:#4,errors:[$9,$10],protocol:$11,retry:$12};$5(>5)@"List%sRequest";$5(>6)@"%";$8(#2);$5(>7)@"%List";$4({region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/regions/{region}/plans",code:200,baseUrl:"https://vpn.api.stackit.cloud"}));$4({maxBandwidth:$7($6),maxConnections:$7($6),name:$7($3),planId:$7($3),sku:$7($3)});$4({defaultPlanId:$7($3),plans:$7(#3)})', [__0, __1, __2, __3, __4, __5, __9, __6, __8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listPlans, i));
|
|
75
|
+
|
|
76
|
+
export const listQuotas = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Quota", '{input:#1,output:#4,errors:[$7,$8],protocol:$9,retry:$10};$5(>5)@"List%sRequest";$5(>6)@"%";$5(>7)@"%List";$5(>8)@"%ListResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/quotas",code:200,baseUrl:"https://vpn.api.stackit.cloud"}));$4({limit:$6,usage:$6});$4({gateways:#2});$4({quotas:#3})', [__0, __1, __2, __3, __4, __5, __9, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listQuotas, i));
|
|
77
|
+
|
|
78
|
+
export const updateGateway = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:3,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateGatewayRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),availabilityZones:#4:0,bgp:$5(#4:1),displayName:$3,labels:$5(#6:0),networkConfig:$5(#4:2),planId:$3,routingType:$3}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __d1, __6, __d3, __4, __5, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateGateway, i));
|
|
79
|
+
|
|
80
|
+
export const updateGatewayBGPFilter = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$5(>2)@"UpdateGatewayBGPFilterRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2()),displayName:$3}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateGatewayBGPFilter, i));
|
|
81
|
+
|
|
82
|
+
export const updateGatewayBGPFilterRule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:3,errors:[$9,$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"UpdateGatewayBGPFilterRuleRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),filterId:$3.pipe($2()),ruleId:$3.pipe($2()),action:$3,match:$5(#4:1),sequence:$5($6),set:$5(#4:2)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __d5, __6, __9, __4, __5, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateGatewayBGPFilterRule, i));
|
|
83
|
+
|
|
84
|
+
export const updateGatewayConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#11:6,errors:[$12,$13,$14,$15],protocol:$16,retry:$17};$10(>2)@"UpdateGatewayConnectionRequest";$9({projectId:$3.pipe($2()),region:$3.pipe($2()),gatewayId:$3.pipe($2()),connectionId:$3.pipe($2()),displayName:$3,enabled:$5($4),labels:$5(#6:0),localSubnets:$5(#7:0),remoteSubnets:$5(#7:0),staticRoutes:$5(#7:0),tunnel1:#8:0,tunnel2:#8:0}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",code:200,baseUrl:"https://vpn.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __6, __d3, __d2, __d7, __4, __5, __d6, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateGatewayConnection, i));
|
|
85
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
86
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
// Shared schema data (see `op` in core/api).
|
|
90
|
+
function __d0() {
|
|
91
|
+
return ['$4(>5)@"Phase1Status";$4(>6)@"Phase2Status";$4(>7)@"TunnelStatus";$6(#2);$4(>8)@"ConnectionStatusResponse";$3({dhGroup:$2($1),encryptionAlgorithm:$2($1),integrityAlgorithm:$2($1),state:$2($1)});$3({bytesIn:$2($1),bytesOut:$2($1),dhGroup:$2($1),encap:$2($1),encryptionAlgorithm:$2($1),integrityAlgorithm:$2($1),packetsIn:$2($1),packetsOut:$2($1),protocol:$2($1),state:$2($1)});$3({established:$2($5),name:$2($1),phase1:$2(#0),phase2:$2(#1)});$3({displayName:$2($1),enabled:$2($5),id:$2($1),tunnels:$2(#3)})', [__0, __3, __6, __4, __5, __7, __8]];
|
|
14
92
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
code: S.Number,
|
|
18
|
-
message: S.String,
|
|
19
|
-
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
93
|
+
function __d1() {
|
|
94
|
+
return ['$3(>4)@"CreateGatewayRequestAvailabilityZones";$3(>5)@"BGPGatewayConfig";$3(>6)@"NetworkConfig";$3(>7)@"CreateGatewayResponse";$2({tunnel1:$1,tunnel2:$1});$2({localAsn:$4,overrideAdvertisedRoutes:$6(#5:0)});$2({predefinedNetworkPrefix:$6($1),routingTableId:$6($1)});$2({availabilityZones:#0,bgp:$6(#1),displayName:$1,labels:$6(#7:0),networkConfig:$6(#2),planId:$1,routingType:$1,id:$6($1),state:$6($1)})', [__0, __3, __4, __5, __9, __d2, __6, __d3]];
|
|
20
95
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
code: S.Number,
|
|
24
|
-
message: S.String,
|
|
25
|
-
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
96
|
+
function __d2() {
|
|
97
|
+
return ['$2($1)', [__0, __3, __8]];
|
|
26
98
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
99
|
+
function __d3() {
|
|
100
|
+
return ['$2($1,$1)', [__0, __3, __12]];
|
|
101
|
+
}
|
|
102
|
+
function __d4() {
|
|
103
|
+
return ['$4(>1)@"BGPFilter";$3({displayName:$1,id:$2($1)})', [__0, __3, __6, __4, __5]];
|
|
104
|
+
}
|
|
105
|
+
function __d5() {
|
|
106
|
+
return ['$2($1);$7(>4)@"CreateGatewayBGPFilterRuleRequestMatch";$7(>5)@"CreateGatewayBGPFilterRuleRequestSet";$7(>6)@"BGPFilterRule";$6({asPathContainsAny:$3(#0),communities:$3(#4:0),firstASN:$3($1),maxPrefixLength:$3($1),minPrefixLength:$3($1),peer:$3($5),prefixes:$3(#4:0)});$6({localPreference:$3($1)});$6({action:$5,id:$3($5),match:$3(#1),sequence:$3($1),set:$3(#2)})', [__0, __9, __8, __6, __d2, __3, __4, __5]];
|
|
107
|
+
}
|
|
108
|
+
function __d6() {
|
|
109
|
+
return ['$6(>7)@"BGPTunnelConfig";$6(>8)@"PeeringConfig";$7($1);$6(>9)@"TunnelConfigurationPhase1";$6(>10)@"TunnelConfigurationPhase2";$6(>11)@"TunnelConfigurationOutput";$6(>12)@"ConnectionResponseOutput";$5({inboundFilterId:$3($2($1)),remoteAsn:$4});$5({localAddress:$3($1),remoteAddress:$3($1)});$5({dhGroups:$3(#2),encryptionAlgorithms:#2,integrityAlgorithms:#2,rekeyTime:$3($4)});$5({dhGroups:$3(#2),encryptionAlgorithms:#2,integrityAlgorithms:#2,dpdAction:$3($1),rekeyTime:$3($4),startAction:$3($1)});$5({bgp:$3(#0),peering:$3(#1),phase1:#3,phase2:#4,remoteAddress:$1});$5({displayName:$1,enabled:$3($8),id:$3($1),labels:$3(#9:0),localSubnets:$3(#10:0),remoteSubnets:$3(#10:0),staticRoutes:$3(#10:0),tunnel1:#5,tunnel2:#5})', [__0, __3, __10, __6, __9, __4, __5, __8, __7, __d3, __d2]];
|
|
110
|
+
}
|
|
111
|
+
function __d7() {
|
|
112
|
+
return ['$5(>1)@"TunnelConfiguration";$4({bgp:$2(#1:0),peering:$2(#1:1),phase1:#1:3,phase2:#1:4,preSharedKey:$2($3),remoteAddress:$3})', [__0, __d6, __6, __3, __4, __5]];
|
|
113
|
+
}
|
|
114
|
+
function __d8() {
|
|
115
|
+
return ['$2(>1)@"DeleteGatewayResponse";$1({})', [__0, __4, __5]];
|
|
32
116
|
}
|
|
33
|
-
export const CreateGatewayRequestRegion = S.String;
|
|
34
|
-
export const CreateGatewayRequestAvailabilityZones = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
-
tunnel1: S.String,
|
|
36
|
-
tunnel2: S.String,
|
|
37
|
-
})).annotate({
|
|
38
|
-
identifier: "CreateGatewayRequestAvailabilityZones",
|
|
39
|
-
});
|
|
40
|
-
export const BGPGatewayConfigOverrideAdvertisedRoutesList = /*@__PURE__*/ S.Array(S.String);
|
|
41
|
-
export const BGPGatewayConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
|
-
localAsn: S.Number,
|
|
43
|
-
overrideAdvertisedRoutes: S.optional(BGPGatewayConfigOverrideAdvertisedRoutesList),
|
|
44
|
-
})).annotate({ identifier: "BGPGatewayConfig" });
|
|
45
|
-
export const Label = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
46
|
-
export const NetworkConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
-
predefinedNetworkPrefix: S.optional(S.String),
|
|
48
|
-
routingTableId: S.optional(S.String),
|
|
49
|
-
})).annotate({ identifier: "NetworkConfig" });
|
|
50
|
-
export const RoutingType = S.String;
|
|
51
|
-
export const CreateGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
-
projectId: S.String.pipe(T.Label()),
|
|
53
|
-
region: CreateGatewayRequestRegion.pipe(T.Label()),
|
|
54
|
-
availabilityZones: CreateGatewayRequestAvailabilityZones,
|
|
55
|
-
bgp: S.optional(BGPGatewayConfig),
|
|
56
|
-
displayName: S.String,
|
|
57
|
-
labels: S.optional(Label),
|
|
58
|
-
networkConfig: S.optional(NetworkConfig),
|
|
59
|
-
planId: S.String,
|
|
60
|
-
routingType: RoutingType,
|
|
61
|
-
}).pipe(T.Http({
|
|
62
|
-
method: "POST",
|
|
63
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways",
|
|
64
|
-
code: 200,
|
|
65
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
66
|
-
}))).annotate({ identifier: "CreateGatewayRequest" });
|
|
67
|
-
export const CreateGatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
|
|
68
|
-
export const GatewayStatus = S.String;
|
|
69
|
-
export const CreateGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
70
|
-
availabilityZones: CreateGatewayRequestAvailabilityZones,
|
|
71
|
-
bgp: S.optional(BGPGatewayConfig),
|
|
72
|
-
displayName: S.String,
|
|
73
|
-
labels: S.optional(Label),
|
|
74
|
-
networkConfig: S.optional(NetworkConfig),
|
|
75
|
-
planId: S.String,
|
|
76
|
-
routingType: RoutingType,
|
|
77
|
-
id: S.optional(S.String),
|
|
78
|
-
state: S.optional(GatewayStatus),
|
|
79
|
-
})).annotate({ identifier: "CreateGatewayResponse" });
|
|
80
|
-
export const CreateGatewayBGPFilterRequestRegion = S.String;
|
|
81
|
-
export const CreateGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
-
projectId: S.String.pipe(T.Label()),
|
|
83
|
-
region: CreateGatewayBGPFilterRequestRegion.pipe(T.Label()),
|
|
84
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
85
|
-
displayName: S.String,
|
|
86
|
-
}).pipe(T.Http({
|
|
87
|
-
method: "POST",
|
|
88
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters",
|
|
89
|
-
code: 200,
|
|
90
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
91
|
-
}))).annotate({
|
|
92
|
-
identifier: "CreateGatewayBGPFilterRequest",
|
|
93
|
-
});
|
|
94
|
-
export const BGPFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
95
|
-
displayName: S.String,
|
|
96
|
-
id: S.optional(S.String),
|
|
97
|
-
})).annotate({ identifier: "BGPFilter" });
|
|
98
|
-
export const CreateGatewayBGPFilterRuleRequestRegion = S.String;
|
|
99
|
-
export const CreateGatewayBGPFilterRuleRequestAction = S.String;
|
|
100
|
-
export const CreateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList = /*@__PURE__*/ S.Array(S.Number);
|
|
101
|
-
export const CreateGatewayBGPFilterRuleRequestMatchCommunitiesList = /*@__PURE__*/ S.Array(S.String);
|
|
102
|
-
export const CreateGatewayBGPFilterRuleRequestMatchPrefixesList = /*@__PURE__*/ S.Array(S.String);
|
|
103
|
-
export const CreateGatewayBGPFilterRuleRequestMatch = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
104
|
-
asPathContainsAny: S.optional(CreateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList),
|
|
105
|
-
communities: S.optional(CreateGatewayBGPFilterRuleRequestMatchCommunitiesList),
|
|
106
|
-
firstASN: S.optional(S.Number),
|
|
107
|
-
maxPrefixLength: S.optional(S.Number),
|
|
108
|
-
minPrefixLength: S.optional(S.Number),
|
|
109
|
-
peer: S.optional(S.String),
|
|
110
|
-
prefixes: S.optional(CreateGatewayBGPFilterRuleRequestMatchPrefixesList),
|
|
111
|
-
})).annotate({
|
|
112
|
-
identifier: "CreateGatewayBGPFilterRuleRequestMatch",
|
|
113
|
-
});
|
|
114
|
-
export const CreateGatewayBGPFilterRuleRequestSet = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
115
|
-
localPreference: S.optional(S.Number),
|
|
116
|
-
})).annotate({
|
|
117
|
-
identifier: "CreateGatewayBGPFilterRuleRequestSet",
|
|
118
|
-
});
|
|
119
|
-
export const CreateGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
projectId: S.String.pipe(T.Label()),
|
|
121
|
-
region: CreateGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
|
|
122
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
123
|
-
filterId: S.String.pipe(T.Label()),
|
|
124
|
-
action: CreateGatewayBGPFilterRuleRequestAction,
|
|
125
|
-
match: S.optional(CreateGatewayBGPFilterRuleRequestMatch),
|
|
126
|
-
sequence: S.optional(S.Number),
|
|
127
|
-
set: S.optional(CreateGatewayBGPFilterRuleRequestSet),
|
|
128
|
-
}).pipe(T.Http({
|
|
129
|
-
method: "POST",
|
|
130
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules",
|
|
131
|
-
code: 200,
|
|
132
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
133
|
-
}))).annotate({
|
|
134
|
-
identifier: "CreateGatewayBGPFilterRuleRequest",
|
|
135
|
-
});
|
|
136
|
-
export const BGPFilterRuleAction = S.String;
|
|
137
|
-
export const BGPFilterRuleMatchAsPathContainsAnyList = /*@__PURE__*/ S.Array(S.Number);
|
|
138
|
-
export const BGPFilterRuleMatchCommunitiesList = /*@__PURE__*/ S.Array(S.String);
|
|
139
|
-
export const BGPFilterRuleMatchPrefixesList = /*@__PURE__*/ S.Array(S.String);
|
|
140
|
-
export const BGPFilterRuleMatch = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
141
|
-
asPathContainsAny: S.optional(BGPFilterRuleMatchAsPathContainsAnyList),
|
|
142
|
-
communities: S.optional(BGPFilterRuleMatchCommunitiesList),
|
|
143
|
-
firstASN: S.optional(S.Number),
|
|
144
|
-
maxPrefixLength: S.optional(S.Number),
|
|
145
|
-
minPrefixLength: S.optional(S.Number),
|
|
146
|
-
peer: S.optional(S.String),
|
|
147
|
-
prefixes: S.optional(BGPFilterRuleMatchPrefixesList),
|
|
148
|
-
})).annotate({ identifier: "BGPFilterRuleMatch" });
|
|
149
|
-
export const BGPFilterRuleSet = CreateGatewayBGPFilterRuleRequestSet;
|
|
150
|
-
export const BGPFilterRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
151
|
-
action: BGPFilterRuleAction,
|
|
152
|
-
id: S.optional(S.String),
|
|
153
|
-
match: S.optional(BGPFilterRuleMatch),
|
|
154
|
-
sequence: S.optional(S.Number),
|
|
155
|
-
set: S.optional(CreateGatewayBGPFilterRuleRequestSet),
|
|
156
|
-
})).annotate({ identifier: "BGPFilterRule" });
|
|
157
|
-
export const CreateGatewayConnectionRequestRegion = S.String;
|
|
158
|
-
export const CreateGatewayConnectionRequestLocalSubnetsList = /*@__PURE__*/ S.Array(S.String);
|
|
159
|
-
export const CreateGatewayConnectionRequestRemoteSubnetsList = /*@__PURE__*/ S.Array(S.String);
|
|
160
|
-
export const CreateGatewayConnectionRequestStaticRoutesList = /*@__PURE__*/ S.Array(S.String);
|
|
161
|
-
export const BGPTunnelConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
162
|
-
inboundFilterId: S.optional(S.NullOr(S.String)),
|
|
163
|
-
remoteAsn: S.Number,
|
|
164
|
-
})).annotate({ identifier: "BGPTunnelConfig" });
|
|
165
|
-
export const PeeringConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
166
|
-
localAddress: S.optional(S.String),
|
|
167
|
-
remoteAddress: S.optional(S.String),
|
|
168
|
-
})).annotate({ identifier: "PeeringConfig" });
|
|
169
|
-
export const TunnelConfigurationPhase1DhGroupsItem = S.String;
|
|
170
|
-
export const TunnelConfigurationPhase1DhGroupsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase1DhGroupsItem);
|
|
171
|
-
export const TunnelConfigurationPhase1EncryptionAlgorithmsItem = S.String;
|
|
172
|
-
export const TunnelConfigurationPhase1EncryptionAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase1EncryptionAlgorithmsItem);
|
|
173
|
-
export const TunnelConfigurationPhase1IntegrityAlgorithmsItem = S.String;
|
|
174
|
-
export const TunnelConfigurationPhase1IntegrityAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase1IntegrityAlgorithmsItem);
|
|
175
|
-
export const TunnelConfigurationPhase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
176
|
-
dhGroups: S.optional(TunnelConfigurationPhase1DhGroupsList),
|
|
177
|
-
encryptionAlgorithms: TunnelConfigurationPhase1EncryptionAlgorithmsList,
|
|
178
|
-
integrityAlgorithms: TunnelConfigurationPhase1IntegrityAlgorithmsList,
|
|
179
|
-
rekeyTime: S.optional(S.Number),
|
|
180
|
-
})).annotate({
|
|
181
|
-
identifier: "TunnelConfigurationPhase1",
|
|
182
|
-
});
|
|
183
|
-
export const TunnelConfigurationPhase2DhGroupsItem = S.String;
|
|
184
|
-
export const TunnelConfigurationPhase2DhGroupsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase2DhGroupsItem);
|
|
185
|
-
export const TunnelConfigurationPhase2EncryptionAlgorithmsItem = S.String;
|
|
186
|
-
export const TunnelConfigurationPhase2EncryptionAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase2EncryptionAlgorithmsItem);
|
|
187
|
-
export const TunnelConfigurationPhase2IntegrityAlgorithmsItem = S.String;
|
|
188
|
-
export const TunnelConfigurationPhase2IntegrityAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase2IntegrityAlgorithmsItem);
|
|
189
|
-
export const TunnelConfigurationPhase2DpdAction = S.String;
|
|
190
|
-
export const TunnelConfigurationPhase2StartAction = S.String;
|
|
191
|
-
export const TunnelConfigurationPhase2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
192
|
-
dhGroups: S.optional(TunnelConfigurationPhase2DhGroupsList),
|
|
193
|
-
encryptionAlgorithms: TunnelConfigurationPhase2EncryptionAlgorithmsList,
|
|
194
|
-
integrityAlgorithms: TunnelConfigurationPhase2IntegrityAlgorithmsList,
|
|
195
|
-
dpdAction: S.optional(TunnelConfigurationPhase2DpdAction),
|
|
196
|
-
rekeyTime: S.optional(S.Number),
|
|
197
|
-
startAction: S.optional(TunnelConfigurationPhase2StartAction),
|
|
198
|
-
})).annotate({
|
|
199
|
-
identifier: "TunnelConfigurationPhase2",
|
|
200
|
-
});
|
|
201
|
-
export const TunnelConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
202
|
-
bgp: S.optional(BGPTunnelConfig),
|
|
203
|
-
peering: S.optional(PeeringConfig),
|
|
204
|
-
phase1: TunnelConfigurationPhase1,
|
|
205
|
-
phase2: TunnelConfigurationPhase2,
|
|
206
|
-
preSharedKey: S.optional(S.String),
|
|
207
|
-
remoteAddress: S.String,
|
|
208
|
-
})).annotate({ identifier: "TunnelConfiguration" });
|
|
209
|
-
export const CreateGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
210
|
-
projectId: S.String.pipe(T.Label()),
|
|
211
|
-
region: CreateGatewayConnectionRequestRegion.pipe(T.Label()),
|
|
212
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
213
|
-
displayName: S.String,
|
|
214
|
-
enabled: S.optional(S.Boolean),
|
|
215
|
-
labels: S.optional(Label),
|
|
216
|
-
localSubnets: S.optional(CreateGatewayConnectionRequestLocalSubnetsList),
|
|
217
|
-
remoteSubnets: S.optional(CreateGatewayConnectionRequestRemoteSubnetsList),
|
|
218
|
-
staticRoutes: S.optional(CreateGatewayConnectionRequestStaticRoutesList),
|
|
219
|
-
tunnel1: TunnelConfiguration,
|
|
220
|
-
tunnel2: TunnelConfiguration,
|
|
221
|
-
}).pipe(T.Http({
|
|
222
|
-
method: "POST",
|
|
223
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections",
|
|
224
|
-
code: 200,
|
|
225
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
226
|
-
}))).annotate({
|
|
227
|
-
identifier: "CreateGatewayConnectionRequest",
|
|
228
|
-
});
|
|
229
|
-
export const ConnectionResponseOutputLocalSubnetsList = /*@__PURE__*/ S.Array(S.String);
|
|
230
|
-
export const ConnectionResponseOutputRemoteSubnetsList = /*@__PURE__*/ S.Array(S.String);
|
|
231
|
-
export const ConnectionResponseOutputStaticRoutesList = /*@__PURE__*/ S.Array(S.String);
|
|
232
|
-
export const TunnelConfigurationOutputPhase1DhGroupsItem = S.String;
|
|
233
|
-
export const TunnelConfigurationOutputPhase1DhGroupsList = /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase1DhGroupsItem);
|
|
234
|
-
export const TunnelConfigurationOutputPhase1EncryptionAlgorithmsItem = S.String;
|
|
235
|
-
export const TunnelConfigurationOutputPhase1EncryptionAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase1EncryptionAlgorithmsItem);
|
|
236
|
-
export const TunnelConfigurationOutputPhase1IntegrityAlgorithmsItem = S.String;
|
|
237
|
-
export const TunnelConfigurationOutputPhase1IntegrityAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase1IntegrityAlgorithmsItem);
|
|
238
|
-
export const TunnelConfigurationOutputPhase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
239
|
-
dhGroups: S.optional(TunnelConfigurationOutputPhase1DhGroupsList),
|
|
240
|
-
encryptionAlgorithms: TunnelConfigurationOutputPhase1EncryptionAlgorithmsList,
|
|
241
|
-
integrityAlgorithms: TunnelConfigurationOutputPhase1IntegrityAlgorithmsList,
|
|
242
|
-
rekeyTime: S.optional(S.Number),
|
|
243
|
-
})).annotate({
|
|
244
|
-
identifier: "TunnelConfigurationOutputPhase1",
|
|
245
|
-
});
|
|
246
|
-
export const TunnelConfigurationOutputPhase2DhGroupsItem = S.String;
|
|
247
|
-
export const TunnelConfigurationOutputPhase2DhGroupsList = /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase2DhGroupsItem);
|
|
248
|
-
export const TunnelConfigurationOutputPhase2EncryptionAlgorithmsItem = S.String;
|
|
249
|
-
export const TunnelConfigurationOutputPhase2EncryptionAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase2EncryptionAlgorithmsItem);
|
|
250
|
-
export const TunnelConfigurationOutputPhase2IntegrityAlgorithmsItem = S.String;
|
|
251
|
-
export const TunnelConfigurationOutputPhase2IntegrityAlgorithmsList = /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase2IntegrityAlgorithmsItem);
|
|
252
|
-
export const TunnelConfigurationOutputPhase2DpdAction = S.String;
|
|
253
|
-
export const TunnelConfigurationOutputPhase2StartAction = S.String;
|
|
254
|
-
export const TunnelConfigurationOutputPhase2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
255
|
-
dhGroups: S.optional(TunnelConfigurationOutputPhase2DhGroupsList),
|
|
256
|
-
encryptionAlgorithms: TunnelConfigurationOutputPhase2EncryptionAlgorithmsList,
|
|
257
|
-
integrityAlgorithms: TunnelConfigurationOutputPhase2IntegrityAlgorithmsList,
|
|
258
|
-
dpdAction: S.optional(TunnelConfigurationOutputPhase2DpdAction),
|
|
259
|
-
rekeyTime: S.optional(S.Number),
|
|
260
|
-
startAction: S.optional(TunnelConfigurationOutputPhase2StartAction),
|
|
261
|
-
})).annotate({
|
|
262
|
-
identifier: "TunnelConfigurationOutputPhase2",
|
|
263
|
-
});
|
|
264
|
-
export const TunnelConfigurationOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
265
|
-
bgp: S.optional(BGPTunnelConfig),
|
|
266
|
-
peering: S.optional(PeeringConfig),
|
|
267
|
-
phase1: TunnelConfigurationOutputPhase1,
|
|
268
|
-
phase2: TunnelConfigurationOutputPhase2,
|
|
269
|
-
remoteAddress: S.String,
|
|
270
|
-
})).annotate({
|
|
271
|
-
identifier: "TunnelConfigurationOutput",
|
|
272
|
-
});
|
|
273
|
-
export const ConnectionResponseOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
274
|
-
displayName: S.String,
|
|
275
|
-
enabled: S.optional(S.Boolean),
|
|
276
|
-
id: S.optional(S.String),
|
|
277
|
-
labels: S.optional(Label),
|
|
278
|
-
localSubnets: S.optional(ConnectionResponseOutputLocalSubnetsList),
|
|
279
|
-
remoteSubnets: S.optional(ConnectionResponseOutputRemoteSubnetsList),
|
|
280
|
-
staticRoutes: S.optional(ConnectionResponseOutputStaticRoutesList),
|
|
281
|
-
tunnel1: TunnelConfigurationOutput,
|
|
282
|
-
tunnel2: TunnelConfigurationOutput,
|
|
283
|
-
})).annotate({ identifier: "ConnectionResponseOutput" });
|
|
284
|
-
export const DeleteGatewayRequestRegion = S.String;
|
|
285
|
-
export const DeleteGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
286
|
-
projectId: S.String.pipe(T.Label()),
|
|
287
|
-
region: DeleteGatewayRequestRegion.pipe(T.Label()),
|
|
288
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
289
|
-
}).pipe(T.Http({
|
|
290
|
-
method: "DELETE",
|
|
291
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",
|
|
292
|
-
code: 200,
|
|
293
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
294
|
-
}))).annotate({ identifier: "DeleteGatewayRequest" });
|
|
295
|
-
export const DeleteGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
296
|
-
identifier: "DeleteGatewayResponse",
|
|
297
|
-
});
|
|
298
|
-
export const DeleteGatewayBGPFilterRequestRegion = S.String;
|
|
299
|
-
export const DeleteGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
300
|
-
projectId: S.String.pipe(T.Label()),
|
|
301
|
-
region: DeleteGatewayBGPFilterRequestRegion.pipe(T.Label()),
|
|
302
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
303
|
-
filterId: S.String.pipe(T.Label()),
|
|
304
|
-
}).pipe(T.Http({
|
|
305
|
-
method: "DELETE",
|
|
306
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",
|
|
307
|
-
code: 200,
|
|
308
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
309
|
-
}))).annotate({
|
|
310
|
-
identifier: "DeleteGatewayBGPFilterRequest",
|
|
311
|
-
});
|
|
312
|
-
export const DeleteGatewayBGPFilterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
313
|
-
identifier: "DeleteGatewayBGPFilterResponse",
|
|
314
|
-
});
|
|
315
|
-
export const DeleteGatewayBGPFilterRuleRequestRegion = S.String;
|
|
316
|
-
export const DeleteGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
317
|
-
projectId: S.String.pipe(T.Label()),
|
|
318
|
-
region: DeleteGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
|
|
319
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
320
|
-
filterId: S.String.pipe(T.Label()),
|
|
321
|
-
ruleId: S.String.pipe(T.Label()),
|
|
322
|
-
}).pipe(T.Http({
|
|
323
|
-
method: "DELETE",
|
|
324
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",
|
|
325
|
-
code: 200,
|
|
326
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
327
|
-
}))).annotate({
|
|
328
|
-
identifier: "DeleteGatewayBGPFilterRuleRequest",
|
|
329
|
-
});
|
|
330
|
-
export const DeleteGatewayBGPFilterRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
331
|
-
identifier: "DeleteGatewayBGPFilterRuleResponse",
|
|
332
|
-
});
|
|
333
|
-
export const DeleteGatewayConnectionRequestRegion = S.String;
|
|
334
|
-
export const DeleteGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
335
|
-
projectId: S.String.pipe(T.Label()),
|
|
336
|
-
region: DeleteGatewayConnectionRequestRegion.pipe(T.Label()),
|
|
337
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
338
|
-
connectionId: S.String.pipe(T.Label()),
|
|
339
|
-
}).pipe(T.Http({
|
|
340
|
-
method: "DELETE",
|
|
341
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",
|
|
342
|
-
code: 200,
|
|
343
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
344
|
-
}))).annotate({
|
|
345
|
-
identifier: "DeleteGatewayConnectionRequest",
|
|
346
|
-
});
|
|
347
|
-
export const DeleteGatewayConnectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteGatewayConnectionResponse" });
|
|
348
|
-
export const GetGatewayRequestRegion = S.String;
|
|
349
|
-
export const GetGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
350
|
-
projectId: S.String.pipe(T.Label()),
|
|
351
|
-
region: GetGatewayRequestRegion.pipe(T.Label()),
|
|
352
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
353
|
-
}).pipe(T.Http({
|
|
354
|
-
method: "GET",
|
|
355
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",
|
|
356
|
-
code: 200,
|
|
357
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
358
|
-
}))).annotate({ identifier: "GetGatewayRequest" });
|
|
359
|
-
export const GetGatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
|
|
360
|
-
export const GetGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
361
|
-
availabilityZones: CreateGatewayRequestAvailabilityZones,
|
|
362
|
-
bgp: S.optional(BGPGatewayConfig),
|
|
363
|
-
displayName: S.String,
|
|
364
|
-
labels: S.optional(Label),
|
|
365
|
-
networkConfig: S.optional(NetworkConfig),
|
|
366
|
-
planId: S.String,
|
|
367
|
-
routingType: RoutingType,
|
|
368
|
-
id: S.optional(S.String),
|
|
369
|
-
state: S.optional(GatewayStatus),
|
|
370
|
-
})).annotate({ identifier: "GetGatewayResponse" });
|
|
371
|
-
export const GetGatewayBGPFilterRequestRegion = S.String;
|
|
372
|
-
export const GetGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
-
projectId: S.String.pipe(T.Label()),
|
|
374
|
-
region: GetGatewayBGPFilterRequestRegion.pipe(T.Label()),
|
|
375
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
376
|
-
filterId: S.String.pipe(T.Label()),
|
|
377
|
-
}).pipe(T.Http({
|
|
378
|
-
method: "GET",
|
|
379
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",
|
|
380
|
-
code: 200,
|
|
381
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
382
|
-
}))).annotate({
|
|
383
|
-
identifier: "GetGatewayBGPFilterRequest",
|
|
384
|
-
});
|
|
385
|
-
export const GetGatewayBGPFilterRuleRequestRegion = S.String;
|
|
386
|
-
export const GetGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
387
|
-
projectId: S.String.pipe(T.Label()),
|
|
388
|
-
region: GetGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
|
|
389
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
390
|
-
filterId: S.String.pipe(T.Label()),
|
|
391
|
-
ruleId: S.String.pipe(T.Label()),
|
|
392
|
-
}).pipe(T.Http({
|
|
393
|
-
method: "GET",
|
|
394
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",
|
|
395
|
-
code: 200,
|
|
396
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
397
|
-
}))).annotate({
|
|
398
|
-
identifier: "GetGatewayBGPFilterRuleRequest",
|
|
399
|
-
});
|
|
400
|
-
export const GetGatewayConnectionRequestRegion = S.String;
|
|
401
|
-
export const GetGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
402
|
-
projectId: S.String.pipe(T.Label()),
|
|
403
|
-
region: GetGatewayConnectionRequestRegion.pipe(T.Label()),
|
|
404
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
405
|
-
connectionId: S.String.pipe(T.Label()),
|
|
406
|
-
}).pipe(T.Http({
|
|
407
|
-
method: "GET",
|
|
408
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",
|
|
409
|
-
code: 200,
|
|
410
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
411
|
-
}))).annotate({
|
|
412
|
-
identifier: "GetGatewayConnectionRequest",
|
|
413
|
-
});
|
|
414
|
-
export const GetGatewayConnectionStatusRequestRegion = S.String;
|
|
415
|
-
export const GetGatewayConnectionStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
416
|
-
projectId: S.String.pipe(T.Label()),
|
|
417
|
-
region: GetGatewayConnectionStatusRequestRegion.pipe(T.Label()),
|
|
418
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
419
|
-
connectionId: S.String.pipe(T.Label()),
|
|
420
|
-
}).pipe(T.Http({
|
|
421
|
-
method: "GET",
|
|
422
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}/status",
|
|
423
|
-
code: 200,
|
|
424
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
425
|
-
}))).annotate({
|
|
426
|
-
identifier: "GetGatewayConnectionStatusRequest",
|
|
427
|
-
});
|
|
428
|
-
export const TunnelStatusName = S.String;
|
|
429
|
-
export const Phase1Status = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
430
|
-
dhGroup: S.optional(S.String),
|
|
431
|
-
encryptionAlgorithm: S.optional(S.String),
|
|
432
|
-
integrityAlgorithm: S.optional(S.String),
|
|
433
|
-
state: S.optional(S.String),
|
|
434
|
-
})).annotate({ identifier: "Phase1Status" });
|
|
435
|
-
export const Phase2Status = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
436
|
-
bytesIn: S.optional(S.String),
|
|
437
|
-
bytesOut: S.optional(S.String),
|
|
438
|
-
dhGroup: S.optional(S.String),
|
|
439
|
-
encap: S.optional(S.String),
|
|
440
|
-
encryptionAlgorithm: S.optional(S.String),
|
|
441
|
-
integrityAlgorithm: S.optional(S.String),
|
|
442
|
-
packetsIn: S.optional(S.String),
|
|
443
|
-
packetsOut: S.optional(S.String),
|
|
444
|
-
protocol: S.optional(S.String),
|
|
445
|
-
state: S.optional(S.String),
|
|
446
|
-
})).annotate({ identifier: "Phase2Status" });
|
|
447
|
-
export const TunnelStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
448
|
-
established: S.optional(S.Boolean),
|
|
449
|
-
name: S.optional(TunnelStatusName),
|
|
450
|
-
phase1: S.optional(Phase1Status),
|
|
451
|
-
phase2: S.optional(Phase2Status),
|
|
452
|
-
})).annotate({ identifier: "TunnelStatus" });
|
|
453
|
-
export const ConnectionStatusResponseTunnelsList = /*@__PURE__*/ S.Array(TunnelStatus);
|
|
454
|
-
export const ConnectionStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
455
|
-
displayName: S.optional(S.String),
|
|
456
|
-
enabled: S.optional(S.Boolean),
|
|
457
|
-
id: S.optional(S.String),
|
|
458
|
-
tunnels: S.optional(ConnectionStatusResponseTunnelsList),
|
|
459
|
-
})).annotate({ identifier: "ConnectionStatusResponse" });
|
|
460
|
-
export const GetGatewayStatusRequestRegion = S.String;
|
|
461
|
-
export const GetGatewayStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
462
|
-
projectId: S.String.pipe(T.Label()),
|
|
463
|
-
region: GetGatewayStatusRequestRegion.pipe(T.Label()),
|
|
464
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
465
|
-
}).pipe(T.Http({
|
|
466
|
-
method: "GET",
|
|
467
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/status",
|
|
468
|
-
code: 200,
|
|
469
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
470
|
-
}))).annotate({ identifier: "GetGatewayStatusRequest" });
|
|
471
|
-
export const GatewayStatusResponseConnectionsList = /*@__PURE__*/ S.Array(ConnectionStatusResponse);
|
|
472
|
-
export const BGPStatusPeers = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
473
|
-
localAs: S.Number,
|
|
474
|
-
peerUptime: S.String,
|
|
475
|
-
pfxRcd: S.Number,
|
|
476
|
-
pfxSnt: S.Number,
|
|
477
|
-
remoteAs: S.Number,
|
|
478
|
-
remoteIP: S.String,
|
|
479
|
-
state: S.String,
|
|
480
|
-
})).annotate({ identifier: "BGPStatusPeers" });
|
|
481
|
-
export const BGPStatusPeersList = /*@__PURE__*/ S.Array(BGPStatusPeers);
|
|
482
|
-
export const BGPStatusRoutes = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
483
|
-
network: S.String,
|
|
484
|
-
origin: S.String,
|
|
485
|
-
path: S.String,
|
|
486
|
-
peerId: S.String,
|
|
487
|
-
weight: S.Number,
|
|
488
|
-
})).annotate({ identifier: "BGPStatusRoutes" });
|
|
489
|
-
export const BGPStatusRoutesList = /*@__PURE__*/ S.Array(BGPStatusRoutes);
|
|
490
|
-
export const BGPStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
491
|
-
peers: S.optional(BGPStatusPeersList),
|
|
492
|
-
routes: S.optional(BGPStatusRoutesList),
|
|
493
|
-
})).annotate({ identifier: "BGPStatus" });
|
|
494
|
-
export const VPNTunnelsName = S.String;
|
|
495
|
-
export const VPNTunnels = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
496
|
-
bgpStatus: S.optional(S.NullOr(BGPStatus)),
|
|
497
|
-
instanceState: S.optional(GatewayStatus),
|
|
498
|
-
internalNextHopIP: S.optional(S.String),
|
|
499
|
-
name: S.optional(VPNTunnelsName),
|
|
500
|
-
publicIP: S.optional(S.String),
|
|
501
|
-
})).annotate({ identifier: "VPNTunnels" });
|
|
502
|
-
export const GatewayStatusResponseTunnelsList = /*@__PURE__*/ S.Array(VPNTunnels);
|
|
503
|
-
export const GatewayStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
504
|
-
connections: S.optional(GatewayStatusResponseConnectionsList),
|
|
505
|
-
displayName: S.optional(S.String),
|
|
506
|
-
errorMessage: S.optional(S.String),
|
|
507
|
-
gatewayStatus: S.optional(GatewayStatus),
|
|
508
|
-
id: S.optional(S.String),
|
|
509
|
-
tunnels: S.optional(GatewayStatusResponseTunnelsList),
|
|
510
|
-
})).annotate({ identifier: "GatewayStatusResponse" });
|
|
511
|
-
export const ListGatewayBGPFilterRulesRequestRegion = S.String;
|
|
512
|
-
export const ListGatewayBGPFilterRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
513
|
-
projectId: S.String.pipe(T.Label()),
|
|
514
|
-
region: ListGatewayBGPFilterRulesRequestRegion.pipe(T.Label()),
|
|
515
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
516
|
-
filterId: S.String.pipe(T.Label()),
|
|
517
|
-
}).pipe(T.Http({
|
|
518
|
-
method: "GET",
|
|
519
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules",
|
|
520
|
-
code: 200,
|
|
521
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
522
|
-
}))).annotate({
|
|
523
|
-
identifier: "ListGatewayBGPFilterRulesRequest",
|
|
524
|
-
});
|
|
525
|
-
export const BGPFilterRuleListRulesList = /*@__PURE__*/ S.Array(BGPFilterRule);
|
|
526
|
-
export const BGPFilterRuleList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
527
|
-
rules: BGPFilterRuleListRulesList,
|
|
528
|
-
})).annotate({ identifier: "BGPFilterRuleList" });
|
|
529
|
-
export const ListGatewayBGPFiltersRequestRegion = S.String;
|
|
530
|
-
export const ListGatewayBGPFiltersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
531
|
-
projectId: S.String.pipe(T.Label()),
|
|
532
|
-
region: ListGatewayBGPFiltersRequestRegion.pipe(T.Label()),
|
|
533
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
534
|
-
}).pipe(T.Http({
|
|
535
|
-
method: "GET",
|
|
536
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters",
|
|
537
|
-
code: 200,
|
|
538
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
539
|
-
}))).annotate({
|
|
540
|
-
identifier: "ListGatewayBGPFiltersRequest",
|
|
541
|
-
});
|
|
542
|
-
export const BGPFilterListBgpFiltersList = /*@__PURE__*/ S.Array(BGPFilter);
|
|
543
|
-
export const BGPFilterList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
544
|
-
bgpFilters: BGPFilterListBgpFiltersList,
|
|
545
|
-
})).annotate({ identifier: "BGPFilterList" });
|
|
546
|
-
export const ListGatewayConnectionsRequestRegion = S.String;
|
|
547
|
-
export const LabelSelector = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
548
|
-
export const ListGatewayConnectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
549
|
-
projectId: S.String.pipe(T.Label()),
|
|
550
|
-
region: ListGatewayConnectionsRequestRegion.pipe(T.Label()),
|
|
551
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
552
|
-
label_selector: S.optional(LabelSelector.pipe(T.Query())),
|
|
553
|
-
}).pipe(T.Http({
|
|
554
|
-
method: "GET",
|
|
555
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections",
|
|
556
|
-
code: 200,
|
|
557
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
558
|
-
}))).annotate({
|
|
559
|
-
identifier: "ListGatewayConnectionsRequest",
|
|
560
|
-
});
|
|
561
|
-
export const ConnectionListOutputConnectionsList = /*@__PURE__*/ S.Array(ConnectionResponseOutput);
|
|
562
|
-
export const ConnectionListOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
563
|
-
connections: ConnectionListOutputConnectionsList,
|
|
564
|
-
})).annotate({ identifier: "ConnectionListOutput" });
|
|
565
|
-
export const ListGatewaysRequestRegion = S.String;
|
|
566
|
-
export const ListGatewaysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
567
|
-
projectId: S.String.pipe(T.Label()),
|
|
568
|
-
region: ListGatewaysRequestRegion.pipe(T.Label()),
|
|
569
|
-
label_selector: S.optional(LabelSelector.pipe(T.Query())),
|
|
570
|
-
}).pipe(T.Http({
|
|
571
|
-
method: "GET",
|
|
572
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways",
|
|
573
|
-
code: 200,
|
|
574
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
575
|
-
}))).annotate({ identifier: "ListGatewaysRequest" });
|
|
576
|
-
export const GatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
|
|
577
|
-
export const GatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
578
|
-
availabilityZones: CreateGatewayRequestAvailabilityZones,
|
|
579
|
-
bgp: S.optional(BGPGatewayConfig),
|
|
580
|
-
displayName: S.String,
|
|
581
|
-
labels: S.optional(Label),
|
|
582
|
-
networkConfig: S.optional(NetworkConfig),
|
|
583
|
-
planId: S.String,
|
|
584
|
-
routingType: RoutingType,
|
|
585
|
-
id: S.optional(S.String),
|
|
586
|
-
state: S.optional(GatewayStatus),
|
|
587
|
-
})).annotate({ identifier: "GatewayResponse" });
|
|
588
|
-
export const GatewayListGatewaysList = /*@__PURE__*/ S.Array(GatewayResponse);
|
|
589
|
-
export const GatewayList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
590
|
-
gateways: GatewayListGatewaysList,
|
|
591
|
-
})).annotate({ identifier: "GatewayList" });
|
|
592
|
-
export const ListPlansRequestRegion = S.String;
|
|
593
|
-
export const ListPlansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
594
|
-
region: ListPlansRequestRegion.pipe(T.Label()),
|
|
595
|
-
}).pipe(T.Http({
|
|
596
|
-
method: "GET",
|
|
597
|
-
uri: "/v1/regions/{region}/plans",
|
|
598
|
-
code: 200,
|
|
599
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
600
|
-
}))).annotate({ identifier: "ListPlansRequest" });
|
|
601
|
-
export const Plan = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
602
|
-
maxBandwidth: S.optional(S.Number),
|
|
603
|
-
maxConnections: S.optional(S.Number),
|
|
604
|
-
name: S.optional(S.String),
|
|
605
|
-
planId: S.optional(S.String),
|
|
606
|
-
sku: S.optional(S.String),
|
|
607
|
-
})).annotate({ identifier: "Plan" });
|
|
608
|
-
export const PlanListPlansList = /*@__PURE__*/ S.Array(Plan);
|
|
609
|
-
export const PlanList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
610
|
-
defaultPlanId: S.optional(S.String),
|
|
611
|
-
plans: S.optional(PlanListPlansList),
|
|
612
|
-
})).annotate({ identifier: "PlanList" });
|
|
613
|
-
export const ListQuotasRequestRegion = S.String;
|
|
614
|
-
export const ListQuotasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
615
|
-
projectId: S.String.pipe(T.Label()),
|
|
616
|
-
region: ListQuotasRequestRegion.pipe(T.Label()),
|
|
617
|
-
}).pipe(T.Http({
|
|
618
|
-
method: "GET",
|
|
619
|
-
uri: "/v1/projects/{projectId}/regions/{region}/quotas",
|
|
620
|
-
code: 200,
|
|
621
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
622
|
-
}))).annotate({ identifier: "ListQuotasRequest" });
|
|
623
|
-
export const Quota = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
624
|
-
limit: S.Number,
|
|
625
|
-
usage: S.Number,
|
|
626
|
-
})).annotate({ identifier: "Quota" });
|
|
627
|
-
export const QuotaList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
628
|
-
gateways: Quota,
|
|
629
|
-
})).annotate({ identifier: "QuotaList" });
|
|
630
|
-
export const QuotaListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
631
|
-
quotas: QuotaList,
|
|
632
|
-
})).annotate({ identifier: "QuotaListResponse" });
|
|
633
|
-
export const UpdateGatewayRequestRegion = S.String;
|
|
634
|
-
export const UpdateGatewayRequestAvailabilityZones = CreateGatewayRequestAvailabilityZones;
|
|
635
|
-
export const UpdateGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
636
|
-
projectId: S.String.pipe(T.Label()),
|
|
637
|
-
region: UpdateGatewayRequestRegion.pipe(T.Label()),
|
|
638
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
639
|
-
availabilityZones: CreateGatewayRequestAvailabilityZones,
|
|
640
|
-
bgp: S.optional(BGPGatewayConfig),
|
|
641
|
-
displayName: S.String,
|
|
642
|
-
labels: S.optional(Label),
|
|
643
|
-
networkConfig: S.optional(NetworkConfig),
|
|
644
|
-
planId: S.String,
|
|
645
|
-
routingType: RoutingType,
|
|
646
|
-
}).pipe(T.Http({
|
|
647
|
-
method: "PUT",
|
|
648
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",
|
|
649
|
-
code: 200,
|
|
650
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
651
|
-
}))).annotate({ identifier: "UpdateGatewayRequest" });
|
|
652
|
-
export const UpdateGatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
|
|
653
|
-
export const UpdateGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
654
|
-
availabilityZones: CreateGatewayRequestAvailabilityZones,
|
|
655
|
-
bgp: S.optional(BGPGatewayConfig),
|
|
656
|
-
displayName: S.String,
|
|
657
|
-
labels: S.optional(Label),
|
|
658
|
-
networkConfig: S.optional(NetworkConfig),
|
|
659
|
-
planId: S.String,
|
|
660
|
-
routingType: RoutingType,
|
|
661
|
-
id: S.optional(S.String),
|
|
662
|
-
state: S.optional(GatewayStatus),
|
|
663
|
-
})).annotate({ identifier: "UpdateGatewayResponse" });
|
|
664
|
-
export const UpdateGatewayBGPFilterRequestRegion = S.String;
|
|
665
|
-
export const UpdateGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
666
|
-
projectId: S.String.pipe(T.Label()),
|
|
667
|
-
region: UpdateGatewayBGPFilterRequestRegion.pipe(T.Label()),
|
|
668
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
669
|
-
filterId: S.String.pipe(T.Label()),
|
|
670
|
-
displayName: S.String,
|
|
671
|
-
}).pipe(T.Http({
|
|
672
|
-
method: "PUT",
|
|
673
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",
|
|
674
|
-
code: 200,
|
|
675
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
676
|
-
}))).annotate({
|
|
677
|
-
identifier: "UpdateGatewayBGPFilterRequest",
|
|
678
|
-
});
|
|
679
|
-
export const UpdateGatewayBGPFilterRuleRequestRegion = S.String;
|
|
680
|
-
export const UpdateGatewayBGPFilterRuleRequestAction = S.String;
|
|
681
|
-
export const UpdateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList = /*@__PURE__*/ S.Array(S.Number);
|
|
682
|
-
export const UpdateGatewayBGPFilterRuleRequestMatchCommunitiesList = /*@__PURE__*/ S.Array(S.String);
|
|
683
|
-
export const UpdateGatewayBGPFilterRuleRequestMatchPrefixesList = /*@__PURE__*/ S.Array(S.String);
|
|
684
|
-
export const UpdateGatewayBGPFilterRuleRequestMatch = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
685
|
-
asPathContainsAny: S.optional(UpdateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList),
|
|
686
|
-
communities: S.optional(UpdateGatewayBGPFilterRuleRequestMatchCommunitiesList),
|
|
687
|
-
firstASN: S.optional(S.Number),
|
|
688
|
-
maxPrefixLength: S.optional(S.Number),
|
|
689
|
-
minPrefixLength: S.optional(S.Number),
|
|
690
|
-
peer: S.optional(S.String),
|
|
691
|
-
prefixes: S.optional(UpdateGatewayBGPFilterRuleRequestMatchPrefixesList),
|
|
692
|
-
})).annotate({
|
|
693
|
-
identifier: "UpdateGatewayBGPFilterRuleRequestMatch",
|
|
694
|
-
});
|
|
695
|
-
export const UpdateGatewayBGPFilterRuleRequestSet = CreateGatewayBGPFilterRuleRequestSet;
|
|
696
|
-
export const UpdateGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
697
|
-
projectId: S.String.pipe(T.Label()),
|
|
698
|
-
region: UpdateGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
|
|
699
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
700
|
-
filterId: S.String.pipe(T.Label()),
|
|
701
|
-
ruleId: S.String.pipe(T.Label()),
|
|
702
|
-
action: UpdateGatewayBGPFilterRuleRequestAction,
|
|
703
|
-
match: S.optional(UpdateGatewayBGPFilterRuleRequestMatch),
|
|
704
|
-
sequence: S.optional(S.Number),
|
|
705
|
-
set: S.optional(CreateGatewayBGPFilterRuleRequestSet),
|
|
706
|
-
}).pipe(T.Http({
|
|
707
|
-
method: "PUT",
|
|
708
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",
|
|
709
|
-
code: 200,
|
|
710
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
711
|
-
}))).annotate({
|
|
712
|
-
identifier: "UpdateGatewayBGPFilterRuleRequest",
|
|
713
|
-
});
|
|
714
|
-
export const UpdateGatewayConnectionRequestRegion = S.String;
|
|
715
|
-
export const UpdateGatewayConnectionRequestLocalSubnetsList = /*@__PURE__*/ S.Array(S.String);
|
|
716
|
-
export const UpdateGatewayConnectionRequestRemoteSubnetsList = /*@__PURE__*/ S.Array(S.String);
|
|
717
|
-
export const UpdateGatewayConnectionRequestStaticRoutesList = /*@__PURE__*/ S.Array(S.String);
|
|
718
|
-
export const UpdateGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
719
|
-
projectId: S.String.pipe(T.Label()),
|
|
720
|
-
region: UpdateGatewayConnectionRequestRegion.pipe(T.Label()),
|
|
721
|
-
gatewayId: S.String.pipe(T.Label()),
|
|
722
|
-
connectionId: S.String.pipe(T.Label()),
|
|
723
|
-
displayName: S.String,
|
|
724
|
-
enabled: S.optional(S.Boolean),
|
|
725
|
-
labels: S.optional(Label),
|
|
726
|
-
localSubnets: S.optional(UpdateGatewayConnectionRequestLocalSubnetsList),
|
|
727
|
-
remoteSubnets: S.optional(UpdateGatewayConnectionRequestRemoteSubnetsList),
|
|
728
|
-
staticRoutes: S.optional(UpdateGatewayConnectionRequestStaticRoutesList),
|
|
729
|
-
tunnel1: TunnelConfiguration,
|
|
730
|
-
tunnel2: TunnelConfiguration,
|
|
731
|
-
}).pipe(T.Http({
|
|
732
|
-
method: "PUT",
|
|
733
|
-
uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",
|
|
734
|
-
code: 200,
|
|
735
|
-
baseUrl: "https://vpn.api.stackit.cloud",
|
|
736
|
-
}))).annotate({
|
|
737
|
-
identifier: "UpdateGatewayConnectionRequest",
|
|
738
|
-
});
|
|
739
|
-
/** Create a VPN gateway in a project. Provision a new VPN gateway. */
|
|
740
|
-
export const createGateway = /*@__PURE__*/ API.make(() => ({
|
|
741
|
-
input: CreateGatewayRequest,
|
|
742
|
-
output: CreateGatewayResponse,
|
|
743
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
744
|
-
protocol: StackitProtocol,
|
|
745
|
-
retry: Retry.Retry,
|
|
746
|
-
}));
|
|
747
|
-
/** Create a new empty BGP filter. Creates the filter metadata. Rules are managed via the nested /rules sub-resource. NOTE: an empty filter attached to a tunnel denies all incoming routes (implicit DENY). */
|
|
748
|
-
export const createGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
|
|
749
|
-
input: CreateGatewayBGPFilterRequest,
|
|
750
|
-
output: BGPFilter,
|
|
751
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
752
|
-
protocol: StackitProtocol,
|
|
753
|
-
retry: Retry.Retry,
|
|
754
|
-
}));
|
|
755
|
-
/** Add a new rule to a BGP filter. */
|
|
756
|
-
export const createGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
|
|
757
|
-
input: CreateGatewayBGPFilterRuleRequest,
|
|
758
|
-
output: BGPFilterRule,
|
|
759
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
760
|
-
protocol: StackitProtocol,
|
|
761
|
-
retry: Retry.Retry,
|
|
762
|
-
}));
|
|
763
|
-
/** Create a new connection on an existing VPN gateway. Create a new connection on an existing VPN gateway. */
|
|
764
|
-
export const createGatewayConnection = /*@__PURE__*/ API.make(() => ({
|
|
765
|
-
input: CreateGatewayConnectionRequest,
|
|
766
|
-
output: ConnectionResponseOutput,
|
|
767
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
768
|
-
protocol: StackitProtocol,
|
|
769
|
-
retry: Retry.Retry,
|
|
770
|
-
}));
|
|
771
|
-
/** Delete a existing VPN gateway in a project. Permanently remove a VPN gateway and all its associated connections. This operation is irreversible. */
|
|
772
|
-
export const deleteGateway = /*@__PURE__*/ API.make(() => ({
|
|
773
|
-
input: DeleteGatewayRequest,
|
|
774
|
-
output: DeleteGatewayResponse,
|
|
775
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
776
|
-
protocol: StackitProtocol,
|
|
777
|
-
retry: Retry.Retry,
|
|
778
|
-
}));
|
|
779
|
-
/** Delete a BGP filter. Fails with 409 Conflict if the filter is referenced by any connection's tunnel.bgp.inboundFilterId. The error response body's details[] contains one entry per referencing connection with metadata { connectionId, displayName, tunnel: 'tunnel1'|'tunnel2' } and reason RESOURCE_IN_USE so the caller can detach them first. */
|
|
780
|
-
export const deleteGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
|
|
781
|
-
input: DeleteGatewayBGPFilterRequest,
|
|
782
|
-
output: DeleteGatewayBGPFilterResponse,
|
|
783
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
784
|
-
protocol: StackitProtocol,
|
|
785
|
-
retry: Retry.Retry,
|
|
786
|
-
}));
|
|
787
|
-
/** Delete a specific rule. */
|
|
788
|
-
export const deleteGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
|
|
789
|
-
input: DeleteGatewayBGPFilterRuleRequest,
|
|
790
|
-
output: DeleteGatewayBGPFilterRuleResponse,
|
|
791
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
792
|
-
protocol: StackitProtocol,
|
|
793
|
-
retry: Retry.Retry,
|
|
794
|
-
}));
|
|
795
|
-
/** Delete a certain connection from an existing VPN gateway. Delete a certain connection from an existing VPN gateway. */
|
|
796
|
-
export const deleteGatewayConnection = /*@__PURE__*/ API.make(() => ({
|
|
797
|
-
input: DeleteGatewayConnectionRequest,
|
|
798
|
-
output: DeleteGatewayConnectionResponse,
|
|
799
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
800
|
-
protocol: StackitProtocol,
|
|
801
|
-
retry: Retry.Retry,
|
|
802
|
-
}));
|
|
803
|
-
/** Get details of a VPN Gateway in a project. Get details of a VPN Gateway in a project. */
|
|
804
|
-
export const getGateway = /*@__PURE__*/ API.make(() => ({
|
|
805
|
-
input: GetGatewayRequest,
|
|
806
|
-
output: GetGatewayResponse,
|
|
807
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
808
|
-
protocol: StackitProtocol,
|
|
809
|
-
retry: Retry.Retry,
|
|
810
|
-
}));
|
|
811
|
-
/** Get BGP filter metadata. */
|
|
812
|
-
export const getGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
|
|
813
|
-
input: GetGatewayBGPFilterRequest,
|
|
814
|
-
output: BGPFilter,
|
|
815
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
816
|
-
protocol: StackitProtocol,
|
|
817
|
-
retry: Retry.Retry,
|
|
818
|
-
}));
|
|
819
|
-
/** Get a specific rule from a BGP filter. */
|
|
820
|
-
export const getGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
|
|
821
|
-
input: GetGatewayBGPFilterRuleRequest,
|
|
822
|
-
output: BGPFilterRule,
|
|
823
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
824
|
-
protocol: StackitProtocol,
|
|
825
|
-
retry: Retry.Retry,
|
|
826
|
-
}));
|
|
827
|
-
/** Get a certain connection for an existing VPN gateway. Get a certain connection for an existing VPN gateway. */
|
|
828
|
-
export const getGatewayConnection = /*@__PURE__*/ API.make(() => ({
|
|
829
|
-
input: GetGatewayConnectionRequest,
|
|
830
|
-
output: ConnectionResponseOutput,
|
|
831
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
832
|
-
protocol: StackitProtocol,
|
|
833
|
-
retry: Retry.Retry,
|
|
834
|
-
}));
|
|
835
|
-
/** Gets the status for a specific connection. Get the status for a specific connection. */
|
|
836
|
-
export const getGatewayConnectionStatus = /*@__PURE__*/ API.make(() => ({
|
|
837
|
-
input: GetGatewayConnectionStatusRequest,
|
|
838
|
-
output: ConnectionStatusResponse,
|
|
839
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
840
|
-
protocol: StackitProtocol,
|
|
841
|
-
retry: Retry.Retry,
|
|
842
|
-
}));
|
|
843
|
-
/** Get the status of a VPN gateway in a project. Get the status of a VPN gateway in a project. */
|
|
844
|
-
export const getGatewayStatus = /*@__PURE__*/ API.make(() => ({
|
|
845
|
-
input: GetGatewayStatusRequest,
|
|
846
|
-
output: GatewayStatusResponse,
|
|
847
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
848
|
-
protocol: StackitProtocol,
|
|
849
|
-
retry: Retry.Retry,
|
|
850
|
-
}));
|
|
851
|
-
/** List all rules inside a specific BGP filter. */
|
|
852
|
-
export const listGatewayBGPFilterRules = /*@__PURE__*/ API.make(() => ({
|
|
853
|
-
input: ListGatewayBGPFilterRulesRequest,
|
|
854
|
-
output: BGPFilterRuleList,
|
|
855
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
856
|
-
protocol: StackitProtocol,
|
|
857
|
-
retry: Retry.Retry,
|
|
858
|
-
}));
|
|
859
|
-
/** List BGP filters for a gateway. */
|
|
860
|
-
export const listGatewayBGPFilters = /*@__PURE__*/ API.make(() => ({
|
|
861
|
-
input: ListGatewayBGPFiltersRequest,
|
|
862
|
-
output: BGPFilterList,
|
|
863
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
864
|
-
protocol: StackitProtocol,
|
|
865
|
-
retry: Retry.Retry,
|
|
866
|
-
}));
|
|
867
|
-
/** List connections for an existing VPN gateway. List connections for an existing VPN gateway. */
|
|
868
|
-
export const listGatewayConnections = /*@__PURE__*/ API.make(() => ({
|
|
869
|
-
input: ListGatewayConnectionsRequest,
|
|
870
|
-
output: ConnectionListOutput,
|
|
871
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
872
|
-
protocol: StackitProtocol,
|
|
873
|
-
retry: Retry.Retry,
|
|
874
|
-
}));
|
|
875
|
-
/** List VPN gateways in a project with label filtering Retrieve a list of all VPN gateways in a project. Filter the results using the `label_selector` query parameter. */
|
|
876
|
-
export const listGateways = /*@__PURE__*/ API.make(() => ({
|
|
877
|
-
input: ListGatewaysRequest,
|
|
878
|
-
output: GatewayList,
|
|
879
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
880
|
-
protocol: StackitProtocol,
|
|
881
|
-
retry: Retry.Retry,
|
|
882
|
-
}));
|
|
883
|
-
/** List available service plans for a project. Retrieve a list of available service plans available for provisioning a VPN in a specific `region`. Use this to identify the `planId` required for gateway creation. */
|
|
884
|
-
export const listPlans = /*@__PURE__*/ API.make(() => ({
|
|
885
|
-
input: ListPlansRequest,
|
|
886
|
-
output: PlanList,
|
|
887
|
-
errors: [BadRequest, UnknownStackitError],
|
|
888
|
-
protocol: StackitProtocol,
|
|
889
|
-
retry: Retry.Retry,
|
|
890
|
-
}));
|
|
891
|
-
/** List project quotas. Retrieve the resource quotas and current usage for STACKIT VPN within a specific project and region. */
|
|
892
|
-
export const listQuotas = /*@__PURE__*/ API.make(() => ({
|
|
893
|
-
input: ListQuotasRequest,
|
|
894
|
-
output: QuotaListResponse,
|
|
895
|
-
errors: [BadRequest, UnknownStackitError],
|
|
896
|
-
protocol: StackitProtocol,
|
|
897
|
-
retry: Retry.Retry,
|
|
898
|
-
}));
|
|
899
|
-
/** Update a VPN gateway in a project. Modify the configuration of an existing VPN gateway. Certain changes may trigger infrastructure updates or temporary connection re-negotiations. */
|
|
900
|
-
export const updateGateway = /*@__PURE__*/ API.make(() => ({
|
|
901
|
-
input: UpdateGatewayRequest,
|
|
902
|
-
output: UpdateGatewayResponse,
|
|
903
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
904
|
-
protocol: StackitProtocol,
|
|
905
|
-
retry: Retry.Retry,
|
|
906
|
-
}));
|
|
907
|
-
/** Update BGP filter metadata (name, description). Rules are managed via the nested /rules sub-resource and are not modified by this endpoint. */
|
|
908
|
-
export const updateGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
|
|
909
|
-
input: UpdateGatewayBGPFilterRequest,
|
|
910
|
-
output: BGPFilter,
|
|
911
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
912
|
-
protocol: StackitProtocol,
|
|
913
|
-
retry: Retry.Retry,
|
|
914
|
-
}));
|
|
915
|
-
/** Update a specific rule. */
|
|
916
|
-
export const updateGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
|
|
917
|
-
input: UpdateGatewayBGPFilterRuleRequest,
|
|
918
|
-
output: BGPFilterRule,
|
|
919
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
920
|
-
protocol: StackitProtocol,
|
|
921
|
-
retry: Retry.Retry,
|
|
922
|
-
}));
|
|
923
|
-
/** Update a connection on an existing VPN gateway. Updating the configuration of an existing connection. */
|
|
924
|
-
export const updateGatewayConnection = /*@__PURE__*/ API.make(() => ({
|
|
925
|
-
input: UpdateGatewayConnectionRequest,
|
|
926
|
-
output: ConnectionResponseOutput,
|
|
927
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
928
|
-
protocol: StackitProtocol,
|
|
929
|
-
retry: Retry.Retry,
|
|
930
|
-
}));
|
|
931
|
-
//# sourceMappingURL=vpn.js.map
|