@distilled.cloud/stackit 1.0.0-rc.17 → 1.0.0-rc.19
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/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/alb.d.ts +134 -132
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +27 -26
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +51 -51
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +32 -31
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +15 -15
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -1
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +47 -46
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +24 -1
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +129 -129
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +30 -29
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +40 -40
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -1
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +15 -15
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -1
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +218 -161
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -38
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +49 -34
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -1
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +21 -21
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +28 -1
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +104 -101
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +27 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +120 -29
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +38 -33
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +430 -415
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +180 -179
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/identity.d.ts +204 -0
- package/lib/services/identity.d.ts.map +1 -0
- package/lib/services/identity.js +2 -0
- package/lib/services/identity.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/intake.d.ts +58 -58
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +28 -27
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +13 -13
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +40 -39
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +14 -14
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +1 -1
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +128 -126
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +28 -27
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +96 -45
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +35 -31
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +78 -24
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -32
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mailout.d.ts +476 -0
- package/lib/services/mailout.d.ts.map +1 -0
- package/lib/services/mailout.js +33 -0
- package/lib/services/mailout.js.map +1 -0
- package/lib/services/mariadb.d.ts +81 -30
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +36 -32
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +33 -33
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -1
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +25 -25
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -1
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +142 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +41 -40
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +6 -6
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +37 -36
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +362 -362
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +158 -157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +87 -36
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +36 -32
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +334 -278
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +30 -29
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +59 -55
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +47 -45
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +36 -36
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +36 -35
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +92 -41
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +37 -33
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +26 -22
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -1
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +56 -56
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +35 -34
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +42 -42
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -1
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +349 -213
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +32 -23
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +24 -24
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +39 -38
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +21 -21
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +41 -40
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +31 -31
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +28 -27
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +17 -17
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -1
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +30 -30
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +29 -28
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +22 -21
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -1
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +151 -141
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -44
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +121 -110
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +25 -24
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +47 -47
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +45 -44
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +39 -39
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +25 -24
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +80 -38
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -32
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +116 -41
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +31 -27
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +55 -54
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -1
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +94 -43
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +36 -32
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +150 -142
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +42 -41
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +65 -65
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +26 -25
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +1 -1
- package/lib/services.lazy/alb_waf.js +1 -1
- package/lib/services.lazy/automation.js +4 -1
- package/lib/services.lazy/cdn.js +1 -1
- package/lib/services.lazy/dns.js +2 -2
- package/lib/services.lazy/edge.js +4 -1
- package/lib/services.lazy/functions.js +3 -1
- package/lib/services.lazy/git.js +2 -2
- package/lib/services.lazy/iaas.js +1 -1
- package/lib/services.lazy/identity.js +1 -0
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/intake.js +1 -1
- package/lib/services.lazy/kms.js +1 -1
- package/lib/services.lazy/load_balancer.js +1 -1
- package/lib/services.lazy/logme.js +2 -2
- package/lib/services.lazy/logs.js +1 -1
- package/lib/services.lazy/mailout.js +4 -0
- package/lib/services.lazy/mariadb.js +2 -2
- package/lib/services.lazy/mongodb_flex.js +1 -1
- package/lib/services.lazy/object_storage.js +1 -1
- package/lib/services.lazy/observability.js +1 -1
- package/lib/services.lazy/opensearch.js +2 -2
- package/lib/services.lazy/pim.js +1 -1
- package/lib/services.lazy/postgres_flex.js +1 -1
- package/lib/services.lazy/pubsub.js +1 -1
- package/lib/services.lazy/rabbitmq.js +2 -2
- package/lib/services.lazy/resource_manager.js +1 -1
- package/lib/services.lazy/sca.js +2 -2
- package/lib/services.lazy/scf.js +1 -1
- package/lib/services.lazy/secrets_manager.js +1 -1
- package/lib/services.lazy/server_backup.js +1 -1
- package/lib/services.lazy/service_account.js +1 -1
- package/lib/services.lazy/sfs.js +2 -2
- package/lib/services.lazy/ske.js +1 -1
- package/lib/services.lazy/sqlserverflex.js +1 -1
- package/lib/services.lazy/stackit_marketplace.js +1 -1
- package/lib/services.lazy/telemetry_link.js +1 -1
- package/lib/services.lazy/telemetry_router.js +2 -2
- package/lib/services.lazy/valkey.js +2 -2
- package/lib/services.lazy/vpn.js +1 -1
- package/lib/services.lazy/workflows.js +1 -1
- package/package.json +6 -5
- package/src/credentials.ts +1 -2
- package/src/index.ts +3 -3
- package/src/pagination.ts +7 -3
- package/src/protocol.ts +22 -20
- package/src/services/alb.ts +174 -132
- package/src/services/alb_waf.ts +96 -51
- package/src/services/authorization.ts +50 -15
- package/src/services/automation.ts +86 -49
- package/src/services/cdn.ts +172 -129
- package/src/services/certificates.ts +63 -40
- package/src/services/cost.ts +34 -15
- package/src/services/dns.ts +552 -269
- package/src/services/dremio.ts +187 -118
- package/src/services/edge.ts +62 -21
- package/src/services/functions.ts +217 -170
- package/src/services/git.ts +407 -108
- package/src/services/iaas.ts +723 -415
- package/src/services/identity.ts +625 -0
- package/src/services/index.ts +2 -0
- package/src/services/intake.ts +101 -58
- package/src/services/kms.ts +76 -13
- package/src/services/lb_ip_lists.ts +37 -14
- package/src/services/load_balancer.ts +168 -126
- package/src/services/logme.ts +345 -122
- package/src/services/logs.ts +172 -72
- package/src/services/mailout.ts +1277 -0
- package/src/services/mariadb.ts +328 -105
- package/src/services/model_experiments.ts +66 -33
- package/src/services/model_serving.ts +54 -25
- package/src/services/mongodb_flex.ts +205 -137
- package/src/services/object_storage.ts +61 -6
- package/src/services/observability.ts +594 -362
- package/src/services/opensearch.ts +337 -114
- package/src/services/pim.ts +403 -278
- package/src/services/postgres_flex.ts +258 -179
- package/src/services/pubsub.ts +85 -36
- package/src/services/rabbitmq.ts +348 -125
- package/src/services/registry.ts +55 -26
- package/src/services/resource_manager.ts +102 -57
- package/src/services/run_command.ts +65 -42
- package/src/services/sca.ts +769 -371
- package/src/services/scf.ts +83 -24
- package/src/services/secrets_manager.ts +87 -22
- package/src/services/server_backup.ts +76 -31
- package/src/services/server_update.ts +54 -17
- package/src/services/service_account.ts +75 -30
- package/src/services/service_enablement.ts +49 -24
- package/src/services/sfs.ts +469 -395
- package/src/services/ske.ts +299 -228
- package/src/services/sqlserverflex.ts +116 -47
- package/src/services/stackit_marketplace.ts +78 -39
- package/src/services/telemetry_link.ts +191 -81
- package/src/services/telemetry_router.ts +326 -94
- package/src/services/ufw.ts +85 -54
- package/src/services/valkey.ts +341 -118
- package/src/services/vpn.ts +213 -142
- package/src/services/workflows.ts +106 -65
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { StackitOpError, StackitOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "stackit-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "STACKIT",
|
|
23
|
+
service: "ServerUpdate",
|
|
24
|
+
labels: "stackit",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export class BadRequest
|
|
16
29
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
30
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
@@ -46,16 +59,16 @@ export interface CreateUpdateRequest {
|
|
|
46
59
|
region: string;
|
|
47
60
|
/** server id */
|
|
48
61
|
serverId: string;
|
|
49
|
-
backupBeforeUpdate?: boolean;
|
|
62
|
+
backupBeforeUpdate?: boolean | undefined;
|
|
50
63
|
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
51
64
|
maintenanceWindow: number;
|
|
52
65
|
}
|
|
53
66
|
export interface Update {
|
|
54
|
-
endDate?: string;
|
|
55
|
-
failReason?: string;
|
|
56
|
-
failedUpdates?: number;
|
|
67
|
+
endDate?: string | undefined;
|
|
68
|
+
failReason?: string | undefined;
|
|
69
|
+
failedUpdates?: number | undefined;
|
|
57
70
|
id: number;
|
|
58
|
-
installedUpdates?: number;
|
|
71
|
+
installedUpdates?: number | undefined;
|
|
59
72
|
startDate: string;
|
|
60
73
|
status: string;
|
|
61
74
|
}
|
|
@@ -109,7 +122,7 @@ export interface EnableServiceResourceRequest {
|
|
|
109
122
|
region: string;
|
|
110
123
|
/** server id */
|
|
111
124
|
serverId: string;
|
|
112
|
-
updatePolicyId?: string;
|
|
125
|
+
updatePolicyId?: string | undefined;
|
|
113
126
|
}
|
|
114
127
|
export interface EnableServiceResourceResponse {}
|
|
115
128
|
export interface GetServiceResourceRequest {
|
|
@@ -121,7 +134,7 @@ export interface GetServiceResourceRequest {
|
|
|
121
134
|
serverId: string;
|
|
122
135
|
}
|
|
123
136
|
export interface GetUpdateServiceResponse {
|
|
124
|
-
enabled?: boolean;
|
|
137
|
+
enabled?: boolean | undefined;
|
|
125
138
|
}
|
|
126
139
|
export interface GetUpdateRequest {
|
|
127
140
|
/** project id */
|
|
@@ -157,19 +170,19 @@ export interface ListUpdatePoliciesRequest {
|
|
|
157
170
|
projectId: string;
|
|
158
171
|
}
|
|
159
172
|
export interface UpdatePolicy {
|
|
160
|
-
default?: boolean;
|
|
161
|
-
description?: string;
|
|
162
|
-
enabled?: boolean;
|
|
163
|
-
id?: string;
|
|
173
|
+
default?: boolean | undefined;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
enabled?: boolean | undefined;
|
|
176
|
+
id?: string | undefined;
|
|
164
177
|
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
165
|
-
maintenanceWindow?: number;
|
|
166
|
-
name?: string;
|
|
178
|
+
maintenanceWindow?: number | undefined;
|
|
179
|
+
name?: string | undefined;
|
|
167
180
|
/** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
|
|
168
|
-
rrule?: string;
|
|
181
|
+
rrule?: string | undefined;
|
|
169
182
|
}
|
|
170
183
|
export type GetUpdatePoliciesResponseItemsList = Array<UpdatePolicy>;
|
|
171
184
|
export interface GetUpdatePoliciesResponse {
|
|
172
|
-
items?: GetUpdatePoliciesResponseItemsList;
|
|
185
|
+
items?: GetUpdatePoliciesResponseItemsList | undefined;
|
|
173
186
|
}
|
|
174
187
|
export interface ListUpdatesRequest {
|
|
175
188
|
/** project id */
|
|
@@ -181,7 +194,7 @@ export interface ListUpdatesRequest {
|
|
|
181
194
|
}
|
|
182
195
|
export type GetUpdatesListResponseItemsList = Array<Update>;
|
|
183
196
|
export interface GetUpdatesListResponse {
|
|
184
|
-
items?: GetUpdatesListResponseItemsList;
|
|
197
|
+
items?: GetUpdatesListResponseItemsList | undefined;
|
|
185
198
|
}
|
|
186
199
|
export interface ListUpdateSchedulesRequest {
|
|
187
200
|
/** project id */
|
|
@@ -202,7 +215,7 @@ export interface UpdateSchedule {
|
|
|
202
215
|
}
|
|
203
216
|
export type GetUpdateSchedulesResponseItemsList = Array<UpdateSchedule>;
|
|
204
217
|
export interface GetUpdateSchedulesResponse {
|
|
205
|
-
items?: GetUpdateSchedulesResponseItemsList;
|
|
218
|
+
items?: GetUpdateSchedulesResponseItemsList | undefined;
|
|
206
219
|
}
|
|
207
220
|
export interface UpdateUpdateScheduleRequest {
|
|
208
221
|
/** project id */
|
|
@@ -242,6 +255,8 @@ export const createUpdate: API.OperationMethod<
|
|
|
242
255
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
243
256
|
protocol: StackitProtocol,
|
|
244
257
|
retry: Retry.Retry,
|
|
258
|
+
telemetry: TELEMETRY,
|
|
259
|
+
span: "CreateUpdate",
|
|
245
260
|
}));
|
|
246
261
|
|
|
247
262
|
export type CreateUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
@@ -257,6 +272,8 @@ export const createUpdateSchedule: API.OperationMethod<
|
|
|
257
272
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
258
273
|
protocol: StackitProtocol,
|
|
259
274
|
retry: Retry.Retry,
|
|
275
|
+
telemetry: TELEMETRY,
|
|
276
|
+
span: "CreateUpdateSchedule",
|
|
260
277
|
}));
|
|
261
278
|
|
|
262
279
|
export type DeleteUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
@@ -272,6 +289,8 @@ export const deleteUpdateSchedule: API.OperationMethod<
|
|
|
272
289
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
273
290
|
protocol: StackitProtocol,
|
|
274
291
|
retry: Retry.Retry,
|
|
292
|
+
telemetry: TELEMETRY,
|
|
293
|
+
span: "DeleteUpdateSchedule",
|
|
275
294
|
}));
|
|
276
295
|
|
|
277
296
|
export type DisableServiceResourceError = BadRequest | NotFound | StackitOpError;
|
|
@@ -287,6 +306,8 @@ export const disableServiceResource: API.OperationMethod<
|
|
|
287
306
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
288
307
|
protocol: StackitProtocol,
|
|
289
308
|
retry: Retry.Retry,
|
|
309
|
+
telemetry: TELEMETRY,
|
|
310
|
+
span: "DisableServiceResource",
|
|
290
311
|
}));
|
|
291
312
|
|
|
292
313
|
export type EnableServiceResourceError = BadRequest | NotFound | StackitOpError;
|
|
@@ -302,6 +323,8 @@ export const enableServiceResource: API.OperationMethod<
|
|
|
302
323
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
303
324
|
protocol: StackitProtocol,
|
|
304
325
|
retry: Retry.Retry,
|
|
326
|
+
telemetry: TELEMETRY,
|
|
327
|
+
span: "EnableServiceResource",
|
|
305
328
|
}));
|
|
306
329
|
|
|
307
330
|
export type GetServiceResourceError = BadRequest | NotFound | StackitOpError;
|
|
@@ -317,6 +340,8 @@ export const getServiceResource: API.OperationMethod<
|
|
|
317
340
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
318
341
|
protocol: StackitProtocol,
|
|
319
342
|
retry: Retry.Retry,
|
|
343
|
+
telemetry: TELEMETRY,
|
|
344
|
+
span: "GetServiceResource",
|
|
320
345
|
}));
|
|
321
346
|
|
|
322
347
|
export type GetUpdateError = BadRequest | NotFound | StackitOpError;
|
|
@@ -332,6 +357,8 @@ export const getUpdate: API.OperationMethod<
|
|
|
332
357
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
333
358
|
protocol: StackitProtocol,
|
|
334
359
|
retry: Retry.Retry,
|
|
360
|
+
telemetry: TELEMETRY,
|
|
361
|
+
span: "GetUpdate",
|
|
335
362
|
}));
|
|
336
363
|
|
|
337
364
|
export type GetUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
@@ -347,6 +374,8 @@ export const getUpdateSchedule: API.OperationMethod<
|
|
|
347
374
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
348
375
|
protocol: StackitProtocol,
|
|
349
376
|
retry: Retry.Retry,
|
|
377
|
+
telemetry: TELEMETRY,
|
|
378
|
+
span: "GetUpdateSchedule",
|
|
350
379
|
}));
|
|
351
380
|
|
|
352
381
|
export type ListUpdatePoliciesError = BadRequest | NotFound | StackitOpError;
|
|
@@ -362,6 +391,8 @@ export const listUpdatePolicies: API.OperationMethod<
|
|
|
362
391
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
363
392
|
protocol: StackitProtocol,
|
|
364
393
|
retry: Retry.Retry,
|
|
394
|
+
telemetry: TELEMETRY,
|
|
395
|
+
span: "ListUpdatePolicies",
|
|
365
396
|
}));
|
|
366
397
|
|
|
367
398
|
export type ListUpdatesError = BadRequest | NotFound | StackitOpError;
|
|
@@ -377,6 +408,8 @@ export const listUpdates: API.OperationMethod<
|
|
|
377
408
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
378
409
|
protocol: StackitProtocol,
|
|
379
410
|
retry: Retry.Retry,
|
|
411
|
+
telemetry: TELEMETRY,
|
|
412
|
+
span: "ListUpdates",
|
|
380
413
|
}));
|
|
381
414
|
|
|
382
415
|
export type ListUpdateSchedulesError = BadRequest | NotFound | StackitOpError;
|
|
@@ -392,6 +425,8 @@ export const listUpdateSchedules: API.OperationMethod<
|
|
|
392
425
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
393
426
|
protocol: StackitProtocol,
|
|
394
427
|
retry: Retry.Retry,
|
|
428
|
+
telemetry: TELEMETRY,
|
|
429
|
+
span: "ListUpdateSchedules",
|
|
395
430
|
}));
|
|
396
431
|
|
|
397
432
|
export type UpdateUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
@@ -407,6 +442,8 @@ export const updateUpdateSchedule: API.OperationMethod<
|
|
|
407
442
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
408
443
|
protocol: StackitProtocol,
|
|
409
444
|
retry: Retry.Retry,
|
|
445
|
+
telemetry: TELEMETRY,
|
|
446
|
+
span: "UpdateUpdateSchedule",
|
|
410
447
|
}));
|
|
411
448
|
|
|
412
449
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
@@ -13,6 +13,19 @@ const __s: any[] = [];
|
|
|
13
13
|
|
|
14
14
|
export type { StackitOpError, StackitOpContext };
|
|
15
15
|
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "stackit-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "STACKIT",
|
|
24
|
+
service: "ServiceAccount",
|
|
25
|
+
labels: "stackit",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
16
29
|
export class BadRequest
|
|
17
30
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
31
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
@@ -51,11 +64,11 @@ export class NotFound
|
|
|
51
64
|
|
|
52
65
|
export interface CreateFederatedIdentityProviderRequestAssertionsItem {
|
|
53
66
|
/** Item to compare */
|
|
54
|
-
item?: string;
|
|
67
|
+
item?: string | undefined;
|
|
55
68
|
/** Operator for the comparison */
|
|
56
|
-
operator?: string;
|
|
69
|
+
operator?: string | undefined;
|
|
57
70
|
/** Value which the item is compared to */
|
|
58
|
-
value?: string;
|
|
71
|
+
value?: string | undefined;
|
|
59
72
|
}
|
|
60
73
|
/** list of assertions of the federated identity provider */
|
|
61
74
|
export type CreateFederatedIdentityProviderRequestAssertionsList =
|
|
@@ -66,7 +79,7 @@ export interface CreateFederatedIdentityProviderRequest {
|
|
|
66
79
|
/** The email of the service account. */
|
|
67
80
|
serviceAccountEmail: string;
|
|
68
81
|
/** list of assertions of the federated identity provider */
|
|
69
|
-
assertions?: CreateFederatedIdentityProviderRequestAssertionsList;
|
|
82
|
+
assertions?: CreateFederatedIdentityProviderRequestAssertionsList | undefined;
|
|
70
83
|
/** Issuer of the federated identity provider. */
|
|
71
84
|
issuer: string;
|
|
72
85
|
/** Unique name used as identifier of the federated identity provider. */
|
|
@@ -89,7 +102,7 @@ export interface FederatedIdentityProvider {
|
|
|
89
102
|
/** Creation time of the federated identity provider. */
|
|
90
103
|
createdAt: string;
|
|
91
104
|
/** Unique ID of the federated identity provider. */
|
|
92
|
-
id?: string;
|
|
105
|
+
id?: string | undefined;
|
|
93
106
|
/** Issuer of the federated identity provider. */
|
|
94
107
|
issuer: string;
|
|
95
108
|
/** Unique name of the federated identity provider. */
|
|
@@ -121,11 +134,11 @@ export interface CreateServiceAccountKeyRequest {
|
|
|
121
134
|
/** The email of the service account. */
|
|
122
135
|
serviceAccountEmail: string;
|
|
123
136
|
/** Optional, key algorithm of the generated key-pair. Used only if publicKey attribute is not specified, otherwise the algorithm is derived from the public key. */
|
|
124
|
-
algorithm?: CreateServiceAccountKeyRequestAlgorithm | (string & {});
|
|
137
|
+
algorithm?: CreateServiceAccountKeyRequestAlgorithm | (string & {}) | undefined;
|
|
125
138
|
/** Optional, public key part of the user generated RSA key-pair wrapped in a [X.509 v3 certificate](https://www.rfc-editor.org/rfc/rfc5280) */
|
|
126
|
-
publicKey?: string;
|
|
139
|
+
publicKey?: string | undefined;
|
|
127
140
|
/** Optional, date of key expiration. When omitted, key is valid until deleted */
|
|
128
|
-
validUntil?: string;
|
|
141
|
+
validUntil?: string | undefined;
|
|
129
142
|
}
|
|
130
143
|
export interface CreateServiceAccountKeyResponseCredentials {
|
|
131
144
|
/** Audience - service account API URL */
|
|
@@ -135,11 +148,11 @@ export interface CreateServiceAccountKeyResponseCredentials {
|
|
|
135
148
|
/** Key id to use */
|
|
136
149
|
kid: string;
|
|
137
150
|
/** Private key. Only present, if the service account API was generating the key. Not recoverable later. */
|
|
138
|
-
privateKey?: string | Redacted.Redacted<string
|
|
151
|
+
privateKey?: string | Redacted.Redacted<string> | undefined;
|
|
139
152
|
/** Service account id */
|
|
140
153
|
sub: string;
|
|
141
154
|
/** Endpoint used to obtain access tokens for the service account. */
|
|
142
|
-
tokenEndpoint?: string;
|
|
155
|
+
tokenEndpoint?: string | undefined;
|
|
143
156
|
}
|
|
144
157
|
export type CreateServiceAccountKeyResponseKeyAlgorithm = "RSA_2048" | "RSA_4096";
|
|
145
158
|
export type CreateServiceAccountKeyResponseKeyOrigin = "USER_PROVIDED" | "GENERATED";
|
|
@@ -157,7 +170,7 @@ export interface CreateServiceAccountKeyResponse {
|
|
|
157
170
|
/** Public key, that was provider, or was generated by the service account API */
|
|
158
171
|
publicKey: string;
|
|
159
172
|
/** If specified, the timestamp until the key is active. May be null */
|
|
160
|
-
validUntil?: string;
|
|
173
|
+
validUntil?: string | undefined;
|
|
161
174
|
}
|
|
162
175
|
/** Always use URL encoded values. E.g. urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer */
|
|
163
176
|
export type CreateShortLivedAccessTokenRequestGrantType =
|
|
@@ -165,11 +178,11 @@ export type CreateShortLivedAccessTokenRequestGrantType =
|
|
|
165
178
|
| "refresh_token";
|
|
166
179
|
export interface CreateShortLivedAccessTokenRequest {
|
|
167
180
|
/** The self signed JWT. Must be given when grant_type is urn:ietf:params:oauth:grant-type:jwt-bearer */
|
|
168
|
-
assertion?: string;
|
|
181
|
+
assertion?: string | undefined;
|
|
169
182
|
/** Always use URL encoded values. E.g. urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer */
|
|
170
183
|
grant_type: CreateShortLivedAccessTokenRequestGrantType | (string & {});
|
|
171
184
|
/** Refresh token provided by a previous call with a self signed token. Must be given when grant_type is refresh_token */
|
|
172
|
-
refresh_token?: string | Redacted.Redacted<string
|
|
185
|
+
refresh_token?: string | Redacted.Redacted<string> | undefined;
|
|
173
186
|
}
|
|
174
187
|
export type CreateShortLivedAccessTokenResponseTokenType = "Bearer";
|
|
175
188
|
export interface CreateShortLivedAccessTokenResponse {
|
|
@@ -221,17 +234,17 @@ export interface GetJWKSRequest {
|
|
|
221
234
|
}
|
|
222
235
|
/** JSON Web Key according to https://datatracker.ietf.org/doc/html/rfc7517#section-4 */
|
|
223
236
|
export interface JWK {
|
|
224
|
-
alg?: string;
|
|
237
|
+
alg?: string | undefined;
|
|
225
238
|
e: string;
|
|
226
|
-
kid?: string;
|
|
227
|
-
ks?: string;
|
|
239
|
+
kid?: string | undefined;
|
|
240
|
+
ks?: string | undefined;
|
|
228
241
|
n: string;
|
|
229
|
-
ops?: string;
|
|
230
|
-
use?: string;
|
|
231
|
-
x5c?: string;
|
|
232
|
-
x5t?: string;
|
|
233
|
-
x5t256?: string;
|
|
234
|
-
x5u?: string;
|
|
242
|
+
ops?: string | undefined;
|
|
243
|
+
use?: string | undefined;
|
|
244
|
+
x5c?: string | undefined;
|
|
245
|
+
x5t?: string | undefined;
|
|
246
|
+
x5t256?: string | undefined;
|
|
247
|
+
x5u?: string | undefined;
|
|
235
248
|
}
|
|
236
249
|
export type JWKSKeysList = Array<JWK>;
|
|
237
250
|
export interface JWKS {
|
|
@@ -246,7 +259,7 @@ export interface GetServiceAccountKeyRequest {
|
|
|
246
259
|
/** ID of the key. */
|
|
247
260
|
keyId: string;
|
|
248
261
|
/** Requested format for the public key */
|
|
249
|
-
format?: GetServiceAccountKeyRequestFormat | (string & {});
|
|
262
|
+
format?: GetServiceAccountKeyRequestFormat | (string & {}) | undefined;
|
|
250
263
|
}
|
|
251
264
|
export interface GetServiceAccountKeyResponseCredentials {
|
|
252
265
|
/** Audience - service account API URL */
|
|
@@ -272,9 +285,9 @@ export interface GetServiceAccountKeyResponse {
|
|
|
272
285
|
keyOrigin: GetServiceAccountKeyResponseKeyOrigin;
|
|
273
286
|
keyType: GetServiceAccountKeyResponseKeyType;
|
|
274
287
|
/** Public key, in the requested format */
|
|
275
|
-
publicKey?: string;
|
|
288
|
+
publicKey?: string | undefined;
|
|
276
289
|
/** If specified, the timestamp until the key is active. May be null */
|
|
277
|
-
validUntil?: string;
|
|
290
|
+
validUntil?: string | undefined;
|
|
278
291
|
}
|
|
279
292
|
export interface ListFederatedIdentityProvidersRequest {
|
|
280
293
|
/** The ID of the project. */
|
|
@@ -309,7 +322,7 @@ export interface ServiceAccountKeyListResponse {
|
|
|
309
322
|
keyOrigin: ServiceAccountKeyListResponseKeyOrigin;
|
|
310
323
|
keyType: ServiceAccountKeyListResponseKeyType;
|
|
311
324
|
/** If specified, the timestamp until the key is active. May be null */
|
|
312
|
-
validUntil?: string;
|
|
325
|
+
validUntil?: string | undefined;
|
|
313
326
|
}
|
|
314
327
|
export type ListServiceAccountKeysResponseItemsList = Array<ServiceAccountKeyListResponse>;
|
|
315
328
|
export interface ListServiceAccountKeysResponse {
|
|
@@ -336,7 +349,9 @@ export interface PartialUpdateServiceAccountFederatedIdentityProviderRequest {
|
|
|
336
349
|
/** ID of the Federated Identity Provider. */
|
|
337
350
|
federationId: string;
|
|
338
351
|
/** list of assertions of the federated identity provider */
|
|
339
|
-
assertions?:
|
|
352
|
+
assertions?:
|
|
353
|
+
| PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsList
|
|
354
|
+
| undefined;
|
|
340
355
|
/** Issuer of the federated identity provider. */
|
|
341
356
|
issuer: string;
|
|
342
357
|
/** Unique name used as identifier of the federated identity provider. */
|
|
@@ -350,9 +365,9 @@ export interface PartialUpdateServiceAccountKeyRequest {
|
|
|
350
365
|
/** ID of the key. */
|
|
351
366
|
keyId: string;
|
|
352
367
|
/** Active keys are valid, while inactive keys are temporarily deactivated. */
|
|
353
|
-
active?: boolean;
|
|
368
|
+
active?: boolean | undefined;
|
|
354
369
|
/** Optional, date of key expiration. To disable, set time to "9999-01-01T01:01:01Z" */
|
|
355
|
-
validUntil?: string;
|
|
370
|
+
validUntil?: string | undefined;
|
|
356
371
|
}
|
|
357
372
|
export type PartialUpdateServiceAccountKeyResponseKeyAlgorithm = "RSA_2048" | "RSA_4096";
|
|
358
373
|
export type PartialUpdateServiceAccountKeyResponseKeyOrigin = "USER_PROVIDED" | "GENERATED";
|
|
@@ -367,7 +382,7 @@ export interface PartialUpdateServiceAccountKeyResponse {
|
|
|
367
382
|
keyOrigin: PartialUpdateServiceAccountKeyResponseKeyOrigin;
|
|
368
383
|
keyType: PartialUpdateServiceAccountKeyResponseKeyType;
|
|
369
384
|
/** If specified, the timestamp until the key is active. May be null */
|
|
370
|
-
validUntil?: string;
|
|
385
|
+
validUntil?: string | undefined;
|
|
371
386
|
}
|
|
372
387
|
export type CreateFederatedIdentityProviderError =
|
|
373
388
|
| BadRequest
|
|
@@ -386,6 +401,8 @@ export const createFederatedIdentityProvider: API.OperationMethod<
|
|
|
386
401
|
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
387
402
|
protocol: StackitProtocol,
|
|
388
403
|
retry: Retry.Retry,
|
|
404
|
+
telemetry: TELEMETRY,
|
|
405
|
+
span: "CreateFederatedIdentityProvider",
|
|
389
406
|
}));
|
|
390
407
|
|
|
391
408
|
export type CreateServiceAccountError = BadRequest | Forbidden | Conflict | StackitOpError;
|
|
@@ -401,6 +418,8 @@ export const createServiceAccount: API.OperationMethod<
|
|
|
401
418
|
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
402
419
|
protocol: StackitProtocol,
|
|
403
420
|
retry: Retry.Retry,
|
|
421
|
+
telemetry: TELEMETRY,
|
|
422
|
+
span: "CreateServiceAccount",
|
|
404
423
|
}));
|
|
405
424
|
|
|
406
425
|
export type CreateServiceAccountKeyError = BadRequest | Forbidden | Conflict | StackitOpError;
|
|
@@ -416,6 +435,8 @@ export const createServiceAccountKey: API.OperationMethod<
|
|
|
416
435
|
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
417
436
|
protocol: StackitProtocol,
|
|
418
437
|
retry: Retry.Retry,
|
|
438
|
+
telemetry: TELEMETRY,
|
|
439
|
+
span: "CreateServiceAccountKey",
|
|
419
440
|
}));
|
|
420
441
|
|
|
421
442
|
export type CreateShortLivedAccessTokenError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -431,6 +452,8 @@ export const createShortLivedAccessToken: API.OperationMethod<
|
|
|
431
452
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
432
453
|
protocol: StackitProtocol,
|
|
433
454
|
retry: Retry.Retry,
|
|
455
|
+
telemetry: TELEMETRY,
|
|
456
|
+
span: "CreateShortLivedAccessToken",
|
|
434
457
|
}));
|
|
435
458
|
|
|
436
459
|
export type DeleteServiceAccountError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
@@ -446,6 +469,8 @@ export const deleteServiceAccount: API.OperationMethod<
|
|
|
446
469
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
447
470
|
protocol: StackitProtocol,
|
|
448
471
|
retry: Retry.Retry,
|
|
472
|
+
telemetry: TELEMETRY,
|
|
473
|
+
span: "DeleteServiceAccount",
|
|
449
474
|
}));
|
|
450
475
|
|
|
451
476
|
export type DeleteServiceAccountKeyError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -461,6 +486,8 @@ export const deleteServiceAccountKey: API.OperationMethod<
|
|
|
461
486
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
462
487
|
protocol: StackitProtocol,
|
|
463
488
|
retry: Retry.Retry,
|
|
489
|
+
telemetry: TELEMETRY,
|
|
490
|
+
span: "DeleteServiceAccountKey",
|
|
464
491
|
}));
|
|
465
492
|
|
|
466
493
|
export type DeleteServiceFederatedIdentityProviderError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -476,6 +503,8 @@ export const deleteServiceFederatedIdentityProvider: API.OperationMethod<
|
|
|
476
503
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
477
504
|
protocol: StackitProtocol,
|
|
478
505
|
retry: Retry.Retry,
|
|
506
|
+
telemetry: TELEMETRY,
|
|
507
|
+
span: "DeleteServiceFederatedIdentityProvider",
|
|
479
508
|
}));
|
|
480
509
|
|
|
481
510
|
export type GetFederatedIdentityProviderError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
@@ -491,6 +520,8 @@ export const getFederatedIdentityProvider: API.OperationMethod<
|
|
|
491
520
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
492
521
|
protocol: StackitProtocol,
|
|
493
522
|
retry: Retry.Retry,
|
|
523
|
+
telemetry: TELEMETRY,
|
|
524
|
+
span: "GetFederatedIdentityProvider",
|
|
494
525
|
}));
|
|
495
526
|
|
|
496
527
|
export type GetJWKSError = StackitOpError;
|
|
@@ -502,6 +533,8 @@ export const getJWKS: API.OperationMethod<GetJWKSRequest, JWKS, GetJWKSError, St
|
|
|
502
533
|
errors: [UnknownStackitError],
|
|
503
534
|
protocol: StackitProtocol,
|
|
504
535
|
retry: Retry.Retry,
|
|
536
|
+
telemetry: TELEMETRY,
|
|
537
|
+
span: "GetJWKS",
|
|
505
538
|
}));
|
|
506
539
|
|
|
507
540
|
export type GetServiceAccountKeyError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -517,6 +550,8 @@ export const getServiceAccountKey: API.OperationMethod<
|
|
|
517
550
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
518
551
|
protocol: StackitProtocol,
|
|
519
552
|
retry: Retry.Retry,
|
|
553
|
+
telemetry: TELEMETRY,
|
|
554
|
+
span: "GetServiceAccountKey",
|
|
520
555
|
}));
|
|
521
556
|
|
|
522
557
|
export type ListFederatedIdentityProvidersError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -532,6 +567,8 @@ export const listFederatedIdentityProviders: API.OperationMethod<
|
|
|
532
567
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
533
568
|
protocol: StackitProtocol,
|
|
534
569
|
retry: Retry.Retry,
|
|
570
|
+
telemetry: TELEMETRY,
|
|
571
|
+
span: "ListFederatedIdentityProviders",
|
|
535
572
|
}));
|
|
536
573
|
|
|
537
574
|
export type ListServiceAccountKeysError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -547,6 +584,8 @@ export const listServiceAccountKeys: API.OperationMethod<
|
|
|
547
584
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
548
585
|
protocol: StackitProtocol,
|
|
549
586
|
retry: Retry.Retry,
|
|
587
|
+
telemetry: TELEMETRY,
|
|
588
|
+
span: "ListServiceAccountKeys",
|
|
550
589
|
}));
|
|
551
590
|
|
|
552
591
|
export type ListServiceAccountsError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -562,6 +601,8 @@ export const listServiceAccounts: API.OperationMethod<
|
|
|
562
601
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
563
602
|
protocol: StackitProtocol,
|
|
564
603
|
retry: Retry.Retry,
|
|
604
|
+
telemetry: TELEMETRY,
|
|
605
|
+
span: "ListServiceAccounts",
|
|
565
606
|
}));
|
|
566
607
|
|
|
567
608
|
export type PartialUpdateServiceAccountFederatedIdentityProviderError =
|
|
@@ -585,6 +626,8 @@ export const partialUpdateServiceAccountFederatedIdentityProvider: API.Operation
|
|
|
585
626
|
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
586
627
|
protocol: StackitProtocol,
|
|
587
628
|
retry: Retry.Retry,
|
|
629
|
+
telemetry: TELEMETRY,
|
|
630
|
+
span: "PartialUpdateServiceAccountFederatedIdentityProvider",
|
|
588
631
|
}));
|
|
589
632
|
|
|
590
633
|
export type PartialUpdateServiceAccountKeyError =
|
|
@@ -604,6 +647,8 @@ export const partialUpdateServiceAccountKey: API.OperationMethod<
|
|
|
604
647
|
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
605
648
|
protocol: StackitProtocol,
|
|
606
649
|
retry: Retry.Retry,
|
|
650
|
+
telemetry: TELEMETRY,
|
|
651
|
+
span: "PartialUpdateServiceAccountKey",
|
|
607
652
|
}));
|
|
608
653
|
|
|
609
654
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { StackitOpError, StackitOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "stackit-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "STACKIT",
|
|
23
|
+
service: "ServiceEnablement",
|
|
24
|
+
labels: "stackit",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export class BadRequest
|
|
16
29
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
30
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
@@ -62,9 +75,9 @@ export type DependenciesHardList = Array<string>;
|
|
|
62
75
|
export type DependenciesSoftList = Array<string>;
|
|
63
76
|
export interface Dependencies {
|
|
64
77
|
/** a list of service IDs which this service depend on. If the service is enabled, those service are enabled as well automatically. */
|
|
65
|
-
hard?: DependenciesHardList;
|
|
78
|
+
hard?: DependenciesHardList | undefined;
|
|
66
79
|
/** a list of service IDs which this service depend on. When they are disabled a notification is sent. */
|
|
67
|
-
soft?: DependenciesSoftList;
|
|
80
|
+
soft?: DependenciesSoftList | undefined;
|
|
68
81
|
}
|
|
69
82
|
export type ServiceStatusEnablement = "REQUEST" | "AUTO";
|
|
70
83
|
/** the last action which was triggered on this service */
|
|
@@ -72,48 +85,49 @@ export type ActionErrorAction = "DISABLE" | "ENABLE";
|
|
|
72
85
|
/** the last error for this service. */
|
|
73
86
|
export interface ActionError {
|
|
74
87
|
/** the last action which was triggered on this service */
|
|
75
|
-
action?: ActionErrorAction;
|
|
88
|
+
action?: ActionErrorAction | undefined;
|
|
76
89
|
/** the error code if provided by the service */
|
|
77
|
-
code?: string;
|
|
90
|
+
code?: string | undefined;
|
|
78
91
|
/** the error reason provided by the service */
|
|
79
|
-
reason?: string;
|
|
92
|
+
reason?: string | undefined;
|
|
80
93
|
}
|
|
81
94
|
export type ServiceStatusLabelsMap = { [key: string]: string | undefined };
|
|
82
95
|
export type ServiceStatusLifecycle = "FLEX" | "PROJECT";
|
|
83
96
|
export type ParametersGeneralProjectScope = "SCHWARZ" | "PUBLIC";
|
|
84
97
|
export interface ParametersGeneral {
|
|
85
|
-
organizationId?: string;
|
|
86
|
-
projectName?: string;
|
|
87
|
-
projectScope?: ParametersGeneralProjectScope;
|
|
98
|
+
organizationId?: string | undefined;
|
|
99
|
+
projectName?: string | undefined;
|
|
100
|
+
projectScope?: ParametersGeneralProjectScope | undefined;
|
|
88
101
|
}
|
|
89
102
|
/** service parameters */
|
|
90
103
|
export interface Parameters {
|
|
91
|
-
general?: ParametersGeneral;
|
|
104
|
+
general?: ParametersGeneral | undefined;
|
|
105
|
+
[key: string]: unknown;
|
|
92
106
|
}
|
|
93
107
|
export type ServiceStatusScope = "PRIVATE" | "PUBLIC";
|
|
94
108
|
/** the state of a service within a project */
|
|
95
109
|
export type ServiceStatusState = "ENABLED" | "ENABLING" | "DISABLED" | "DISABLING";
|
|
96
110
|
export interface ServiceStatus {
|
|
97
|
-
dependencies?: Dependencies;
|
|
98
|
-
enablement?: ServiceStatusEnablement;
|
|
99
|
-
error?: ActionError;
|
|
100
|
-
labels?: ServiceStatusLabelsMap;
|
|
101
|
-
lifecycle?: ServiceStatusLifecycle;
|
|
102
|
-
parameters?: Parameters;
|
|
103
|
-
scope?: ServiceStatusScope;
|
|
104
|
-
serviceId?: string;
|
|
111
|
+
dependencies?: Dependencies | undefined;
|
|
112
|
+
enablement?: ServiceStatusEnablement | undefined;
|
|
113
|
+
error?: ActionError | undefined;
|
|
114
|
+
labels?: ServiceStatusLabelsMap | undefined;
|
|
115
|
+
lifecycle?: ServiceStatusLifecycle | undefined;
|
|
116
|
+
parameters?: Parameters | undefined;
|
|
117
|
+
scope?: ServiceStatusScope | undefined;
|
|
118
|
+
serviceId?: string | undefined;
|
|
105
119
|
/** the state of a service within a project */
|
|
106
|
-
state?: ServiceStatusState;
|
|
120
|
+
state?: ServiceStatusState | undefined;
|
|
107
121
|
}
|
|
108
122
|
export interface ListServiceStatusRegionalRequest {
|
|
109
123
|
projectId: string;
|
|
110
124
|
region: string;
|
|
111
|
-
cursor?: string;
|
|
125
|
+
cursor?: string | undefined;
|
|
112
126
|
}
|
|
113
127
|
export type ListServiceStatusRegionalResponseItemsList = Array<ServiceStatus>;
|
|
114
128
|
export interface ListServiceStatusRegionalResponse {
|
|
115
|
-
items?: ListServiceStatusRegionalResponseItemsList;
|
|
116
|
-
nextCursor?: string;
|
|
129
|
+
items?: ListServiceStatusRegionalResponseItemsList | undefined;
|
|
130
|
+
nextCursor?: string | undefined;
|
|
117
131
|
}
|
|
118
132
|
export type DisableServiceRegionalError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
119
133
|
/** disables the service in a project. */
|
|
@@ -128,6 +142,8 @@ export const disableServiceRegional: API.OperationMethod<
|
|
|
128
142
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
129
143
|
protocol: StackitProtocol,
|
|
130
144
|
retry: Retry.Retry,
|
|
145
|
+
telemetry: TELEMETRY,
|
|
146
|
+
span: "DisableServiceRegional",
|
|
131
147
|
}));
|
|
132
148
|
|
|
133
149
|
export type EnableServiceRegionalError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
@@ -143,6 +159,8 @@ export const enableServiceRegional: API.OperationMethod<
|
|
|
143
159
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
144
160
|
protocol: StackitProtocol,
|
|
145
161
|
retry: Retry.Retry,
|
|
162
|
+
telemetry: TELEMETRY,
|
|
163
|
+
span: "EnableServiceRegional",
|
|
146
164
|
}));
|
|
147
165
|
|
|
148
166
|
export type GetServiceStatusRegionalError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
@@ -158,6 +176,8 @@ export const getServiceStatusRegional: API.OperationMethod<
|
|
|
158
176
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
159
177
|
protocol: StackitProtocol,
|
|
160
178
|
retry: Retry.Retry,
|
|
179
|
+
telemetry: TELEMETRY,
|
|
180
|
+
span: "GetServiceStatusRegional",
|
|
161
181
|
}));
|
|
162
182
|
|
|
163
183
|
export type ListServiceStatusRegionalError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -173,6 +193,8 @@ export const listServiceStatusRegional: API.OperationMethod<
|
|
|
173
193
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
174
194
|
protocol: StackitProtocol,
|
|
175
195
|
retry: Retry.Retry,
|
|
196
|
+
telemetry: TELEMETRY,
|
|
197
|
+
span: "ListServiceStatusRegional",
|
|
176
198
|
}));
|
|
177
199
|
|
|
178
200
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
@@ -272,9 +294,12 @@ function __c4(j: number): any {
|
|
|
272
294
|
).annotate({ identifier: "ParametersGeneral" });
|
|
273
295
|
case 5:
|
|
274
296
|
return S.suspend(() =>
|
|
275
|
-
S.
|
|
276
|
-
|
|
277
|
-
|
|
297
|
+
S.StructWithRest(
|
|
298
|
+
S.Struct({
|
|
299
|
+
general: S.optional(__S(36, __c4, 4)),
|
|
300
|
+
}),
|
|
301
|
+
[S.Record(S.String, S.Unknown)],
|
|
302
|
+
),
|
|
278
303
|
).annotate({ identifier: "Parameters" });
|
|
279
304
|
case 6:
|
|
280
305
|
return S.suspend(() =>
|