@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
package/src/services/scf.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
7
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
8
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
9
10
|
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
10
13
|
|
|
11
14
|
export type { StackitOpError, StackitOpContext };
|
|
12
15
|
|
|
@@ -43,24 +46,6 @@ export interface ApplyOrganizationQuotaRequest {
|
|
|
43
46
|
organizationId: string;
|
|
44
47
|
quotaId: string;
|
|
45
48
|
}
|
|
46
|
-
export const ApplyOrganizationQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
47
|
-
S.Struct({
|
|
48
|
-
projectId: S.String.pipe(T.Label()),
|
|
49
|
-
region: S.String.pipe(T.Label()),
|
|
50
|
-
organizationId: S.String.pipe(T.Label()),
|
|
51
|
-
quotaId: S.String,
|
|
52
|
-
}).pipe(
|
|
53
|
-
T.Http({
|
|
54
|
-
method: "POST",
|
|
55
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quota",
|
|
56
|
-
code: 200,
|
|
57
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
58
|
-
}),
|
|
59
|
-
),
|
|
60
|
-
).annotate({
|
|
61
|
-
identifier: "ApplyOrganizationQuotaRequest",
|
|
62
|
-
}) as any as S.Schema<ApplyOrganizationQuotaRequest>;
|
|
63
|
-
|
|
64
49
|
export interface OrganizationQuota {
|
|
65
50
|
orgId: string;
|
|
66
51
|
platformId: string;
|
|
@@ -68,77 +53,23 @@ export interface OrganizationQuota {
|
|
|
68
53
|
quotaId: string;
|
|
69
54
|
region: string;
|
|
70
55
|
}
|
|
71
|
-
export const OrganizationQuota = /*@__PURE__*/ S.suspend(() =>
|
|
72
|
-
S.Struct({
|
|
73
|
-
orgId: S.String,
|
|
74
|
-
platformId: S.String,
|
|
75
|
-
projectId: S.String,
|
|
76
|
-
quotaId: S.String,
|
|
77
|
-
region: S.String,
|
|
78
|
-
}),
|
|
79
|
-
).annotate({ identifier: "OrganizationQuota" }) as any as S.Schema<OrganizationQuota>;
|
|
80
|
-
|
|
81
56
|
export interface CreateOrganizationRequest {
|
|
82
57
|
projectId: string;
|
|
83
58
|
region: string;
|
|
84
59
|
name: string;
|
|
85
60
|
platformId?: string;
|
|
86
61
|
}
|
|
87
|
-
export const CreateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
88
|
-
S.Struct({
|
|
89
|
-
projectId: S.String.pipe(T.Label()),
|
|
90
|
-
region: S.String.pipe(T.Label()),
|
|
91
|
-
name: S.String,
|
|
92
|
-
platformId: S.optional(S.String),
|
|
93
|
-
}).pipe(
|
|
94
|
-
T.Http({
|
|
95
|
-
method: "POST",
|
|
96
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations",
|
|
97
|
-
code: 200,
|
|
98
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
99
|
-
}),
|
|
100
|
-
),
|
|
101
|
-
).annotate({
|
|
102
|
-
identifier: "CreateOrganizationRequest",
|
|
103
|
-
}) as any as S.Schema<CreateOrganizationRequest>;
|
|
104
|
-
|
|
105
62
|
export interface OrganizationCreateResponse {
|
|
106
63
|
guid: string;
|
|
107
64
|
platformId: string;
|
|
108
65
|
projectId: string;
|
|
109
66
|
region: string;
|
|
110
67
|
}
|
|
111
|
-
export const OrganizationCreateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
112
|
-
S.Struct({
|
|
113
|
-
guid: S.String,
|
|
114
|
-
platformId: S.String,
|
|
115
|
-
projectId: S.String,
|
|
116
|
-
region: S.String,
|
|
117
|
-
}),
|
|
118
|
-
).annotate({
|
|
119
|
-
identifier: "OrganizationCreateResponse",
|
|
120
|
-
}) as any as S.Schema<OrganizationCreateResponse>;
|
|
121
|
-
|
|
122
68
|
export interface CreateOrgManagerRequest {
|
|
123
69
|
projectId: string;
|
|
124
70
|
region: string;
|
|
125
71
|
organizationId: string;
|
|
126
72
|
}
|
|
127
|
-
export const CreateOrgManagerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
128
|
-
S.Struct({
|
|
129
|
-
projectId: S.String.pipe(T.Label()),
|
|
130
|
-
region: S.String.pipe(T.Label()),
|
|
131
|
-
organizationId: S.String.pipe(T.Label()),
|
|
132
|
-
}).pipe(
|
|
133
|
-
T.Http({
|
|
134
|
-
method: "POST",
|
|
135
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
|
|
136
|
-
code: 200,
|
|
137
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
138
|
-
}),
|
|
139
|
-
),
|
|
140
|
-
).annotate({ identifier: "CreateOrgManagerRequest" }) as any as S.Schema<CreateOrgManagerRequest>;
|
|
141
|
-
|
|
142
73
|
export interface OrgManagerResponse {
|
|
143
74
|
createdAt: string;
|
|
144
75
|
guid: string;
|
|
@@ -150,27 +81,11 @@ export interface OrgManagerResponse {
|
|
|
150
81
|
updatedAt: string;
|
|
151
82
|
username: string;
|
|
152
83
|
}
|
|
153
|
-
export const OrgManagerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
154
|
-
S.Struct({
|
|
155
|
-
createdAt: S.String,
|
|
156
|
-
guid: S.String,
|
|
157
|
-
orgId: S.String,
|
|
158
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
159
|
-
platformId: S.String,
|
|
160
|
-
projectId: S.String,
|
|
161
|
-
region: S.String,
|
|
162
|
-
updatedAt: S.String,
|
|
163
|
-
username: S.String,
|
|
164
|
-
}),
|
|
165
|
-
).annotate({ identifier: "OrgManagerResponse" }) as any as S.Schema<OrgManagerResponse>;
|
|
166
|
-
|
|
167
84
|
export type OrgRoleType =
|
|
168
85
|
| "organization_user"
|
|
169
86
|
| "organization_auditor"
|
|
170
87
|
| "organization_manager"
|
|
171
88
|
| "organization_billing_manager";
|
|
172
|
-
export const OrgRoleType = S.String;
|
|
173
|
-
|
|
174
89
|
export interface CreateOrgRoleRequest {
|
|
175
90
|
projectId: string;
|
|
176
91
|
region: string;
|
|
@@ -179,24 +94,6 @@ export interface CreateOrgRoleRequest {
|
|
|
179
94
|
userGuid?: string;
|
|
180
95
|
userName?: string;
|
|
181
96
|
}
|
|
182
|
-
export const CreateOrgRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
183
|
-
S.Struct({
|
|
184
|
-
projectId: S.String.pipe(T.Label()),
|
|
185
|
-
region: S.String.pipe(T.Label()),
|
|
186
|
-
organizationId: S.String.pipe(T.Label()),
|
|
187
|
-
type: OrgRoleType,
|
|
188
|
-
userGuid: S.optional(S.String),
|
|
189
|
-
userName: S.optional(S.String),
|
|
190
|
-
}).pipe(
|
|
191
|
-
T.Http({
|
|
192
|
-
method: "POST",
|
|
193
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/roles",
|
|
194
|
-
code: 200,
|
|
195
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
196
|
-
}),
|
|
197
|
-
),
|
|
198
|
-
).annotate({ identifier: "CreateOrgRoleRequest" }) as any as S.Schema<CreateOrgRoleRequest>;
|
|
199
|
-
|
|
200
97
|
export interface OrgRoleResponse {
|
|
201
98
|
guid: string;
|
|
202
99
|
orgId: string;
|
|
@@ -205,39 +102,12 @@ export interface OrgRoleResponse {
|
|
|
205
102
|
region: string;
|
|
206
103
|
type: OrgRoleType;
|
|
207
104
|
}
|
|
208
|
-
export const OrgRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
209
|
-
S.Struct({
|
|
210
|
-
guid: S.String,
|
|
211
|
-
orgId: S.String,
|
|
212
|
-
platformId: S.String,
|
|
213
|
-
projectId: S.String,
|
|
214
|
-
region: S.String,
|
|
215
|
-
type: OrgRoleType,
|
|
216
|
-
}),
|
|
217
|
-
).annotate({ identifier: "OrgRoleResponse" }) as any as S.Schema<OrgRoleResponse>;
|
|
218
|
-
|
|
219
105
|
export interface CreateSpaceRequest {
|
|
220
106
|
projectId: string;
|
|
221
107
|
region: string;
|
|
222
108
|
organizationId: string;
|
|
223
109
|
name: string;
|
|
224
110
|
}
|
|
225
|
-
export const CreateSpaceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
226
|
-
S.Struct({
|
|
227
|
-
projectId: S.String.pipe(T.Label()),
|
|
228
|
-
region: S.String.pipe(T.Label()),
|
|
229
|
-
organizationId: S.String.pipe(T.Label()),
|
|
230
|
-
name: S.String,
|
|
231
|
-
}).pipe(
|
|
232
|
-
T.Http({
|
|
233
|
-
method: "POST",
|
|
234
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces",
|
|
235
|
-
code: 200,
|
|
236
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
237
|
-
}),
|
|
238
|
-
),
|
|
239
|
-
).annotate({ identifier: "CreateSpaceRequest" }) as any as S.Schema<CreateSpaceRequest>;
|
|
240
|
-
|
|
241
111
|
export interface Space {
|
|
242
112
|
createdAt: string;
|
|
243
113
|
guid: string;
|
|
@@ -248,26 +118,11 @@ export interface Space {
|
|
|
248
118
|
region: string;
|
|
249
119
|
updatedAt: string;
|
|
250
120
|
}
|
|
251
|
-
export const Space = /*@__PURE__*/ S.suspend(() =>
|
|
252
|
-
S.Struct({
|
|
253
|
-
createdAt: S.String,
|
|
254
|
-
guid: S.String,
|
|
255
|
-
name: S.String,
|
|
256
|
-
orgId: S.String,
|
|
257
|
-
platformId: S.String,
|
|
258
|
-
projectId: S.String,
|
|
259
|
-
region: S.String,
|
|
260
|
-
updatedAt: S.String,
|
|
261
|
-
}),
|
|
262
|
-
).annotate({ identifier: "Space" }) as any as S.Schema<Space>;
|
|
263
|
-
|
|
264
121
|
export type SpaceRoleType =
|
|
265
122
|
| "space_auditor"
|
|
266
123
|
| "space_developer"
|
|
267
124
|
| "space_manager"
|
|
268
125
|
| "space_supporter";
|
|
269
|
-
export const SpaceRoleType = S.String;
|
|
270
|
-
|
|
271
126
|
export interface CreateSpaceRoleRequest {
|
|
272
127
|
projectId: string;
|
|
273
128
|
region: string;
|
|
@@ -277,25 +132,6 @@ export interface CreateSpaceRoleRequest {
|
|
|
277
132
|
userGuid?: string;
|
|
278
133
|
userName?: string;
|
|
279
134
|
}
|
|
280
|
-
export const CreateSpaceRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
281
|
-
S.Struct({
|
|
282
|
-
projectId: S.String.pipe(T.Label()),
|
|
283
|
-
region: S.String.pipe(T.Label()),
|
|
284
|
-
organizationId: S.String.pipe(T.Label()),
|
|
285
|
-
spaceId: S.String.pipe(T.Label()),
|
|
286
|
-
type: SpaceRoleType,
|
|
287
|
-
userGuid: S.optional(S.String),
|
|
288
|
-
userName: S.optional(S.String),
|
|
289
|
-
}).pipe(
|
|
290
|
-
T.Http({
|
|
291
|
-
method: "POST",
|
|
292
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}/roles",
|
|
293
|
-
code: 200,
|
|
294
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
295
|
-
}),
|
|
296
|
-
),
|
|
297
|
-
).annotate({ identifier: "CreateSpaceRoleRequest" }) as any as S.Schema<CreateSpaceRoleRequest>;
|
|
298
|
-
|
|
299
135
|
export interface SpaceRoleCreateResponse {
|
|
300
136
|
guid: string;
|
|
301
137
|
orgId: string;
|
|
@@ -305,137 +141,39 @@ export interface SpaceRoleCreateResponse {
|
|
|
305
141
|
spaceId: string;
|
|
306
142
|
type: SpaceRoleType;
|
|
307
143
|
}
|
|
308
|
-
export const SpaceRoleCreateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
309
|
-
S.Struct({
|
|
310
|
-
guid: S.String,
|
|
311
|
-
orgId: S.String,
|
|
312
|
-
platformId: S.String,
|
|
313
|
-
projectId: S.String,
|
|
314
|
-
region: S.String,
|
|
315
|
-
spaceId: S.String,
|
|
316
|
-
type: SpaceRoleType,
|
|
317
|
-
}),
|
|
318
|
-
).annotate({ identifier: "SpaceRoleCreateResponse" }) as any as S.Schema<SpaceRoleCreateResponse>;
|
|
319
|
-
|
|
320
144
|
export interface DeleteOrganizationRequest {
|
|
321
145
|
projectId: string;
|
|
322
146
|
region: string;
|
|
323
147
|
organizationId: string;
|
|
324
148
|
}
|
|
325
|
-
export const DeleteOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
326
|
-
S.Struct({
|
|
327
|
-
projectId: S.String.pipe(T.Label()),
|
|
328
|
-
region: S.String.pipe(T.Label()),
|
|
329
|
-
organizationId: S.String.pipe(T.Label()),
|
|
330
|
-
}).pipe(
|
|
331
|
-
T.Http({
|
|
332
|
-
method: "DELETE",
|
|
333
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
|
|
334
|
-
code: 200,
|
|
335
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
336
|
-
}),
|
|
337
|
-
),
|
|
338
|
-
).annotate({
|
|
339
|
-
identifier: "DeleteOrganizationRequest",
|
|
340
|
-
}) as any as S.Schema<DeleteOrganizationRequest>;
|
|
341
|
-
|
|
342
149
|
export interface OrganizationDeleteResponse {
|
|
343
150
|
guid: string;
|
|
344
151
|
platformId: string;
|
|
345
152
|
projectId: string;
|
|
346
153
|
region: string;
|
|
347
154
|
}
|
|
348
|
-
export const OrganizationDeleteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
349
|
-
S.Struct({
|
|
350
|
-
guid: S.String,
|
|
351
|
-
platformId: S.String,
|
|
352
|
-
projectId: S.String,
|
|
353
|
-
region: S.String,
|
|
354
|
-
}),
|
|
355
|
-
).annotate({
|
|
356
|
-
identifier: "OrganizationDeleteResponse",
|
|
357
|
-
}) as any as S.Schema<OrganizationDeleteResponse>;
|
|
358
|
-
|
|
359
155
|
export interface DeleteOrgManagerRequest {
|
|
360
156
|
projectId: string;
|
|
361
157
|
region: string;
|
|
362
158
|
organizationId: string;
|
|
363
159
|
}
|
|
364
|
-
export const DeleteOrgManagerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
365
|
-
S.Struct({
|
|
366
|
-
projectId: S.String.pipe(T.Label()),
|
|
367
|
-
region: S.String.pipe(T.Label()),
|
|
368
|
-
organizationId: S.String.pipe(T.Label()),
|
|
369
|
-
}).pipe(
|
|
370
|
-
T.Http({
|
|
371
|
-
method: "DELETE",
|
|
372
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
|
|
373
|
-
code: 200,
|
|
374
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
375
|
-
}),
|
|
376
|
-
),
|
|
377
|
-
).annotate({ identifier: "DeleteOrgManagerRequest" }) as any as S.Schema<DeleteOrgManagerRequest>;
|
|
378
|
-
|
|
379
160
|
export interface OrgManagerDeleteResponse {
|
|
380
161
|
message: string;
|
|
381
162
|
}
|
|
382
|
-
export const OrgManagerDeleteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
383
|
-
S.Struct({
|
|
384
|
-
message: S.String,
|
|
385
|
-
}),
|
|
386
|
-
).annotate({ identifier: "OrgManagerDeleteResponse" }) as any as S.Schema<OrgManagerDeleteResponse>;
|
|
387
|
-
|
|
388
163
|
export interface DeleteSpaceRequest {
|
|
389
164
|
projectId: string;
|
|
390
165
|
region: string;
|
|
391
166
|
organizationId: string;
|
|
392
167
|
spaceId: string;
|
|
393
168
|
}
|
|
394
|
-
export const DeleteSpaceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
395
|
-
S.Struct({
|
|
396
|
-
projectId: S.String.pipe(T.Label()),
|
|
397
|
-
region: S.String.pipe(T.Label()),
|
|
398
|
-
organizationId: S.String.pipe(T.Label()),
|
|
399
|
-
spaceId: S.String.pipe(T.Label()),
|
|
400
|
-
}).pipe(
|
|
401
|
-
T.Http({
|
|
402
|
-
method: "DELETE",
|
|
403
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
|
|
404
|
-
code: 200,
|
|
405
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
406
|
-
}),
|
|
407
|
-
),
|
|
408
|
-
).annotate({ identifier: "DeleteSpaceRequest" }) as any as S.Schema<DeleteSpaceRequest>;
|
|
409
|
-
|
|
410
169
|
export interface SpaceDeleteResponse {
|
|
411
170
|
message: string;
|
|
412
171
|
}
|
|
413
|
-
export const SpaceDeleteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
414
|
-
S.Struct({
|
|
415
|
-
message: S.String,
|
|
416
|
-
}),
|
|
417
|
-
).annotate({ identifier: "SpaceDeleteResponse" }) as any as S.Schema<SpaceDeleteResponse>;
|
|
418
|
-
|
|
419
172
|
export interface GetOrganizationRequest {
|
|
420
173
|
projectId: string;
|
|
421
174
|
region: string;
|
|
422
175
|
organizationId: string;
|
|
423
176
|
}
|
|
424
|
-
export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
425
|
-
S.Struct({
|
|
426
|
-
projectId: S.String.pipe(T.Label()),
|
|
427
|
-
region: S.String.pipe(T.Label()),
|
|
428
|
-
organizationId: S.String.pipe(T.Label()),
|
|
429
|
-
}).pipe(
|
|
430
|
-
T.Http({
|
|
431
|
-
method: "GET",
|
|
432
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
|
|
433
|
-
code: 200,
|
|
434
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
435
|
-
}),
|
|
436
|
-
),
|
|
437
|
-
).annotate({ identifier: "GetOrganizationRequest" }) as any as S.Schema<GetOrganizationRequest>;
|
|
438
|
-
|
|
439
177
|
export interface Organization {
|
|
440
178
|
createdAt: string;
|
|
441
179
|
guid: string;
|
|
@@ -448,45 +186,12 @@ export interface Organization {
|
|
|
448
186
|
suspended: boolean;
|
|
449
187
|
updatedAt: string;
|
|
450
188
|
}
|
|
451
|
-
export const Organization = /*@__PURE__*/ S.suspend(() =>
|
|
452
|
-
S.Struct({
|
|
453
|
-
createdAt: S.String,
|
|
454
|
-
guid: S.String,
|
|
455
|
-
name: S.String,
|
|
456
|
-
platformId: S.String,
|
|
457
|
-
projectId: S.String,
|
|
458
|
-
quotaId: S.String,
|
|
459
|
-
region: S.String,
|
|
460
|
-
status: S.String,
|
|
461
|
-
suspended: S.Boolean,
|
|
462
|
-
updatedAt: S.String,
|
|
463
|
-
}),
|
|
464
|
-
).annotate({ identifier: "Organization" }) as any as S.Schema<Organization>;
|
|
465
|
-
|
|
466
189
|
export interface GetOrganizationQuotaRequest {
|
|
467
190
|
projectId: string;
|
|
468
191
|
region: string;
|
|
469
192
|
organizationId: string;
|
|
470
193
|
quotaId: string;
|
|
471
194
|
}
|
|
472
|
-
export const GetOrganizationQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
473
|
-
S.Struct({
|
|
474
|
-
projectId: S.String.pipe(T.Label()),
|
|
475
|
-
region: S.String.pipe(T.Label()),
|
|
476
|
-
organizationId: S.String.pipe(T.Label()),
|
|
477
|
-
quotaId: S.String.pipe(T.Label()),
|
|
478
|
-
}).pipe(
|
|
479
|
-
T.Http({
|
|
480
|
-
method: "GET",
|
|
481
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quotas/{quotaId}",
|
|
482
|
-
code: 200,
|
|
483
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
484
|
-
}),
|
|
485
|
-
),
|
|
486
|
-
).annotate({
|
|
487
|
-
identifier: "GetOrganizationQuotaRequest",
|
|
488
|
-
}) as any as S.Schema<GetOrganizationQuotaRequest>;
|
|
489
|
-
|
|
490
195
|
export interface QuotaApps {
|
|
491
196
|
/** The value `null` means `unlimited`. */
|
|
492
197
|
logRateLimitInBytesPerSecond: number | null;
|
|
@@ -499,39 +204,16 @@ export interface QuotaApps {
|
|
|
499
204
|
/** The value `null` means `unlimited`. */
|
|
500
205
|
totalMemoryInMb: number | null;
|
|
501
206
|
}
|
|
502
|
-
export const QuotaApps = /*@__PURE__*/ S.suspend(() =>
|
|
503
|
-
S.Struct({
|
|
504
|
-
logRateLimitInBytesPerSecond: S.NullOr(S.Number),
|
|
505
|
-
perAppTasks: S.NullOr(S.Number),
|
|
506
|
-
perProcessMemoryInMb: S.NullOr(S.Number),
|
|
507
|
-
totalInstances: S.NullOr(S.Number),
|
|
508
|
-
totalMemoryInMb: S.NullOr(S.Number),
|
|
509
|
-
}),
|
|
510
|
-
).annotate({ identifier: "QuotaApps" }) as any as S.Schema<QuotaApps>;
|
|
511
|
-
|
|
512
207
|
export interface QuotaDomains {
|
|
513
208
|
/** The value `null` means `unlimited`. */
|
|
514
209
|
totalDomains: number | null;
|
|
515
210
|
}
|
|
516
|
-
export const QuotaDomains = /*@__PURE__*/ S.suspend(() =>
|
|
517
|
-
S.Struct({
|
|
518
|
-
totalDomains: S.NullOr(S.Number),
|
|
519
|
-
}),
|
|
520
|
-
).annotate({ identifier: "QuotaDomains" }) as any as S.Schema<QuotaDomains>;
|
|
521
|
-
|
|
522
211
|
export interface QuotaRoutes {
|
|
523
212
|
/** The value `null` means `unlimited`. */
|
|
524
213
|
totalReservedPorts: number | null;
|
|
525
214
|
/** The value `null` means `unlimited`. */
|
|
526
215
|
totalRoutes: number | null;
|
|
527
216
|
}
|
|
528
|
-
export const QuotaRoutes = /*@__PURE__*/ S.suspend(() =>
|
|
529
|
-
S.Struct({
|
|
530
|
-
totalReservedPorts: S.NullOr(S.Number),
|
|
531
|
-
totalRoutes: S.NullOr(S.Number),
|
|
532
|
-
}),
|
|
533
|
-
).annotate({ identifier: "QuotaRoutes" }) as any as S.Schema<QuotaRoutes>;
|
|
534
|
-
|
|
535
217
|
export interface QuotaServices {
|
|
536
218
|
paidServicesAllowed: boolean;
|
|
537
219
|
/** The value `null` means `unlimited`. */
|
|
@@ -539,14 +221,6 @@ export interface QuotaServices {
|
|
|
539
221
|
/** The value `null` means `unlimited`. */
|
|
540
222
|
totalServiceKeys: number | null;
|
|
541
223
|
}
|
|
542
|
-
export const QuotaServices = /*@__PURE__*/ S.suspend(() =>
|
|
543
|
-
S.Struct({
|
|
544
|
-
paidServicesAllowed: S.Boolean,
|
|
545
|
-
totalServiceInstances: S.NullOr(S.Number),
|
|
546
|
-
totalServiceKeys: S.NullOr(S.Number),
|
|
547
|
-
}),
|
|
548
|
-
).annotate({ identifier: "QuotaServices" }) as any as S.Schema<QuotaServices>;
|
|
549
|
-
|
|
550
224
|
export interface Quota {
|
|
551
225
|
apps: QuotaApps;
|
|
552
226
|
createdAt: string;
|
|
@@ -561,45 +235,11 @@ export interface Quota {
|
|
|
561
235
|
services: QuotaServices;
|
|
562
236
|
updatedAt: string;
|
|
563
237
|
}
|
|
564
|
-
export const Quota = /*@__PURE__*/ S.suspend(() =>
|
|
565
|
-
S.Struct({
|
|
566
|
-
apps: QuotaApps,
|
|
567
|
-
createdAt: S.String,
|
|
568
|
-
domains: QuotaDomains,
|
|
569
|
-
guid: S.String,
|
|
570
|
-
name: S.String,
|
|
571
|
-
orgId: S.optional(S.String),
|
|
572
|
-
platformId: S.String,
|
|
573
|
-
projectId: S.String,
|
|
574
|
-
region: S.String,
|
|
575
|
-
routes: QuotaRoutes,
|
|
576
|
-
services: QuotaServices,
|
|
577
|
-
updatedAt: S.String,
|
|
578
|
-
}),
|
|
579
|
-
).annotate({ identifier: "Quota" }) as any as S.Schema<Quota>;
|
|
580
|
-
|
|
581
238
|
export interface GetOrganizationUsageSummaryRequest {
|
|
582
239
|
projectId: string;
|
|
583
240
|
region: string;
|
|
584
241
|
organizationId: string;
|
|
585
242
|
}
|
|
586
|
-
export const GetOrganizationUsageSummaryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
587
|
-
S.Struct({
|
|
588
|
-
projectId: S.String.pipe(T.Label()),
|
|
589
|
-
region: S.String.pipe(T.Label()),
|
|
590
|
-
organizationId: S.String.pipe(T.Label()),
|
|
591
|
-
}).pipe(
|
|
592
|
-
T.Http({
|
|
593
|
-
method: "GET",
|
|
594
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/usage_summary",
|
|
595
|
-
code: 200,
|
|
596
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
597
|
-
}),
|
|
598
|
-
),
|
|
599
|
-
).annotate({
|
|
600
|
-
identifier: "GetOrganizationUsageSummaryRequest",
|
|
601
|
-
}) as any as S.Schema<GetOrganizationUsageSummaryRequest>;
|
|
602
|
-
|
|
603
243
|
export interface UsageSummary {
|
|
604
244
|
domains: number;
|
|
605
245
|
memoryInMb: number;
|
|
@@ -610,19 +250,6 @@ export interface UsageSummary {
|
|
|
610
250
|
serviceKeys: number;
|
|
611
251
|
startedInstances: number;
|
|
612
252
|
}
|
|
613
|
-
export const UsageSummary = /*@__PURE__*/ S.suspend(() =>
|
|
614
|
-
S.Struct({
|
|
615
|
-
domains: S.Number,
|
|
616
|
-
memoryInMb: S.Number,
|
|
617
|
-
perAppTasks: S.Number,
|
|
618
|
-
reservedPorts: S.Number,
|
|
619
|
-
routes: S.Number,
|
|
620
|
-
serviceInstances: S.Number,
|
|
621
|
-
serviceKeys: S.Number,
|
|
622
|
-
startedInstances: S.Number,
|
|
623
|
-
}),
|
|
624
|
-
).annotate({ identifier: "UsageSummary" }) as any as S.Schema<UsageSummary>;
|
|
625
|
-
|
|
626
253
|
export interface OrganizationUsageSummary {
|
|
627
254
|
orgId: string;
|
|
628
255
|
platformId: string;
|
|
@@ -630,36 +257,11 @@ export interface OrganizationUsageSummary {
|
|
|
630
257
|
region: string;
|
|
631
258
|
usageSummary: UsageSummary;
|
|
632
259
|
}
|
|
633
|
-
export const OrganizationUsageSummary = /*@__PURE__*/ S.suspend(() =>
|
|
634
|
-
S.Struct({
|
|
635
|
-
orgId: S.String,
|
|
636
|
-
platformId: S.String,
|
|
637
|
-
projectId: S.String,
|
|
638
|
-
region: S.String,
|
|
639
|
-
usageSummary: UsageSummary,
|
|
640
|
-
}),
|
|
641
|
-
).annotate({ identifier: "OrganizationUsageSummary" }) as any as S.Schema<OrganizationUsageSummary>;
|
|
642
|
-
|
|
643
260
|
export interface GetOrgManagerRequest {
|
|
644
261
|
projectId: string;
|
|
645
262
|
region: string;
|
|
646
263
|
organizationId: string;
|
|
647
264
|
}
|
|
648
|
-
export const GetOrgManagerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
649
|
-
S.Struct({
|
|
650
|
-
projectId: S.String.pipe(T.Label()),
|
|
651
|
-
region: S.String.pipe(T.Label()),
|
|
652
|
-
organizationId: S.String.pipe(T.Label()),
|
|
653
|
-
}).pipe(
|
|
654
|
-
T.Http({
|
|
655
|
-
method: "GET",
|
|
656
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
|
|
657
|
-
code: 200,
|
|
658
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
659
|
-
}),
|
|
660
|
-
),
|
|
661
|
-
).annotate({ identifier: "GetOrgManagerRequest" }) as any as S.Schema<GetOrgManagerRequest>;
|
|
662
|
-
|
|
663
265
|
export interface OrgManager {
|
|
664
266
|
createdAt: string;
|
|
665
267
|
guid: string;
|
|
@@ -670,39 +272,11 @@ export interface OrgManager {
|
|
|
670
272
|
updatedAt: string;
|
|
671
273
|
username: string;
|
|
672
274
|
}
|
|
673
|
-
export const OrgManager = /*@__PURE__*/ S.suspend(() =>
|
|
674
|
-
S.Struct({
|
|
675
|
-
createdAt: S.String,
|
|
676
|
-
guid: S.String,
|
|
677
|
-
orgId: S.String,
|
|
678
|
-
platformId: S.String,
|
|
679
|
-
projectId: S.String,
|
|
680
|
-
region: S.String,
|
|
681
|
-
updatedAt: S.String,
|
|
682
|
-
username: S.String,
|
|
683
|
-
}),
|
|
684
|
-
).annotate({ identifier: "OrgManager" }) as any as S.Schema<OrgManager>;
|
|
685
|
-
|
|
686
275
|
export interface GetPlatformRequest {
|
|
687
276
|
projectId: string;
|
|
688
277
|
region: string;
|
|
689
278
|
platformId: string;
|
|
690
279
|
}
|
|
691
|
-
export const GetPlatformRequest = /*@__PURE__*/ S.suspend(() =>
|
|
692
|
-
S.Struct({
|
|
693
|
-
projectId: S.String.pipe(T.Label()),
|
|
694
|
-
region: S.String.pipe(T.Label()),
|
|
695
|
-
platformId: S.String.pipe(T.Label()),
|
|
696
|
-
}).pipe(
|
|
697
|
-
T.Http({
|
|
698
|
-
method: "GET",
|
|
699
|
-
uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}",
|
|
700
|
-
code: 200,
|
|
701
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
702
|
-
}),
|
|
703
|
-
),
|
|
704
|
-
).annotate({ identifier: "GetPlatformRequest" }) as any as S.Schema<GetPlatformRequest>;
|
|
705
|
-
|
|
706
280
|
export interface Platforms {
|
|
707
281
|
apiUrl: string;
|
|
708
282
|
consoleUrl?: string;
|
|
@@ -711,95 +285,25 @@ export interface Platforms {
|
|
|
711
285
|
region: string;
|
|
712
286
|
systemId: string;
|
|
713
287
|
}
|
|
714
|
-
export const Platforms = /*@__PURE__*/ S.suspend(() =>
|
|
715
|
-
S.Struct({
|
|
716
|
-
apiUrl: S.String,
|
|
717
|
-
consoleUrl: S.optional(S.String),
|
|
718
|
-
displayName: S.String,
|
|
719
|
-
guid: S.String,
|
|
720
|
-
region: S.String,
|
|
721
|
-
systemId: S.String,
|
|
722
|
-
}),
|
|
723
|
-
).annotate({ identifier: "Platforms" }) as any as S.Schema<Platforms>;
|
|
724
|
-
|
|
725
288
|
export interface GetPlatformQuotaRequest {
|
|
726
289
|
projectId: string;
|
|
727
290
|
region: string;
|
|
728
291
|
platformId: string;
|
|
729
292
|
quotaId: string;
|
|
730
293
|
}
|
|
731
|
-
export const GetPlatformQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
732
|
-
S.Struct({
|
|
733
|
-
projectId: S.String.pipe(T.Label()),
|
|
734
|
-
region: S.String.pipe(T.Label()),
|
|
735
|
-
platformId: S.String.pipe(T.Label()),
|
|
736
|
-
quotaId: S.String.pipe(T.Label()),
|
|
737
|
-
}).pipe(
|
|
738
|
-
T.Http({
|
|
739
|
-
method: "GET",
|
|
740
|
-
uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}/quotas/{quotaId}",
|
|
741
|
-
code: 200,
|
|
742
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
743
|
-
}),
|
|
744
|
-
),
|
|
745
|
-
).annotate({ identifier: "GetPlatformQuotaRequest" }) as any as S.Schema<GetPlatformQuotaRequest>;
|
|
746
|
-
|
|
747
294
|
export interface GetSpaceRequest {
|
|
748
295
|
projectId: string;
|
|
749
296
|
region: string;
|
|
750
297
|
organizationId: string;
|
|
751
298
|
spaceId: string;
|
|
752
299
|
}
|
|
753
|
-
export const GetSpaceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
754
|
-
S.Struct({
|
|
755
|
-
projectId: S.String.pipe(T.Label()),
|
|
756
|
-
region: S.String.pipe(T.Label()),
|
|
757
|
-
organizationId: S.String.pipe(T.Label()),
|
|
758
|
-
spaceId: S.String.pipe(T.Label()),
|
|
759
|
-
}).pipe(
|
|
760
|
-
T.Http({
|
|
761
|
-
method: "GET",
|
|
762
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
|
|
763
|
-
code: 200,
|
|
764
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
765
|
-
}),
|
|
766
|
-
),
|
|
767
|
-
).annotate({ identifier: "GetSpaceRequest" }) as any as S.Schema<GetSpaceRequest>;
|
|
768
|
-
|
|
769
300
|
export interface ListOrganizationQuotasRequest {
|
|
770
301
|
projectId: string;
|
|
771
302
|
region: string;
|
|
772
303
|
organizationId: string;
|
|
773
304
|
}
|
|
774
|
-
export const ListOrganizationQuotasRequest = /*@__PURE__*/ S.suspend(() =>
|
|
775
|
-
S.Struct({
|
|
776
|
-
projectId: S.String.pipe(T.Label()),
|
|
777
|
-
region: S.String.pipe(T.Label()),
|
|
778
|
-
organizationId: S.String.pipe(T.Label()),
|
|
779
|
-
}).pipe(
|
|
780
|
-
T.Http({
|
|
781
|
-
method: "GET",
|
|
782
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quotas",
|
|
783
|
-
code: 200,
|
|
784
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
785
|
-
}),
|
|
786
|
-
),
|
|
787
|
-
).annotate({
|
|
788
|
-
identifier: "ListOrganizationQuotasRequest",
|
|
789
|
-
}) as any as S.Schema<ListOrganizationQuotasRequest>;
|
|
790
|
-
|
|
791
305
|
export type ListOrganizationQuotasResponseBodyList = Array<Quota>;
|
|
792
|
-
export const ListOrganizationQuotasResponseBodyList = /*@__PURE__*/ S.Array(
|
|
793
|
-
Quota,
|
|
794
|
-
) as any as S.Schema<ListOrganizationQuotasResponseBodyList>;
|
|
795
|
-
|
|
796
306
|
export type ListOrganizationQuotasResponse = ListOrganizationQuotasResponseBodyList;
|
|
797
|
-
export const ListOrganizationQuotasResponse = /*@__PURE__*/ S.suspend(() =>
|
|
798
|
-
ListOrganizationQuotasResponseBodyList.pipe(T.RawResponseRoot()),
|
|
799
|
-
).annotate({
|
|
800
|
-
identifier: "ListOrganizationQuotasResponse",
|
|
801
|
-
}) as any as S.Schema<ListOrganizationQuotasResponse>;
|
|
802
|
-
|
|
803
307
|
export interface ListOrganizationsRequest {
|
|
804
308
|
projectId: string;
|
|
805
309
|
region: string;
|
|
@@ -812,35 +316,10 @@ export interface ListOrganizationsRequest {
|
|
|
812
316
|
/** Elements to be returned per page */
|
|
813
317
|
perPage?: number;
|
|
814
318
|
}
|
|
815
|
-
export const ListOrganizationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
816
|
-
S.Struct({
|
|
817
|
-
projectId: S.String.pipe(T.Label()),
|
|
818
|
-
region: S.String.pipe(T.Label()),
|
|
819
|
-
withDetails: S.optional(S.Boolean.pipe(T.Query())),
|
|
820
|
-
orderBy: S.optional(S.String.pipe(T.Query())),
|
|
821
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
822
|
-
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
823
|
-
}).pipe(
|
|
824
|
-
T.Http({
|
|
825
|
-
method: "GET",
|
|
826
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations",
|
|
827
|
-
code: 200,
|
|
828
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
829
|
-
}),
|
|
830
|
-
),
|
|
831
|
-
).annotate({ identifier: "ListOrganizationsRequest" }) as any as S.Schema<ListOrganizationsRequest>;
|
|
832
|
-
|
|
833
319
|
export interface Pagination {
|
|
834
320
|
totalPages?: number;
|
|
835
321
|
totalResults?: number;
|
|
836
322
|
}
|
|
837
|
-
export const Pagination = /*@__PURE__*/ S.suspend(() =>
|
|
838
|
-
S.Struct({
|
|
839
|
-
totalPages: S.optional(S.Number),
|
|
840
|
-
totalResults: S.optional(S.Number),
|
|
841
|
-
}),
|
|
842
|
-
).annotate({ identifier: "Pagination" }) as any as S.Schema<Pagination>;
|
|
843
|
-
|
|
844
323
|
export interface OrganizationsListItem {
|
|
845
324
|
createdAt?: string;
|
|
846
325
|
guid: string;
|
|
@@ -853,71 +332,18 @@ export interface OrganizationsListItem {
|
|
|
853
332
|
suspended?: boolean;
|
|
854
333
|
updatedAt?: string;
|
|
855
334
|
}
|
|
856
|
-
export const OrganizationsListItem = /*@__PURE__*/ S.suspend(() =>
|
|
857
|
-
S.Struct({
|
|
858
|
-
createdAt: S.optional(S.String),
|
|
859
|
-
guid: S.String,
|
|
860
|
-
name: S.optional(S.String),
|
|
861
|
-
platformId: S.String,
|
|
862
|
-
projectId: S.String,
|
|
863
|
-
quotaId: S.optional(S.String),
|
|
864
|
-
region: S.String,
|
|
865
|
-
status: S.String,
|
|
866
|
-
suspended: S.optional(S.Boolean),
|
|
867
|
-
updatedAt: S.optional(S.String),
|
|
868
|
-
}),
|
|
869
|
-
).annotate({ identifier: "OrganizationsListItem" }) as any as S.Schema<OrganizationsListItem>;
|
|
870
|
-
|
|
871
335
|
export type OrganizationsListResourcesList = Array<OrganizationsListItem>;
|
|
872
|
-
export const OrganizationsListResourcesList = /*@__PURE__*/ S.Array(
|
|
873
|
-
OrganizationsListItem,
|
|
874
|
-
) as any as S.Schema<OrganizationsListResourcesList>;
|
|
875
|
-
|
|
876
336
|
export interface OrganizationsList {
|
|
877
337
|
pagination: Pagination;
|
|
878
338
|
resources: OrganizationsListResourcesList;
|
|
879
339
|
}
|
|
880
|
-
export const OrganizationsList = /*@__PURE__*/ S.suspend(() =>
|
|
881
|
-
S.Struct({
|
|
882
|
-
pagination: Pagination,
|
|
883
|
-
resources: OrganizationsListResourcesList,
|
|
884
|
-
}),
|
|
885
|
-
).annotate({ identifier: "OrganizationsList" }) as any as S.Schema<OrganizationsList>;
|
|
886
|
-
|
|
887
340
|
export interface ListPlatformQuotasRequest {
|
|
888
341
|
projectId: string;
|
|
889
342
|
region: string;
|
|
890
343
|
platformId: string;
|
|
891
344
|
}
|
|
892
|
-
export const ListPlatformQuotasRequest = /*@__PURE__*/ S.suspend(() =>
|
|
893
|
-
S.Struct({
|
|
894
|
-
projectId: S.String.pipe(T.Label()),
|
|
895
|
-
region: S.String.pipe(T.Label()),
|
|
896
|
-
platformId: S.String.pipe(T.Label()),
|
|
897
|
-
}).pipe(
|
|
898
|
-
T.Http({
|
|
899
|
-
method: "GET",
|
|
900
|
-
uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}/quotas",
|
|
901
|
-
code: 200,
|
|
902
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
903
|
-
}),
|
|
904
|
-
),
|
|
905
|
-
).annotate({
|
|
906
|
-
identifier: "ListPlatformQuotasRequest",
|
|
907
|
-
}) as any as S.Schema<ListPlatformQuotasRequest>;
|
|
908
|
-
|
|
909
345
|
export type ListPlatformQuotasResponseBodyList = Array<Quota>;
|
|
910
|
-
export const ListPlatformQuotasResponseBodyList = /*@__PURE__*/ S.Array(
|
|
911
|
-
Quota,
|
|
912
|
-
) as any as S.Schema<ListPlatformQuotasResponseBodyList>;
|
|
913
|
-
|
|
914
346
|
export type ListPlatformQuotasResponse = ListPlatformQuotasResponseBodyList;
|
|
915
|
-
export const ListPlatformQuotasResponse = /*@__PURE__*/ S.suspend(() =>
|
|
916
|
-
ListPlatformQuotasResponseBodyList.pipe(T.RawResponseRoot()),
|
|
917
|
-
).annotate({
|
|
918
|
-
identifier: "ListPlatformQuotasResponse",
|
|
919
|
-
}) as any as S.Schema<ListPlatformQuotasResponse>;
|
|
920
|
-
|
|
921
347
|
export interface ListPlatformsRequest {
|
|
922
348
|
projectId: string;
|
|
923
349
|
region: string;
|
|
@@ -926,38 +352,11 @@ export interface ListPlatformsRequest {
|
|
|
926
352
|
/** Elements to be returned per page */
|
|
927
353
|
perPage?: number;
|
|
928
354
|
}
|
|
929
|
-
export const ListPlatformsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
930
|
-
S.Struct({
|
|
931
|
-
projectId: S.String.pipe(T.Label()),
|
|
932
|
-
region: S.String.pipe(T.Label()),
|
|
933
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
934
|
-
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
935
|
-
}).pipe(
|
|
936
|
-
T.Http({
|
|
937
|
-
method: "GET",
|
|
938
|
-
uri: "/v1/projects/{projectId}/regions/{region}/platforms",
|
|
939
|
-
code: 200,
|
|
940
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
941
|
-
}),
|
|
942
|
-
),
|
|
943
|
-
).annotate({ identifier: "ListPlatformsRequest" }) as any as S.Schema<ListPlatformsRequest>;
|
|
944
|
-
|
|
945
355
|
export type PlatformListResourcesList = Array<Platforms>;
|
|
946
|
-
export const PlatformListResourcesList = /*@__PURE__*/ S.Array(
|
|
947
|
-
Platforms,
|
|
948
|
-
) as any as S.Schema<PlatformListResourcesList>;
|
|
949
|
-
|
|
950
356
|
export interface PlatformList {
|
|
951
357
|
pagination: Pagination;
|
|
952
358
|
resources: PlatformListResourcesList;
|
|
953
359
|
}
|
|
954
|
-
export const PlatformList = /*@__PURE__*/ S.suspend(() =>
|
|
955
|
-
S.Struct({
|
|
956
|
-
pagination: Pagination,
|
|
957
|
-
resources: PlatformListResourcesList,
|
|
958
|
-
}),
|
|
959
|
-
).annotate({ identifier: "PlatformList" }) as any as S.Schema<PlatformList>;
|
|
960
|
-
|
|
961
360
|
export interface ListSpacesRequest {
|
|
962
361
|
projectId: string;
|
|
963
362
|
region: string;
|
|
@@ -967,39 +366,11 @@ export interface ListSpacesRequest {
|
|
|
967
366
|
/** Elements to be returned per page */
|
|
968
367
|
perPage?: number;
|
|
969
368
|
}
|
|
970
|
-
export const ListSpacesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
971
|
-
S.Struct({
|
|
972
|
-
projectId: S.String.pipe(T.Label()),
|
|
973
|
-
region: S.String.pipe(T.Label()),
|
|
974
|
-
organizationId: S.String.pipe(T.Label()),
|
|
975
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
976
|
-
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
977
|
-
}).pipe(
|
|
978
|
-
T.Http({
|
|
979
|
-
method: "GET",
|
|
980
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces",
|
|
981
|
-
code: 200,
|
|
982
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
983
|
-
}),
|
|
984
|
-
),
|
|
985
|
-
).annotate({ identifier: "ListSpacesRequest" }) as any as S.Schema<ListSpacesRequest>;
|
|
986
|
-
|
|
987
369
|
export type SpacesListResourcesList = Array<Space>;
|
|
988
|
-
export const SpacesListResourcesList = /*@__PURE__*/ S.Array(
|
|
989
|
-
Space,
|
|
990
|
-
) as any as S.Schema<SpacesListResourcesList>;
|
|
991
|
-
|
|
992
370
|
export interface SpacesList {
|
|
993
371
|
pagination: Pagination;
|
|
994
372
|
resources: SpacesListResourcesList;
|
|
995
373
|
}
|
|
996
|
-
export const SpacesList = /*@__PURE__*/ S.suspend(() =>
|
|
997
|
-
S.Struct({
|
|
998
|
-
pagination: Pagination,
|
|
999
|
-
resources: SpacesListResourcesList,
|
|
1000
|
-
}),
|
|
1001
|
-
).annotate({ identifier: "SpacesList" }) as any as S.Schema<SpacesList>;
|
|
1002
|
-
|
|
1003
374
|
export interface UpdateOrganizationRequest {
|
|
1004
375
|
projectId: string;
|
|
1005
376
|
region: string;
|
|
@@ -1007,25 +378,6 @@ export interface UpdateOrganizationRequest {
|
|
|
1007
378
|
name?: string;
|
|
1008
379
|
suspended?: boolean;
|
|
1009
380
|
}
|
|
1010
|
-
export const UpdateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1011
|
-
S.Struct({
|
|
1012
|
-
projectId: S.String.pipe(T.Label()),
|
|
1013
|
-
region: S.String.pipe(T.Label()),
|
|
1014
|
-
organizationId: S.String.pipe(T.Label()),
|
|
1015
|
-
name: S.optional(S.String),
|
|
1016
|
-
suspended: S.optional(S.Boolean),
|
|
1017
|
-
}).pipe(
|
|
1018
|
-
T.Http({
|
|
1019
|
-
method: "PATCH",
|
|
1020
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
|
|
1021
|
-
code: 200,
|
|
1022
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
1023
|
-
}),
|
|
1024
|
-
),
|
|
1025
|
-
).annotate({
|
|
1026
|
-
identifier: "UpdateOrganizationRequest",
|
|
1027
|
-
}) as any as S.Schema<UpdateOrganizationRequest>;
|
|
1028
|
-
|
|
1029
381
|
export interface UpdateSpaceRequest {
|
|
1030
382
|
projectId: string;
|
|
1031
383
|
region: string;
|
|
@@ -1033,23 +385,6 @@ export interface UpdateSpaceRequest {
|
|
|
1033
385
|
spaceId: string;
|
|
1034
386
|
name: string;
|
|
1035
387
|
}
|
|
1036
|
-
export const UpdateSpaceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1037
|
-
S.Struct({
|
|
1038
|
-
projectId: S.String.pipe(T.Label()),
|
|
1039
|
-
region: S.String.pipe(T.Label()),
|
|
1040
|
-
organizationId: S.String.pipe(T.Label()),
|
|
1041
|
-
spaceId: S.String.pipe(T.Label()),
|
|
1042
|
-
name: S.String,
|
|
1043
|
-
}).pipe(
|
|
1044
|
-
T.Http({
|
|
1045
|
-
method: "PATCH",
|
|
1046
|
-
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
|
|
1047
|
-
code: 200,
|
|
1048
|
-
baseUrl: "https://scf.api.stackit.cloud",
|
|
1049
|
-
}),
|
|
1050
|
-
),
|
|
1051
|
-
).annotate({ identifier: "UpdateSpaceRequest" }) as any as S.Schema<UpdateSpaceRequest>;
|
|
1052
|
-
|
|
1053
388
|
export type ApplyOrganizationQuotaError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1054
389
|
/** Apply an organization quota Change the organization quota of an organization. */
|
|
1055
390
|
export const applyOrganizationQuota: API.OperationMethod<
|
|
@@ -1058,8 +393,8 @@ export const applyOrganizationQuota: API.OperationMethod<
|
|
|
1058
393
|
ApplyOrganizationQuotaError,
|
|
1059
394
|
StackitOpContext
|
|
1060
395
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1061
|
-
input: ApplyOrganizationQuotaRequest
|
|
1062
|
-
output: OrganizationQuota
|
|
396
|
+
input: __S(176, __c22, 0) as any as S.Schema<ApplyOrganizationQuotaRequest>,
|
|
397
|
+
output: __S(177, __c22, 1) as any as S.Schema<OrganizationQuota>,
|
|
1063
398
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1064
399
|
protocol: StackitProtocol,
|
|
1065
400
|
retry: Retry.Retry,
|
|
@@ -1073,8 +408,8 @@ export const createOrganization: API.OperationMethod<
|
|
|
1073
408
|
CreateOrganizationError,
|
|
1074
409
|
StackitOpContext
|
|
1075
410
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1076
|
-
input: CreateOrganizationRequest
|
|
1077
|
-
output: OrganizationCreateResponse
|
|
411
|
+
input: __S(184, __c23, 0) as any as S.Schema<CreateOrganizationRequest>,
|
|
412
|
+
output: __S(192, __c24, 0) as any as S.Schema<OrganizationCreateResponse>,
|
|
1078
413
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1079
414
|
protocol: StackitProtocol,
|
|
1080
415
|
retry: Retry.Retry,
|
|
@@ -1088,8 +423,8 @@ export const createOrgManager: API.OperationMethod<
|
|
|
1088
423
|
CreateOrgManagerError,
|
|
1089
424
|
StackitOpContext
|
|
1090
425
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1091
|
-
input: CreateOrgManagerRequest
|
|
1092
|
-
output: OrgManagerResponse
|
|
426
|
+
input: __S(200, __c25, 0) as any as S.Schema<CreateOrgManagerRequest>,
|
|
427
|
+
output: __S(201, __c25, 1) as any as S.Schema<OrgManagerResponse>,
|
|
1093
428
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1094
429
|
protocol: StackitProtocol,
|
|
1095
430
|
retry: Retry.Retry,
|
|
@@ -1103,8 +438,8 @@ export const createOrgRole: API.OperationMethod<
|
|
|
1103
438
|
CreateOrgRoleError,
|
|
1104
439
|
StackitOpContext
|
|
1105
440
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1106
|
-
input: CreateOrgRoleRequest
|
|
1107
|
-
output: OrgRoleResponse
|
|
441
|
+
input: __S(208, __c26, 0) as any as S.Schema<CreateOrgRoleRequest>,
|
|
442
|
+
output: __S(209, __c26, 1) as any as S.Schema<OrgRoleResponse>,
|
|
1108
443
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1109
444
|
protocol: StackitProtocol,
|
|
1110
445
|
retry: Retry.Retry,
|
|
@@ -1118,8 +453,8 @@ export const createSpace: API.OperationMethod<
|
|
|
1118
453
|
CreateSpaceError,
|
|
1119
454
|
StackitOpContext
|
|
1120
455
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1121
|
-
input: CreateSpaceRequest
|
|
1122
|
-
output: Space
|
|
456
|
+
input: __S(216, __c27, 0) as any as S.Schema<CreateSpaceRequest>,
|
|
457
|
+
output: __S(224, __c28, 0) as any as S.Schema<Space>,
|
|
1123
458
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1124
459
|
protocol: StackitProtocol,
|
|
1125
460
|
retry: Retry.Retry,
|
|
@@ -1133,8 +468,8 @@ export const createSpaceRole: API.OperationMethod<
|
|
|
1133
468
|
CreateSpaceRoleError,
|
|
1134
469
|
StackitOpContext
|
|
1135
470
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1136
|
-
input: CreateSpaceRoleRequest
|
|
1137
|
-
output: SpaceRoleCreateResponse
|
|
471
|
+
input: __S(232, __c29, 0) as any as S.Schema<CreateSpaceRoleRequest>,
|
|
472
|
+
output: __S(233, __c29, 1) as any as S.Schema<SpaceRoleCreateResponse>,
|
|
1138
473
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1139
474
|
protocol: StackitProtocol,
|
|
1140
475
|
retry: Retry.Retry,
|
|
@@ -1148,8 +483,8 @@ export const deleteOrganization: API.OperationMethod<
|
|
|
1148
483
|
DeleteOrganizationError,
|
|
1149
484
|
StackitOpContext
|
|
1150
485
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1151
|
-
input: DeleteOrganizationRequest
|
|
1152
|
-
output: OrganizationDeleteResponse
|
|
486
|
+
input: __S(240, __c30, 0) as any as S.Schema<DeleteOrganizationRequest>,
|
|
487
|
+
output: __S(192, __c24, 0) as any as S.Schema<OrganizationDeleteResponse>,
|
|
1153
488
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1154
489
|
protocol: StackitProtocol,
|
|
1155
490
|
retry: Retry.Retry,
|
|
@@ -1163,8 +498,8 @@ export const deleteOrgManager: API.OperationMethod<
|
|
|
1163
498
|
DeleteOrgManagerError,
|
|
1164
499
|
StackitOpContext
|
|
1165
500
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1166
|
-
input: DeleteOrgManagerRequest
|
|
1167
|
-
output: OrgManagerDeleteResponse
|
|
501
|
+
input: __S(0, __c0, 0) as any as S.Schema<DeleteOrgManagerRequest>,
|
|
502
|
+
output: __S(8, __c1, 0) as any as S.Schema<OrgManagerDeleteResponse>,
|
|
1168
503
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1169
504
|
protocol: StackitProtocol,
|
|
1170
505
|
retry: Retry.Retry,
|
|
@@ -1178,8 +513,8 @@ export const deleteSpace: API.OperationMethod<
|
|
|
1178
513
|
DeleteSpaceError,
|
|
1179
514
|
StackitOpContext
|
|
1180
515
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1181
|
-
input: DeleteSpaceRequest
|
|
1182
|
-
output: SpaceDeleteResponse
|
|
516
|
+
input: __S(16, __c2, 0) as any as S.Schema<DeleteSpaceRequest>,
|
|
517
|
+
output: __S(8, __c1, 0) as any as S.Schema<SpaceDeleteResponse>,
|
|
1183
518
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1184
519
|
protocol: StackitProtocol,
|
|
1185
520
|
retry: Retry.Retry,
|
|
@@ -1193,8 +528,8 @@ export const getOrganization: API.OperationMethod<
|
|
|
1193
528
|
GetOrganizationError,
|
|
1194
529
|
StackitOpContext
|
|
1195
530
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1196
|
-
input: GetOrganizationRequest
|
|
1197
|
-
output: Organization
|
|
531
|
+
input: __S(24, __c3, 0) as any as S.Schema<GetOrganizationRequest>,
|
|
532
|
+
output: __S(32, __c4, 0) as any as S.Schema<Organization>,
|
|
1198
533
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1199
534
|
protocol: StackitProtocol,
|
|
1200
535
|
retry: Retry.Retry,
|
|
@@ -1208,8 +543,8 @@ export const getOrganizationQuota: API.OperationMethod<
|
|
|
1208
543
|
GetOrganizationQuotaError,
|
|
1209
544
|
StackitOpContext
|
|
1210
545
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1211
|
-
input: GetOrganizationQuotaRequest
|
|
1212
|
-
output: Quota
|
|
546
|
+
input: __S(40, __c5, 0) as any as S.Schema<GetOrganizationQuotaRequest>,
|
|
547
|
+
output: __S(52, __c6, 4) as any as S.Schema<Quota>,
|
|
1213
548
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1214
549
|
protocol: StackitProtocol,
|
|
1215
550
|
retry: Retry.Retry,
|
|
@@ -1223,8 +558,8 @@ export const getOrganizationUsageSummary: API.OperationMethod<
|
|
|
1223
558
|
GetOrganizationUsageSummaryError,
|
|
1224
559
|
StackitOpContext
|
|
1225
560
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1226
|
-
input: GetOrganizationUsageSummaryRequest
|
|
1227
|
-
output: OrganizationUsageSummary
|
|
561
|
+
input: __S(56, __c7, 0) as any as S.Schema<GetOrganizationUsageSummaryRequest>,
|
|
562
|
+
output: __S(58, __c7, 2) as any as S.Schema<OrganizationUsageSummary>,
|
|
1228
563
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1229
564
|
protocol: StackitProtocol,
|
|
1230
565
|
retry: Retry.Retry,
|
|
@@ -1238,8 +573,8 @@ export const getOrgManager: API.OperationMethod<
|
|
|
1238
573
|
GetOrgManagerError,
|
|
1239
574
|
StackitOpContext
|
|
1240
575
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1241
|
-
input: GetOrgManagerRequest
|
|
1242
|
-
output: OrgManager
|
|
576
|
+
input: __S(64, __c8, 0) as any as S.Schema<GetOrgManagerRequest>,
|
|
577
|
+
output: __S(65, __c8, 1) as any as S.Schema<OrgManager>,
|
|
1243
578
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1244
579
|
protocol: StackitProtocol,
|
|
1245
580
|
retry: Retry.Retry,
|
|
@@ -1253,8 +588,8 @@ export const getPlatform: API.OperationMethod<
|
|
|
1253
588
|
GetPlatformError,
|
|
1254
589
|
StackitOpContext
|
|
1255
590
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1256
|
-
input: GetPlatformRequest
|
|
1257
|
-
output: Platforms
|
|
591
|
+
input: __S(72, __c9, 0) as any as S.Schema<GetPlatformRequest>,
|
|
592
|
+
output: __S(80, __c10, 0) as any as S.Schema<Platforms>,
|
|
1258
593
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1259
594
|
protocol: StackitProtocol,
|
|
1260
595
|
retry: Retry.Retry,
|
|
@@ -1268,8 +603,8 @@ export const getPlatformQuota: API.OperationMethod<
|
|
|
1268
603
|
GetPlatformQuotaError,
|
|
1269
604
|
StackitOpContext
|
|
1270
605
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1271
|
-
input: GetPlatformQuotaRequest
|
|
1272
|
-
output: Quota
|
|
606
|
+
input: __S(88, __c11, 0) as any as S.Schema<GetPlatformQuotaRequest>,
|
|
607
|
+
output: __S(52, __c6, 4) as any as S.Schema<Quota>,
|
|
1273
608
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1274
609
|
protocol: StackitProtocol,
|
|
1275
610
|
retry: Retry.Retry,
|
|
@@ -1283,8 +618,8 @@ export const getSpace: API.OperationMethod<
|
|
|
1283
618
|
GetSpaceError,
|
|
1284
619
|
StackitOpContext
|
|
1285
620
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1286
|
-
input: GetSpaceRequest
|
|
1287
|
-
output: Space
|
|
621
|
+
input: __S(96, __c12, 0) as any as S.Schema<GetSpaceRequest>,
|
|
622
|
+
output: __S(224, __c28, 0) as any as S.Schema<Space>,
|
|
1288
623
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1289
624
|
protocol: StackitProtocol,
|
|
1290
625
|
retry: Retry.Retry,
|
|
@@ -1298,8 +633,8 @@ export const listOrganizationQuotas: API.OperationMethod<
|
|
|
1298
633
|
ListOrganizationQuotasError,
|
|
1299
634
|
StackitOpContext
|
|
1300
635
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1301
|
-
input: ListOrganizationQuotasRequest
|
|
1302
|
-
output: ListOrganizationQuotasResponse
|
|
636
|
+
input: __S(104, __c13, 0) as any as S.Schema<ListOrganizationQuotasRequest>,
|
|
637
|
+
output: __S(113, __c14, 1) as any as S.Schema<ListOrganizationQuotasResponse>,
|
|
1303
638
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1304
639
|
protocol: StackitProtocol,
|
|
1305
640
|
retry: Retry.Retry,
|
|
@@ -1313,8 +648,8 @@ export const listOrganizations: API.OperationMethod<
|
|
|
1313
648
|
ListOrganizationsError,
|
|
1314
649
|
StackitOpContext
|
|
1315
650
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1316
|
-
input: ListOrganizationsRequest
|
|
1317
|
-
output: OrganizationsList
|
|
651
|
+
input: __S(120, __c15, 0) as any as S.Schema<ListOrganizationsRequest>,
|
|
652
|
+
output: __S(123, __c15, 3) as any as S.Schema<OrganizationsList>,
|
|
1318
653
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1319
654
|
protocol: StackitProtocol,
|
|
1320
655
|
retry: Retry.Retry,
|
|
@@ -1328,8 +663,8 @@ export const listPlatformQuotas: API.OperationMethod<
|
|
|
1328
663
|
ListPlatformQuotasError,
|
|
1329
664
|
StackitOpContext
|
|
1330
665
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1331
|
-
input: ListPlatformQuotasRequest
|
|
1332
|
-
output: ListPlatformQuotasResponse
|
|
666
|
+
input: __S(136, __c17, 0) as any as S.Schema<ListPlatformQuotasRequest>,
|
|
667
|
+
output: __S(113, __c14, 1) as any as S.Schema<ListPlatformQuotasResponse>,
|
|
1333
668
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1334
669
|
protocol: StackitProtocol,
|
|
1335
670
|
retry: Retry.Retry,
|
|
@@ -1343,8 +678,8 @@ export const listPlatforms: API.OperationMethod<
|
|
|
1343
678
|
ListPlatformsError,
|
|
1344
679
|
StackitOpContext
|
|
1345
680
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1346
|
-
input: ListPlatformsRequest
|
|
1347
|
-
output: PlatformList
|
|
681
|
+
input: __S(144, __c18, 0) as any as S.Schema<ListPlatformsRequest>,
|
|
682
|
+
output: __S(146, __c18, 2) as any as S.Schema<PlatformList>,
|
|
1348
683
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1349
684
|
protocol: StackitProtocol,
|
|
1350
685
|
retry: Retry.Retry,
|
|
@@ -1358,8 +693,8 @@ export const listSpaces: API.OperationMethod<
|
|
|
1358
693
|
ListSpacesError,
|
|
1359
694
|
StackitOpContext
|
|
1360
695
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1361
|
-
input: ListSpacesRequest
|
|
1362
|
-
output: SpacesList
|
|
696
|
+
input: __S(152, __c19, 0) as any as S.Schema<ListSpacesRequest>,
|
|
697
|
+
output: __S(154, __c19, 2) as any as S.Schema<SpacesList>,
|
|
1363
698
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1364
699
|
protocol: StackitProtocol,
|
|
1365
700
|
retry: Retry.Retry,
|
|
@@ -1373,8 +708,8 @@ export const updateOrganization: API.OperationMethod<
|
|
|
1373
708
|
UpdateOrganizationError,
|
|
1374
709
|
StackitOpContext
|
|
1375
710
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1376
|
-
input: UpdateOrganizationRequest
|
|
1377
|
-
output: Organization
|
|
711
|
+
input: __S(160, __c20, 0) as any as S.Schema<UpdateOrganizationRequest>,
|
|
712
|
+
output: __S(32, __c4, 0) as any as S.Schema<Organization>,
|
|
1378
713
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1379
714
|
protocol: StackitProtocol,
|
|
1380
715
|
retry: Retry.Retry,
|
|
@@ -1388,9 +723,748 @@ export const updateSpace: API.OperationMethod<
|
|
|
1388
723
|
UpdateSpaceError,
|
|
1389
724
|
StackitOpContext
|
|
1390
725
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1391
|
-
input: UpdateSpaceRequest
|
|
1392
|
-
output: Space
|
|
726
|
+
input: __S(168, __c21, 0) as any as S.Schema<UpdateSpaceRequest>,
|
|
727
|
+
output: __S(224, __c28, 0) as any as S.Schema<Space>,
|
|
1393
728
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1394
729
|
protocol: StackitProtocol,
|
|
1395
730
|
retry: Retry.Retry,
|
|
1396
731
|
}));
|
|
732
|
+
|
|
733
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
734
|
+
function __c0(j: number): any {
|
|
735
|
+
switch (j) {
|
|
736
|
+
case 0:
|
|
737
|
+
return S.suspend(() =>
|
|
738
|
+
S.Struct({
|
|
739
|
+
projectId: S.String.pipe(T.Label()),
|
|
740
|
+
region: S.String.pipe(T.Label()),
|
|
741
|
+
organizationId: S.String.pipe(T.Label()),
|
|
742
|
+
}).pipe(
|
|
743
|
+
T.Http({
|
|
744
|
+
method: "DELETE",
|
|
745
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
|
|
746
|
+
code: 200,
|
|
747
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
748
|
+
}),
|
|
749
|
+
),
|
|
750
|
+
).annotate({ identifier: "DeleteOrgManagerRequest" });
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
function __c1(j: number): any {
|
|
754
|
+
switch (j) {
|
|
755
|
+
case 0:
|
|
756
|
+
return S.suspend(() =>
|
|
757
|
+
S.Struct({
|
|
758
|
+
message: S.String,
|
|
759
|
+
}),
|
|
760
|
+
).annotate({ identifier: "OrgManagerDeleteResponse" });
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
function __c2(j: number): any {
|
|
764
|
+
switch (j) {
|
|
765
|
+
case 0:
|
|
766
|
+
return S.suspend(() =>
|
|
767
|
+
S.Struct({
|
|
768
|
+
projectId: S.String.pipe(T.Label()),
|
|
769
|
+
region: S.String.pipe(T.Label()),
|
|
770
|
+
organizationId: S.String.pipe(T.Label()),
|
|
771
|
+
spaceId: S.String.pipe(T.Label()),
|
|
772
|
+
}).pipe(
|
|
773
|
+
T.Http({
|
|
774
|
+
method: "DELETE",
|
|
775
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
|
|
776
|
+
code: 200,
|
|
777
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
778
|
+
}),
|
|
779
|
+
),
|
|
780
|
+
).annotate({ identifier: "DeleteSpaceRequest" });
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function __c3(j: number): any {
|
|
784
|
+
switch (j) {
|
|
785
|
+
case 0:
|
|
786
|
+
return S.suspend(() =>
|
|
787
|
+
S.Struct({
|
|
788
|
+
projectId: S.String.pipe(T.Label()),
|
|
789
|
+
region: S.String.pipe(T.Label()),
|
|
790
|
+
organizationId: S.String.pipe(T.Label()),
|
|
791
|
+
}).pipe(
|
|
792
|
+
T.Http({
|
|
793
|
+
method: "GET",
|
|
794
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
|
|
795
|
+
code: 200,
|
|
796
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
797
|
+
}),
|
|
798
|
+
),
|
|
799
|
+
).annotate({ identifier: "GetOrganizationRequest" });
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
function __c4(j: number): any {
|
|
803
|
+
switch (j) {
|
|
804
|
+
case 0:
|
|
805
|
+
return S.suspend(() =>
|
|
806
|
+
S.Struct({
|
|
807
|
+
createdAt: S.String,
|
|
808
|
+
guid: S.String,
|
|
809
|
+
name: S.String,
|
|
810
|
+
platformId: S.String,
|
|
811
|
+
projectId: S.String,
|
|
812
|
+
quotaId: S.String,
|
|
813
|
+
region: S.String,
|
|
814
|
+
status: S.String,
|
|
815
|
+
suspended: S.Boolean,
|
|
816
|
+
updatedAt: S.String,
|
|
817
|
+
}),
|
|
818
|
+
).annotate({ identifier: "Organization" });
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
function __c5(j: number): any {
|
|
822
|
+
switch (j) {
|
|
823
|
+
case 0:
|
|
824
|
+
return S.suspend(() =>
|
|
825
|
+
S.Struct({
|
|
826
|
+
projectId: S.String.pipe(T.Label()),
|
|
827
|
+
region: S.String.pipe(T.Label()),
|
|
828
|
+
organizationId: S.String.pipe(T.Label()),
|
|
829
|
+
quotaId: S.String.pipe(T.Label()),
|
|
830
|
+
}).pipe(
|
|
831
|
+
T.Http({
|
|
832
|
+
method: "GET",
|
|
833
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quotas/{quotaId}",
|
|
834
|
+
code: 200,
|
|
835
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
836
|
+
}),
|
|
837
|
+
),
|
|
838
|
+
).annotate({ identifier: "GetOrganizationQuotaRequest" });
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
function __c6(j: number): any {
|
|
842
|
+
switch (j) {
|
|
843
|
+
case 0:
|
|
844
|
+
return S.suspend(() =>
|
|
845
|
+
S.Struct({
|
|
846
|
+
logRateLimitInBytesPerSecond: S.NullOr(S.Number),
|
|
847
|
+
perAppTasks: S.NullOr(S.Number),
|
|
848
|
+
perProcessMemoryInMb: S.NullOr(S.Number),
|
|
849
|
+
totalInstances: S.NullOr(S.Number),
|
|
850
|
+
totalMemoryInMb: S.NullOr(S.Number),
|
|
851
|
+
}),
|
|
852
|
+
).annotate({ identifier: "QuotaApps" });
|
|
853
|
+
case 1:
|
|
854
|
+
return S.suspend(() =>
|
|
855
|
+
S.Struct({
|
|
856
|
+
totalDomains: S.NullOr(S.Number),
|
|
857
|
+
}),
|
|
858
|
+
).annotate({ identifier: "QuotaDomains" });
|
|
859
|
+
case 2:
|
|
860
|
+
return S.suspend(() =>
|
|
861
|
+
S.Struct({
|
|
862
|
+
totalReservedPorts: S.NullOr(S.Number),
|
|
863
|
+
totalRoutes: S.NullOr(S.Number),
|
|
864
|
+
}),
|
|
865
|
+
).annotate({ identifier: "QuotaRoutes" });
|
|
866
|
+
case 3:
|
|
867
|
+
return S.suspend(() =>
|
|
868
|
+
S.Struct({
|
|
869
|
+
paidServicesAllowed: S.Boolean,
|
|
870
|
+
totalServiceInstances: S.NullOr(S.Number),
|
|
871
|
+
totalServiceKeys: S.NullOr(S.Number),
|
|
872
|
+
}),
|
|
873
|
+
).annotate({ identifier: "QuotaServices" });
|
|
874
|
+
case 4:
|
|
875
|
+
return S.suspend(() =>
|
|
876
|
+
S.Struct({
|
|
877
|
+
apps: __S(48, __c6, 0),
|
|
878
|
+
createdAt: S.String,
|
|
879
|
+
domains: __S(49, __c6, 1),
|
|
880
|
+
guid: S.String,
|
|
881
|
+
name: S.String,
|
|
882
|
+
orgId: S.optional(S.String),
|
|
883
|
+
platformId: S.String,
|
|
884
|
+
projectId: S.String,
|
|
885
|
+
region: S.String,
|
|
886
|
+
routes: __S(50, __c6, 2),
|
|
887
|
+
services: __S(51, __c6, 3),
|
|
888
|
+
updatedAt: S.String,
|
|
889
|
+
}),
|
|
890
|
+
).annotate({ identifier: "Quota" });
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
function __c7(j: number): any {
|
|
894
|
+
switch (j) {
|
|
895
|
+
case 0:
|
|
896
|
+
return S.suspend(() =>
|
|
897
|
+
S.Struct({
|
|
898
|
+
projectId: S.String.pipe(T.Label()),
|
|
899
|
+
region: S.String.pipe(T.Label()),
|
|
900
|
+
organizationId: S.String.pipe(T.Label()),
|
|
901
|
+
}).pipe(
|
|
902
|
+
T.Http({
|
|
903
|
+
method: "GET",
|
|
904
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/usage_summary",
|
|
905
|
+
code: 200,
|
|
906
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
907
|
+
}),
|
|
908
|
+
),
|
|
909
|
+
).annotate({ identifier: "GetOrganizationUsageSummaryRequest" });
|
|
910
|
+
case 1:
|
|
911
|
+
return S.suspend(() =>
|
|
912
|
+
S.Struct({
|
|
913
|
+
domains: S.Number,
|
|
914
|
+
memoryInMb: S.Number,
|
|
915
|
+
perAppTasks: S.Number,
|
|
916
|
+
reservedPorts: S.Number,
|
|
917
|
+
routes: S.Number,
|
|
918
|
+
serviceInstances: S.Number,
|
|
919
|
+
serviceKeys: S.Number,
|
|
920
|
+
startedInstances: S.Number,
|
|
921
|
+
}),
|
|
922
|
+
).annotate({ identifier: "UsageSummary" });
|
|
923
|
+
case 2:
|
|
924
|
+
return S.suspend(() =>
|
|
925
|
+
S.Struct({
|
|
926
|
+
orgId: S.String,
|
|
927
|
+
platformId: S.String,
|
|
928
|
+
projectId: S.String,
|
|
929
|
+
region: S.String,
|
|
930
|
+
usageSummary: __S(57, __c7, 1),
|
|
931
|
+
}),
|
|
932
|
+
).annotate({ identifier: "OrganizationUsageSummary" });
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
function __c8(j: number): any {
|
|
936
|
+
switch (j) {
|
|
937
|
+
case 0:
|
|
938
|
+
return S.suspend(() =>
|
|
939
|
+
S.Struct({
|
|
940
|
+
projectId: S.String.pipe(T.Label()),
|
|
941
|
+
region: S.String.pipe(T.Label()),
|
|
942
|
+
organizationId: S.String.pipe(T.Label()),
|
|
943
|
+
}).pipe(
|
|
944
|
+
T.Http({
|
|
945
|
+
method: "GET",
|
|
946
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
|
|
947
|
+
code: 200,
|
|
948
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
949
|
+
}),
|
|
950
|
+
),
|
|
951
|
+
).annotate({ identifier: "GetOrgManagerRequest" });
|
|
952
|
+
case 1:
|
|
953
|
+
return S.suspend(() =>
|
|
954
|
+
S.Struct({
|
|
955
|
+
createdAt: S.String,
|
|
956
|
+
guid: S.String,
|
|
957
|
+
orgId: S.String,
|
|
958
|
+
platformId: S.String,
|
|
959
|
+
projectId: S.String,
|
|
960
|
+
region: S.String,
|
|
961
|
+
updatedAt: S.String,
|
|
962
|
+
username: S.String,
|
|
963
|
+
}),
|
|
964
|
+
).annotate({ identifier: "OrgManager" });
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
function __c9(j: number): any {
|
|
968
|
+
switch (j) {
|
|
969
|
+
case 0:
|
|
970
|
+
return S.suspend(() =>
|
|
971
|
+
S.Struct({
|
|
972
|
+
projectId: S.String.pipe(T.Label()),
|
|
973
|
+
region: S.String.pipe(T.Label()),
|
|
974
|
+
platformId: S.String.pipe(T.Label()),
|
|
975
|
+
}).pipe(
|
|
976
|
+
T.Http({
|
|
977
|
+
method: "GET",
|
|
978
|
+
uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}",
|
|
979
|
+
code: 200,
|
|
980
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
981
|
+
}),
|
|
982
|
+
),
|
|
983
|
+
).annotate({ identifier: "GetPlatformRequest" });
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
function __c10(j: number): any {
|
|
987
|
+
switch (j) {
|
|
988
|
+
case 0:
|
|
989
|
+
return S.suspend(() =>
|
|
990
|
+
S.Struct({
|
|
991
|
+
apiUrl: S.String,
|
|
992
|
+
consoleUrl: S.optional(S.String),
|
|
993
|
+
displayName: S.String,
|
|
994
|
+
guid: S.String,
|
|
995
|
+
region: S.String,
|
|
996
|
+
systemId: S.String,
|
|
997
|
+
}),
|
|
998
|
+
).annotate({ identifier: "Platforms" });
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
function __c11(j: number): any {
|
|
1002
|
+
switch (j) {
|
|
1003
|
+
case 0:
|
|
1004
|
+
return S.suspend(() =>
|
|
1005
|
+
S.Struct({
|
|
1006
|
+
projectId: S.String.pipe(T.Label()),
|
|
1007
|
+
region: S.String.pipe(T.Label()),
|
|
1008
|
+
platformId: S.String.pipe(T.Label()),
|
|
1009
|
+
quotaId: S.String.pipe(T.Label()),
|
|
1010
|
+
}).pipe(
|
|
1011
|
+
T.Http({
|
|
1012
|
+
method: "GET",
|
|
1013
|
+
uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}/quotas/{quotaId}",
|
|
1014
|
+
code: 200,
|
|
1015
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1016
|
+
}),
|
|
1017
|
+
),
|
|
1018
|
+
).annotate({ identifier: "GetPlatformQuotaRequest" });
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
function __c12(j: number): any {
|
|
1022
|
+
switch (j) {
|
|
1023
|
+
case 0:
|
|
1024
|
+
return S.suspend(() =>
|
|
1025
|
+
S.Struct({
|
|
1026
|
+
projectId: S.String.pipe(T.Label()),
|
|
1027
|
+
region: S.String.pipe(T.Label()),
|
|
1028
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1029
|
+
spaceId: S.String.pipe(T.Label()),
|
|
1030
|
+
}).pipe(
|
|
1031
|
+
T.Http({
|
|
1032
|
+
method: "GET",
|
|
1033
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
|
|
1034
|
+
code: 200,
|
|
1035
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1036
|
+
}),
|
|
1037
|
+
),
|
|
1038
|
+
).annotate({ identifier: "GetSpaceRequest" });
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
function __c13(j: number): any {
|
|
1042
|
+
switch (j) {
|
|
1043
|
+
case 0:
|
|
1044
|
+
return S.suspend(() =>
|
|
1045
|
+
S.Struct({
|
|
1046
|
+
projectId: S.String.pipe(T.Label()),
|
|
1047
|
+
region: S.String.pipe(T.Label()),
|
|
1048
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1049
|
+
}).pipe(
|
|
1050
|
+
T.Http({
|
|
1051
|
+
method: "GET",
|
|
1052
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quotas",
|
|
1053
|
+
code: 200,
|
|
1054
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1055
|
+
}),
|
|
1056
|
+
),
|
|
1057
|
+
).annotate({ identifier: "ListOrganizationQuotasRequest" });
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
function __c14(j: number): any {
|
|
1061
|
+
switch (j) {
|
|
1062
|
+
case 0:
|
|
1063
|
+
return S.Array(__S(52, __c6, 4));
|
|
1064
|
+
case 1:
|
|
1065
|
+
return S.suspend(() => __S(112, __c14, 0).pipe(T.RawResponseRoot())).annotate({
|
|
1066
|
+
identifier: "ListOrganizationQuotasResponse",
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
function __c15(j: number): any {
|
|
1071
|
+
switch (j) {
|
|
1072
|
+
case 0:
|
|
1073
|
+
return S.suspend(() =>
|
|
1074
|
+
S.Struct({
|
|
1075
|
+
projectId: S.String.pipe(T.Label()),
|
|
1076
|
+
region: S.String.pipe(T.Label()),
|
|
1077
|
+
withDetails: S.optional(S.Boolean.pipe(T.Query())),
|
|
1078
|
+
orderBy: S.optional(S.String.pipe(T.Query())),
|
|
1079
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1080
|
+
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
1081
|
+
}).pipe(
|
|
1082
|
+
T.Http({
|
|
1083
|
+
method: "GET",
|
|
1084
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations",
|
|
1085
|
+
code: 200,
|
|
1086
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1087
|
+
}),
|
|
1088
|
+
),
|
|
1089
|
+
).annotate({ identifier: "ListOrganizationsRequest" });
|
|
1090
|
+
case 1:
|
|
1091
|
+
return S.suspend(() =>
|
|
1092
|
+
S.Struct({
|
|
1093
|
+
createdAt: S.optional(S.String),
|
|
1094
|
+
guid: S.String,
|
|
1095
|
+
name: S.optional(S.String),
|
|
1096
|
+
platformId: S.String,
|
|
1097
|
+
projectId: S.String,
|
|
1098
|
+
quotaId: S.optional(S.String),
|
|
1099
|
+
region: S.String,
|
|
1100
|
+
status: S.String,
|
|
1101
|
+
suspended: S.optional(S.Boolean),
|
|
1102
|
+
updatedAt: S.optional(S.String),
|
|
1103
|
+
}),
|
|
1104
|
+
).annotate({ identifier: "OrganizationsListItem" });
|
|
1105
|
+
case 2:
|
|
1106
|
+
return S.Array(__S(121, __c15, 1));
|
|
1107
|
+
case 3:
|
|
1108
|
+
return S.suspend(() =>
|
|
1109
|
+
S.Struct({
|
|
1110
|
+
pagination: __S(128, __c16, 0),
|
|
1111
|
+
resources: __S(122, __c15, 2),
|
|
1112
|
+
}),
|
|
1113
|
+
).annotate({ identifier: "OrganizationsList" });
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
function __c16(j: number): any {
|
|
1117
|
+
switch (j) {
|
|
1118
|
+
case 0:
|
|
1119
|
+
return S.suspend(() =>
|
|
1120
|
+
S.Struct({
|
|
1121
|
+
totalPages: S.optional(S.Number),
|
|
1122
|
+
totalResults: S.optional(S.Number),
|
|
1123
|
+
}),
|
|
1124
|
+
).annotate({ identifier: "Pagination" });
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
function __c17(j: number): any {
|
|
1128
|
+
switch (j) {
|
|
1129
|
+
case 0:
|
|
1130
|
+
return S.suspend(() =>
|
|
1131
|
+
S.Struct({
|
|
1132
|
+
projectId: S.String.pipe(T.Label()),
|
|
1133
|
+
region: S.String.pipe(T.Label()),
|
|
1134
|
+
platformId: S.String.pipe(T.Label()),
|
|
1135
|
+
}).pipe(
|
|
1136
|
+
T.Http({
|
|
1137
|
+
method: "GET",
|
|
1138
|
+
uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}/quotas",
|
|
1139
|
+
code: 200,
|
|
1140
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1141
|
+
}),
|
|
1142
|
+
),
|
|
1143
|
+
).annotate({ identifier: "ListPlatformQuotasRequest" });
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
function __c18(j: number): any {
|
|
1147
|
+
switch (j) {
|
|
1148
|
+
case 0:
|
|
1149
|
+
return S.suspend(() =>
|
|
1150
|
+
S.Struct({
|
|
1151
|
+
projectId: S.String.pipe(T.Label()),
|
|
1152
|
+
region: S.String.pipe(T.Label()),
|
|
1153
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1154
|
+
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
1155
|
+
}).pipe(
|
|
1156
|
+
T.Http({
|
|
1157
|
+
method: "GET",
|
|
1158
|
+
uri: "/v1/projects/{projectId}/regions/{region}/platforms",
|
|
1159
|
+
code: 200,
|
|
1160
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1161
|
+
}),
|
|
1162
|
+
),
|
|
1163
|
+
).annotate({ identifier: "ListPlatformsRequest" });
|
|
1164
|
+
case 1:
|
|
1165
|
+
return S.Array(__S(80, __c10, 0));
|
|
1166
|
+
case 2:
|
|
1167
|
+
return S.suspend(() =>
|
|
1168
|
+
S.Struct({
|
|
1169
|
+
pagination: __S(128, __c16, 0),
|
|
1170
|
+
resources: __S(145, __c18, 1),
|
|
1171
|
+
}),
|
|
1172
|
+
).annotate({ identifier: "PlatformList" });
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
function __c19(j: number): any {
|
|
1176
|
+
switch (j) {
|
|
1177
|
+
case 0:
|
|
1178
|
+
return S.suspend(() =>
|
|
1179
|
+
S.Struct({
|
|
1180
|
+
projectId: S.String.pipe(T.Label()),
|
|
1181
|
+
region: S.String.pipe(T.Label()),
|
|
1182
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1183
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1184
|
+
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
1185
|
+
}).pipe(
|
|
1186
|
+
T.Http({
|
|
1187
|
+
method: "GET",
|
|
1188
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces",
|
|
1189
|
+
code: 200,
|
|
1190
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1191
|
+
}),
|
|
1192
|
+
),
|
|
1193
|
+
).annotate({ identifier: "ListSpacesRequest" });
|
|
1194
|
+
case 1:
|
|
1195
|
+
return S.Array(__S(224, __c28, 0));
|
|
1196
|
+
case 2:
|
|
1197
|
+
return S.suspend(() =>
|
|
1198
|
+
S.Struct({
|
|
1199
|
+
pagination: __S(128, __c16, 0),
|
|
1200
|
+
resources: __S(153, __c19, 1),
|
|
1201
|
+
}),
|
|
1202
|
+
).annotate({ identifier: "SpacesList" });
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
function __c20(j: number): any {
|
|
1206
|
+
switch (j) {
|
|
1207
|
+
case 0:
|
|
1208
|
+
return S.suspend(() =>
|
|
1209
|
+
S.Struct({
|
|
1210
|
+
projectId: S.String.pipe(T.Label()),
|
|
1211
|
+
region: S.String.pipe(T.Label()),
|
|
1212
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1213
|
+
name: S.optional(S.String),
|
|
1214
|
+
suspended: S.optional(S.Boolean),
|
|
1215
|
+
}).pipe(
|
|
1216
|
+
T.Http({
|
|
1217
|
+
method: "PATCH",
|
|
1218
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
|
|
1219
|
+
code: 200,
|
|
1220
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1221
|
+
}),
|
|
1222
|
+
),
|
|
1223
|
+
).annotate({ identifier: "UpdateOrganizationRequest" });
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
function __c21(j: number): any {
|
|
1227
|
+
switch (j) {
|
|
1228
|
+
case 0:
|
|
1229
|
+
return S.suspend(() =>
|
|
1230
|
+
S.Struct({
|
|
1231
|
+
projectId: S.String.pipe(T.Label()),
|
|
1232
|
+
region: S.String.pipe(T.Label()),
|
|
1233
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1234
|
+
spaceId: S.String.pipe(T.Label()),
|
|
1235
|
+
name: S.String,
|
|
1236
|
+
}).pipe(
|
|
1237
|
+
T.Http({
|
|
1238
|
+
method: "PATCH",
|
|
1239
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
|
|
1240
|
+
code: 200,
|
|
1241
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1242
|
+
}),
|
|
1243
|
+
),
|
|
1244
|
+
).annotate({ identifier: "UpdateSpaceRequest" });
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
function __c22(j: number): any {
|
|
1248
|
+
switch (j) {
|
|
1249
|
+
case 0:
|
|
1250
|
+
return S.suspend(() =>
|
|
1251
|
+
S.Struct({
|
|
1252
|
+
projectId: S.String.pipe(T.Label()),
|
|
1253
|
+
region: S.String.pipe(T.Label()),
|
|
1254
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1255
|
+
quotaId: S.String,
|
|
1256
|
+
}).pipe(
|
|
1257
|
+
T.Http({
|
|
1258
|
+
method: "POST",
|
|
1259
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quota",
|
|
1260
|
+
code: 200,
|
|
1261
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1262
|
+
}),
|
|
1263
|
+
),
|
|
1264
|
+
).annotate({ identifier: "ApplyOrganizationQuotaRequest" });
|
|
1265
|
+
case 1:
|
|
1266
|
+
return S.suspend(() =>
|
|
1267
|
+
S.Struct({
|
|
1268
|
+
orgId: S.String,
|
|
1269
|
+
platformId: S.String,
|
|
1270
|
+
projectId: S.String,
|
|
1271
|
+
quotaId: S.String,
|
|
1272
|
+
region: S.String,
|
|
1273
|
+
}),
|
|
1274
|
+
).annotate({ identifier: "OrganizationQuota" });
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
function __c23(j: number): any {
|
|
1278
|
+
switch (j) {
|
|
1279
|
+
case 0:
|
|
1280
|
+
return S.suspend(() =>
|
|
1281
|
+
S.Struct({
|
|
1282
|
+
projectId: S.String.pipe(T.Label()),
|
|
1283
|
+
region: S.String.pipe(T.Label()),
|
|
1284
|
+
name: S.String,
|
|
1285
|
+
platformId: S.optional(S.String),
|
|
1286
|
+
}).pipe(
|
|
1287
|
+
T.Http({
|
|
1288
|
+
method: "POST",
|
|
1289
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations",
|
|
1290
|
+
code: 200,
|
|
1291
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1292
|
+
}),
|
|
1293
|
+
),
|
|
1294
|
+
).annotate({ identifier: "CreateOrganizationRequest" });
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
function __c24(j: number): any {
|
|
1298
|
+
switch (j) {
|
|
1299
|
+
case 0:
|
|
1300
|
+
return S.suspend(() =>
|
|
1301
|
+
S.Struct({
|
|
1302
|
+
guid: S.String,
|
|
1303
|
+
platformId: S.String,
|
|
1304
|
+
projectId: S.String,
|
|
1305
|
+
region: S.String,
|
|
1306
|
+
}),
|
|
1307
|
+
).annotate({ identifier: "OrganizationCreateResponse" });
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
function __c25(j: number): any {
|
|
1311
|
+
switch (j) {
|
|
1312
|
+
case 0:
|
|
1313
|
+
return S.suspend(() =>
|
|
1314
|
+
S.Struct({
|
|
1315
|
+
projectId: S.String.pipe(T.Label()),
|
|
1316
|
+
region: S.String.pipe(T.Label()),
|
|
1317
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1318
|
+
}).pipe(
|
|
1319
|
+
T.Http({
|
|
1320
|
+
method: "POST",
|
|
1321
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
|
|
1322
|
+
code: 200,
|
|
1323
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1324
|
+
}),
|
|
1325
|
+
),
|
|
1326
|
+
).annotate({ identifier: "CreateOrgManagerRequest" });
|
|
1327
|
+
case 1:
|
|
1328
|
+
return S.suspend(() =>
|
|
1329
|
+
S.Struct({
|
|
1330
|
+
createdAt: S.String,
|
|
1331
|
+
guid: S.String,
|
|
1332
|
+
orgId: S.String,
|
|
1333
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
1334
|
+
platformId: S.String,
|
|
1335
|
+
projectId: S.String,
|
|
1336
|
+
region: S.String,
|
|
1337
|
+
updatedAt: S.String,
|
|
1338
|
+
username: S.String,
|
|
1339
|
+
}),
|
|
1340
|
+
).annotate({ identifier: "OrgManagerResponse" });
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
function __c26(j: number): any {
|
|
1344
|
+
switch (j) {
|
|
1345
|
+
case 0:
|
|
1346
|
+
return S.suspend(() =>
|
|
1347
|
+
S.Struct({
|
|
1348
|
+
projectId: S.String.pipe(T.Label()),
|
|
1349
|
+
region: S.String.pipe(T.Label()),
|
|
1350
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1351
|
+
type: S.String,
|
|
1352
|
+
userGuid: S.optional(S.String),
|
|
1353
|
+
userName: S.optional(S.String),
|
|
1354
|
+
}).pipe(
|
|
1355
|
+
T.Http({
|
|
1356
|
+
method: "POST",
|
|
1357
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/roles",
|
|
1358
|
+
code: 200,
|
|
1359
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1360
|
+
}),
|
|
1361
|
+
),
|
|
1362
|
+
).annotate({ identifier: "CreateOrgRoleRequest" });
|
|
1363
|
+
case 1:
|
|
1364
|
+
return S.suspend(() =>
|
|
1365
|
+
S.Struct({
|
|
1366
|
+
guid: S.String,
|
|
1367
|
+
orgId: S.String,
|
|
1368
|
+
platformId: S.String,
|
|
1369
|
+
projectId: S.String,
|
|
1370
|
+
region: S.String,
|
|
1371
|
+
type: S.String,
|
|
1372
|
+
}),
|
|
1373
|
+
).annotate({ identifier: "OrgRoleResponse" });
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
function __c27(j: number): any {
|
|
1377
|
+
switch (j) {
|
|
1378
|
+
case 0:
|
|
1379
|
+
return S.suspend(() =>
|
|
1380
|
+
S.Struct({
|
|
1381
|
+
projectId: S.String.pipe(T.Label()),
|
|
1382
|
+
region: S.String.pipe(T.Label()),
|
|
1383
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1384
|
+
name: S.String,
|
|
1385
|
+
}).pipe(
|
|
1386
|
+
T.Http({
|
|
1387
|
+
method: "POST",
|
|
1388
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces",
|
|
1389
|
+
code: 200,
|
|
1390
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1391
|
+
}),
|
|
1392
|
+
),
|
|
1393
|
+
).annotate({ identifier: "CreateSpaceRequest" });
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
function __c28(j: number): any {
|
|
1397
|
+
switch (j) {
|
|
1398
|
+
case 0:
|
|
1399
|
+
return S.suspend(() =>
|
|
1400
|
+
S.Struct({
|
|
1401
|
+
createdAt: S.String,
|
|
1402
|
+
guid: S.String,
|
|
1403
|
+
name: S.String,
|
|
1404
|
+
orgId: S.String,
|
|
1405
|
+
platformId: S.String,
|
|
1406
|
+
projectId: S.String,
|
|
1407
|
+
region: S.String,
|
|
1408
|
+
updatedAt: S.String,
|
|
1409
|
+
}),
|
|
1410
|
+
).annotate({ identifier: "Space" });
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
function __c29(j: number): any {
|
|
1414
|
+
switch (j) {
|
|
1415
|
+
case 0:
|
|
1416
|
+
return S.suspend(() =>
|
|
1417
|
+
S.Struct({
|
|
1418
|
+
projectId: S.String.pipe(T.Label()),
|
|
1419
|
+
region: S.String.pipe(T.Label()),
|
|
1420
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1421
|
+
spaceId: S.String.pipe(T.Label()),
|
|
1422
|
+
type: S.String,
|
|
1423
|
+
userGuid: S.optional(S.String),
|
|
1424
|
+
userName: S.optional(S.String),
|
|
1425
|
+
}).pipe(
|
|
1426
|
+
T.Http({
|
|
1427
|
+
method: "POST",
|
|
1428
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}/roles",
|
|
1429
|
+
code: 200,
|
|
1430
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1431
|
+
}),
|
|
1432
|
+
),
|
|
1433
|
+
).annotate({ identifier: "CreateSpaceRoleRequest" });
|
|
1434
|
+
case 1:
|
|
1435
|
+
return S.suspend(() =>
|
|
1436
|
+
S.Struct({
|
|
1437
|
+
guid: S.String,
|
|
1438
|
+
orgId: S.String,
|
|
1439
|
+
platformId: S.String,
|
|
1440
|
+
projectId: S.String,
|
|
1441
|
+
region: S.String,
|
|
1442
|
+
spaceId: S.String,
|
|
1443
|
+
type: S.String,
|
|
1444
|
+
}),
|
|
1445
|
+
).annotate({ identifier: "SpaceRoleCreateResponse" });
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
function __c30(j: number): any {
|
|
1449
|
+
switch (j) {
|
|
1450
|
+
case 0:
|
|
1451
|
+
return S.suspend(() =>
|
|
1452
|
+
S.Struct({
|
|
1453
|
+
projectId: S.String.pipe(T.Label()),
|
|
1454
|
+
region: S.String.pipe(T.Label()),
|
|
1455
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1456
|
+
}).pipe(
|
|
1457
|
+
T.Http({
|
|
1458
|
+
method: "DELETE",
|
|
1459
|
+
uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
|
|
1460
|
+
code: 200,
|
|
1461
|
+
baseUrl: "https://scf.api.stackit.cloud",
|
|
1462
|
+
}),
|
|
1463
|
+
),
|
|
1464
|
+
).annotate({ identifier: "DeleteOrganizationRequest" });
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1468
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1469
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1470
|
+
}
|