@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13
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/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +48 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +562 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +545 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +992 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +197 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +339 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +375 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +423 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +513 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +542 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +636 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +498 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +611 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +356 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +319 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3407 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +623 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +789 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +1018 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +614 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +636 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +221 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +503 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +718 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +659 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +474 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +364 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +523 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +159 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +1087 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +393 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +550 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +523 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +301 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +627 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +1013 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +556 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +83 -3
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
StackitProtocol,
|
|
8
|
+
type StackitOpError,
|
|
9
|
+
type StackitOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { StackitOpError, StackitOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Forbidden
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withAuthError),
|
|
31
|
+
[{ status: 403 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class NotFound
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withBadRequestError),
|
|
40
|
+
[{ status: 404 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export interface DisableServiceRegionalRequest {
|
|
44
|
+
projectId: string;
|
|
45
|
+
region: string;
|
|
46
|
+
serviceId: string;
|
|
47
|
+
}
|
|
48
|
+
export const DisableServiceRegionalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
49
|
+
S.Struct({
|
|
50
|
+
projectId: S.String.pipe(T.Label()),
|
|
51
|
+
region: S.String.pipe(T.Label()),
|
|
52
|
+
serviceId: S.String.pipe(T.Label()),
|
|
53
|
+
}).pipe(
|
|
54
|
+
T.Http({
|
|
55
|
+
method: "DELETE",
|
|
56
|
+
uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
|
|
57
|
+
code: 200,
|
|
58
|
+
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
59
|
+
}),
|
|
60
|
+
),
|
|
61
|
+
).annotate({
|
|
62
|
+
identifier: "DisableServiceRegionalRequest",
|
|
63
|
+
}) as any as S.Schema<DisableServiceRegionalRequest>;
|
|
64
|
+
|
|
65
|
+
export interface DisableServiceRegionalResponse {}
|
|
66
|
+
export const DisableServiceRegionalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
67
|
+
S.Struct({}),
|
|
68
|
+
).annotate({
|
|
69
|
+
identifier: "DisableServiceRegionalResponse",
|
|
70
|
+
}) as any as S.Schema<DisableServiceRegionalResponse>;
|
|
71
|
+
|
|
72
|
+
export interface EnableServiceRegionalRequest {
|
|
73
|
+
projectId: string;
|
|
74
|
+
region: string;
|
|
75
|
+
serviceId: string;
|
|
76
|
+
}
|
|
77
|
+
export const EnableServiceRegionalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
78
|
+
S.Struct({
|
|
79
|
+
projectId: S.String.pipe(T.Label()),
|
|
80
|
+
region: S.String.pipe(T.Label()),
|
|
81
|
+
serviceId: S.String.pipe(T.Label()),
|
|
82
|
+
}).pipe(
|
|
83
|
+
T.Http({
|
|
84
|
+
method: "POST",
|
|
85
|
+
uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
|
|
86
|
+
code: 200,
|
|
87
|
+
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
88
|
+
}),
|
|
89
|
+
),
|
|
90
|
+
).annotate({
|
|
91
|
+
identifier: "EnableServiceRegionalRequest",
|
|
92
|
+
}) as any as S.Schema<EnableServiceRegionalRequest>;
|
|
93
|
+
|
|
94
|
+
export interface EnableServiceRegionalResponse {}
|
|
95
|
+
export const EnableServiceRegionalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
96
|
+
S.Struct({}),
|
|
97
|
+
).annotate({
|
|
98
|
+
identifier: "EnableServiceRegionalResponse",
|
|
99
|
+
}) as any as S.Schema<EnableServiceRegionalResponse>;
|
|
100
|
+
|
|
101
|
+
export interface GetServiceStatusRegionalRequest {
|
|
102
|
+
projectId: string;
|
|
103
|
+
region: string;
|
|
104
|
+
serviceId: string;
|
|
105
|
+
}
|
|
106
|
+
export const GetServiceStatusRegionalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
107
|
+
S.Struct({
|
|
108
|
+
projectId: S.String.pipe(T.Label()),
|
|
109
|
+
region: S.String.pipe(T.Label()),
|
|
110
|
+
serviceId: S.String.pipe(T.Label()),
|
|
111
|
+
}).pipe(
|
|
112
|
+
T.Http({
|
|
113
|
+
method: "GET",
|
|
114
|
+
uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
|
|
115
|
+
code: 200,
|
|
116
|
+
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
117
|
+
}),
|
|
118
|
+
),
|
|
119
|
+
).annotate({
|
|
120
|
+
identifier: "GetServiceStatusRegionalRequest",
|
|
121
|
+
}) as any as S.Schema<GetServiceStatusRegionalRequest>;
|
|
122
|
+
|
|
123
|
+
/** a list of service IDs which this service depend on. If the service is enabled, those service are enabled as well automatically. */
|
|
124
|
+
export type DependenciesHardList = Array<string>;
|
|
125
|
+
export const DependenciesHardList = /*@__PURE__*/ S.Array(
|
|
126
|
+
S.String,
|
|
127
|
+
) as any as S.Schema<DependenciesHardList>;
|
|
128
|
+
|
|
129
|
+
/** a list of service IDs which this service depend on. When they are disabled a notification is sent. */
|
|
130
|
+
export type DependenciesSoftList = Array<string>;
|
|
131
|
+
export const DependenciesSoftList = /*@__PURE__*/ S.Array(
|
|
132
|
+
S.String,
|
|
133
|
+
) as any as S.Schema<DependenciesSoftList>;
|
|
134
|
+
|
|
135
|
+
export interface Dependencies {
|
|
136
|
+
/** a list of service IDs which this service depend on. If the service is enabled, those service are enabled as well automatically. */
|
|
137
|
+
hard?: DependenciesHardList;
|
|
138
|
+
/** a list of service IDs which this service depend on. When they are disabled a notification is sent. */
|
|
139
|
+
soft?: DependenciesSoftList;
|
|
140
|
+
}
|
|
141
|
+
export const Dependencies = /*@__PURE__*/ S.suspend(() =>
|
|
142
|
+
S.Struct({
|
|
143
|
+
hard: S.optional(DependenciesHardList),
|
|
144
|
+
soft: S.optional(DependenciesSoftList),
|
|
145
|
+
}),
|
|
146
|
+
).annotate({ identifier: "Dependencies" }) as any as S.Schema<Dependencies>;
|
|
147
|
+
|
|
148
|
+
export type ServiceStatusEnablement = "REQUEST" | "AUTO";
|
|
149
|
+
export const ServiceStatusEnablement = /*@__PURE__*/ S.String;
|
|
150
|
+
|
|
151
|
+
/** the last action which was triggered on this service */
|
|
152
|
+
export type ActionErrorAction = "DISABLE" | "ENABLE";
|
|
153
|
+
export const ActionErrorAction = /*@__PURE__*/ S.String;
|
|
154
|
+
|
|
155
|
+
/** the last error for this service. */
|
|
156
|
+
export interface ActionError {
|
|
157
|
+
/** the last action which was triggered on this service */
|
|
158
|
+
action?: ActionErrorAction;
|
|
159
|
+
/** the error code if provided by the service */
|
|
160
|
+
code?: string;
|
|
161
|
+
/** the error reason provided by the service */
|
|
162
|
+
reason?: string;
|
|
163
|
+
}
|
|
164
|
+
export const ActionError = /*@__PURE__*/ S.suspend(() =>
|
|
165
|
+
S.Struct({
|
|
166
|
+
action: S.optional(ActionErrorAction),
|
|
167
|
+
code: S.optional(S.String),
|
|
168
|
+
reason: S.optional(S.String),
|
|
169
|
+
}),
|
|
170
|
+
).annotate({ identifier: "ActionError" }) as any as S.Schema<ActionError>;
|
|
171
|
+
|
|
172
|
+
export type ServiceStatusLabelsMap = { [key: string]: string | undefined };
|
|
173
|
+
export const ServiceStatusLabelsMap = /*@__PURE__*/ S.Record(
|
|
174
|
+
S.String,
|
|
175
|
+
S.String,
|
|
176
|
+
) as any as S.Schema<ServiceStatusLabelsMap>;
|
|
177
|
+
|
|
178
|
+
export type ServiceStatusLifecycle = "FLEX" | "PROJECT";
|
|
179
|
+
export const ServiceStatusLifecycle = /*@__PURE__*/ S.String;
|
|
180
|
+
|
|
181
|
+
export type ParametersGeneralProjectScope = "SCHWARZ" | "PUBLIC";
|
|
182
|
+
export const ParametersGeneralProjectScope = /*@__PURE__*/ S.String;
|
|
183
|
+
|
|
184
|
+
export interface ParametersGeneral {
|
|
185
|
+
organizationId?: string;
|
|
186
|
+
projectName?: string;
|
|
187
|
+
projectScope?: ParametersGeneralProjectScope;
|
|
188
|
+
}
|
|
189
|
+
export const ParametersGeneral = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({
|
|
191
|
+
organizationId: S.optional(S.String),
|
|
192
|
+
projectName: S.optional(S.String),
|
|
193
|
+
projectScope: S.optional(ParametersGeneralProjectScope),
|
|
194
|
+
}),
|
|
195
|
+
).annotate({
|
|
196
|
+
identifier: "ParametersGeneral",
|
|
197
|
+
}) as any as S.Schema<ParametersGeneral>;
|
|
198
|
+
|
|
199
|
+
/** service parameters */
|
|
200
|
+
export interface Parameters {
|
|
201
|
+
general?: ParametersGeneral;
|
|
202
|
+
}
|
|
203
|
+
export const Parameters = /*@__PURE__*/ S.suspend(() =>
|
|
204
|
+
S.Struct({
|
|
205
|
+
general: S.optional(ParametersGeneral),
|
|
206
|
+
}),
|
|
207
|
+
).annotate({ identifier: "Parameters" }) as any as S.Schema<Parameters>;
|
|
208
|
+
|
|
209
|
+
export type ServiceStatusScope = "PRIVATE" | "PUBLIC";
|
|
210
|
+
export const ServiceStatusScope = /*@__PURE__*/ S.String;
|
|
211
|
+
|
|
212
|
+
/** the state of a service within a project */
|
|
213
|
+
export type ServiceStatusState =
|
|
214
|
+
| "ENABLED"
|
|
215
|
+
| "ENABLING"
|
|
216
|
+
| "DISABLED"
|
|
217
|
+
| "DISABLING";
|
|
218
|
+
export const ServiceStatusState = /*@__PURE__*/ S.String;
|
|
219
|
+
|
|
220
|
+
export interface ServiceStatus {
|
|
221
|
+
dependencies?: Dependencies;
|
|
222
|
+
enablement?: ServiceStatusEnablement;
|
|
223
|
+
error?: ActionError;
|
|
224
|
+
labels?: ServiceStatusLabelsMap;
|
|
225
|
+
lifecycle?: ServiceStatusLifecycle;
|
|
226
|
+
parameters?: Parameters;
|
|
227
|
+
scope?: ServiceStatusScope;
|
|
228
|
+
serviceId?: string;
|
|
229
|
+
/** the state of a service within a project */
|
|
230
|
+
state?: ServiceStatusState;
|
|
231
|
+
}
|
|
232
|
+
export const ServiceStatus = /*@__PURE__*/ S.suspend(() =>
|
|
233
|
+
S.Struct({
|
|
234
|
+
dependencies: S.optional(Dependencies),
|
|
235
|
+
enablement: S.optional(ServiceStatusEnablement),
|
|
236
|
+
error: S.optional(ActionError),
|
|
237
|
+
labels: S.optional(ServiceStatusLabelsMap),
|
|
238
|
+
lifecycle: S.optional(ServiceStatusLifecycle),
|
|
239
|
+
parameters: S.optional(Parameters),
|
|
240
|
+
scope: S.optional(ServiceStatusScope),
|
|
241
|
+
serviceId: S.optional(S.String),
|
|
242
|
+
state: S.optional(ServiceStatusState),
|
|
243
|
+
}),
|
|
244
|
+
).annotate({ identifier: "ServiceStatus" }) as any as S.Schema<ServiceStatus>;
|
|
245
|
+
|
|
246
|
+
export interface ListServiceStatusRegionalRequest {
|
|
247
|
+
projectId: string;
|
|
248
|
+
region: string;
|
|
249
|
+
cursor?: string;
|
|
250
|
+
}
|
|
251
|
+
export const ListServiceStatusRegionalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
252
|
+
S.Struct({
|
|
253
|
+
projectId: S.String.pipe(T.Label()),
|
|
254
|
+
region: S.String.pipe(T.Label()),
|
|
255
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
256
|
+
}).pipe(
|
|
257
|
+
T.Http({
|
|
258
|
+
method: "GET",
|
|
259
|
+
uri: "/v2/projects/{projectId}/regions/{region}/services",
|
|
260
|
+
code: 200,
|
|
261
|
+
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
262
|
+
}),
|
|
263
|
+
),
|
|
264
|
+
).annotate({
|
|
265
|
+
identifier: "ListServiceStatusRegionalRequest",
|
|
266
|
+
}) as any as S.Schema<ListServiceStatusRegionalRequest>;
|
|
267
|
+
|
|
268
|
+
export type ListServiceStatusRegionalResponseItemsList = Array<ServiceStatus>;
|
|
269
|
+
export const ListServiceStatusRegionalResponseItemsList = /*@__PURE__*/ S.Array(
|
|
270
|
+
ServiceStatus,
|
|
271
|
+
) as any as S.Schema<ListServiceStatusRegionalResponseItemsList>;
|
|
272
|
+
|
|
273
|
+
export interface ListServiceStatusRegionalResponse {
|
|
274
|
+
items?: ListServiceStatusRegionalResponseItemsList;
|
|
275
|
+
nextCursor?: string;
|
|
276
|
+
}
|
|
277
|
+
export const ListServiceStatusRegionalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
278
|
+
S.Struct({
|
|
279
|
+
items: S.optional(ListServiceStatusRegionalResponseItemsList),
|
|
280
|
+
nextCursor: S.optional(S.String),
|
|
281
|
+
}),
|
|
282
|
+
).annotate({
|
|
283
|
+
identifier: "ListServiceStatusRegionalResponse",
|
|
284
|
+
}) as any as S.Schema<ListServiceStatusRegionalResponse>;
|
|
285
|
+
|
|
286
|
+
export type DisableServiceRegionalError =
|
|
287
|
+
| BadRequest
|
|
288
|
+
| Forbidden
|
|
289
|
+
| NotFound
|
|
290
|
+
| StackitOpError;
|
|
291
|
+
/** disables the service in a project. */
|
|
292
|
+
export const disableServiceRegional: API.OperationMethod<
|
|
293
|
+
DisableServiceRegionalRequest,
|
|
294
|
+
DisableServiceRegionalResponse,
|
|
295
|
+
DisableServiceRegionalError,
|
|
296
|
+
StackitOpContext
|
|
297
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
298
|
+
input: DisableServiceRegionalRequest,
|
|
299
|
+
output: DisableServiceRegionalResponse,
|
|
300
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
301
|
+
protocol: StackitProtocol,
|
|
302
|
+
retry: Retry.Retry,
|
|
303
|
+
}));
|
|
304
|
+
|
|
305
|
+
export type EnableServiceRegionalError =
|
|
306
|
+
| BadRequest
|
|
307
|
+
| Forbidden
|
|
308
|
+
| NotFound
|
|
309
|
+
| StackitOpError;
|
|
310
|
+
/** enables the service in a project. */
|
|
311
|
+
export const enableServiceRegional: API.OperationMethod<
|
|
312
|
+
EnableServiceRegionalRequest,
|
|
313
|
+
EnableServiceRegionalResponse,
|
|
314
|
+
EnableServiceRegionalError,
|
|
315
|
+
StackitOpContext
|
|
316
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
317
|
+
input: EnableServiceRegionalRequest,
|
|
318
|
+
output: EnableServiceRegionalResponse,
|
|
319
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
320
|
+
protocol: StackitProtocol,
|
|
321
|
+
retry: Retry.Retry,
|
|
322
|
+
}));
|
|
323
|
+
|
|
324
|
+
export type GetServiceStatusRegionalError =
|
|
325
|
+
| BadRequest
|
|
326
|
+
| Forbidden
|
|
327
|
+
| NotFound
|
|
328
|
+
| StackitOpError;
|
|
329
|
+
/** returns the current status of a service in a project. */
|
|
330
|
+
export const getServiceStatusRegional: API.OperationMethod<
|
|
331
|
+
GetServiceStatusRegionalRequest,
|
|
332
|
+
ServiceStatus,
|
|
333
|
+
GetServiceStatusRegionalError,
|
|
334
|
+
StackitOpContext
|
|
335
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
336
|
+
input: GetServiceStatusRegionalRequest,
|
|
337
|
+
output: ServiceStatus,
|
|
338
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
339
|
+
protocol: StackitProtocol,
|
|
340
|
+
retry: Retry.Retry,
|
|
341
|
+
}));
|
|
342
|
+
|
|
343
|
+
export type ListServiceStatusRegionalError =
|
|
344
|
+
| BadRequest
|
|
345
|
+
| Forbidden
|
|
346
|
+
| StackitOpError;
|
|
347
|
+
/** returns a list of all available services for a project. */
|
|
348
|
+
export const listServiceStatusRegional: API.OperationMethod<
|
|
349
|
+
ListServiceStatusRegionalRequest,
|
|
350
|
+
ListServiceStatusRegionalResponse,
|
|
351
|
+
ListServiceStatusRegionalError,
|
|
352
|
+
StackitOpContext
|
|
353
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
354
|
+
input: ListServiceStatusRegionalRequest,
|
|
355
|
+
output: ListServiceStatusRegionalResponse,
|
|
356
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
357
|
+
protocol: StackitProtocol,
|
|
358
|
+
retry: Retry.Retry,
|
|
359
|
+
}));
|