@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
|
@@ -1,12 +1,15 @@
|
|
|
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
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
7
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
8
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
9
10
|
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
10
13
|
|
|
11
14
|
export type { StackitOpError, StackitOpContext };
|
|
12
15
|
|
|
@@ -38,8 +41,6 @@ export class NotFound
|
|
|
38
41
|
) {}
|
|
39
42
|
|
|
40
43
|
export type CreateAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
41
|
-
export const CreateAccessTokenRequestRegionId = S.String;
|
|
42
|
-
|
|
43
44
|
export interface CreateAccessTokenRequest {
|
|
44
45
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
45
46
|
projectId: string;
|
|
@@ -54,27 +55,7 @@ export interface CreateAccessTokenRequest {
|
|
|
54
55
|
/** The time-to-live (TTL) in days for the access token. If not set, token will not expire. */
|
|
55
56
|
ttl?: number | null;
|
|
56
57
|
}
|
|
57
|
-
export const CreateAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
58
|
-
S.Struct({
|
|
59
|
-
projectId: S.String.pipe(T.Label()),
|
|
60
|
-
regionId: CreateAccessTokenRequestRegionId.pipe(T.Label()),
|
|
61
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
62
|
-
description: S.optional(S.String),
|
|
63
|
-
displayName: S.String,
|
|
64
|
-
ttl: S.optional(S.NullOr(S.Number)),
|
|
65
|
-
}).pipe(
|
|
66
|
-
T.Http({
|
|
67
|
-
method: "POST",
|
|
68
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens",
|
|
69
|
-
code: 200,
|
|
70
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
71
|
-
}),
|
|
72
|
-
),
|
|
73
|
-
).annotate({ identifier: "CreateAccessTokenRequest" }) as any as S.Schema<CreateAccessTokenRequest>;
|
|
74
|
-
|
|
75
58
|
export type CreateAccessTokenResponseStatus = "active" | "expired" | "deleting";
|
|
76
|
-
export const CreateAccessTokenResponseStatus = S.String;
|
|
77
|
-
|
|
78
59
|
export interface CreateAccessTokenResponse {
|
|
79
60
|
/** The user ID of the creator of the access token. */
|
|
80
61
|
creatorId: string;
|
|
@@ -90,83 +71,28 @@ export interface CreateAccessTokenResponse {
|
|
|
90
71
|
/** The generated access token. */
|
|
91
72
|
accessToken: string | Redacted.Redacted<string>;
|
|
92
73
|
}
|
|
93
|
-
export const CreateAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
94
|
-
S.Struct({
|
|
95
|
-
creatorId: S.String,
|
|
96
|
-
description: S.optional(S.String),
|
|
97
|
-
displayName: S.String,
|
|
98
|
-
expirationTime: S.optional(S.NullOr(S.String)),
|
|
99
|
-
id: S.String,
|
|
100
|
-
status: CreateAccessTokenResponseStatus,
|
|
101
|
-
accessToken: S.String.pipe(T.SensitiveValue({})),
|
|
102
|
-
}),
|
|
103
|
-
).annotate({
|
|
104
|
-
identifier: "CreateAccessTokenResponse",
|
|
105
|
-
}) as any as S.Schema<CreateAccessTokenResponse>;
|
|
106
|
-
|
|
107
74
|
export type CreateDestinationRequestRegionId = "eu01" | "eu02";
|
|
108
|
-
export const CreateDestinationRequestRegionId = S.String;
|
|
109
|
-
|
|
110
75
|
/** Type of the destination. */
|
|
111
76
|
export type DestinationConfigType = "OpenTelemetry" | "S3";
|
|
112
|
-
export const DestinationConfigType = S.String;
|
|
113
|
-
|
|
114
77
|
export type ConfigFilterLevel = "resource" | "scope" | "logRecord";
|
|
115
|
-
export const ConfigFilterLevel = S.String;
|
|
116
|
-
|
|
117
78
|
export type ConfigFilterMatcher = "=" | "!=";
|
|
118
|
-
export const ConfigFilterMatcher = S.String;
|
|
119
|
-
|
|
120
79
|
export type ConfigFilterAttributesValuesList = Array<string>;
|
|
121
|
-
export const ConfigFilterAttributesValuesList = /*@__PURE__*/ S.Array(
|
|
122
|
-
S.String,
|
|
123
|
-
) as any as S.Schema<ConfigFilterAttributesValuesList>;
|
|
124
|
-
|
|
125
80
|
export interface ConfigFilterAttributes {
|
|
126
81
|
key: string;
|
|
127
82
|
level: ConfigFilterLevel | (string & {});
|
|
128
83
|
matcher: ConfigFilterMatcher | (string & {});
|
|
129
84
|
values: ConfigFilterAttributesValuesList;
|
|
130
85
|
}
|
|
131
|
-
export const ConfigFilterAttributes = /*@__PURE__*/ S.suspend(() =>
|
|
132
|
-
S.Struct({
|
|
133
|
-
key: S.String,
|
|
134
|
-
level: ConfigFilterLevel,
|
|
135
|
-
matcher: ConfigFilterMatcher,
|
|
136
|
-
values: ConfigFilterAttributesValuesList,
|
|
137
|
-
}),
|
|
138
|
-
).annotate({ identifier: "ConfigFilterAttributes" }) as any as S.Schema<ConfigFilterAttributes>;
|
|
139
|
-
|
|
140
86
|
export type ConfigFilterAttributesList = Array<ConfigFilterAttributes>;
|
|
141
|
-
export const ConfigFilterAttributesList = /*@__PURE__*/ S.Array(
|
|
142
|
-
ConfigFilterAttributes,
|
|
143
|
-
) as any as S.Schema<ConfigFilterAttributesList>;
|
|
144
|
-
|
|
145
87
|
export interface ConfigFilter {
|
|
146
88
|
attributes: ConfigFilterAttributesList;
|
|
147
89
|
disabled?: boolean;
|
|
148
90
|
}
|
|
149
|
-
export const ConfigFilter = /*@__PURE__*/ S.suspend(() =>
|
|
150
|
-
S.Struct({
|
|
151
|
-
attributes: ConfigFilterAttributesList,
|
|
152
|
-
disabled: S.optional(S.Boolean),
|
|
153
|
-
}),
|
|
154
|
-
).annotate({ identifier: "ConfigFilter" }) as any as S.Schema<ConfigFilter>;
|
|
155
|
-
|
|
156
91
|
/** Basic auth to authenticate at the OpenTelemetry URI */
|
|
157
92
|
export interface DestinationConfigOpenTelemetryBasicAuth {
|
|
158
93
|
password: string | Redacted.Redacted<string>;
|
|
159
94
|
username: string;
|
|
160
95
|
}
|
|
161
|
-
export const DestinationConfigOpenTelemetryBasicAuth = /*@__PURE__*/ S.suspend(() =>
|
|
162
|
-
S.Struct({
|
|
163
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
164
|
-
username: S.String,
|
|
165
|
-
}),
|
|
166
|
-
).annotate({
|
|
167
|
-
identifier: "DestinationConfigOpenTelemetryBasicAuth",
|
|
168
|
-
}) as any as S.Schema<DestinationConfigOpenTelemetryBasicAuth>;
|
|
169
|
-
|
|
170
96
|
export interface DestinationConfigOpenTelemetry {
|
|
171
97
|
basicAuth?: DestinationConfigOpenTelemetryBasicAuth;
|
|
172
98
|
/** A bearer token to authenticate at the OpenTelemetry URI. */
|
|
@@ -174,59 +100,23 @@ export interface DestinationConfigOpenTelemetry {
|
|
|
174
100
|
/** The URI for reaching the resource. */
|
|
175
101
|
uri: string;
|
|
176
102
|
}
|
|
177
|
-
export const DestinationConfigOpenTelemetry = /*@__PURE__*/ S.suspend(() =>
|
|
178
|
-
S.Struct({
|
|
179
|
-
basicAuth: S.optional(DestinationConfigOpenTelemetryBasicAuth),
|
|
180
|
-
bearerToken: S.optional(S.String),
|
|
181
|
-
uri: S.String,
|
|
182
|
-
}),
|
|
183
|
-
).annotate({
|
|
184
|
-
identifier: "DestinationConfigOpenTelemetry",
|
|
185
|
-
}) as any as S.Schema<DestinationConfigOpenTelemetry>;
|
|
186
|
-
|
|
187
103
|
/** The S3 access key */
|
|
188
104
|
export interface DestinationConfigS3AccessKey {
|
|
189
105
|
id: string;
|
|
190
106
|
secret: string | Redacted.Redacted<string>;
|
|
191
107
|
}
|
|
192
|
-
export const DestinationConfigS3AccessKey = /*@__PURE__*/ S.suspend(() =>
|
|
193
|
-
S.Struct({
|
|
194
|
-
id: S.String,
|
|
195
|
-
secret: S.String.pipe(T.SensitiveValue({})),
|
|
196
|
-
}),
|
|
197
|
-
).annotate({
|
|
198
|
-
identifier: "DestinationConfigS3AccessKey",
|
|
199
|
-
}) as any as S.Schema<DestinationConfigS3AccessKey>;
|
|
200
|
-
|
|
201
108
|
export interface DestinationConfigS3 {
|
|
202
109
|
accessKey?: DestinationConfigS3AccessKey;
|
|
203
110
|
bucket: string;
|
|
204
111
|
/** The URI for reaching the resource. */
|
|
205
112
|
endpoint: string;
|
|
206
113
|
}
|
|
207
|
-
export const DestinationConfigS3 = /*@__PURE__*/ S.suspend(() =>
|
|
208
|
-
S.Struct({
|
|
209
|
-
accessKey: S.optional(DestinationConfigS3AccessKey),
|
|
210
|
-
bucket: S.String,
|
|
211
|
-
endpoint: S.String,
|
|
212
|
-
}),
|
|
213
|
-
).annotate({ identifier: "DestinationConfigS3" }) as any as S.Schema<DestinationConfigS3>;
|
|
214
|
-
|
|
215
114
|
export interface DestinationConfig {
|
|
216
115
|
configType: DestinationConfigType | (string & {});
|
|
217
116
|
filter?: ConfigFilter;
|
|
218
117
|
openTelemetry?: DestinationConfigOpenTelemetry;
|
|
219
118
|
s3?: DestinationConfigS3;
|
|
220
119
|
}
|
|
221
|
-
export const DestinationConfig = /*@__PURE__*/ S.suspend(() =>
|
|
222
|
-
S.Struct({
|
|
223
|
-
configType: DestinationConfigType,
|
|
224
|
-
filter: S.optional(ConfigFilter),
|
|
225
|
-
openTelemetry: S.optional(DestinationConfigOpenTelemetry),
|
|
226
|
-
s3: S.optional(DestinationConfigS3),
|
|
227
|
-
}),
|
|
228
|
-
).annotate({ identifier: "DestinationConfig" }) as any as S.Schema<DestinationConfig>;
|
|
229
|
-
|
|
230
120
|
export interface CreateDestinationRequest {
|
|
231
121
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
232
122
|
projectId: string;
|
|
@@ -240,32 +130,10 @@ export interface CreateDestinationRequest {
|
|
|
240
130
|
/** The display name is a short name chosen by the user to identify the resource. */
|
|
241
131
|
displayName: string;
|
|
242
132
|
}
|
|
243
|
-
export const CreateDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
244
|
-
S.Struct({
|
|
245
|
-
projectId: S.String.pipe(T.Label()),
|
|
246
|
-
regionId: CreateDestinationRequestRegionId.pipe(T.Label()),
|
|
247
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
248
|
-
config: DestinationConfig,
|
|
249
|
-
description: S.optional(S.String),
|
|
250
|
-
displayName: S.String,
|
|
251
|
-
}).pipe(
|
|
252
|
-
T.Http({
|
|
253
|
-
method: "POST",
|
|
254
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations",
|
|
255
|
-
code: 200,
|
|
256
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
257
|
-
}),
|
|
258
|
-
),
|
|
259
|
-
).annotate({ identifier: "CreateDestinationRequest" }) as any as S.Schema<CreateDestinationRequest>;
|
|
260
|
-
|
|
261
133
|
/** The credential type for the resource. */
|
|
262
134
|
export type DestinationResponseCredentialType = "bearerToken" | "basicAuth" | "accessKey";
|
|
263
|
-
export const DestinationResponseCredentialType = S.String;
|
|
264
|
-
|
|
265
135
|
/** The current status of the resource. */
|
|
266
136
|
export type DestinationResponseStatus = "reconciling" | "active" | "deleting";
|
|
267
|
-
export const DestinationResponseStatus = S.String;
|
|
268
|
-
|
|
269
137
|
export interface DestinationResponse {
|
|
270
138
|
config: DestinationConfig;
|
|
271
139
|
/** The point in time the resource was created. */
|
|
@@ -281,21 +149,7 @@ export interface DestinationResponse {
|
|
|
281
149
|
/** The current status of the resource. */
|
|
282
150
|
status: DestinationResponseStatus;
|
|
283
151
|
}
|
|
284
|
-
export const DestinationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
285
|
-
S.Struct({
|
|
286
|
-
config: DestinationConfig,
|
|
287
|
-
creationTime: S.String,
|
|
288
|
-
credentialType: DestinationResponseCredentialType,
|
|
289
|
-
description: S.optional(S.String),
|
|
290
|
-
displayName: S.String,
|
|
291
|
-
id: S.String,
|
|
292
|
-
status: DestinationResponseStatus,
|
|
293
|
-
}),
|
|
294
|
-
).annotate({ identifier: "DestinationResponse" }) as any as S.Schema<DestinationResponse>;
|
|
295
|
-
|
|
296
152
|
export type CreateTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
297
|
-
export const CreateTelemetryRouterRequestRegionId = S.String;
|
|
298
|
-
|
|
299
153
|
export interface CreateTelemetryRouterRequest {
|
|
300
154
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
301
155
|
projectId: string;
|
|
@@ -307,29 +161,8 @@ export interface CreateTelemetryRouterRequest {
|
|
|
307
161
|
displayName: string;
|
|
308
162
|
filter?: ConfigFilter;
|
|
309
163
|
}
|
|
310
|
-
export const CreateTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
311
|
-
S.Struct({
|
|
312
|
-
projectId: S.String.pipe(T.Label()),
|
|
313
|
-
regionId: CreateTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
314
|
-
description: S.optional(S.String),
|
|
315
|
-
displayName: S.String,
|
|
316
|
-
filter: S.optional(ConfigFilter),
|
|
317
|
-
}).pipe(
|
|
318
|
-
T.Http({
|
|
319
|
-
method: "POST",
|
|
320
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers",
|
|
321
|
-
code: 200,
|
|
322
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
323
|
-
}),
|
|
324
|
-
),
|
|
325
|
-
).annotate({
|
|
326
|
-
identifier: "CreateTelemetryRouterRequest",
|
|
327
|
-
}) as any as S.Schema<CreateTelemetryRouterRequest>;
|
|
328
|
-
|
|
329
164
|
/** The current status of the resource. */
|
|
330
165
|
export type TelemetryRouterResponseStatus = "reconciling" | "active" | "deleting";
|
|
331
|
-
export const TelemetryRouterResponseStatus = S.String;
|
|
332
|
-
|
|
333
166
|
export interface TelemetryRouterResponse {
|
|
334
167
|
/** The point in time the resource was created. */
|
|
335
168
|
creationTime: string;
|
|
@@ -345,21 +178,7 @@ export interface TelemetryRouterResponse {
|
|
|
345
178
|
/** The URI for reaching the resource. */
|
|
346
179
|
uri: string;
|
|
347
180
|
}
|
|
348
|
-
export const TelemetryRouterResponse = /*@__PURE__*/ S.suspend(() =>
|
|
349
|
-
S.Struct({
|
|
350
|
-
creationTime: S.String,
|
|
351
|
-
description: S.optional(S.String),
|
|
352
|
-
displayName: S.String,
|
|
353
|
-
filter: S.optional(ConfigFilter),
|
|
354
|
-
id: S.String,
|
|
355
|
-
status: TelemetryRouterResponseStatus,
|
|
356
|
-
uri: S.String,
|
|
357
|
-
}),
|
|
358
|
-
).annotate({ identifier: "TelemetryRouterResponse" }) as any as S.Schema<TelemetryRouterResponse>;
|
|
359
|
-
|
|
360
181
|
export type DeleteAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
361
|
-
export const DeleteAccessTokenRequestRegionId = S.String;
|
|
362
|
-
|
|
363
182
|
export interface DeleteAccessTokenRequest {
|
|
364
183
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
365
184
|
projectId: string;
|
|
@@ -370,30 +189,8 @@ export interface DeleteAccessTokenRequest {
|
|
|
370
189
|
/** The Access Token UUID. */
|
|
371
190
|
accessTokenId: string;
|
|
372
191
|
}
|
|
373
|
-
export const DeleteAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
374
|
-
S.Struct({
|
|
375
|
-
projectId: S.String.pipe(T.Label()),
|
|
376
|
-
regionId: DeleteAccessTokenRequestRegionId.pipe(T.Label()),
|
|
377
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
378
|
-
accessTokenId: S.String.pipe(T.Label()),
|
|
379
|
-
}).pipe(
|
|
380
|
-
T.Http({
|
|
381
|
-
method: "DELETE",
|
|
382
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
383
|
-
code: 200,
|
|
384
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
385
|
-
}),
|
|
386
|
-
),
|
|
387
|
-
).annotate({ identifier: "DeleteAccessTokenRequest" }) as any as S.Schema<DeleteAccessTokenRequest>;
|
|
388
|
-
|
|
389
192
|
export interface DeleteAccessTokenResponse {}
|
|
390
|
-
export const DeleteAccessTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
391
|
-
identifier: "DeleteAccessTokenResponse",
|
|
392
|
-
}) as any as S.Schema<DeleteAccessTokenResponse>;
|
|
393
|
-
|
|
394
193
|
export type DeleteDestinationRequestRegionId = "eu01" | "eu02";
|
|
395
|
-
export const DeleteDestinationRequestRegionId = S.String;
|
|
396
|
-
|
|
397
194
|
export interface DeleteDestinationRequest {
|
|
398
195
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
399
196
|
projectId: string;
|
|
@@ -404,30 +201,8 @@ export interface DeleteDestinationRequest {
|
|
|
404
201
|
/** The Destination UUID. */
|
|
405
202
|
destinationId: string;
|
|
406
203
|
}
|
|
407
|
-
export const DeleteDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
408
|
-
S.Struct({
|
|
409
|
-
projectId: S.String.pipe(T.Label()),
|
|
410
|
-
regionId: DeleteDestinationRequestRegionId.pipe(T.Label()),
|
|
411
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
412
|
-
destinationId: S.String.pipe(T.Label()),
|
|
413
|
-
}).pipe(
|
|
414
|
-
T.Http({
|
|
415
|
-
method: "DELETE",
|
|
416
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
417
|
-
code: 200,
|
|
418
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
419
|
-
}),
|
|
420
|
-
),
|
|
421
|
-
).annotate({ identifier: "DeleteDestinationRequest" }) as any as S.Schema<DeleteDestinationRequest>;
|
|
422
|
-
|
|
423
204
|
export interface DeleteDestinationResponse {}
|
|
424
|
-
export const DeleteDestinationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
425
|
-
identifier: "DeleteDestinationResponse",
|
|
426
|
-
}) as any as S.Schema<DeleteDestinationResponse>;
|
|
427
|
-
|
|
428
205
|
export type DeleteTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
429
|
-
export const DeleteTelemetryRouterRequestRegionId = S.String;
|
|
430
|
-
|
|
431
206
|
export interface DeleteTelemetryRouterRequest {
|
|
432
207
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
433
208
|
projectId: string;
|
|
@@ -438,32 +213,8 @@ export interface DeleteTelemetryRouterRequest {
|
|
|
438
213
|
/** If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. */
|
|
439
214
|
force?: boolean;
|
|
440
215
|
}
|
|
441
|
-
export const DeleteTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
442
|
-
S.Struct({
|
|
443
|
-
projectId: S.String.pipe(T.Label()),
|
|
444
|
-
regionId: DeleteTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
445
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
446
|
-
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
447
|
-
}).pipe(
|
|
448
|
-
T.Http({
|
|
449
|
-
method: "DELETE",
|
|
450
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
451
|
-
code: 200,
|
|
452
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
453
|
-
}),
|
|
454
|
-
),
|
|
455
|
-
).annotate({
|
|
456
|
-
identifier: "DeleteTelemetryRouterRequest",
|
|
457
|
-
}) as any as S.Schema<DeleteTelemetryRouterRequest>;
|
|
458
|
-
|
|
459
216
|
export interface DeleteTelemetryRouterResponse {}
|
|
460
|
-
export const DeleteTelemetryRouterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
461
|
-
identifier: "DeleteTelemetryRouterResponse",
|
|
462
|
-
}) as any as S.Schema<DeleteTelemetryRouterResponse>;
|
|
463
|
-
|
|
464
217
|
export type GetAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
465
|
-
export const GetAccessTokenRequestRegionId = S.String;
|
|
466
|
-
|
|
467
218
|
export interface GetAccessTokenRequest {
|
|
468
219
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
469
220
|
projectId: string;
|
|
@@ -474,25 +225,7 @@ export interface GetAccessTokenRequest {
|
|
|
474
225
|
/** The Access Token UUID. */
|
|
475
226
|
accessTokenId: string;
|
|
476
227
|
}
|
|
477
|
-
export const GetAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
478
|
-
S.Struct({
|
|
479
|
-
projectId: S.String.pipe(T.Label()),
|
|
480
|
-
regionId: GetAccessTokenRequestRegionId.pipe(T.Label()),
|
|
481
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
482
|
-
accessTokenId: S.String.pipe(T.Label()),
|
|
483
|
-
}).pipe(
|
|
484
|
-
T.Http({
|
|
485
|
-
method: "GET",
|
|
486
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
487
|
-
code: 200,
|
|
488
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
489
|
-
}),
|
|
490
|
-
),
|
|
491
|
-
).annotate({ identifier: "GetAccessTokenRequest" }) as any as S.Schema<GetAccessTokenRequest>;
|
|
492
|
-
|
|
493
228
|
export type GetAccessTokenResponseStatus = "active" | "expired" | "deleting";
|
|
494
|
-
export const GetAccessTokenResponseStatus = S.String;
|
|
495
|
-
|
|
496
229
|
export interface GetAccessTokenResponse2 {
|
|
497
230
|
/** The user ID of the creator of the access token. */
|
|
498
231
|
creatorId: string;
|
|
@@ -506,20 +239,7 @@ export interface GetAccessTokenResponse2 {
|
|
|
506
239
|
id: string;
|
|
507
240
|
status: GetAccessTokenResponseStatus;
|
|
508
241
|
}
|
|
509
|
-
export const GetAccessTokenResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
510
|
-
S.Struct({
|
|
511
|
-
creatorId: S.String,
|
|
512
|
-
description: S.optional(S.String),
|
|
513
|
-
displayName: S.String,
|
|
514
|
-
expirationTime: S.optional(S.NullOr(S.String)),
|
|
515
|
-
id: S.String,
|
|
516
|
-
status: GetAccessTokenResponseStatus,
|
|
517
|
-
}),
|
|
518
|
-
).annotate({ identifier: "GetAccessTokenResponse2" }) as any as S.Schema<GetAccessTokenResponse2>;
|
|
519
|
-
|
|
520
242
|
export type GetDestinationRequestRegionId = "eu01" | "eu02";
|
|
521
|
-
export const GetDestinationRequestRegionId = S.String;
|
|
522
|
-
|
|
523
243
|
export interface GetDestinationRequest {
|
|
524
244
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
525
245
|
projectId: string;
|
|
@@ -530,25 +250,7 @@ export interface GetDestinationRequest {
|
|
|
530
250
|
/** The Destination UUID. */
|
|
531
251
|
destinationId: string;
|
|
532
252
|
}
|
|
533
|
-
export const GetDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
534
|
-
S.Struct({
|
|
535
|
-
projectId: S.String.pipe(T.Label()),
|
|
536
|
-
regionId: GetDestinationRequestRegionId.pipe(T.Label()),
|
|
537
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
538
|
-
destinationId: S.String.pipe(T.Label()),
|
|
539
|
-
}).pipe(
|
|
540
|
-
T.Http({
|
|
541
|
-
method: "GET",
|
|
542
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
543
|
-
code: 200,
|
|
544
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
545
|
-
}),
|
|
546
|
-
),
|
|
547
|
-
).annotate({ identifier: "GetDestinationRequest" }) as any as S.Schema<GetDestinationRequest>;
|
|
548
|
-
|
|
549
253
|
export type GetTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
550
|
-
export const GetTelemetryRouterRequestRegionId = S.String;
|
|
551
|
-
|
|
552
254
|
export interface GetTelemetryRouterRequest {
|
|
553
255
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
554
256
|
projectId: string;
|
|
@@ -557,26 +259,7 @@ export interface GetTelemetryRouterRequest {
|
|
|
557
259
|
/** The Telemetry Router UUID. */
|
|
558
260
|
telemetryRouterId: string;
|
|
559
261
|
}
|
|
560
|
-
export const GetTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
561
|
-
S.Struct({
|
|
562
|
-
projectId: S.String.pipe(T.Label()),
|
|
563
|
-
regionId: GetTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
564
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
565
|
-
}).pipe(
|
|
566
|
-
T.Http({
|
|
567
|
-
method: "GET",
|
|
568
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
569
|
-
code: 200,
|
|
570
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
571
|
-
}),
|
|
572
|
-
),
|
|
573
|
-
).annotate({
|
|
574
|
-
identifier: "GetTelemetryRouterRequest",
|
|
575
|
-
}) as any as S.Schema<GetTelemetryRouterRequest>;
|
|
576
|
-
|
|
577
262
|
export type ListAccessTokensRequestRegionId = "eu01" | "eu02";
|
|
578
|
-
export const ListAccessTokensRequestRegionId = S.String;
|
|
579
|
-
|
|
580
263
|
export interface ListAccessTokensRequest {
|
|
581
264
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
582
265
|
projectId: string;
|
|
@@ -589,26 +272,7 @@ export interface ListAccessTokensRequest {
|
|
|
589
272
|
/** Maximum number of items to return */
|
|
590
273
|
pageSize?: number;
|
|
591
274
|
}
|
|
592
|
-
export const ListAccessTokensRequest = /*@__PURE__*/ S.suspend(() =>
|
|
593
|
-
S.Struct({
|
|
594
|
-
projectId: S.String.pipe(T.Label()),
|
|
595
|
-
regionId: ListAccessTokensRequestRegionId.pipe(T.Label()),
|
|
596
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
597
|
-
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
598
|
-
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
599
|
-
}).pipe(
|
|
600
|
-
T.Http({
|
|
601
|
-
method: "GET",
|
|
602
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens",
|
|
603
|
-
code: 200,
|
|
604
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
605
|
-
}),
|
|
606
|
-
),
|
|
607
|
-
).annotate({ identifier: "ListAccessTokensRequest" }) as any as S.Schema<ListAccessTokensRequest>;
|
|
608
|
-
|
|
609
275
|
export type AccessTokenBaseResponseStatus = "active" | "expired" | "deleting";
|
|
610
|
-
export const AccessTokenBaseResponseStatus = S.String;
|
|
611
|
-
|
|
612
276
|
export interface AccessTokenBaseResponse {
|
|
613
277
|
/** The user ID of the creator of the access token. */
|
|
614
278
|
creatorId: string;
|
|
@@ -622,37 +286,13 @@ export interface AccessTokenBaseResponse {
|
|
|
622
286
|
id: string;
|
|
623
287
|
status: AccessTokenBaseResponseStatus;
|
|
624
288
|
}
|
|
625
|
-
export const AccessTokenBaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
626
|
-
S.Struct({
|
|
627
|
-
creatorId: S.String,
|
|
628
|
-
description: S.optional(S.String),
|
|
629
|
-
displayName: S.String,
|
|
630
|
-
expirationTime: S.optional(S.NullOr(S.String)),
|
|
631
|
-
id: S.String,
|
|
632
|
-
status: AccessTokenBaseResponseStatus,
|
|
633
|
-
}),
|
|
634
|
-
).annotate({ identifier: "AccessTokenBaseResponse" }) as any as S.Schema<AccessTokenBaseResponse>;
|
|
635
|
-
|
|
636
289
|
export type ListAccessTokensResponseAccessTokensList = Array<AccessTokenBaseResponse>;
|
|
637
|
-
export const ListAccessTokensResponseAccessTokensList = /*@__PURE__*/ S.Array(
|
|
638
|
-
AccessTokenBaseResponse,
|
|
639
|
-
) as any as S.Schema<ListAccessTokensResponseAccessTokensList>;
|
|
640
|
-
|
|
641
290
|
export interface ListAccessTokensResponse {
|
|
642
291
|
accessTokens: ListAccessTokensResponseAccessTokensList;
|
|
643
292
|
/** A token to retrieve the next page of results. */
|
|
644
293
|
nextPageToken?: string;
|
|
645
294
|
}
|
|
646
|
-
export const ListAccessTokensResponse = /*@__PURE__*/ S.suspend(() =>
|
|
647
|
-
S.Struct({
|
|
648
|
-
accessTokens: ListAccessTokensResponseAccessTokensList,
|
|
649
|
-
nextPageToken: S.optional(S.String),
|
|
650
|
-
}),
|
|
651
|
-
).annotate({ identifier: "ListAccessTokensResponse" }) as any as S.Schema<ListAccessTokensResponse>;
|
|
652
|
-
|
|
653
295
|
export type ListDestinationsRequestRegionId = "eu01" | "eu02";
|
|
654
|
-
export const ListDestinationsRequestRegionId = S.String;
|
|
655
|
-
|
|
656
296
|
export interface ListDestinationsRequest {
|
|
657
297
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
658
298
|
projectId: string;
|
|
@@ -665,43 +305,13 @@ export interface ListDestinationsRequest {
|
|
|
665
305
|
/** Maximum number of items to return */
|
|
666
306
|
pageSize?: number;
|
|
667
307
|
}
|
|
668
|
-
export const ListDestinationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
669
|
-
S.Struct({
|
|
670
|
-
projectId: S.String.pipe(T.Label()),
|
|
671
|
-
regionId: ListDestinationsRequestRegionId.pipe(T.Label()),
|
|
672
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
673
|
-
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
674
|
-
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
675
|
-
}).pipe(
|
|
676
|
-
T.Http({
|
|
677
|
-
method: "GET",
|
|
678
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations",
|
|
679
|
-
code: 200,
|
|
680
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
681
|
-
}),
|
|
682
|
-
),
|
|
683
|
-
).annotate({ identifier: "ListDestinationsRequest" }) as any as S.Schema<ListDestinationsRequest>;
|
|
684
|
-
|
|
685
308
|
export type ListDestinationsResponseDestinationsList = Array<DestinationResponse>;
|
|
686
|
-
export const ListDestinationsResponseDestinationsList = /*@__PURE__*/ S.Array(
|
|
687
|
-
DestinationResponse,
|
|
688
|
-
) as any as S.Schema<ListDestinationsResponseDestinationsList>;
|
|
689
|
-
|
|
690
309
|
export interface ListDestinationsResponse {
|
|
691
310
|
destinations: ListDestinationsResponseDestinationsList;
|
|
692
311
|
/** A token to retrieve the next page of results. */
|
|
693
312
|
nextPageToken?: string;
|
|
694
313
|
}
|
|
695
|
-
export const ListDestinationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
696
|
-
S.Struct({
|
|
697
|
-
destinations: ListDestinationsResponseDestinationsList,
|
|
698
|
-
nextPageToken: S.optional(S.String),
|
|
699
|
-
}),
|
|
700
|
-
).annotate({ identifier: "ListDestinationsResponse" }) as any as S.Schema<ListDestinationsResponse>;
|
|
701
|
-
|
|
702
314
|
export type ListTelemetryRoutersRequestRegionId = "eu01" | "eu02";
|
|
703
|
-
export const ListTelemetryRoutersRequestRegionId = S.String;
|
|
704
|
-
|
|
705
315
|
export interface ListTelemetryRoutersRequest {
|
|
706
316
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
707
317
|
projectId: string;
|
|
@@ -712,46 +322,13 @@ export interface ListTelemetryRoutersRequest {
|
|
|
712
322
|
/** Maximum number of items to return */
|
|
713
323
|
pageSize?: number;
|
|
714
324
|
}
|
|
715
|
-
export const ListTelemetryRoutersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
716
|
-
S.Struct({
|
|
717
|
-
projectId: S.String.pipe(T.Label()),
|
|
718
|
-
regionId: ListTelemetryRoutersRequestRegionId.pipe(T.Label()),
|
|
719
|
-
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
720
|
-
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
721
|
-
}).pipe(
|
|
722
|
-
T.Http({
|
|
723
|
-
method: "GET",
|
|
724
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers",
|
|
725
|
-
code: 200,
|
|
726
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
727
|
-
}),
|
|
728
|
-
),
|
|
729
|
-
).annotate({
|
|
730
|
-
identifier: "ListTelemetryRoutersRequest",
|
|
731
|
-
}) as any as S.Schema<ListTelemetryRoutersRequest>;
|
|
732
|
-
|
|
733
325
|
export type ListTelemetryRoutersResponseTelemetryRoutersList = Array<TelemetryRouterResponse>;
|
|
734
|
-
export const ListTelemetryRoutersResponseTelemetryRoutersList = /*@__PURE__*/ S.Array(
|
|
735
|
-
TelemetryRouterResponse,
|
|
736
|
-
) as any as S.Schema<ListTelemetryRoutersResponseTelemetryRoutersList>;
|
|
737
|
-
|
|
738
326
|
export interface ListTelemetryRoutersResponse {
|
|
739
327
|
/** A token to retrieve the next page of results. */
|
|
740
328
|
nextPageToken?: string;
|
|
741
329
|
telemetryRouters: ListTelemetryRoutersResponseTelemetryRoutersList;
|
|
742
330
|
}
|
|
743
|
-
export const ListTelemetryRoutersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
744
|
-
S.Struct({
|
|
745
|
-
nextPageToken: S.optional(S.String),
|
|
746
|
-
telemetryRouters: ListTelemetryRoutersResponseTelemetryRoutersList,
|
|
747
|
-
}),
|
|
748
|
-
).annotate({
|
|
749
|
-
identifier: "ListTelemetryRoutersResponse",
|
|
750
|
-
}) as any as S.Schema<ListTelemetryRoutersResponse>;
|
|
751
|
-
|
|
752
331
|
export type UpdateAccessTokenRequestRegionId = "eu01" | "eu02";
|
|
753
|
-
export const UpdateAccessTokenRequestRegionId = S.String;
|
|
754
|
-
|
|
755
332
|
export interface UpdateAccessTokenRequest {
|
|
756
333
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
757
334
|
projectId: string;
|
|
@@ -764,27 +341,7 @@ export interface UpdateAccessTokenRequest {
|
|
|
764
341
|
description?: string | null;
|
|
765
342
|
displayName?: string | null;
|
|
766
343
|
}
|
|
767
|
-
export const UpdateAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
768
|
-
S.Struct({
|
|
769
|
-
projectId: S.String.pipe(T.Label()),
|
|
770
|
-
regionId: UpdateAccessTokenRequestRegionId.pipe(T.Label()),
|
|
771
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
772
|
-
accessTokenId: S.String.pipe(T.Label()),
|
|
773
|
-
description: S.optional(S.NullOr(S.String)),
|
|
774
|
-
displayName: S.optional(S.NullOr(S.String)),
|
|
775
|
-
}).pipe(
|
|
776
|
-
T.Http({
|
|
777
|
-
method: "PUT",
|
|
778
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
779
|
-
code: 200,
|
|
780
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
781
|
-
}),
|
|
782
|
-
),
|
|
783
|
-
).annotate({ identifier: "UpdateAccessTokenRequest" }) as any as S.Schema<UpdateAccessTokenRequest>;
|
|
784
|
-
|
|
785
344
|
export type UpdateAccessTokenResponseStatus = "active" | "expired" | "deleting";
|
|
786
|
-
export const UpdateAccessTokenResponseStatus = S.String;
|
|
787
|
-
|
|
788
345
|
export interface UpdateAccessTokenResponse {
|
|
789
346
|
/** The user ID of the creator of the access token. */
|
|
790
347
|
creatorId: string;
|
|
@@ -798,22 +355,7 @@ export interface UpdateAccessTokenResponse {
|
|
|
798
355
|
id: string;
|
|
799
356
|
status: UpdateAccessTokenResponseStatus;
|
|
800
357
|
}
|
|
801
|
-
export const UpdateAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
802
|
-
S.Struct({
|
|
803
|
-
creatorId: S.String,
|
|
804
|
-
description: S.optional(S.String),
|
|
805
|
-
displayName: S.String,
|
|
806
|
-
expirationTime: S.optional(S.NullOr(S.String)),
|
|
807
|
-
id: S.String,
|
|
808
|
-
status: UpdateAccessTokenResponseStatus,
|
|
809
|
-
}),
|
|
810
|
-
).annotate({
|
|
811
|
-
identifier: "UpdateAccessTokenResponse",
|
|
812
|
-
}) as any as S.Schema<UpdateAccessTokenResponse>;
|
|
813
|
-
|
|
814
358
|
export type UpdateDestinationRequestRegionId = "eu01" | "eu02";
|
|
815
|
-
export const UpdateDestinationRequestRegionId = S.String;
|
|
816
|
-
|
|
817
359
|
export interface UpdateDestinationRequest {
|
|
818
360
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
819
361
|
projectId: string;
|
|
@@ -829,28 +371,7 @@ export interface UpdateDestinationRequest {
|
|
|
829
371
|
/** The display name is a short name chosen by the user to identify the resource. */
|
|
830
372
|
displayName?: string;
|
|
831
373
|
}
|
|
832
|
-
export const UpdateDestinationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
833
|
-
S.Struct({
|
|
834
|
-
projectId: S.String.pipe(T.Label()),
|
|
835
|
-
regionId: UpdateDestinationRequestRegionId.pipe(T.Label()),
|
|
836
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
837
|
-
destinationId: S.String.pipe(T.Label()),
|
|
838
|
-
config: S.optional(DestinationConfig),
|
|
839
|
-
description: S.optional(S.String),
|
|
840
|
-
displayName: S.optional(S.String),
|
|
841
|
-
}).pipe(
|
|
842
|
-
T.Http({
|
|
843
|
-
method: "PUT",
|
|
844
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
845
|
-
code: 200,
|
|
846
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
847
|
-
}),
|
|
848
|
-
),
|
|
849
|
-
).annotate({ identifier: "UpdateDestinationRequest" }) as any as S.Schema<UpdateDestinationRequest>;
|
|
850
|
-
|
|
851
374
|
export type UpdateTelemetryRouterRequestRegionId = "eu01" | "eu02";
|
|
852
|
-
export const UpdateTelemetryRouterRequestRegionId = S.String;
|
|
853
|
-
|
|
854
375
|
export interface UpdateTelemetryRouterRequest {
|
|
855
376
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
856
377
|
projectId: string;
|
|
@@ -864,26 +385,6 @@ export interface UpdateTelemetryRouterRequest {
|
|
|
864
385
|
displayName?: string;
|
|
865
386
|
filter?: ConfigFilter;
|
|
866
387
|
}
|
|
867
|
-
export const UpdateTelemetryRouterRequest = /*@__PURE__*/ S.suspend(() =>
|
|
868
|
-
S.Struct({
|
|
869
|
-
projectId: S.String.pipe(T.Label()),
|
|
870
|
-
regionId: UpdateTelemetryRouterRequestRegionId.pipe(T.Label()),
|
|
871
|
-
telemetryRouterId: S.String.pipe(T.Label()),
|
|
872
|
-
description: S.optional(S.String),
|
|
873
|
-
displayName: S.optional(S.String),
|
|
874
|
-
filter: S.optional(ConfigFilter),
|
|
875
|
-
}).pipe(
|
|
876
|
-
T.Http({
|
|
877
|
-
method: "PUT",
|
|
878
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
879
|
-
code: 200,
|
|
880
|
-
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
881
|
-
}),
|
|
882
|
-
),
|
|
883
|
-
).annotate({
|
|
884
|
-
identifier: "UpdateTelemetryRouterRequest",
|
|
885
|
-
}) as any as S.Schema<UpdateTelemetryRouterRequest>;
|
|
886
|
-
|
|
887
388
|
export type CreateAccessTokenError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
888
389
|
/** Create a new access token for the given Telemetry Router. */
|
|
889
390
|
export const createAccessToken: API.OperationMethod<
|
|
@@ -892,8 +393,8 @@ export const createAccessToken: API.OperationMethod<
|
|
|
892
393
|
CreateAccessTokenError,
|
|
893
394
|
StackitOpContext
|
|
894
395
|
> = /*@__PURE__*/ API.make(() => ({
|
|
895
|
-
input: CreateAccessTokenRequest
|
|
896
|
-
output: CreateAccessTokenResponse
|
|
396
|
+
input: __S(64, __c8, 0) as any as S.Schema<CreateAccessTokenRequest>,
|
|
397
|
+
output: __S(65, __c8, 1) as any as S.Schema<CreateAccessTokenResponse>,
|
|
897
398
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
898
399
|
protocol: StackitProtocol,
|
|
899
400
|
retry: Retry.Retry,
|
|
@@ -907,8 +408,8 @@ export const createDestination: API.OperationMethod<
|
|
|
907
408
|
CreateDestinationError,
|
|
908
409
|
StackitOpContext
|
|
909
410
|
> = /*@__PURE__*/ API.make(() => ({
|
|
910
|
-
input: CreateDestinationRequest
|
|
911
|
-
output: DestinationResponse
|
|
411
|
+
input: __S(72, __c9, 0) as any as S.Schema<CreateDestinationRequest>,
|
|
412
|
+
output: __S(85, __c10, 5) as any as S.Schema<DestinationResponse>,
|
|
912
413
|
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
913
414
|
protocol: StackitProtocol,
|
|
914
415
|
retry: Retry.Retry,
|
|
@@ -922,8 +423,8 @@ export const createTelemetryRouter: API.OperationMethod<
|
|
|
922
423
|
CreateTelemetryRouterError,
|
|
923
424
|
StackitOpContext
|
|
924
425
|
> = /*@__PURE__*/ API.make(() => ({
|
|
925
|
-
input: CreateTelemetryRouterRequest
|
|
926
|
-
output: TelemetryRouterResponse
|
|
426
|
+
input: __S(96, __c12, 0) as any as S.Schema<CreateTelemetryRouterRequest>,
|
|
427
|
+
output: __S(104, __c13, 0) as any as S.Schema<TelemetryRouterResponse>,
|
|
927
428
|
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
928
429
|
protocol: StackitProtocol,
|
|
929
430
|
retry: Retry.Retry,
|
|
@@ -937,8 +438,8 @@ export const deleteAccessToken: API.OperationMethod<
|
|
|
937
438
|
DeleteAccessTokenError,
|
|
938
439
|
StackitOpContext
|
|
939
440
|
> = /*@__PURE__*/ API.make(() => ({
|
|
940
|
-
input: DeleteAccessTokenRequest
|
|
941
|
-
output: DeleteAccessTokenResponse
|
|
441
|
+
input: __S(112, __c14, 0) as any as S.Schema<DeleteAccessTokenRequest>,
|
|
442
|
+
output: __S(120, __c15, 0) as any as S.Schema<DeleteAccessTokenResponse>,
|
|
942
443
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
943
444
|
protocol: StackitProtocol,
|
|
944
445
|
retry: Retry.Retry,
|
|
@@ -952,8 +453,8 @@ export const deleteDestination: API.OperationMethod<
|
|
|
952
453
|
DeleteDestinationError,
|
|
953
454
|
StackitOpContext
|
|
954
455
|
> = /*@__PURE__*/ API.make(() => ({
|
|
955
|
-
input: DeleteDestinationRequest
|
|
956
|
-
output: DeleteDestinationResponse
|
|
456
|
+
input: __S(128, __c16, 0) as any as S.Schema<DeleteDestinationRequest>,
|
|
457
|
+
output: __S(120, __c15, 0) as any as S.Schema<DeleteDestinationResponse>,
|
|
957
458
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
958
459
|
protocol: StackitProtocol,
|
|
959
460
|
retry: Retry.Retry,
|
|
@@ -967,8 +468,8 @@ export const deleteTelemetryRouter: API.OperationMethod<
|
|
|
967
468
|
DeleteTelemetryRouterError,
|
|
968
469
|
StackitOpContext
|
|
969
470
|
> = /*@__PURE__*/ API.make(() => ({
|
|
970
|
-
input: DeleteTelemetryRouterRequest
|
|
971
|
-
output: DeleteTelemetryRouterResponse
|
|
471
|
+
input: __S(136, __c17, 0) as any as S.Schema<DeleteTelemetryRouterRequest>,
|
|
472
|
+
output: __S(120, __c15, 0) as any as S.Schema<DeleteTelemetryRouterResponse>,
|
|
972
473
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
973
474
|
protocol: StackitProtocol,
|
|
974
475
|
retry: Retry.Retry,
|
|
@@ -982,8 +483,8 @@ export const getAccessToken: API.OperationMethod<
|
|
|
982
483
|
GetAccessTokenError,
|
|
983
484
|
StackitOpContext
|
|
984
485
|
> = /*@__PURE__*/ API.make(() => ({
|
|
985
|
-
input: GetAccessTokenRequest
|
|
986
|
-
output: GetAccessTokenResponse2
|
|
486
|
+
input: __S(144, __c18, 0) as any as S.Schema<GetAccessTokenRequest>,
|
|
487
|
+
output: __S(152, __c19, 0) as any as S.Schema<GetAccessTokenResponse2>,
|
|
987
488
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
988
489
|
protocol: StackitProtocol,
|
|
989
490
|
retry: Retry.Retry,
|
|
@@ -997,8 +498,8 @@ export const getDestination: API.OperationMethod<
|
|
|
997
498
|
GetDestinationError,
|
|
998
499
|
StackitOpContext
|
|
999
500
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1000
|
-
input: GetDestinationRequest
|
|
1001
|
-
output: DestinationResponse
|
|
501
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetDestinationRequest>,
|
|
502
|
+
output: __S(85, __c10, 5) as any as S.Schema<DestinationResponse>,
|
|
1002
503
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1003
504
|
protocol: StackitProtocol,
|
|
1004
505
|
retry: Retry.Retry,
|
|
@@ -1012,8 +513,8 @@ export const getTelemetryRouter: API.OperationMethod<
|
|
|
1012
513
|
GetTelemetryRouterError,
|
|
1013
514
|
StackitOpContext
|
|
1014
515
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1015
|
-
input: GetTelemetryRouterRequest
|
|
1016
|
-
output: TelemetryRouterResponse
|
|
516
|
+
input: __S(8, __c1, 0) as any as S.Schema<GetTelemetryRouterRequest>,
|
|
517
|
+
output: __S(104, __c13, 0) as any as S.Schema<TelemetryRouterResponse>,
|
|
1017
518
|
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
1018
519
|
protocol: StackitProtocol,
|
|
1019
520
|
retry: Retry.Retry,
|
|
@@ -1027,8 +528,8 @@ export const listAccessTokens: API.OperationMethod<
|
|
|
1027
528
|
ListAccessTokensError,
|
|
1028
529
|
StackitOpContext
|
|
1029
530
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1030
|
-
input: ListAccessTokensRequest
|
|
1031
|
-
output: ListAccessTokensResponse
|
|
531
|
+
input: __S(16, __c2, 0) as any as S.Schema<ListAccessTokensRequest>,
|
|
532
|
+
output: __S(18, __c2, 2) as any as S.Schema<ListAccessTokensResponse>,
|
|
1032
533
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1033
534
|
protocol: StackitProtocol,
|
|
1034
535
|
retry: Retry.Retry,
|
|
@@ -1042,8 +543,8 @@ export const listDestinations: API.OperationMethod<
|
|
|
1042
543
|
ListDestinationsError,
|
|
1043
544
|
StackitOpContext
|
|
1044
545
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1045
|
-
input: ListDestinationsRequest
|
|
1046
|
-
output: ListDestinationsResponse
|
|
546
|
+
input: __S(24, __c3, 0) as any as S.Schema<ListDestinationsRequest>,
|
|
547
|
+
output: __S(26, __c3, 2) as any as S.Schema<ListDestinationsResponse>,
|
|
1047
548
|
errors: [BadRequest, UnknownStackitError],
|
|
1048
549
|
protocol: StackitProtocol,
|
|
1049
550
|
retry: Retry.Retry,
|
|
@@ -1057,8 +558,8 @@ export const listTelemetryRouters: API.OperationMethod<
|
|
|
1057
558
|
ListTelemetryRoutersError,
|
|
1058
559
|
StackitOpContext
|
|
1059
560
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1060
|
-
input: ListTelemetryRoutersRequest
|
|
1061
|
-
output: ListTelemetryRoutersResponse
|
|
561
|
+
input: __S(32, __c4, 0) as any as S.Schema<ListTelemetryRoutersRequest>,
|
|
562
|
+
output: __S(34, __c4, 2) as any as S.Schema<ListTelemetryRoutersResponse>,
|
|
1062
563
|
errors: [BadRequest, UnknownStackitError],
|
|
1063
564
|
protocol: StackitProtocol,
|
|
1064
565
|
retry: Retry.Retry,
|
|
@@ -1072,8 +573,8 @@ export const updateAccessToken: API.OperationMethod<
|
|
|
1072
573
|
UpdateAccessTokenError,
|
|
1073
574
|
StackitOpContext
|
|
1074
575
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1075
|
-
input: UpdateAccessTokenRequest
|
|
1076
|
-
output: UpdateAccessTokenResponse
|
|
576
|
+
input: __S(40, __c5, 0) as any as S.Schema<UpdateAccessTokenRequest>,
|
|
577
|
+
output: __S(152, __c19, 0) as any as S.Schema<UpdateAccessTokenResponse>,
|
|
1077
578
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1078
579
|
protocol: StackitProtocol,
|
|
1079
580
|
retry: Retry.Retry,
|
|
@@ -1087,8 +588,8 @@ export const updateDestination: API.OperationMethod<
|
|
|
1087
588
|
UpdateDestinationError,
|
|
1088
589
|
StackitOpContext
|
|
1089
590
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1090
|
-
input: UpdateDestinationRequest
|
|
1091
|
-
output: DestinationResponse
|
|
591
|
+
input: __S(48, __c6, 0) as any as S.Schema<UpdateDestinationRequest>,
|
|
592
|
+
output: __S(85, __c10, 5) as any as S.Schema<DestinationResponse>,
|
|
1092
593
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1093
594
|
protocol: StackitProtocol,
|
|
1094
595
|
retry: Retry.Retry,
|
|
@@ -1102,9 +603,483 @@ export const updateTelemetryRouter: API.OperationMethod<
|
|
|
1102
603
|
UpdateTelemetryRouterError,
|
|
1103
604
|
StackitOpContext
|
|
1104
605
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1105
|
-
input: UpdateTelemetryRouterRequest
|
|
1106
|
-
output: TelemetryRouterResponse
|
|
606
|
+
input: __S(56, __c7, 0) as any as S.Schema<UpdateTelemetryRouterRequest>,
|
|
607
|
+
output: __S(104, __c13, 0) as any as S.Schema<TelemetryRouterResponse>,
|
|
1107
608
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1108
609
|
protocol: StackitProtocol,
|
|
1109
610
|
retry: Retry.Retry,
|
|
1110
611
|
}));
|
|
612
|
+
|
|
613
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
614
|
+
function __c0(j: number): any {
|
|
615
|
+
switch (j) {
|
|
616
|
+
case 0:
|
|
617
|
+
return S.suspend(() =>
|
|
618
|
+
S.Struct({
|
|
619
|
+
projectId: S.String.pipe(T.Label()),
|
|
620
|
+
regionId: S.String.pipe(T.Label()),
|
|
621
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
622
|
+
destinationId: S.String.pipe(T.Label()),
|
|
623
|
+
}).pipe(
|
|
624
|
+
T.Http({
|
|
625
|
+
method: "GET",
|
|
626
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
627
|
+
code: 200,
|
|
628
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
629
|
+
}),
|
|
630
|
+
),
|
|
631
|
+
).annotate({ identifier: "GetDestinationRequest" });
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
function __c1(j: number): any {
|
|
635
|
+
switch (j) {
|
|
636
|
+
case 0:
|
|
637
|
+
return S.suspend(() =>
|
|
638
|
+
S.Struct({
|
|
639
|
+
projectId: S.String.pipe(T.Label()),
|
|
640
|
+
regionId: S.String.pipe(T.Label()),
|
|
641
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
642
|
+
}).pipe(
|
|
643
|
+
T.Http({
|
|
644
|
+
method: "GET",
|
|
645
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
646
|
+
code: 200,
|
|
647
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
648
|
+
}),
|
|
649
|
+
),
|
|
650
|
+
).annotate({ identifier: "GetTelemetryRouterRequest" });
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
function __c2(j: number): any {
|
|
654
|
+
switch (j) {
|
|
655
|
+
case 0:
|
|
656
|
+
return S.suspend(() =>
|
|
657
|
+
S.Struct({
|
|
658
|
+
projectId: S.String.pipe(T.Label()),
|
|
659
|
+
regionId: S.String.pipe(T.Label()),
|
|
660
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
661
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
662
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
663
|
+
}).pipe(
|
|
664
|
+
T.Http({
|
|
665
|
+
method: "GET",
|
|
666
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens",
|
|
667
|
+
code: 200,
|
|
668
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
669
|
+
}),
|
|
670
|
+
),
|
|
671
|
+
).annotate({ identifier: "ListAccessTokensRequest" });
|
|
672
|
+
case 1:
|
|
673
|
+
return S.Array(__S(152, __c19, 0));
|
|
674
|
+
case 2:
|
|
675
|
+
return S.suspend(() =>
|
|
676
|
+
S.Struct({
|
|
677
|
+
accessTokens: __S(17, __c2, 1),
|
|
678
|
+
nextPageToken: S.optional(S.String),
|
|
679
|
+
}),
|
|
680
|
+
).annotate({ identifier: "ListAccessTokensResponse" });
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
function __c3(j: number): any {
|
|
684
|
+
switch (j) {
|
|
685
|
+
case 0:
|
|
686
|
+
return S.suspend(() =>
|
|
687
|
+
S.Struct({
|
|
688
|
+
projectId: S.String.pipe(T.Label()),
|
|
689
|
+
regionId: S.String.pipe(T.Label()),
|
|
690
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
691
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
692
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
693
|
+
}).pipe(
|
|
694
|
+
T.Http({
|
|
695
|
+
method: "GET",
|
|
696
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations",
|
|
697
|
+
code: 200,
|
|
698
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
699
|
+
}),
|
|
700
|
+
),
|
|
701
|
+
).annotate({ identifier: "ListDestinationsRequest" });
|
|
702
|
+
case 1:
|
|
703
|
+
return S.Array(__S(85, __c10, 5));
|
|
704
|
+
case 2:
|
|
705
|
+
return S.suspend(() =>
|
|
706
|
+
S.Struct({
|
|
707
|
+
destinations: __S(25, __c3, 1),
|
|
708
|
+
nextPageToken: S.optional(S.String),
|
|
709
|
+
}),
|
|
710
|
+
).annotate({ identifier: "ListDestinationsResponse" });
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
function __c4(j: number): any {
|
|
714
|
+
switch (j) {
|
|
715
|
+
case 0:
|
|
716
|
+
return S.suspend(() =>
|
|
717
|
+
S.Struct({
|
|
718
|
+
projectId: S.String.pipe(T.Label()),
|
|
719
|
+
regionId: S.String.pipe(T.Label()),
|
|
720
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
721
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
722
|
+
}).pipe(
|
|
723
|
+
T.Http({
|
|
724
|
+
method: "GET",
|
|
725
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers",
|
|
726
|
+
code: 200,
|
|
727
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
728
|
+
}),
|
|
729
|
+
),
|
|
730
|
+
).annotate({ identifier: "ListTelemetryRoutersRequest" });
|
|
731
|
+
case 1:
|
|
732
|
+
return S.Array(__S(104, __c13, 0));
|
|
733
|
+
case 2:
|
|
734
|
+
return S.suspend(() =>
|
|
735
|
+
S.Struct({
|
|
736
|
+
nextPageToken: S.optional(S.String),
|
|
737
|
+
telemetryRouters: __S(33, __c4, 1),
|
|
738
|
+
}),
|
|
739
|
+
).annotate({ identifier: "ListTelemetryRoutersResponse" });
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function __c5(j: number): any {
|
|
743
|
+
switch (j) {
|
|
744
|
+
case 0:
|
|
745
|
+
return S.suspend(() =>
|
|
746
|
+
S.Struct({
|
|
747
|
+
projectId: S.String.pipe(T.Label()),
|
|
748
|
+
regionId: S.String.pipe(T.Label()),
|
|
749
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
750
|
+
accessTokenId: S.String.pipe(T.Label()),
|
|
751
|
+
description: S.optional(S.NullOr(S.String)),
|
|
752
|
+
displayName: S.optional(S.NullOr(S.String)),
|
|
753
|
+
}).pipe(
|
|
754
|
+
T.Http({
|
|
755
|
+
method: "PUT",
|
|
756
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
757
|
+
code: 200,
|
|
758
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
759
|
+
}),
|
|
760
|
+
),
|
|
761
|
+
).annotate({ identifier: "UpdateAccessTokenRequest" });
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
function __c6(j: number): any {
|
|
765
|
+
switch (j) {
|
|
766
|
+
case 0:
|
|
767
|
+
return S.suspend(() =>
|
|
768
|
+
S.Struct({
|
|
769
|
+
projectId: S.String.pipe(T.Label()),
|
|
770
|
+
regionId: S.String.pipe(T.Label()),
|
|
771
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
772
|
+
destinationId: S.String.pipe(T.Label()),
|
|
773
|
+
config: S.optional(__S(84, __c10, 4)),
|
|
774
|
+
description: S.optional(S.String),
|
|
775
|
+
displayName: S.optional(S.String),
|
|
776
|
+
}).pipe(
|
|
777
|
+
T.Http({
|
|
778
|
+
method: "PUT",
|
|
779
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
780
|
+
code: 200,
|
|
781
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
782
|
+
}),
|
|
783
|
+
),
|
|
784
|
+
).annotate({ identifier: "UpdateDestinationRequest" });
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
function __c7(j: number): any {
|
|
788
|
+
switch (j) {
|
|
789
|
+
case 0:
|
|
790
|
+
return S.suspend(() =>
|
|
791
|
+
S.Struct({
|
|
792
|
+
projectId: S.String.pipe(T.Label()),
|
|
793
|
+
regionId: S.String.pipe(T.Label()),
|
|
794
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
795
|
+
description: S.optional(S.String),
|
|
796
|
+
displayName: S.optional(S.String),
|
|
797
|
+
filter: S.optional(__S(91, __c11, 3)),
|
|
798
|
+
}).pipe(
|
|
799
|
+
T.Http({
|
|
800
|
+
method: "PUT",
|
|
801
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
802
|
+
code: 200,
|
|
803
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
804
|
+
}),
|
|
805
|
+
),
|
|
806
|
+
).annotate({ identifier: "UpdateTelemetryRouterRequest" });
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
function __c8(j: number): any {
|
|
810
|
+
switch (j) {
|
|
811
|
+
case 0:
|
|
812
|
+
return S.suspend(() =>
|
|
813
|
+
S.Struct({
|
|
814
|
+
projectId: S.String.pipe(T.Label()),
|
|
815
|
+
regionId: S.String.pipe(T.Label()),
|
|
816
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
817
|
+
description: S.optional(S.String),
|
|
818
|
+
displayName: S.String,
|
|
819
|
+
ttl: S.optional(S.NullOr(S.Number)),
|
|
820
|
+
}).pipe(
|
|
821
|
+
T.Http({
|
|
822
|
+
method: "POST",
|
|
823
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens",
|
|
824
|
+
code: 200,
|
|
825
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
826
|
+
}),
|
|
827
|
+
),
|
|
828
|
+
).annotate({ identifier: "CreateAccessTokenRequest" });
|
|
829
|
+
case 1:
|
|
830
|
+
return S.suspend(() =>
|
|
831
|
+
S.Struct({
|
|
832
|
+
creatorId: S.String,
|
|
833
|
+
description: S.optional(S.String),
|
|
834
|
+
displayName: S.String,
|
|
835
|
+
expirationTime: S.optional(S.NullOr(S.String)),
|
|
836
|
+
id: S.String,
|
|
837
|
+
status: S.String,
|
|
838
|
+
accessToken: S.String.pipe(T.SensitiveValue({})),
|
|
839
|
+
}),
|
|
840
|
+
).annotate({ identifier: "CreateAccessTokenResponse" });
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
function __c9(j: number): any {
|
|
844
|
+
switch (j) {
|
|
845
|
+
case 0:
|
|
846
|
+
return S.suspend(() =>
|
|
847
|
+
S.Struct({
|
|
848
|
+
projectId: S.String.pipe(T.Label()),
|
|
849
|
+
regionId: S.String.pipe(T.Label()),
|
|
850
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
851
|
+
config: __S(84, __c10, 4),
|
|
852
|
+
description: S.optional(S.String),
|
|
853
|
+
displayName: S.String,
|
|
854
|
+
}).pipe(
|
|
855
|
+
T.Http({
|
|
856
|
+
method: "POST",
|
|
857
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations",
|
|
858
|
+
code: 200,
|
|
859
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
860
|
+
}),
|
|
861
|
+
),
|
|
862
|
+
).annotate({ identifier: "CreateDestinationRequest" });
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
function __c10(j: number): any {
|
|
866
|
+
switch (j) {
|
|
867
|
+
case 0:
|
|
868
|
+
return S.suspend(() =>
|
|
869
|
+
S.Struct({
|
|
870
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
871
|
+
username: S.String,
|
|
872
|
+
}),
|
|
873
|
+
).annotate({ identifier: "DestinationConfigOpenTelemetryBasicAuth" });
|
|
874
|
+
case 1:
|
|
875
|
+
return S.suspend(() =>
|
|
876
|
+
S.Struct({
|
|
877
|
+
basicAuth: S.optional(__S(80, __c10, 0)),
|
|
878
|
+
bearerToken: S.optional(S.String),
|
|
879
|
+
uri: S.String,
|
|
880
|
+
}),
|
|
881
|
+
).annotate({ identifier: "DestinationConfigOpenTelemetry" });
|
|
882
|
+
case 2:
|
|
883
|
+
return S.suspend(() =>
|
|
884
|
+
S.Struct({
|
|
885
|
+
id: S.String,
|
|
886
|
+
secret: S.String.pipe(T.SensitiveValue({})),
|
|
887
|
+
}),
|
|
888
|
+
).annotate({ identifier: "DestinationConfigS3AccessKey" });
|
|
889
|
+
case 3:
|
|
890
|
+
return S.suspend(() =>
|
|
891
|
+
S.Struct({
|
|
892
|
+
accessKey: S.optional(__S(82, __c10, 2)),
|
|
893
|
+
bucket: S.String,
|
|
894
|
+
endpoint: S.String,
|
|
895
|
+
}),
|
|
896
|
+
).annotate({ identifier: "DestinationConfigS3" });
|
|
897
|
+
case 4:
|
|
898
|
+
return S.suspend(() =>
|
|
899
|
+
S.Struct({
|
|
900
|
+
configType: S.String,
|
|
901
|
+
filter: S.optional(__S(91, __c11, 3)),
|
|
902
|
+
openTelemetry: S.optional(__S(81, __c10, 1)),
|
|
903
|
+
s3: S.optional(__S(83, __c10, 3)),
|
|
904
|
+
}),
|
|
905
|
+
).annotate({ identifier: "DestinationConfig" });
|
|
906
|
+
case 5:
|
|
907
|
+
return S.suspend(() =>
|
|
908
|
+
S.Struct({
|
|
909
|
+
config: __S(84, __c10, 4),
|
|
910
|
+
creationTime: S.String,
|
|
911
|
+
credentialType: S.String,
|
|
912
|
+
description: S.optional(S.String),
|
|
913
|
+
displayName: S.String,
|
|
914
|
+
id: S.String,
|
|
915
|
+
status: S.String,
|
|
916
|
+
}),
|
|
917
|
+
).annotate({ identifier: "DestinationResponse" });
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
function __c11(j: number): any {
|
|
921
|
+
switch (j) {
|
|
922
|
+
case 0:
|
|
923
|
+
return S.Array(S.String);
|
|
924
|
+
case 1:
|
|
925
|
+
return S.suspend(() =>
|
|
926
|
+
S.Struct({
|
|
927
|
+
key: S.String,
|
|
928
|
+
level: S.String,
|
|
929
|
+
matcher: S.String,
|
|
930
|
+
values: __S(88, __c11, 0),
|
|
931
|
+
}),
|
|
932
|
+
).annotate({ identifier: "ConfigFilterAttributes" });
|
|
933
|
+
case 2:
|
|
934
|
+
return S.Array(__S(89, __c11, 1));
|
|
935
|
+
case 3:
|
|
936
|
+
return S.suspend(() =>
|
|
937
|
+
S.Struct({
|
|
938
|
+
attributes: __S(90, __c11, 2),
|
|
939
|
+
disabled: S.optional(S.Boolean),
|
|
940
|
+
}),
|
|
941
|
+
).annotate({ identifier: "ConfigFilter" });
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
function __c12(j: number): any {
|
|
945
|
+
switch (j) {
|
|
946
|
+
case 0:
|
|
947
|
+
return S.suspend(() =>
|
|
948
|
+
S.Struct({
|
|
949
|
+
projectId: S.String.pipe(T.Label()),
|
|
950
|
+
regionId: S.String.pipe(T.Label()),
|
|
951
|
+
description: S.optional(S.String),
|
|
952
|
+
displayName: S.String,
|
|
953
|
+
filter: S.optional(__S(91, __c11, 3)),
|
|
954
|
+
}).pipe(
|
|
955
|
+
T.Http({
|
|
956
|
+
method: "POST",
|
|
957
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers",
|
|
958
|
+
code: 200,
|
|
959
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
960
|
+
}),
|
|
961
|
+
),
|
|
962
|
+
).annotate({ identifier: "CreateTelemetryRouterRequest" });
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
function __c13(j: number): any {
|
|
966
|
+
switch (j) {
|
|
967
|
+
case 0:
|
|
968
|
+
return S.suspend(() =>
|
|
969
|
+
S.Struct({
|
|
970
|
+
creationTime: S.String,
|
|
971
|
+
description: S.optional(S.String),
|
|
972
|
+
displayName: S.String,
|
|
973
|
+
filter: S.optional(__S(91, __c11, 3)),
|
|
974
|
+
id: S.String,
|
|
975
|
+
status: S.String,
|
|
976
|
+
uri: S.String,
|
|
977
|
+
}),
|
|
978
|
+
).annotate({ identifier: "TelemetryRouterResponse" });
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
function __c14(j: number): any {
|
|
982
|
+
switch (j) {
|
|
983
|
+
case 0:
|
|
984
|
+
return S.suspend(() =>
|
|
985
|
+
S.Struct({
|
|
986
|
+
projectId: S.String.pipe(T.Label()),
|
|
987
|
+
regionId: S.String.pipe(T.Label()),
|
|
988
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
989
|
+
accessTokenId: S.String.pipe(T.Label()),
|
|
990
|
+
}).pipe(
|
|
991
|
+
T.Http({
|
|
992
|
+
method: "DELETE",
|
|
993
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
994
|
+
code: 200,
|
|
995
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
996
|
+
}),
|
|
997
|
+
),
|
|
998
|
+
).annotate({ identifier: "DeleteAccessTokenRequest" });
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
function __c15(j: number): any {
|
|
1002
|
+
switch (j) {
|
|
1003
|
+
case 0:
|
|
1004
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteAccessTokenResponse" });
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
function __c16(j: number): any {
|
|
1008
|
+
switch (j) {
|
|
1009
|
+
case 0:
|
|
1010
|
+
return S.suspend(() =>
|
|
1011
|
+
S.Struct({
|
|
1012
|
+
projectId: S.String.pipe(T.Label()),
|
|
1013
|
+
regionId: S.String.pipe(T.Label()),
|
|
1014
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
1015
|
+
destinationId: S.String.pipe(T.Label()),
|
|
1016
|
+
}).pipe(
|
|
1017
|
+
T.Http({
|
|
1018
|
+
method: "DELETE",
|
|
1019
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/destinations/{destinationId}",
|
|
1020
|
+
code: 200,
|
|
1021
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
1022
|
+
}),
|
|
1023
|
+
),
|
|
1024
|
+
).annotate({ identifier: "DeleteDestinationRequest" });
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
function __c17(j: number): any {
|
|
1028
|
+
switch (j) {
|
|
1029
|
+
case 0:
|
|
1030
|
+
return S.suspend(() =>
|
|
1031
|
+
S.Struct({
|
|
1032
|
+
projectId: S.String.pipe(T.Label()),
|
|
1033
|
+
regionId: S.String.pipe(T.Label()),
|
|
1034
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
1035
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
1036
|
+
}).pipe(
|
|
1037
|
+
T.Http({
|
|
1038
|
+
method: "DELETE",
|
|
1039
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}",
|
|
1040
|
+
code: 200,
|
|
1041
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
1042
|
+
}),
|
|
1043
|
+
),
|
|
1044
|
+
).annotate({ identifier: "DeleteTelemetryRouterRequest" });
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
function __c18(j: number): any {
|
|
1048
|
+
switch (j) {
|
|
1049
|
+
case 0:
|
|
1050
|
+
return S.suspend(() =>
|
|
1051
|
+
S.Struct({
|
|
1052
|
+
projectId: S.String.pipe(T.Label()),
|
|
1053
|
+
regionId: S.String.pipe(T.Label()),
|
|
1054
|
+
telemetryRouterId: S.String.pipe(T.Label()),
|
|
1055
|
+
accessTokenId: S.String.pipe(T.Label()),
|
|
1056
|
+
}).pipe(
|
|
1057
|
+
T.Http({
|
|
1058
|
+
method: "GET",
|
|
1059
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/telemetry-routers/{telemetryRouterId}/access-tokens/{accessTokenId}",
|
|
1060
|
+
code: 200,
|
|
1061
|
+
baseUrl: "https://telemetry-router.api.stackit.cloud",
|
|
1062
|
+
}),
|
|
1063
|
+
),
|
|
1064
|
+
).annotate({ identifier: "GetAccessTokenRequest" });
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
function __c19(j: number): any {
|
|
1068
|
+
switch (j) {
|
|
1069
|
+
case 0:
|
|
1070
|
+
return S.suspend(() =>
|
|
1071
|
+
S.Struct({
|
|
1072
|
+
creatorId: S.String,
|
|
1073
|
+
description: S.optional(S.String),
|
|
1074
|
+
displayName: S.String,
|
|
1075
|
+
expirationTime: S.optional(S.NullOr(S.String)),
|
|
1076
|
+
id: S.String,
|
|
1077
|
+
status: S.String,
|
|
1078
|
+
}),
|
|
1079
|
+
).annotate({ identifier: "GetAccessTokenResponse2" });
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1083
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1084
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1085
|
+
}
|