@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
3
|
import { type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
4
4
|
export type { StackitOpError, StackitOpContext };
|
|
5
|
-
declare const BadRequest_base: S.
|
|
5
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
6
6
|
readonly code: any;
|
|
7
7
|
readonly message: any;
|
|
8
|
-
}
|
|
8
|
+
}> & (new (...args: any[]) => {
|
|
9
9
|
"@distilled.cloud/error/categories": {
|
|
10
10
|
BadRequestError: true;
|
|
11
11
|
};
|
|
12
12
|
});
|
|
13
13
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
14
|
}
|
|
15
|
-
declare const Forbidden_base: S.
|
|
15
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
16
16
|
readonly code: any;
|
|
17
17
|
readonly message: any;
|
|
18
|
-
}
|
|
18
|
+
}> & (new (...args: any[]) => {
|
|
19
19
|
"@distilled.cloud/error/categories": {
|
|
20
20
|
AuthError: true;
|
|
21
21
|
};
|
|
22
22
|
});
|
|
23
23
|
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
24
24
|
}
|
|
25
|
-
declare const NotFound_base: S.
|
|
25
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
26
26
|
readonly code: any;
|
|
27
27
|
readonly message: any;
|
|
28
|
-
}
|
|
28
|
+
}> & (new (...args: any[]) => {
|
|
29
29
|
"@distilled.cloud/error/categories": {
|
|
30
30
|
BadRequestError: true;
|
|
31
31
|
};
|
|
@@ -37,43 +37,33 @@ export interface DisableServiceRegionalRequest {
|
|
|
37
37
|
region: string;
|
|
38
38
|
serviceId: string;
|
|
39
39
|
}
|
|
40
|
-
export declare const DisableServiceRegionalRequest: S.Schema<DisableServiceRegionalRequest>;
|
|
41
40
|
export interface DisableServiceRegionalResponse {
|
|
42
41
|
}
|
|
43
|
-
export declare const DisableServiceRegionalResponse: S.Schema<DisableServiceRegionalResponse>;
|
|
44
42
|
export interface EnableServiceRegionalRequest {
|
|
45
43
|
projectId: string;
|
|
46
44
|
region: string;
|
|
47
45
|
serviceId: string;
|
|
48
46
|
}
|
|
49
|
-
export declare const EnableServiceRegionalRequest: S.Schema<EnableServiceRegionalRequest>;
|
|
50
47
|
export interface EnableServiceRegionalResponse {
|
|
51
48
|
}
|
|
52
|
-
export declare const EnableServiceRegionalResponse: S.Schema<EnableServiceRegionalResponse>;
|
|
53
49
|
export interface GetServiceStatusRegionalRequest {
|
|
54
50
|
projectId: string;
|
|
55
51
|
region: string;
|
|
56
52
|
serviceId: string;
|
|
57
53
|
}
|
|
58
|
-
export declare const GetServiceStatusRegionalRequest: S.Schema<GetServiceStatusRegionalRequest>;
|
|
59
54
|
/** a list of service IDs which this service depend on. If the service is enabled, those service are enabled as well automatically. */
|
|
60
55
|
export type DependenciesHardList = Array<string>;
|
|
61
|
-
export declare const DependenciesHardList: S.Schema<DependenciesHardList>;
|
|
62
56
|
/** a list of service IDs which this service depend on. When they are disabled a notification is sent. */
|
|
63
57
|
export type DependenciesSoftList = Array<string>;
|
|
64
|
-
export declare const DependenciesSoftList: S.Schema<DependenciesSoftList>;
|
|
65
58
|
export interface Dependencies {
|
|
66
59
|
/** a list of service IDs which this service depend on. If the service is enabled, those service are enabled as well automatically. */
|
|
67
60
|
hard?: DependenciesHardList;
|
|
68
61
|
/** a list of service IDs which this service depend on. When they are disabled a notification is sent. */
|
|
69
62
|
soft?: DependenciesSoftList;
|
|
70
63
|
}
|
|
71
|
-
export declare const Dependencies: S.Schema<Dependencies>;
|
|
72
64
|
export type ServiceStatusEnablement = "REQUEST" | "AUTO";
|
|
73
|
-
export declare const ServiceStatusEnablement: any;
|
|
74
65
|
/** the last action which was triggered on this service */
|
|
75
66
|
export type ActionErrorAction = "DISABLE" | "ENABLE";
|
|
76
|
-
export declare const ActionErrorAction: any;
|
|
77
67
|
/** the last error for this service. */
|
|
78
68
|
export interface ActionError {
|
|
79
69
|
/** the last action which was triggered on this service */
|
|
@@ -83,31 +73,23 @@ export interface ActionError {
|
|
|
83
73
|
/** the error reason provided by the service */
|
|
84
74
|
reason?: string;
|
|
85
75
|
}
|
|
86
|
-
export declare const ActionError: S.Schema<ActionError>;
|
|
87
76
|
export type ServiceStatusLabelsMap = {
|
|
88
77
|
[key: string]: string | undefined;
|
|
89
78
|
};
|
|
90
|
-
export declare const ServiceStatusLabelsMap: S.Schema<ServiceStatusLabelsMap>;
|
|
91
79
|
export type ServiceStatusLifecycle = "FLEX" | "PROJECT";
|
|
92
|
-
export declare const ServiceStatusLifecycle: any;
|
|
93
80
|
export type ParametersGeneralProjectScope = "SCHWARZ" | "PUBLIC";
|
|
94
|
-
export declare const ParametersGeneralProjectScope: any;
|
|
95
81
|
export interface ParametersGeneral {
|
|
96
82
|
organizationId?: string;
|
|
97
83
|
projectName?: string;
|
|
98
84
|
projectScope?: ParametersGeneralProjectScope;
|
|
99
85
|
}
|
|
100
|
-
export declare const ParametersGeneral: S.Schema<ParametersGeneral>;
|
|
101
86
|
/** service parameters */
|
|
102
87
|
export interface Parameters {
|
|
103
88
|
general?: ParametersGeneral;
|
|
104
89
|
}
|
|
105
|
-
export declare const Parameters: S.Schema<Parameters>;
|
|
106
90
|
export type ServiceStatusScope = "PRIVATE" | "PUBLIC";
|
|
107
|
-
export declare const ServiceStatusScope: any;
|
|
108
91
|
/** the state of a service within a project */
|
|
109
92
|
export type ServiceStatusState = "ENABLED" | "ENABLING" | "DISABLED" | "DISABLING";
|
|
110
|
-
export declare const ServiceStatusState: any;
|
|
111
93
|
export interface ServiceStatus {
|
|
112
94
|
dependencies?: Dependencies;
|
|
113
95
|
enablement?: ServiceStatusEnablement;
|
|
@@ -120,20 +102,16 @@ export interface ServiceStatus {
|
|
|
120
102
|
/** the state of a service within a project */
|
|
121
103
|
state?: ServiceStatusState;
|
|
122
104
|
}
|
|
123
|
-
export declare const ServiceStatus: S.Schema<ServiceStatus>;
|
|
124
105
|
export interface ListServiceStatusRegionalRequest {
|
|
125
106
|
projectId: string;
|
|
126
107
|
region: string;
|
|
127
108
|
cursor?: string;
|
|
128
109
|
}
|
|
129
|
-
export declare const ListServiceStatusRegionalRequest: S.Schema<ListServiceStatusRegionalRequest>;
|
|
130
110
|
export type ListServiceStatusRegionalResponseItemsList = Array<ServiceStatus>;
|
|
131
|
-
export declare const ListServiceStatusRegionalResponseItemsList: S.Schema<ListServiceStatusRegionalResponseItemsList>;
|
|
132
111
|
export interface ListServiceStatusRegionalResponse {
|
|
133
112
|
items?: ListServiceStatusRegionalResponseItemsList;
|
|
134
113
|
nextCursor?: string;
|
|
135
114
|
}
|
|
136
|
-
export declare const ListServiceStatusRegionalResponse: S.Schema<ListServiceStatusRegionalResponse>;
|
|
137
115
|
export type DisableServiceRegionalError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
138
116
|
/** disables the service in a project. */
|
|
139
117
|
export declare const disableServiceRegional: API.OperationMethod<DisableServiceRegionalRequest, DisableServiceRegionalResponse, DisableServiceRegionalError, StackitOpContext>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service_enablement.d.ts","sourceRoot":"","sources":["../../src/services/service_enablement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"service_enablement.d.ts","sourceRoot":"","sources":["../../src/services/service_enablement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAGvD,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAM7F,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AAM,WAAW,iCAAiC;IAChD,KAAK,CAAC,EAAE,0CAA0C,CAAC;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC7F,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC5F,wCAAwC;AACxC,eAAO,MAAM,qBAAqB,EAAE,GAAG,CAAC,eAAe,CACrD,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC/F,4DAA4D;AAC5D,eAAO,MAAM,wBAAwB,EAAE,GAAG,CAAC,eAAe,CACxD,+BAA+B,EAC/B,aAAa,EACb,6BAA6B,EAC7B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,CAAC;AACrF,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,EAAE,GAAG,CAAC,eAAe,CACzD,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,gBAAgB,CAOf,CAAC"}
|
|
@@ -1,157 +1,50 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/*@__PURE__*/
|
|
23
|
-
|
|
24
|
-
message: S.String,
|
|
25
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
26
|
-
}
|
|
27
|
-
export const DisableServiceRegionalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
28
|
-
projectId: S.String.pipe(T.Label()),
|
|
29
|
-
region: S.String.pipe(T.Label()),
|
|
30
|
-
serviceId: S.String.pipe(T.Label()),
|
|
31
|
-
}).pipe(T.Http({
|
|
32
|
-
method: "DELETE",
|
|
33
|
-
uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
|
|
34
|
-
code: 200,
|
|
35
|
-
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
36
|
-
}))).annotate({
|
|
37
|
-
identifier: "DisableServiceRegionalRequest",
|
|
38
|
-
});
|
|
39
|
-
export const DisableServiceRegionalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
40
|
-
identifier: "DisableServiceRegionalResponse",
|
|
41
|
-
});
|
|
42
|
-
export const EnableServiceRegionalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
43
|
-
projectId: S.String.pipe(T.Label()),
|
|
44
|
-
region: S.String.pipe(T.Label()),
|
|
45
|
-
serviceId: S.String.pipe(T.Label()),
|
|
46
|
-
}).pipe(T.Http({
|
|
47
|
-
method: "POST",
|
|
48
|
-
uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
|
|
49
|
-
code: 200,
|
|
50
|
-
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
51
|
-
}))).annotate({
|
|
52
|
-
identifier: "EnableServiceRegionalRequest",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Struct;
|
|
15
|
+
const __5 = S.suspend;
|
|
16
|
+
const __6 = S.Array;
|
|
17
|
+
const __7 = S.optional;
|
|
18
|
+
const __8 = S.Record;
|
|
19
|
+
const __9 = T.Query;
|
|
20
|
+
const __10 = S.Number;
|
|
21
|
+
const __11 = S.TaggedError;
|
|
22
|
+
const __12 = T.applyErrorMatchers;
|
|
23
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
24
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __10, __3, __11, __12]]);
|
|
53
25
|
});
|
|
54
|
-
export const
|
|
55
|
-
|
|
26
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __10, __3, __11, __12]]);
|
|
56
28
|
});
|
|
57
|
-
export const
|
|
58
|
-
|
|
59
|
-
region: S.String.pipe(T.Label()),
|
|
60
|
-
serviceId: S.String.pipe(T.Label()),
|
|
61
|
-
}).pipe(T.Http({
|
|
62
|
-
method: "GET",
|
|
63
|
-
uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
|
|
64
|
-
code: 200,
|
|
65
|
-
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
66
|
-
}))).annotate({
|
|
67
|
-
identifier: "GetServiceStatusRegionalRequest",
|
|
29
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
30
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __10, __3, __11, __12]]);
|
|
68
31
|
});
|
|
69
|
-
|
|
70
|
-
export const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
})).
|
|
75
|
-
|
|
76
|
-
export const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
projectScope: S.optional(ParametersGeneralProjectScope),
|
|
89
|
-
})).annotate({ identifier: "ParametersGeneral" });
|
|
90
|
-
export const Parameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
91
|
-
general: S.optional(ParametersGeneral),
|
|
92
|
-
})).annotate({ identifier: "Parameters" });
|
|
93
|
-
export const ServiceStatusScope = S.String;
|
|
94
|
-
export const ServiceStatusState = S.String;
|
|
95
|
-
export const ServiceStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
96
|
-
dependencies: S.optional(Dependencies),
|
|
97
|
-
enablement: S.optional(ServiceStatusEnablement),
|
|
98
|
-
error: S.optional(ActionError),
|
|
99
|
-
labels: S.optional(ServiceStatusLabelsMap),
|
|
100
|
-
lifecycle: S.optional(ServiceStatusLifecycle),
|
|
101
|
-
parameters: S.optional(Parameters),
|
|
102
|
-
scope: S.optional(ServiceStatusScope),
|
|
103
|
-
serviceId: S.optional(S.String),
|
|
104
|
-
state: S.optional(ServiceStatusState),
|
|
105
|
-
})).annotate({ identifier: "ServiceStatus" });
|
|
106
|
-
export const ListServiceStatusRegionalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
107
|
-
projectId: S.String.pipe(T.Label()),
|
|
108
|
-
region: S.String.pipe(T.Label()),
|
|
109
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
110
|
-
}).pipe(T.Http({
|
|
111
|
-
method: "GET",
|
|
112
|
-
uri: "/v2/projects/{projectId}/regions/{region}/services",
|
|
113
|
-
code: 200,
|
|
114
|
-
baseUrl: "https://service-enablement.api.stackit.cloud",
|
|
115
|
-
}))).annotate({
|
|
116
|
-
identifier: "ListServiceStatusRegionalRequest",
|
|
117
|
-
});
|
|
118
|
-
export const ListServiceStatusRegionalResponseItemsList = /*@__PURE__*/ S.Array(ServiceStatus);
|
|
119
|
-
export const ListServiceStatusRegionalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
items: S.optional(ListServiceStatusRegionalResponseItemsList),
|
|
121
|
-
nextCursor: S.optional(S.String),
|
|
122
|
-
})).annotate({
|
|
123
|
-
identifier: "ListServiceStatusRegionalResponse",
|
|
124
|
-
});
|
|
125
|
-
/** disables the service in a project. */
|
|
126
|
-
export const disableServiceRegional = /*@__PURE__*/ API.make(() => ({
|
|
127
|
-
input: DisableServiceRegionalRequest,
|
|
128
|
-
output: DisableServiceRegionalResponse,
|
|
129
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
130
|
-
protocol: StackitProtocol,
|
|
131
|
-
retry: Retry.Retry,
|
|
132
|
-
}));
|
|
133
|
-
/** enables the service in a project. */
|
|
134
|
-
export const enableServiceRegional = /*@__PURE__*/ API.make(() => ({
|
|
135
|
-
input: EnableServiceRegionalRequest,
|
|
136
|
-
output: EnableServiceRegionalResponse,
|
|
137
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
138
|
-
protocol: StackitProtocol,
|
|
139
|
-
retry: Retry.Retry,
|
|
140
|
-
}));
|
|
141
|
-
/** returns the current status of a service in a project. */
|
|
142
|
-
export const getServiceStatusRegional = /*@__PURE__*/ API.make(() => ({
|
|
143
|
-
input: GetServiceStatusRegionalRequest,
|
|
144
|
-
output: ServiceStatus,
|
|
145
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
146
|
-
protocol: StackitProtocol,
|
|
147
|
-
retry: Retry.Retry,
|
|
148
|
-
}));
|
|
149
|
-
/** returns a list of all available services for a project. */
|
|
150
|
-
export const listServiceStatusRegional = /*@__PURE__*/ API.make(() => ({
|
|
151
|
-
input: ListServiceStatusRegionalRequest,
|
|
152
|
-
output: ListServiceStatusRegionalResponse,
|
|
153
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
154
|
-
protocol: StackitProtocol,
|
|
155
|
-
retry: Retry.Retry,
|
|
156
|
-
}));
|
|
157
|
-
//# sourceMappingURL=service_enablement.js.map
|
|
32
|
+
|
|
33
|
+
export const disableServiceRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DisableServiceRegionalRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serviceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/services/{serviceId}",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(disableServiceRegional, i));
|
|
34
|
+
|
|
35
|
+
export const enableServiceRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"EnableServiceRegionalRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serviceId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/services/{serviceId}",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(enableServiceRegional, i));
|
|
36
|
+
|
|
37
|
+
export const getServiceStatusRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:6,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetServiceStatusRegionalRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serviceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/services/{serviceId}",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getServiceStatusRegional, i));
|
|
38
|
+
|
|
39
|
+
export const listServiceStatusRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>4)@"ListServiceStatusRegionalRequest";$9(#8:6);$7(>5)@"ListServiceStatusRegionalResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),cursor:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/services",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}));$6({items:$5(#2),nextCursor:$5($3)})', [__0, __1, __2, __3, __9, __7, __4, __5, __d1, __6, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listServiceStatusRegional, i));
|
|
40
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
41
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
// Shared schema data (see `op` in core/api).
|
|
45
|
+
function __d0() {
|
|
46
|
+
return ['$2(>1)@"DisableServiceRegionalResponse";$1({})', [__0, __4, __5]];
|
|
47
|
+
}
|
|
48
|
+
function __d1() {
|
|
49
|
+
return ['$2($1);$5(>7)@"Dependencies";$5(>8)@"ActionError";$6($1,$1);$5(>9)@"ParametersGeneral";$5(>10)@"Parameters";$5(>11)@"ServiceStatus";$4({hard:$3(#0),soft:$3(#0)});$4({action:$3($1),code:$3($1),reason:$3($1)});$4({organizationId:$3($1),projectName:$3($1),projectScope:$3($1)});$4({general:$3(#4)});$4({dependencies:$3(#1),enablement:$3($1),error:$3(#2),labels:$3(#3),lifecycle:$3($1),parameters:$3(#5),scope:$3($1),serviceId:$3($1),state:$3($1)})', [__0, __3, __6, __7, __4, __5, __8]];
|
|
50
|
+
}
|