@distilled.cloud/stackit 1.0.0-rc.13 → 1.0.0-rc.15
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 +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js +2 -5
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +9 -10
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +1 -1
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +33 -82
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +1 -1
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +23 -47
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +1 -1
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +19 -49
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +21 -58
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +49 -112
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +2 -2
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +91 -177
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +1 -1
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +13 -31
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +1 -1
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +17 -28
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +22 -55
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +72 -200
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +1 -1
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +28 -50
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +1 -1
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +14 -32
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +19 -43
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +1 -1
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +25 -57
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +31 -10
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +151 -376
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/intake.d.ts +1 -1
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +45 -83
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +1 -1
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +63 -103
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +1 -3
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +18 -37
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +1 -1
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +32 -77
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +1 -1
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +39 -101
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +36 -59
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +1 -1
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +37 -97
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +2 -2
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +27 -47
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +2 -2
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +29 -61
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +1 -1
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +76 -162
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +25 -1
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +52 -89
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +5 -5
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +170 -419
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +1 -1
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +40 -100
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +1 -1
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +45 -98
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +2 -2
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +96 -261
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +2 -2
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +53 -148
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +2 -2
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +41 -103
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +1 -1
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +16 -39
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +5 -5
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +23 -53
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +1 -1
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +15 -33
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +18 -6
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +42 -75
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +1 -1
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +30 -78
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +1 -1
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +32 -78
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +1 -1
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +16 -36
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +1 -1
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +10 -22
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +1 -1
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +32 -49
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +1 -1
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +11 -13
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +17 -17
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +34 -89
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +27 -1
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +49 -89
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +2 -2
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +104 -255
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +4 -4
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +17 -31
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +1 -1
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -52
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +1 -1
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +49 -88
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +1 -1
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +25 -47
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +2 -2
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +40 -100
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +1 -1
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +98 -180
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +40 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -1
- package/lib/traits.js.map +1 -1
- package/package.json +13 -11
- package/src/credentials.ts +10 -16
- package/src/errors.ts +1 -1
- package/src/pagination.ts +6 -22
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +29 -47
- package/src/retry.ts +2 -8
- package/src/services/alb.ts +45 -128
- package/src/services/alb_waf.ts +35 -94
- package/src/services/authorization.ts +20 -56
- package/src/services/automation.ts +92 -262
- package/src/services/cdn.ts +191 -351
- package/src/services/certificates.ts +17 -49
- package/src/services/cost.ts +29 -64
- package/src/services/dns.ts +160 -495
- package/src/services/dremio.ts +35 -85
- package/src/services/edge.ts +37 -96
- package/src/services/functions.ts +31 -84
- package/src/services/git.ts +41 -122
- package/src/services/iaas.ts +392 -1184
- package/src/services/intake.ts +57 -124
- package/src/services/kms.ts +91 -192
- package/src/services/lb_ip_lists.ts +21 -56
- package/src/services/load_balancer.ts +43 -119
- package/src/services/logme.ts +55 -150
- package/src/services/logs.ts +57 -158
- package/src/services/mariadb.ts +45 -126
- package/src/services/model_experiments.ts +36 -92
- package/src/services/model_serving.ts +33 -76
- package/src/services/mongodb_flex.ts +113 -259
- package/src/services/object_storage.ts +101 -154
- package/src/services/observability.ts +635 -1127
- package/src/services/opensearch.ts +52 -141
- package/src/services/pim.ts +78 -183
- package/src/services/postgres_flex.ts +120 -366
- package/src/services/pubsub.ts +134 -277
- package/src/services/rabbitmq.ts +53 -145
- package/src/services/registry.ts +24 -72
- package/src/services/resource_manager.ts +46 -129
- package/src/services/run_command.ts +17 -45
- package/src/services/sca.ts +63 -98
- package/src/services/scf.ts +54 -195
- package/src/services/secrets_manager.ts +54 -136
- package/src/services/server_backup.ts +26 -75
- package/src/services/server_update.ts +15 -44
- package/src/services/service_account.ts +185 -272
- package/src/services/service_enablement.ts +18 -47
- package/src/services/sfs.ts +84 -166
- package/src/services/ske.ts +91 -113
- package/src/services/sqlserverflex.ts +147 -383
- package/src/services/stackit_marketplace.ts +184 -250
- package/src/services/telemetry_link.ts +199 -278
- package/src/services/telemetry_router.ts +73 -168
- package/src/services/ufw.ts +32 -82
- package/src/services/valkey.ts +54 -145
- package/src/services/vpn.ts +215 -404
- package/src/services/workflows.ts +57 -169
- package/src/traits.ts +2 -7
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -31
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -45
package/src/services/sca.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
1
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
4
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
5
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as API from "@distilled.cloud/core/api";
|
|
5
|
-
import * as C from "@distilled.cloud/core/category";
|
|
6
|
-
import * as T from "../traits.ts";
|
|
7
|
-
import {
|
|
8
|
-
StackitProtocol,
|
|
9
|
-
type StackitOpError,
|
|
10
|
-
type StackitOpContext,
|
|
11
|
-
} from "../protocol.ts";
|
|
12
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
13
8
|
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
14
10
|
|
|
15
11
|
export type { StackitOpError, StackitOpContext };
|
|
16
12
|
|
|
@@ -58,7 +54,7 @@ export type EnvVarType =
|
|
|
58
54
|
| "ENV_FROM_SOURCE_TYPE_UNSPECIFIED"
|
|
59
55
|
| "ENV_FROM_SOURCE_TYPE_MANUAL"
|
|
60
56
|
| "ENV_FROM_SOURCE_TYPE_SECRET";
|
|
61
|
-
export const EnvVarType =
|
|
57
|
+
export const EnvVarType = S.String;
|
|
62
58
|
|
|
63
59
|
/** EnvVar defines a single environment variable. */
|
|
64
60
|
export interface EnvVar {
|
|
@@ -127,16 +123,19 @@ export const NetworkIngressAclList = /*@__PURE__*/ S.Array(
|
|
|
127
123
|
export interface Network {
|
|
128
124
|
/** Allowed destination CIDRs for Ingress traffic. */
|
|
129
125
|
ingressAcl?: NetworkIngressAclList;
|
|
126
|
+
/** Internal port number for inter application communication. */
|
|
127
|
+
internalPort?: number;
|
|
130
128
|
/** Port number. */
|
|
131
129
|
port?: number;
|
|
132
130
|
/** Whether the application should be accessible from the internet. */
|
|
133
|
-
publicIngress
|
|
131
|
+
publicIngress?: boolean;
|
|
134
132
|
}
|
|
135
133
|
export const Network = /*@__PURE__*/ S.suspend(() =>
|
|
136
134
|
S.Struct({
|
|
137
135
|
ingressAcl: S.optional(NetworkIngressAclList),
|
|
136
|
+
internalPort: S.optional(S.Number),
|
|
138
137
|
port: S.optional(S.Number),
|
|
139
|
-
publicIngress: S.Boolean,
|
|
138
|
+
publicIngress: S.optional(S.Boolean),
|
|
140
139
|
}),
|
|
141
140
|
).annotate({ identifier: "Network" }) as any as S.Schema<Network>;
|
|
142
141
|
|
|
@@ -156,10 +155,8 @@ export const ApplicationRegistryCredentialsAuth = /*@__PURE__*/ S.suspend(() =>
|
|
|
156
155
|
identifier: "ApplicationRegistryCredentialsAuth",
|
|
157
156
|
}) as any as S.Schema<ApplicationRegistryCredentialsAuth>;
|
|
158
157
|
|
|
159
|
-
export type ApplicationRegistryAuthType =
|
|
160
|
-
|
|
161
|
-
| "AUTH_TYPE_CREDENTIALS";
|
|
162
|
-
export const ApplicationRegistryAuthType = /*@__PURE__*/ S.String;
|
|
158
|
+
export type ApplicationRegistryAuthType = "AUTH_TYPE_NONE" | "AUTH_TYPE_CREDENTIALS";
|
|
159
|
+
export const ApplicationRegistryAuthType = S.String;
|
|
163
160
|
|
|
164
161
|
export interface ApplicationRegistry {
|
|
165
162
|
credentials?: ApplicationRegistryCredentialsAuth;
|
|
@@ -170,9 +167,7 @@ export const ApplicationRegistry = /*@__PURE__*/ S.suspend(() =>
|
|
|
170
167
|
credentials: S.optional(ApplicationRegistryCredentialsAuth),
|
|
171
168
|
type: ApplicationRegistryAuthType,
|
|
172
169
|
}),
|
|
173
|
-
).annotate({
|
|
174
|
-
identifier: "ApplicationRegistry",
|
|
175
|
-
}) as any as S.Schema<ApplicationRegistry>;
|
|
170
|
+
).annotate({ identifier: "ApplicationRegistry" }) as any as S.Schema<ApplicationRegistry>;
|
|
176
171
|
|
|
177
172
|
/** Image registry configuration for the application. */
|
|
178
173
|
export type CreateApplicationRequestRegistryList = Array<ApplicationRegistry>;
|
|
@@ -188,7 +183,7 @@ export type CurrentStatus =
|
|
|
188
183
|
| "CURRENT_STATUS_FAILED"
|
|
189
184
|
| "CURRENT_STATUS_IDLE"
|
|
190
185
|
| "CURRENT_STATUS_NONE";
|
|
191
|
-
export const CurrentStatus =
|
|
186
|
+
export const CurrentStatus = S.String;
|
|
192
187
|
|
|
193
188
|
export interface RuntimeStatusInput {
|
|
194
189
|
currentStatus?: CurrentStatus | (string & {});
|
|
@@ -197,9 +192,7 @@ export const RuntimeStatusInput = /*@__PURE__*/ S.suspend(() =>
|
|
|
197
192
|
S.Struct({
|
|
198
193
|
currentStatus: S.optional(CurrentStatus),
|
|
199
194
|
}),
|
|
200
|
-
).annotate({
|
|
201
|
-
identifier: "RuntimeStatusInput",
|
|
202
|
-
}) as any as S.Schema<RuntimeStatusInput>;
|
|
195
|
+
).annotate({ identifier: "RuntimeStatusInput" }) as any as S.Schema<RuntimeStatusInput>;
|
|
203
196
|
|
|
204
197
|
/** CustomRuleParameter defines a single scaler parameter. */
|
|
205
198
|
export interface CustomRuleParameter {
|
|
@@ -211,9 +204,7 @@ export const CustomRuleParameter = /*@__PURE__*/ S.suspend(() =>
|
|
|
211
204
|
name: S.String,
|
|
212
205
|
value: S.String,
|
|
213
206
|
}),
|
|
214
|
-
).annotate({
|
|
215
|
-
identifier: "CustomRuleParameter",
|
|
216
|
-
}) as any as S.Schema<CustomRuleParameter>;
|
|
207
|
+
).annotate({ identifier: "CustomRuleParameter" }) as any as S.Schema<CustomRuleParameter>;
|
|
217
208
|
|
|
218
209
|
/** Scaler parameters. */
|
|
219
210
|
export type CustomScaleRuleParametersList = Array<CustomRuleParameter>;
|
|
@@ -233,9 +224,7 @@ export const CustomRuleSecretMapping = /*@__PURE__*/ S.suspend(() =>
|
|
|
233
224
|
parameter: S.String,
|
|
234
225
|
secret: S.String.pipe(T.SensitiveValue({})),
|
|
235
226
|
}),
|
|
236
|
-
).annotate({
|
|
237
|
-
identifier: "CustomRuleSecretMapping",
|
|
238
|
-
}) as any as S.Schema<CustomRuleSecretMapping>;
|
|
227
|
+
).annotate({ identifier: "CustomRuleSecretMapping" }) as any as S.Schema<CustomRuleSecretMapping>;
|
|
239
228
|
|
|
240
229
|
/** Secret mappings for the scaler. */
|
|
241
230
|
export type CustomScaleRuleSecretsMappingList = Array<CustomRuleSecretMapping>;
|
|
@@ -258,9 +247,7 @@ export const CustomScaleRule = /*@__PURE__*/ S.suspend(() =>
|
|
|
258
247
|
secretsMapping: S.optional(CustomScaleRuleSecretsMappingList),
|
|
259
248
|
type: S.String,
|
|
260
249
|
}),
|
|
261
|
-
).annotate({
|
|
262
|
-
identifier: "CustomScaleRule",
|
|
263
|
-
}) as any as S.Schema<CustomScaleRule>;
|
|
250
|
+
).annotate({ identifier: "CustomScaleRule" }) as any as S.Schema<CustomScaleRule>;
|
|
264
251
|
|
|
265
252
|
/** HttpScaleRule defines parameters for HTTP-based scaling. */
|
|
266
253
|
export interface HttpScaleRule {
|
|
@@ -277,11 +264,8 @@ export const HttpScaleRule = /*@__PURE__*/ S.suspend(() =>
|
|
|
277
264
|
).annotate({ identifier: "HttpScaleRule" }) as any as S.Schema<HttpScaleRule>;
|
|
278
265
|
|
|
279
266
|
/** - RULE_TYPE_UNSPECIFIED: Used as zero value. - RULE_TYPE_HTTP: HTTP scaling rule. - RULE_TYPE_CUSTOM: Custom scaling rule (e.g. KEDA). */
|
|
280
|
-
export type RuleType =
|
|
281
|
-
|
|
282
|
-
| "RULE_TYPE_HTTP"
|
|
283
|
-
| "RULE_TYPE_CUSTOM";
|
|
284
|
-
export const RuleType = /*@__PURE__*/ S.String;
|
|
267
|
+
export type RuleType = "RULE_TYPE_UNSPECIFIED" | "RULE_TYPE_HTTP" | "RULE_TYPE_CUSTOM";
|
|
268
|
+
export const RuleType = S.String;
|
|
285
269
|
|
|
286
270
|
/** ScaleRule defines one autoscaling trigger. */
|
|
287
271
|
export interface ScaleRule {
|
|
@@ -338,11 +322,8 @@ export const ManualScaling = /*@__PURE__*/ S.suspend(() =>
|
|
|
338
322
|
).annotate({ identifier: "ManualScaling" }) as any as S.Schema<ManualScaling>;
|
|
339
323
|
|
|
340
324
|
/** - SCALING_TYPE_UNSPECIFIED: Used as zero value. - SCALING_TYPE_AUTO: Auto scaling based on rules. - SCALING_TYPE_MANUAL: Manual scaling with fixed number of instances. */
|
|
341
|
-
export type ScalingType =
|
|
342
|
-
|
|
343
|
-
| "SCALING_TYPE_AUTO"
|
|
344
|
-
| "SCALING_TYPE_MANUAL";
|
|
345
|
-
export const ScalingType = /*@__PURE__*/ S.String;
|
|
325
|
+
export type ScalingType = "SCALING_TYPE_UNSPECIFIED" | "SCALING_TYPE_AUTO" | "SCALING_TYPE_MANUAL";
|
|
326
|
+
export const ScalingType = S.String;
|
|
346
327
|
|
|
347
328
|
/** Scaling configuration for the application. */
|
|
348
329
|
export interface Scaling {
|
|
@@ -370,9 +351,7 @@ export const ApplicationSecret = /*@__PURE__*/ S.suspend(() =>
|
|
|
370
351
|
key: S.String,
|
|
371
352
|
value: S.optional(S.String),
|
|
372
353
|
}),
|
|
373
|
-
).annotate({
|
|
374
|
-
identifier: "ApplicationSecret",
|
|
375
|
-
}) as any as S.Schema<ApplicationSecret>;
|
|
354
|
+
).annotate({ identifier: "ApplicationSecret" }) as any as S.Schema<ApplicationSecret>;
|
|
376
355
|
|
|
377
356
|
/** Secrets associated with the application. */
|
|
378
357
|
export type CreateApplicationRequestSecretsList = Array<ApplicationSecret>;
|
|
@@ -389,7 +368,7 @@ export interface CreateApplicationRequest {
|
|
|
389
368
|
containers: CreateApplicationRequestContainersList;
|
|
390
369
|
/** Human-readable display name. */
|
|
391
370
|
displayName: string;
|
|
392
|
-
network
|
|
371
|
+
network?: Network;
|
|
393
372
|
/** Image registry configuration for the application. */
|
|
394
373
|
registry?: CreateApplicationRequestRegistryList;
|
|
395
374
|
runtimeStatus?: RuntimeStatusInput;
|
|
@@ -405,7 +384,7 @@ export const CreateApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
405
384
|
environmentId: S.String.pipe(T.Label()),
|
|
406
385
|
containers: CreateApplicationRequestContainersList,
|
|
407
386
|
displayName: S.String,
|
|
408
|
-
network: Network,
|
|
387
|
+
network: S.optional(Network),
|
|
409
388
|
registry: S.optional(CreateApplicationRequestRegistryList),
|
|
410
389
|
runtimeStatus: S.optional(RuntimeStatusInput),
|
|
411
390
|
scaling: Scaling,
|
|
@@ -419,9 +398,7 @@ export const CreateApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
419
398
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
420
399
|
}),
|
|
421
400
|
),
|
|
422
|
-
).annotate({
|
|
423
|
-
identifier: "CreateApplicationRequest",
|
|
424
|
-
}) as any as S.Schema<CreateApplicationRequest>;
|
|
401
|
+
).annotate({ identifier: "CreateApplicationRequest" }) as any as S.Schema<CreateApplicationRequest>;
|
|
425
402
|
|
|
426
403
|
/** Containers to deploy for the application. */
|
|
427
404
|
export type ApplicationContainersList = Array<Container>;
|
|
@@ -446,7 +423,7 @@ export type InstanceStatus =
|
|
|
446
423
|
| "INSTANCE_STATUS_PROGRESSING"
|
|
447
424
|
| "INSTANCE_STATUS_RUNNING"
|
|
448
425
|
| "INSTANCE_STATUS_FAILED";
|
|
449
|
-
export const InstanceStatus =
|
|
426
|
+
export const InstanceStatus = S.String;
|
|
450
427
|
|
|
451
428
|
/** Application instance summary. */
|
|
452
429
|
export interface Instance {
|
|
@@ -477,6 +454,8 @@ export interface RuntimeStatus {
|
|
|
477
454
|
/** Failure reasons collected from workload conditions. */
|
|
478
455
|
failureReasons?: RuntimeStatusFailureReasonsList;
|
|
479
456
|
instances?: RuntimeStatusInstancesList;
|
|
457
|
+
/** Internal URL for the running application. */
|
|
458
|
+
internalUrl?: string;
|
|
480
459
|
/** Last time the application was deployed. */
|
|
481
460
|
lastDeployment?: string;
|
|
482
461
|
/** Known URLs for the running application. */
|
|
@@ -487,6 +466,7 @@ export const RuntimeStatus = /*@__PURE__*/ S.suspend(() =>
|
|
|
487
466
|
currentStatus: S.optional(CurrentStatus),
|
|
488
467
|
failureReasons: S.optional(RuntimeStatusFailureReasonsList),
|
|
489
468
|
instances: S.optional(RuntimeStatusInstancesList),
|
|
469
|
+
internalUrl: S.optional(S.String),
|
|
490
470
|
lastDeployment: S.optional(S.String),
|
|
491
471
|
urls: S.optional(RuntimeStatusUrlsList),
|
|
492
472
|
}),
|
|
@@ -510,7 +490,7 @@ export interface Application {
|
|
|
510
490
|
environmentName?: string;
|
|
511
491
|
/** Application identifier, for example: 00000000-0000-0000-0000-000000000000. */
|
|
512
492
|
id?: string;
|
|
513
|
-
network
|
|
493
|
+
network?: Network;
|
|
514
494
|
/** Image registry configuration for the application. */
|
|
515
495
|
registry?: ApplicationRegistryList;
|
|
516
496
|
runtimeStatus?: RuntimeStatus;
|
|
@@ -527,7 +507,7 @@ export const Application = /*@__PURE__*/ S.suspend(() =>
|
|
|
527
507
|
environmentId: S.optional(S.String),
|
|
528
508
|
environmentName: S.optional(S.String),
|
|
529
509
|
id: S.optional(S.String),
|
|
530
|
-
network: Network,
|
|
510
|
+
network: S.optional(Network),
|
|
531
511
|
registry: S.optional(ApplicationRegistryList),
|
|
532
512
|
runtimeStatus: S.optional(RuntimeStatus),
|
|
533
513
|
scaling: Scaling,
|
|
@@ -536,16 +516,25 @@ export const Application = /*@__PURE__*/ S.suspend(() =>
|
|
|
536
516
|
}),
|
|
537
517
|
).annotate({ identifier: "Application" }) as any as S.Schema<Application>;
|
|
538
518
|
|
|
519
|
+
/** - ENVIRONMENT_STATUS_UNSPECIFIED: Used as zero value. - ENVIRONMENT_STATUS_PROGRESSING: Environment is being created. - ENVIRONMENT_STATUS_CREATED: Environment is successfully created. */
|
|
520
|
+
export type EnvironmentStatus =
|
|
521
|
+
| "ENVIRONMENT_STATUS_UNSPECIFIED"
|
|
522
|
+
| "ENVIRONMENT_STATUS_PROGRESSING"
|
|
523
|
+
| "ENVIRONMENT_STATUS_CREATED";
|
|
524
|
+
export const EnvironmentStatus = S.String;
|
|
525
|
+
|
|
539
526
|
export interface CreateEnvironmentRequest {
|
|
540
527
|
/** Parent project resource name to create under */
|
|
541
528
|
projectId: string;
|
|
542
529
|
/** Human-readable display name. */
|
|
543
530
|
displayName: string;
|
|
531
|
+
status?: EnvironmentStatus | (string & {});
|
|
544
532
|
}
|
|
545
533
|
export const CreateEnvironmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
546
534
|
S.Struct({
|
|
547
535
|
projectId: S.String.pipe(T.Label()),
|
|
548
536
|
displayName: S.String,
|
|
537
|
+
status: S.optional(EnvironmentStatus),
|
|
549
538
|
}).pipe(
|
|
550
539
|
T.Http({
|
|
551
540
|
method: "POST",
|
|
@@ -554,9 +543,7 @@ export const CreateEnvironmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
554
543
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
555
544
|
}),
|
|
556
545
|
),
|
|
557
|
-
).annotate({
|
|
558
|
-
identifier: "CreateEnvironmentRequest",
|
|
559
|
-
}) as any as S.Schema<CreateEnvironmentRequest>;
|
|
546
|
+
).annotate({ identifier: "CreateEnvironmentRequest" }) as any as S.Schema<CreateEnvironmentRequest>;
|
|
560
547
|
|
|
561
548
|
/** Environment describes an isolated container scope within a project. */
|
|
562
549
|
export interface Environment {
|
|
@@ -568,6 +555,7 @@ export interface Environment {
|
|
|
568
555
|
displayName: string;
|
|
569
556
|
/** Environment identifier, for example: default. */
|
|
570
557
|
id?: string;
|
|
558
|
+
status?: EnvironmentStatus;
|
|
571
559
|
}
|
|
572
560
|
export const Environment = /*@__PURE__*/ S.suspend(() =>
|
|
573
561
|
S.Struct({
|
|
@@ -575,6 +563,7 @@ export const Environment = /*@__PURE__*/ S.suspend(() =>
|
|
|
575
563
|
default: S.optional(S.Boolean),
|
|
576
564
|
displayName: S.String,
|
|
577
565
|
id: S.optional(S.String),
|
|
566
|
+
status: S.optional(EnvironmentStatus),
|
|
578
567
|
}),
|
|
579
568
|
).annotate({ identifier: "Environment" }) as any as S.Schema<Environment>;
|
|
580
569
|
|
|
@@ -599,9 +588,7 @@ export const DeleteApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
599
588
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
600
589
|
}),
|
|
601
590
|
),
|
|
602
|
-
).annotate({
|
|
603
|
-
identifier: "DeleteApplicationRequest",
|
|
604
|
-
}) as any as S.Schema<DeleteApplicationRequest>;
|
|
591
|
+
).annotate({ identifier: "DeleteApplicationRequest" }) as any as S.Schema<DeleteApplicationRequest>;
|
|
605
592
|
|
|
606
593
|
export interface GetApplicationRequest {
|
|
607
594
|
/** Project to fetch the application from. */
|
|
@@ -624,9 +611,7 @@ export const GetApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
624
611
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
625
612
|
}),
|
|
626
613
|
),
|
|
627
|
-
).annotate({
|
|
628
|
-
identifier: "GetApplicationRequest",
|
|
629
|
-
}) as any as S.Schema<GetApplicationRequest>;
|
|
614
|
+
).annotate({ identifier: "GetApplicationRequest" }) as any as S.Schema<GetApplicationRequest>;
|
|
630
615
|
|
|
631
616
|
export interface GetApplicationEventsRequest {
|
|
632
617
|
/** Project to fetch the application from. */
|
|
@@ -765,9 +750,7 @@ export const GetEnvironmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
765
750
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
766
751
|
}),
|
|
767
752
|
),
|
|
768
|
-
).annotate({
|
|
769
|
-
identifier: "GetEnvironmentRequest",
|
|
770
|
-
}) as any as S.Schema<GetEnvironmentRequest>;
|
|
753
|
+
).annotate({ identifier: "GetEnvironmentRequest" }) as any as S.Schema<GetEnvironmentRequest>;
|
|
771
754
|
|
|
772
755
|
export interface GetOverviewRequest {
|
|
773
756
|
/** Parent project resource name to list under. */
|
|
@@ -784,9 +767,7 @@ export const GetOverviewRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
784
767
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
785
768
|
}),
|
|
786
769
|
),
|
|
787
|
-
).annotate({
|
|
788
|
-
identifier: "GetOverviewRequest",
|
|
789
|
-
}) as any as S.Schema<GetOverviewRequest>;
|
|
770
|
+
).annotate({ identifier: "GetOverviewRequest" }) as any as S.Schema<GetOverviewRequest>;
|
|
790
771
|
|
|
791
772
|
/** Summary describes the current status of a project. */
|
|
792
773
|
export interface Summary {
|
|
@@ -810,9 +791,7 @@ export const GetOverviewResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
810
791
|
S.Struct({
|
|
811
792
|
summary: Summary,
|
|
812
793
|
}),
|
|
813
|
-
).annotate({
|
|
814
|
-
identifier: "GetOverviewResponse",
|
|
815
|
-
}) as any as S.Schema<GetOverviewResponse>;
|
|
794
|
+
).annotate({ identifier: "GetOverviewResponse" }) as any as S.Schema<GetOverviewResponse>;
|
|
816
795
|
|
|
817
796
|
export interface ListApplicationsRequest {
|
|
818
797
|
/** Project to list the applications in. */
|
|
@@ -832,9 +811,7 @@ export const ListApplicationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
832
811
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
833
812
|
}),
|
|
834
813
|
),
|
|
835
|
-
).annotate({
|
|
836
|
-
identifier: "ListApplicationsRequest",
|
|
837
|
-
}) as any as S.Schema<ListApplicationsRequest>;
|
|
814
|
+
).annotate({ identifier: "ListApplicationsRequest" }) as any as S.Schema<ListApplicationsRequest>;
|
|
838
815
|
|
|
839
816
|
/** ApplicationSummary describes a summary of an application. */
|
|
840
817
|
export interface ApplicationSummary {
|
|
@@ -852,6 +829,8 @@ export interface ApplicationSummary {
|
|
|
852
829
|
id?: string;
|
|
853
830
|
/** Application's running instances. */
|
|
854
831
|
instances?: number;
|
|
832
|
+
/** Application's internal URL. */
|
|
833
|
+
internalUrl?: string;
|
|
855
834
|
/** Date of the last moment the application got the running status in RFC3339 format. */
|
|
856
835
|
lastDeployment?: string;
|
|
857
836
|
status?: CurrentStatus;
|
|
@@ -869,14 +848,13 @@ export const ApplicationSummary = /*@__PURE__*/ S.suspend(() =>
|
|
|
869
848
|
environmentName: S.optional(S.String),
|
|
870
849
|
id: S.optional(S.String),
|
|
871
850
|
instances: S.optional(S.Number),
|
|
851
|
+
internalUrl: S.optional(S.String),
|
|
872
852
|
lastDeployment: S.optional(S.String),
|
|
873
853
|
status: S.optional(CurrentStatus),
|
|
874
854
|
stopped: S.optional(S.Boolean),
|
|
875
855
|
url: S.optional(S.String),
|
|
876
856
|
}),
|
|
877
|
-
).annotate({
|
|
878
|
-
identifier: "ApplicationSummary",
|
|
879
|
-
}) as any as S.Schema<ApplicationSummary>;
|
|
857
|
+
).annotate({ identifier: "ApplicationSummary" }) as any as S.Schema<ApplicationSummary>;
|
|
880
858
|
|
|
881
859
|
/** Applications under the requested parent. */
|
|
882
860
|
export type ListApplicationsResponseItemsList = Array<ApplicationSummary>;
|
|
@@ -893,9 +871,7 @@ export const ListApplicationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
893
871
|
S.Struct({
|
|
894
872
|
items: S.optional(ListApplicationsResponseItemsList),
|
|
895
873
|
}),
|
|
896
|
-
).annotate({
|
|
897
|
-
identifier: "ListApplicationsResponse",
|
|
898
|
-
}) as any as S.Schema<ListApplicationsResponse>;
|
|
874
|
+
).annotate({ identifier: "ListApplicationsResponse" }) as any as S.Schema<ListApplicationsResponse>;
|
|
899
875
|
|
|
900
876
|
export interface ListEnvironmentsRequest {
|
|
901
877
|
/** Parent project resource name to list under. */
|
|
@@ -912,9 +888,7 @@ export const ListEnvironmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
912
888
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
913
889
|
}),
|
|
914
890
|
),
|
|
915
|
-
).annotate({
|
|
916
|
-
identifier: "ListEnvironmentsRequest",
|
|
917
|
-
}) as any as S.Schema<ListEnvironmentsRequest>;
|
|
891
|
+
).annotate({ identifier: "ListEnvironmentsRequest" }) as any as S.Schema<ListEnvironmentsRequest>;
|
|
918
892
|
|
|
919
893
|
/** Environment summary. */
|
|
920
894
|
export interface EnvironmentSummary {
|
|
@@ -937,9 +911,7 @@ export const EnvironmentSummary = /*@__PURE__*/ S.suspend(() =>
|
|
|
937
911
|
displayName: S.optional(S.String),
|
|
938
912
|
id: S.optional(S.String),
|
|
939
913
|
}),
|
|
940
|
-
).annotate({
|
|
941
|
-
identifier: "EnvironmentSummary",
|
|
942
|
-
}) as any as S.Schema<EnvironmentSummary>;
|
|
914
|
+
).annotate({ identifier: "EnvironmentSummary" }) as any as S.Schema<EnvironmentSummary>;
|
|
943
915
|
|
|
944
916
|
/** Environments under the requested parent. */
|
|
945
917
|
export type ListEnvironmentsResponseItemsList = Array<EnvironmentSummary>;
|
|
@@ -956,9 +928,7 @@ export const ListEnvironmentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
956
928
|
S.Struct({
|
|
957
929
|
items: S.optional(ListEnvironmentsResponseItemsList),
|
|
958
930
|
}),
|
|
959
|
-
).annotate({
|
|
960
|
-
identifier: "ListEnvironmentsResponse",
|
|
961
|
-
}) as any as S.Schema<ListEnvironmentsResponse>;
|
|
931
|
+
).annotate({ identifier: "ListEnvironmentsResponse" }) as any as S.Schema<ListEnvironmentsResponse>;
|
|
962
932
|
|
|
963
933
|
export interface ListProjectApplicationsRequest {
|
|
964
934
|
/** Project to list the applications in. */
|
|
@@ -1034,9 +1004,7 @@ export const UpdateApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1034
1004
|
baseUrl: "https://sca.api.{region}stackit.cloud",
|
|
1035
1005
|
}),
|
|
1036
1006
|
),
|
|
1037
|
-
).annotate({
|
|
1038
|
-
identifier: "UpdateApplicationRequest",
|
|
1039
|
-
}) as any as S.Schema<UpdateApplicationRequest>;
|
|
1007
|
+
).annotate({ identifier: "UpdateApplicationRequest" }) as any as S.Schema<UpdateApplicationRequest>;
|
|
1040
1008
|
|
|
1041
1009
|
export type CreateApplicationError = BadRequest | Conflict | StackitOpError;
|
|
1042
1010
|
/** Creates a new application within a environment. */
|
|
@@ -1099,7 +1067,7 @@ export const getApplication: API.OperationMethod<
|
|
|
1099
1067
|
}));
|
|
1100
1068
|
|
|
1101
1069
|
export type GetApplicationEventsError = NotFound | StackitOpError;
|
|
1102
|
-
/**
|
|
1070
|
+
/** Retrieves events of an application. */
|
|
1103
1071
|
export const getApplicationEvents: API.OperationMethod<
|
|
1104
1072
|
GetApplicationEventsRequest,
|
|
1105
1073
|
GetApplicationEventsResponse,
|
|
@@ -1114,7 +1082,7 @@ export const getApplicationEvents: API.OperationMethod<
|
|
|
1114
1082
|
}));
|
|
1115
1083
|
|
|
1116
1084
|
export type GetApplicationLogsError = BadRequest | NotFound | StackitOpError;
|
|
1117
|
-
/**
|
|
1085
|
+
/** Retrieves logs of an application. */
|
|
1118
1086
|
export const getApplicationLogs: API.OperationMethod<
|
|
1119
1087
|
GetApplicationLogsRequest,
|
|
1120
1088
|
GetApplicationLogsResponse,
|
|
@@ -1144,6 +1112,7 @@ export const getEnvironment: API.OperationMethod<
|
|
|
1144
1112
|
}));
|
|
1145
1113
|
|
|
1146
1114
|
export type GetOverviewError = StackitOpError;
|
|
1115
|
+
/** Retrieves the overview for an environment. */
|
|
1147
1116
|
export const getOverview: API.OperationMethod<
|
|
1148
1117
|
GetOverviewRequest,
|
|
1149
1118
|
GetOverviewResponse,
|
|
@@ -1202,11 +1171,7 @@ export const listProjectApplications: API.OperationMethod<
|
|
|
1202
1171
|
retry: Retry.Retry,
|
|
1203
1172
|
}));
|
|
1204
1173
|
|
|
1205
|
-
export type UpdateApplicationError =
|
|
1206
|
-
| BadRequest
|
|
1207
|
-
| NotFound
|
|
1208
|
-
| Conflict
|
|
1209
|
-
| StackitOpError;
|
|
1174
|
+
export type UpdateApplicationError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1210
1175
|
/** Updates an existing application. */
|
|
1211
1176
|
export const updateApplication: API.OperationMethod<
|
|
1212
1177
|
UpdateApplicationRequest,
|