@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,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
|
|
|
@@ -64,22 +67,6 @@ export interface CreateAccessKeyRequest {
|
|
|
64
67
|
/** Expiration date. Null means never expires. */
|
|
65
68
|
expires?: string | null;
|
|
66
69
|
}
|
|
67
|
-
export const CreateAccessKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
68
|
-
S.Struct({
|
|
69
|
-
projectId: S.String.pipe(T.Label()),
|
|
70
|
-
region: S.String.pipe(T.Label()),
|
|
71
|
-
credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
|
|
72
|
-
expires: S.optional(S.NullOr(S.String)),
|
|
73
|
-
}).pipe(
|
|
74
|
-
T.Http({
|
|
75
|
-
method: "POST",
|
|
76
|
-
uri: "/v2/project/{projectId}/regions/{region}/access-key",
|
|
77
|
-
code: 200,
|
|
78
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
79
|
-
}),
|
|
80
|
-
),
|
|
81
|
-
).annotate({ identifier: "CreateAccessKeyRequest" }) as any as S.Schema<CreateAccessKeyRequest>;
|
|
82
|
-
|
|
83
70
|
export interface CreateAccessKeyResponse {
|
|
84
71
|
/** Access key */
|
|
85
72
|
accessKey: string;
|
|
@@ -94,17 +81,6 @@ export interface CreateAccessKeyResponse {
|
|
|
94
81
|
/** Secret access key */
|
|
95
82
|
secretAccessKey: string | Redacted.Redacted<string>;
|
|
96
83
|
}
|
|
97
|
-
export const CreateAccessKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
98
|
-
S.Struct({
|
|
99
|
-
accessKey: S.String,
|
|
100
|
-
displayName: S.String,
|
|
101
|
-
expires: S.NullOr(S.String),
|
|
102
|
-
keyId: S.String,
|
|
103
|
-
project: S.String,
|
|
104
|
-
secretAccessKey: S.String.pipe(T.SensitiveValue({})),
|
|
105
|
-
}),
|
|
106
|
-
).annotate({ identifier: "CreateAccessKeyResponse" }) as any as S.Schema<CreateAccessKeyResponse>;
|
|
107
|
-
|
|
108
84
|
export interface CreateBucketRequest {
|
|
109
85
|
/** STACKIT project ID */
|
|
110
86
|
projectId: string;
|
|
@@ -115,70 +91,24 @@ export interface CreateBucketRequest {
|
|
|
115
91
|
/** Enable S3 Object Lock on this bucket. Can only be set at creation time. Requires an active project-level compliance lock. */
|
|
116
92
|
objectLockEnabled?: boolean;
|
|
117
93
|
}
|
|
118
|
-
export const CreateBucketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
119
|
-
S.Struct({
|
|
120
|
-
projectId: S.String.pipe(T.Label()),
|
|
121
|
-
region: S.String.pipe(T.Label()),
|
|
122
|
-
bucketName: S.String.pipe(T.Label()),
|
|
123
|
-
objectLockEnabled: S.optional(S.Boolean.pipe(T.Query())),
|
|
124
|
-
}).pipe(
|
|
125
|
-
T.Http({
|
|
126
|
-
method: "POST",
|
|
127
|
-
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
|
|
128
|
-
code: 200,
|
|
129
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
130
|
-
}),
|
|
131
|
-
),
|
|
132
|
-
).annotate({ identifier: "CreateBucketRequest" }) as any as S.Schema<CreateBucketRequest>;
|
|
133
|
-
|
|
134
94
|
export interface CreateBucketResponse {
|
|
135
95
|
/** Name of the bucket */
|
|
136
96
|
bucket: string;
|
|
137
97
|
/** Project ID */
|
|
138
98
|
project: string;
|
|
139
99
|
}
|
|
140
|
-
export const CreateBucketResponse = /*@__PURE__*/ S.suspend(() =>
|
|
141
|
-
S.Struct({
|
|
142
|
-
bucket: S.String,
|
|
143
|
-
project: S.String,
|
|
144
|
-
}),
|
|
145
|
-
).annotate({ identifier: "CreateBucketResponse" }) as any as S.Schema<CreateBucketResponse>;
|
|
146
|
-
|
|
147
100
|
export interface CreateComplianceLockRequest {
|
|
148
101
|
/** STACKIT project ID */
|
|
149
102
|
projectId: string;
|
|
150
103
|
/** STACKIT Region */
|
|
151
104
|
region: string;
|
|
152
105
|
}
|
|
153
|
-
export const CreateComplianceLockRequest = /*@__PURE__*/ S.suspend(() =>
|
|
154
|
-
S.Struct({
|
|
155
|
-
projectId: S.String.pipe(T.Label()),
|
|
156
|
-
region: S.String.pipe(T.Label()),
|
|
157
|
-
}).pipe(
|
|
158
|
-
T.Http({
|
|
159
|
-
method: "POST",
|
|
160
|
-
uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
|
|
161
|
-
code: 200,
|
|
162
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
163
|
-
}),
|
|
164
|
-
),
|
|
165
|
-
).annotate({
|
|
166
|
-
identifier: "CreateComplianceLockRequest",
|
|
167
|
-
}) as any as S.Schema<CreateComplianceLockRequest>;
|
|
168
|
-
|
|
169
106
|
export interface ComplianceLockResponse {
|
|
170
107
|
/** Maximum retention period in days */
|
|
171
108
|
maxRetentionDays: number;
|
|
172
109
|
/** Project ID */
|
|
173
110
|
project: string;
|
|
174
111
|
}
|
|
175
|
-
export const ComplianceLockResponse = /*@__PURE__*/ S.suspend(() =>
|
|
176
|
-
S.Struct({
|
|
177
|
-
maxRetentionDays: S.Number,
|
|
178
|
-
project: S.String,
|
|
179
|
-
}),
|
|
180
|
-
).annotate({ identifier: "ComplianceLockResponse" }) as any as S.Schema<ComplianceLockResponse>;
|
|
181
|
-
|
|
182
112
|
export interface CreateCredentialsGroupRequest {
|
|
183
113
|
/** STACKIT project ID */
|
|
184
114
|
projectId: string;
|
|
@@ -187,23 +117,6 @@ export interface CreateCredentialsGroupRequest {
|
|
|
187
117
|
/** Name of the group holding credentials */
|
|
188
118
|
displayName: string;
|
|
189
119
|
}
|
|
190
|
-
export const CreateCredentialsGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
191
|
-
S.Struct({
|
|
192
|
-
projectId: S.String.pipe(T.Label()),
|
|
193
|
-
region: S.String.pipe(T.Label()),
|
|
194
|
-
displayName: S.String,
|
|
195
|
-
}).pipe(
|
|
196
|
-
T.Http({
|
|
197
|
-
method: "POST",
|
|
198
|
-
uri: "/v2/project/{projectId}/regions/{region}/credentials-group",
|
|
199
|
-
code: 200,
|
|
200
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
201
|
-
}),
|
|
202
|
-
),
|
|
203
|
-
).annotate({
|
|
204
|
-
identifier: "CreateCredentialsGroupRequest",
|
|
205
|
-
}) as any as S.Schema<CreateCredentialsGroupRequest>;
|
|
206
|
-
|
|
207
120
|
export interface CredentialsGroup {
|
|
208
121
|
/** The ID of the credentials group */
|
|
209
122
|
credentialsGroupId: string;
|
|
@@ -212,28 +125,11 @@ export interface CredentialsGroup {
|
|
|
212
125
|
/** Credentials group URN */
|
|
213
126
|
urn: string;
|
|
214
127
|
}
|
|
215
|
-
export const CredentialsGroup = /*@__PURE__*/ S.suspend(() =>
|
|
216
|
-
S.Struct({
|
|
217
|
-
credentialsGroupId: S.String,
|
|
218
|
-
displayName: S.String,
|
|
219
|
-
urn: S.String,
|
|
220
|
-
}),
|
|
221
|
-
).annotate({ identifier: "CredentialsGroup" }) as any as S.Schema<CredentialsGroup>;
|
|
222
|
-
|
|
223
128
|
export interface CreateCredentialsGroupResponse {
|
|
224
129
|
credentialsGroup: CredentialsGroup;
|
|
225
130
|
/** Project ID */
|
|
226
131
|
project: string;
|
|
227
132
|
}
|
|
228
|
-
export const CreateCredentialsGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
229
|
-
S.Struct({
|
|
230
|
-
credentialsGroup: CredentialsGroup,
|
|
231
|
-
project: S.String,
|
|
232
|
-
}),
|
|
233
|
-
).annotate({
|
|
234
|
-
identifier: "CreateCredentialsGroupResponse",
|
|
235
|
-
}) as any as S.Schema<CreateCredentialsGroupResponse>;
|
|
236
|
-
|
|
237
133
|
export interface DeleteAccessKeyRequest {
|
|
238
134
|
/** STACKIT project ID */
|
|
239
135
|
projectId: string;
|
|
@@ -243,35 +139,12 @@ export interface DeleteAccessKeyRequest {
|
|
|
243
139
|
keyId: string;
|
|
244
140
|
credentials_group?: string;
|
|
245
141
|
}
|
|
246
|
-
export const DeleteAccessKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
247
|
-
S.Struct({
|
|
248
|
-
projectId: S.String.pipe(T.Label()),
|
|
249
|
-
region: S.String.pipe(T.Label()),
|
|
250
|
-
keyId: S.String.pipe(T.Label()),
|
|
251
|
-
credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
|
|
252
|
-
}).pipe(
|
|
253
|
-
T.Http({
|
|
254
|
-
method: "DELETE",
|
|
255
|
-
uri: "/v2/project/{projectId}/regions/{region}/access-key/{keyId}",
|
|
256
|
-
code: 200,
|
|
257
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
258
|
-
}),
|
|
259
|
-
),
|
|
260
|
-
).annotate({ identifier: "DeleteAccessKeyRequest" }) as any as S.Schema<DeleteAccessKeyRequest>;
|
|
261
|
-
|
|
262
142
|
export interface DeleteAccessKeyResponse {
|
|
263
143
|
/** Identifies the pair of access key and secret access key for deletion */
|
|
264
144
|
keyId: string;
|
|
265
145
|
/** Project ID */
|
|
266
146
|
project: string;
|
|
267
147
|
}
|
|
268
|
-
export const DeleteAccessKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
269
|
-
S.Struct({
|
|
270
|
-
keyId: S.String,
|
|
271
|
-
project: S.String,
|
|
272
|
-
}),
|
|
273
|
-
).annotate({ identifier: "DeleteAccessKeyResponse" }) as any as S.Schema<DeleteAccessKeyResponse>;
|
|
274
|
-
|
|
275
148
|
export interface DeleteBucketRequest {
|
|
276
149
|
/** STACKIT project ID */
|
|
277
150
|
projectId: string;
|
|
@@ -280,56 +153,18 @@ export interface DeleteBucketRequest {
|
|
|
280
153
|
/** The name has to be dns-conform. */
|
|
281
154
|
bucketName: string;
|
|
282
155
|
}
|
|
283
|
-
export const DeleteBucketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
284
|
-
S.Struct({
|
|
285
|
-
projectId: S.String.pipe(T.Label()),
|
|
286
|
-
region: S.String.pipe(T.Label()),
|
|
287
|
-
bucketName: S.String.pipe(T.Label()),
|
|
288
|
-
}).pipe(
|
|
289
|
-
T.Http({
|
|
290
|
-
method: "DELETE",
|
|
291
|
-
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
|
|
292
|
-
code: 200,
|
|
293
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
294
|
-
}),
|
|
295
|
-
),
|
|
296
|
-
).annotate({ identifier: "DeleteBucketRequest" }) as any as S.Schema<DeleteBucketRequest>;
|
|
297
|
-
|
|
298
156
|
export interface DeleteBucketResponse {
|
|
299
157
|
/** Name of the bucket */
|
|
300
158
|
bucket: string;
|
|
301
159
|
/** Project ID */
|
|
302
160
|
project: string;
|
|
303
161
|
}
|
|
304
|
-
export const DeleteBucketResponse = /*@__PURE__*/ S.suspend(() =>
|
|
305
|
-
S.Struct({
|
|
306
|
-
bucket: S.String,
|
|
307
|
-
project: S.String,
|
|
308
|
-
}),
|
|
309
|
-
).annotate({ identifier: "DeleteBucketResponse" }) as any as S.Schema<DeleteBucketResponse>;
|
|
310
|
-
|
|
311
162
|
export interface DeleteComplianceLockRequest {
|
|
312
163
|
/** STACKIT project ID */
|
|
313
164
|
projectId: string;
|
|
314
165
|
/** STACKIT Region */
|
|
315
166
|
region: string;
|
|
316
167
|
}
|
|
317
|
-
export const DeleteComplianceLockRequest = /*@__PURE__*/ S.suspend(() =>
|
|
318
|
-
S.Struct({
|
|
319
|
-
projectId: S.String.pipe(T.Label()),
|
|
320
|
-
region: S.String.pipe(T.Label()),
|
|
321
|
-
}).pipe(
|
|
322
|
-
T.Http({
|
|
323
|
-
method: "DELETE",
|
|
324
|
-
uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
|
|
325
|
-
code: 200,
|
|
326
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
327
|
-
}),
|
|
328
|
-
),
|
|
329
|
-
).annotate({
|
|
330
|
-
identifier: "DeleteComplianceLockRequest",
|
|
331
|
-
}) as any as S.Schema<DeleteComplianceLockRequest>;
|
|
332
|
-
|
|
333
168
|
export interface DeleteCredentialsGroupRequest {
|
|
334
169
|
/** STACKIT project ID */
|
|
335
170
|
projectId: string;
|
|
@@ -338,38 +173,12 @@ export interface DeleteCredentialsGroupRequest {
|
|
|
338
173
|
/** Id of the credentials group */
|
|
339
174
|
groupId: string;
|
|
340
175
|
}
|
|
341
|
-
export const DeleteCredentialsGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
342
|
-
S.Struct({
|
|
343
|
-
projectId: S.String.pipe(T.Label()),
|
|
344
|
-
region: S.String.pipe(T.Label()),
|
|
345
|
-
groupId: S.String.pipe(T.Label()),
|
|
346
|
-
}).pipe(
|
|
347
|
-
T.Http({
|
|
348
|
-
method: "DELETE",
|
|
349
|
-
uri: "/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",
|
|
350
|
-
code: 200,
|
|
351
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
352
|
-
}),
|
|
353
|
-
),
|
|
354
|
-
).annotate({
|
|
355
|
-
identifier: "DeleteCredentialsGroupRequest",
|
|
356
|
-
}) as any as S.Schema<DeleteCredentialsGroupRequest>;
|
|
357
|
-
|
|
358
176
|
export interface DeleteCredentialsGroupResponse {
|
|
359
177
|
/** The ID of the credentials group */
|
|
360
178
|
credentialsGroupId: string;
|
|
361
179
|
/** Project ID */
|
|
362
180
|
project: string;
|
|
363
181
|
}
|
|
364
|
-
export const DeleteCredentialsGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
365
|
-
S.Struct({
|
|
366
|
-
credentialsGroupId: S.String,
|
|
367
|
-
project: S.String,
|
|
368
|
-
}),
|
|
369
|
-
).annotate({
|
|
370
|
-
identifier: "DeleteCredentialsGroupResponse",
|
|
371
|
-
}) as any as S.Schema<DeleteCredentialsGroupResponse>;
|
|
372
|
-
|
|
373
182
|
export interface DeleteDefaultRetentionRequest {
|
|
374
183
|
/** STACKIT project ID */
|
|
375
184
|
projectId: string;
|
|
@@ -378,69 +187,22 @@ export interface DeleteDefaultRetentionRequest {
|
|
|
378
187
|
/** The name has to be dns-conform. */
|
|
379
188
|
bucketName: string;
|
|
380
189
|
}
|
|
381
|
-
export const DeleteDefaultRetentionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
382
|
-
S.Struct({
|
|
383
|
-
projectId: S.String.pipe(T.Label()),
|
|
384
|
-
region: S.String.pipe(T.Label()),
|
|
385
|
-
bucketName: S.String.pipe(T.Label()),
|
|
386
|
-
}).pipe(
|
|
387
|
-
T.Http({
|
|
388
|
-
method: "DELETE",
|
|
389
|
-
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
|
|
390
|
-
code: 200,
|
|
391
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
392
|
-
}),
|
|
393
|
-
),
|
|
394
|
-
).annotate({
|
|
395
|
-
identifier: "DeleteDefaultRetentionRequest",
|
|
396
|
-
}) as any as S.Schema<DeleteDefaultRetentionRequest>;
|
|
397
|
-
|
|
398
190
|
export interface DeleteDefaultRetentionResponse {
|
|
399
191
|
/** Name of the bucket */
|
|
400
192
|
bucket: string;
|
|
401
193
|
/** Project ID */
|
|
402
194
|
project: string;
|
|
403
195
|
}
|
|
404
|
-
export const DeleteDefaultRetentionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
405
|
-
S.Struct({
|
|
406
|
-
bucket: S.String,
|
|
407
|
-
project: S.String,
|
|
408
|
-
}),
|
|
409
|
-
).annotate({
|
|
410
|
-
identifier: "DeleteDefaultRetentionResponse",
|
|
411
|
-
}) as any as S.Schema<DeleteDefaultRetentionResponse>;
|
|
412
|
-
|
|
413
196
|
export interface DisableServiceRequest {
|
|
414
197
|
/** STACKIT project ID */
|
|
415
198
|
projectId: string;
|
|
416
199
|
/** STACKIT Region */
|
|
417
200
|
region: string;
|
|
418
201
|
}
|
|
419
|
-
export const DisableServiceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
420
|
-
S.Struct({
|
|
421
|
-
projectId: S.String.pipe(T.Label()),
|
|
422
|
-
region: S.String.pipe(T.Label()),
|
|
423
|
-
}).pipe(
|
|
424
|
-
T.Http({
|
|
425
|
-
method: "DELETE",
|
|
426
|
-
uri: "/v2/project/{projectId}/regions/{region}",
|
|
427
|
-
code: 200,
|
|
428
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
429
|
-
}),
|
|
430
|
-
),
|
|
431
|
-
).annotate({ identifier: "DisableServiceRequest" }) as any as S.Schema<DisableServiceRequest>;
|
|
432
|
-
|
|
433
202
|
/** Project labels */
|
|
434
203
|
export type ProjectStatusLabelsMap = { [key: string]: string | undefined };
|
|
435
|
-
export const ProjectStatusLabelsMap = /*@__PURE__*/ S.Record(
|
|
436
|
-
S.String,
|
|
437
|
-
S.String,
|
|
438
|
-
) as any as S.Schema<ProjectStatusLabelsMap>;
|
|
439
|
-
|
|
440
204
|
/** The scope of a STACKIT project can be public (default) or can have client specific special requirements. */
|
|
441
205
|
export type ProjectScope = "PUBLIC" | "SCHWARZ";
|
|
442
|
-
export const ProjectScope = S.String;
|
|
443
|
-
|
|
444
206
|
export interface ProjectStatus {
|
|
445
207
|
/** Project labels */
|
|
446
208
|
labels?: ProjectStatusLabelsMap;
|
|
@@ -449,34 +211,12 @@ export interface ProjectStatus {
|
|
|
449
211
|
/** Project Scope */
|
|
450
212
|
scope: ProjectScope;
|
|
451
213
|
}
|
|
452
|
-
export const ProjectStatus = /*@__PURE__*/ S.suspend(() =>
|
|
453
|
-
S.Struct({
|
|
454
|
-
labels: S.optional(ProjectStatusLabelsMap),
|
|
455
|
-
project: S.String,
|
|
456
|
-
scope: ProjectScope,
|
|
457
|
-
}),
|
|
458
|
-
).annotate({ identifier: "ProjectStatus" }) as any as S.Schema<ProjectStatus>;
|
|
459
|
-
|
|
460
214
|
export interface EnableServiceRequest {
|
|
461
215
|
/** STACKIT project ID */
|
|
462
216
|
projectId: string;
|
|
463
217
|
/** STACKIT Region */
|
|
464
218
|
region: string;
|
|
465
219
|
}
|
|
466
|
-
export const EnableServiceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
467
|
-
S.Struct({
|
|
468
|
-
projectId: S.String.pipe(T.Label()),
|
|
469
|
-
region: S.String.pipe(T.Label()),
|
|
470
|
-
}).pipe(
|
|
471
|
-
T.Http({
|
|
472
|
-
method: "POST",
|
|
473
|
-
uri: "/v2/project/{projectId}/regions/{region}",
|
|
474
|
-
code: 200,
|
|
475
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
476
|
-
}),
|
|
477
|
-
),
|
|
478
|
-
).annotate({ identifier: "EnableServiceRequest" }) as any as S.Schema<EnableServiceRequest>;
|
|
479
|
-
|
|
480
220
|
export interface GetBucketRequest {
|
|
481
221
|
/** STACKIT project ID */
|
|
482
222
|
projectId: string;
|
|
@@ -485,21 +225,6 @@ export interface GetBucketRequest {
|
|
|
485
225
|
/** The name has to be dns-conform. */
|
|
486
226
|
bucketName: string;
|
|
487
227
|
}
|
|
488
|
-
export const GetBucketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
489
|
-
S.Struct({
|
|
490
|
-
projectId: S.String.pipe(T.Label()),
|
|
491
|
-
region: S.String.pipe(T.Label()),
|
|
492
|
-
bucketName: S.String.pipe(T.Label()),
|
|
493
|
-
}).pipe(
|
|
494
|
-
T.Http({
|
|
495
|
-
method: "GET",
|
|
496
|
-
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
|
|
497
|
-
code: 200,
|
|
498
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
499
|
-
}),
|
|
500
|
-
),
|
|
501
|
-
).annotate({ identifier: "GetBucketRequest" }) as any as S.Schema<GetBucketRequest>;
|
|
502
|
-
|
|
503
228
|
export interface Bucket {
|
|
504
229
|
name: string;
|
|
505
230
|
/** Whether S3 Object Lock is enabled for this bucket */
|
|
@@ -510,48 +235,17 @@ export interface Bucket {
|
|
|
510
235
|
/** URL in virtual hosted style */
|
|
511
236
|
urlVirtualHostedStyle: string;
|
|
512
237
|
}
|
|
513
|
-
export const Bucket = /*@__PURE__*/ S.suspend(() =>
|
|
514
|
-
S.Struct({
|
|
515
|
-
name: S.String,
|
|
516
|
-
objectLockEnabled: S.Boolean,
|
|
517
|
-
region: S.String,
|
|
518
|
-
urlPathStyle: S.String,
|
|
519
|
-
urlVirtualHostedStyle: S.String,
|
|
520
|
-
}),
|
|
521
|
-
).annotate({ identifier: "Bucket" }) as any as S.Schema<Bucket>;
|
|
522
|
-
|
|
523
238
|
export interface GetBucketResponse {
|
|
524
239
|
bucket: Bucket;
|
|
525
240
|
/** Project ID */
|
|
526
241
|
project: string;
|
|
527
242
|
}
|
|
528
|
-
export const GetBucketResponse = /*@__PURE__*/ S.suspend(() =>
|
|
529
|
-
S.Struct({
|
|
530
|
-
bucket: Bucket,
|
|
531
|
-
project: S.String,
|
|
532
|
-
}),
|
|
533
|
-
).annotate({ identifier: "GetBucketResponse" }) as any as S.Schema<GetBucketResponse>;
|
|
534
|
-
|
|
535
243
|
export interface GetComplianceLockRequest {
|
|
536
244
|
/** STACKIT project ID */
|
|
537
245
|
projectId: string;
|
|
538
246
|
/** STACKIT Region */
|
|
539
247
|
region: string;
|
|
540
248
|
}
|
|
541
|
-
export const GetComplianceLockRequest = /*@__PURE__*/ S.suspend(() =>
|
|
542
|
-
S.Struct({
|
|
543
|
-
projectId: S.String.pipe(T.Label()),
|
|
544
|
-
region: S.String.pipe(T.Label()),
|
|
545
|
-
}).pipe(
|
|
546
|
-
T.Http({
|
|
547
|
-
method: "GET",
|
|
548
|
-
uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
|
|
549
|
-
code: 200,
|
|
550
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
551
|
-
}),
|
|
552
|
-
),
|
|
553
|
-
).annotate({ identifier: "GetComplianceLockRequest" }) as any as S.Schema<GetComplianceLockRequest>;
|
|
554
|
-
|
|
555
249
|
export interface GetCredentialsGroupRequest {
|
|
556
250
|
/** STACKIT project ID */
|
|
557
251
|
projectId: string;
|
|
@@ -560,23 +254,6 @@ export interface GetCredentialsGroupRequest {
|
|
|
560
254
|
/** Id of the credentials group */
|
|
561
255
|
groupId: string;
|
|
562
256
|
}
|
|
563
|
-
export const GetCredentialsGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
564
|
-
S.Struct({
|
|
565
|
-
projectId: S.String.pipe(T.Label()),
|
|
566
|
-
region: S.String.pipe(T.Label()),
|
|
567
|
-
groupId: S.String.pipe(T.Label()),
|
|
568
|
-
}).pipe(
|
|
569
|
-
T.Http({
|
|
570
|
-
method: "GET",
|
|
571
|
-
uri: "/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",
|
|
572
|
-
code: 200,
|
|
573
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
574
|
-
}),
|
|
575
|
-
),
|
|
576
|
-
).annotate({
|
|
577
|
-
identifier: "GetCredentialsGroupRequest",
|
|
578
|
-
}) as any as S.Schema<GetCredentialsGroupRequest>;
|
|
579
|
-
|
|
580
257
|
export interface CredentialsGroupExtended {
|
|
581
258
|
/** The ID of the credentials group */
|
|
582
259
|
credentialsGroupId: string;
|
|
@@ -587,29 +264,11 @@ export interface CredentialsGroupExtended {
|
|
|
587
264
|
/** StorageGRID user URN */
|
|
588
265
|
userUrn: string;
|
|
589
266
|
}
|
|
590
|
-
export const CredentialsGroupExtended = /*@__PURE__*/ S.suspend(() =>
|
|
591
|
-
S.Struct({
|
|
592
|
-
credentialsGroupId: S.String,
|
|
593
|
-
displayName: S.String,
|
|
594
|
-
urn: S.String,
|
|
595
|
-
userUrn: S.String,
|
|
596
|
-
}),
|
|
597
|
-
).annotate({ identifier: "CredentialsGroupExtended" }) as any as S.Schema<CredentialsGroupExtended>;
|
|
598
|
-
|
|
599
267
|
export interface GetCredentialsGroupResponse {
|
|
600
268
|
credentialsGroup: CredentialsGroupExtended;
|
|
601
269
|
/** Project ID */
|
|
602
270
|
project: string;
|
|
603
271
|
}
|
|
604
|
-
export const GetCredentialsGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
605
|
-
S.Struct({
|
|
606
|
-
credentialsGroup: CredentialsGroupExtended,
|
|
607
|
-
project: S.String,
|
|
608
|
-
}),
|
|
609
|
-
).annotate({
|
|
610
|
-
identifier: "GetCredentialsGroupResponse",
|
|
611
|
-
}) as any as S.Schema<GetCredentialsGroupResponse>;
|
|
612
|
-
|
|
613
272
|
export interface GetDefaultRetentionRequest {
|
|
614
273
|
/** STACKIT project ID */
|
|
615
274
|
projectId: string;
|
|
@@ -618,27 +277,8 @@ export interface GetDefaultRetentionRequest {
|
|
|
618
277
|
/** The name has to be dns-conform. */
|
|
619
278
|
bucketName: string;
|
|
620
279
|
}
|
|
621
|
-
export const GetDefaultRetentionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
622
|
-
S.Struct({
|
|
623
|
-
projectId: S.String.pipe(T.Label()),
|
|
624
|
-
region: S.String.pipe(T.Label()),
|
|
625
|
-
bucketName: S.String.pipe(T.Label()),
|
|
626
|
-
}).pipe(
|
|
627
|
-
T.Http({
|
|
628
|
-
method: "GET",
|
|
629
|
-
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
|
|
630
|
-
code: 200,
|
|
631
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
632
|
-
}),
|
|
633
|
-
),
|
|
634
|
-
).annotate({
|
|
635
|
-
identifier: "GetDefaultRetentionRequest",
|
|
636
|
-
}) as any as S.Schema<GetDefaultRetentionRequest>;
|
|
637
|
-
|
|
638
280
|
/** The retention mode for default retention on a bucket. */
|
|
639
281
|
export type RetentionMode = "COMPLIANCE" | "GOVERNANCE";
|
|
640
|
-
export const RetentionMode = S.String;
|
|
641
|
-
|
|
642
282
|
export interface DefaultRetentionResponse {
|
|
643
283
|
/** Name of the bucket */
|
|
644
284
|
bucket: string;
|
|
@@ -648,35 +288,12 @@ export interface DefaultRetentionResponse {
|
|
|
648
288
|
/** Project ID */
|
|
649
289
|
project: string;
|
|
650
290
|
}
|
|
651
|
-
export const DefaultRetentionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
652
|
-
S.Struct({
|
|
653
|
-
bucket: S.String,
|
|
654
|
-
days: S.Number,
|
|
655
|
-
mode: RetentionMode,
|
|
656
|
-
project: S.String,
|
|
657
|
-
}),
|
|
658
|
-
).annotate({ identifier: "DefaultRetentionResponse" }) as any as S.Schema<DefaultRetentionResponse>;
|
|
659
|
-
|
|
660
291
|
export interface GetServiceStatusRequest {
|
|
661
292
|
/** STACKIT project ID */
|
|
662
293
|
projectId: string;
|
|
663
294
|
/** STACKIT Region */
|
|
664
295
|
region: string;
|
|
665
296
|
}
|
|
666
|
-
export const GetServiceStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
667
|
-
S.Struct({
|
|
668
|
-
projectId: S.String.pipe(T.Label()),
|
|
669
|
-
region: S.String.pipe(T.Label()),
|
|
670
|
-
}).pipe(
|
|
671
|
-
T.Http({
|
|
672
|
-
method: "GET",
|
|
673
|
-
uri: "/v2/project/{projectId}/regions/{region}",
|
|
674
|
-
code: 200,
|
|
675
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
676
|
-
}),
|
|
677
|
-
),
|
|
678
|
-
).annotate({ identifier: "GetServiceStatusRequest" }) as any as S.Schema<GetServiceStatusRequest>;
|
|
679
|
-
|
|
680
297
|
export interface ListAccessKeysRequest {
|
|
681
298
|
/** STACKIT project ID */
|
|
682
299
|
projectId: string;
|
|
@@ -684,130 +301,42 @@ export interface ListAccessKeysRequest {
|
|
|
684
301
|
region: string;
|
|
685
302
|
credentials_group?: string;
|
|
686
303
|
}
|
|
687
|
-
export const ListAccessKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
688
|
-
S.Struct({
|
|
689
|
-
projectId: S.String.pipe(T.Label()),
|
|
690
|
-
region: S.String.pipe(T.Label()),
|
|
691
|
-
credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
|
|
692
|
-
}).pipe(
|
|
693
|
-
T.Http({
|
|
694
|
-
method: "GET",
|
|
695
|
-
uri: "/v2/project/{projectId}/regions/{region}/access-keys",
|
|
696
|
-
code: 200,
|
|
697
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
698
|
-
}),
|
|
699
|
-
),
|
|
700
|
-
).annotate({ identifier: "ListAccessKeysRequest" }) as any as S.Schema<ListAccessKeysRequest>;
|
|
701
|
-
|
|
702
304
|
export interface AccessKey {
|
|
703
305
|
displayName: string;
|
|
704
306
|
expires: string | null;
|
|
705
307
|
/** Identifies the pair of access key and secret access key for deletion */
|
|
706
308
|
keyId: string;
|
|
707
309
|
}
|
|
708
|
-
export const AccessKey = /*@__PURE__*/ S.suspend(() =>
|
|
709
|
-
S.Struct({
|
|
710
|
-
displayName: S.String,
|
|
711
|
-
expires: S.NullOr(S.String),
|
|
712
|
-
keyId: S.String,
|
|
713
|
-
}),
|
|
714
|
-
).annotate({ identifier: "AccessKey" }) as any as S.Schema<AccessKey>;
|
|
715
|
-
|
|
716
310
|
export type ListAccessKeysResponseAccessKeysList = Array<AccessKey>;
|
|
717
|
-
export const ListAccessKeysResponseAccessKeysList = /*@__PURE__*/ S.Array(
|
|
718
|
-
AccessKey,
|
|
719
|
-
) as any as S.Schema<ListAccessKeysResponseAccessKeysList>;
|
|
720
|
-
|
|
721
311
|
export interface ListAccessKeysResponse {
|
|
722
312
|
accessKeys: ListAccessKeysResponseAccessKeysList;
|
|
723
313
|
/** Project ID */
|
|
724
314
|
project: string;
|
|
725
315
|
}
|
|
726
|
-
export const ListAccessKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
727
|
-
S.Struct({
|
|
728
|
-
accessKeys: ListAccessKeysResponseAccessKeysList,
|
|
729
|
-
project: S.String,
|
|
730
|
-
}),
|
|
731
|
-
).annotate({ identifier: "ListAccessKeysResponse" }) as any as S.Schema<ListAccessKeysResponse>;
|
|
732
|
-
|
|
733
316
|
export interface ListBucketsRequest {
|
|
734
317
|
/** STACKIT project ID */
|
|
735
318
|
projectId: string;
|
|
736
319
|
/** STACKIT Region */
|
|
737
320
|
region: string;
|
|
738
321
|
}
|
|
739
|
-
export const ListBucketsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
740
|
-
S.Struct({
|
|
741
|
-
projectId: S.String.pipe(T.Label()),
|
|
742
|
-
region: S.String.pipe(T.Label()),
|
|
743
|
-
}).pipe(
|
|
744
|
-
T.Http({
|
|
745
|
-
method: "GET",
|
|
746
|
-
uri: "/v2/project/{projectId}/regions/{region}/buckets",
|
|
747
|
-
code: 200,
|
|
748
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
749
|
-
}),
|
|
750
|
-
),
|
|
751
|
-
).annotate({ identifier: "ListBucketsRequest" }) as any as S.Schema<ListBucketsRequest>;
|
|
752
|
-
|
|
753
322
|
export type ListBucketsResponseBucketsList = Array<Bucket>;
|
|
754
|
-
export const ListBucketsResponseBucketsList = /*@__PURE__*/ S.Array(
|
|
755
|
-
Bucket,
|
|
756
|
-
) as any as S.Schema<ListBucketsResponseBucketsList>;
|
|
757
|
-
|
|
758
323
|
export interface ListBucketsResponse {
|
|
759
324
|
buckets: ListBucketsResponseBucketsList;
|
|
760
325
|
/** Project ID */
|
|
761
326
|
project: string;
|
|
762
327
|
}
|
|
763
|
-
export const ListBucketsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
764
|
-
S.Struct({
|
|
765
|
-
buckets: ListBucketsResponseBucketsList,
|
|
766
|
-
project: S.String,
|
|
767
|
-
}),
|
|
768
|
-
).annotate({ identifier: "ListBucketsResponse" }) as any as S.Schema<ListBucketsResponse>;
|
|
769
|
-
|
|
770
328
|
export interface ListCredentialsGroupsRequest {
|
|
771
329
|
/** STACKIT project ID */
|
|
772
330
|
projectId: string;
|
|
773
331
|
/** STACKIT Region */
|
|
774
332
|
region: string;
|
|
775
333
|
}
|
|
776
|
-
export const ListCredentialsGroupsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
777
|
-
S.Struct({
|
|
778
|
-
projectId: S.String.pipe(T.Label()),
|
|
779
|
-
region: S.String.pipe(T.Label()),
|
|
780
|
-
}).pipe(
|
|
781
|
-
T.Http({
|
|
782
|
-
method: "GET",
|
|
783
|
-
uri: "/v2/project/{projectId}/regions/{region}/credentials-groups",
|
|
784
|
-
code: 200,
|
|
785
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
786
|
-
}),
|
|
787
|
-
),
|
|
788
|
-
).annotate({
|
|
789
|
-
identifier: "ListCredentialsGroupsRequest",
|
|
790
|
-
}) as any as S.Schema<ListCredentialsGroupsRequest>;
|
|
791
|
-
|
|
792
334
|
export type ListCredentialsGroupsResponseCredentialsGroupsList = Array<CredentialsGroup>;
|
|
793
|
-
export const ListCredentialsGroupsResponseCredentialsGroupsList = /*@__PURE__*/ S.Array(
|
|
794
|
-
CredentialsGroup,
|
|
795
|
-
) as any as S.Schema<ListCredentialsGroupsResponseCredentialsGroupsList>;
|
|
796
|
-
|
|
797
335
|
export interface ListCredentialsGroupsResponse {
|
|
798
336
|
credentialsGroups: ListCredentialsGroupsResponseCredentialsGroupsList;
|
|
799
337
|
/** Project ID */
|
|
800
338
|
project: string;
|
|
801
339
|
}
|
|
802
|
-
export const ListCredentialsGroupsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
803
|
-
S.Struct({
|
|
804
|
-
credentialsGroups: ListCredentialsGroupsResponseCredentialsGroupsList,
|
|
805
|
-
project: S.String,
|
|
806
|
-
}),
|
|
807
|
-
).annotate({
|
|
808
|
-
identifier: "ListCredentialsGroupsResponse",
|
|
809
|
-
}) as any as S.Schema<ListCredentialsGroupsResponse>;
|
|
810
|
-
|
|
811
340
|
export interface SetDefaultRetentionRequest {
|
|
812
341
|
/** STACKIT project ID */
|
|
813
342
|
projectId: string;
|
|
@@ -819,32 +348,8 @@ export interface SetDefaultRetentionRequest {
|
|
|
819
348
|
days: number;
|
|
820
349
|
mode: RetentionMode | (string & {});
|
|
821
350
|
}
|
|
822
|
-
export const SetDefaultRetentionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
823
|
-
S.Struct({
|
|
824
|
-
projectId: S.String.pipe(T.Label()),
|
|
825
|
-
region: S.String.pipe(T.Label()),
|
|
826
|
-
bucketName: S.String.pipe(T.Label()),
|
|
827
|
-
days: S.Number,
|
|
828
|
-
mode: RetentionMode,
|
|
829
|
-
}).pipe(
|
|
830
|
-
T.Http({
|
|
831
|
-
method: "PUT",
|
|
832
|
-
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
|
|
833
|
-
code: 200,
|
|
834
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
835
|
-
}),
|
|
836
|
-
),
|
|
837
|
-
).annotate({
|
|
838
|
-
identifier: "SetDefaultRetentionRequest",
|
|
839
|
-
}) as any as S.Schema<SetDefaultRetentionRequest>;
|
|
840
|
-
|
|
841
351
|
/** Project labels */
|
|
842
352
|
export type UpdateServiceRequestLabelsMap = { [key: string]: string | undefined };
|
|
843
|
-
export const UpdateServiceRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
844
|
-
S.String,
|
|
845
|
-
S.String,
|
|
846
|
-
) as any as S.Schema<UpdateServiceRequestLabelsMap>;
|
|
847
|
-
|
|
848
353
|
export interface UpdateServiceRequest {
|
|
849
354
|
/** STACKIT project ID */
|
|
850
355
|
projectId: string;
|
|
@@ -853,21 +358,6 @@ export interface UpdateServiceRequest {
|
|
|
853
358
|
/** Project labels */
|
|
854
359
|
labels: UpdateServiceRequestLabelsMap;
|
|
855
360
|
}
|
|
856
|
-
export const UpdateServiceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
857
|
-
S.Struct({
|
|
858
|
-
projectId: S.String.pipe(T.Label()),
|
|
859
|
-
region: S.String.pipe(T.Label()),
|
|
860
|
-
labels: UpdateServiceRequestLabelsMap,
|
|
861
|
-
}).pipe(
|
|
862
|
-
T.Http({
|
|
863
|
-
method: "PUT",
|
|
864
|
-
uri: "/v2/project/{projectId}/regions/{region}",
|
|
865
|
-
code: 200,
|
|
866
|
-
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
867
|
-
}),
|
|
868
|
-
),
|
|
869
|
-
).annotate({ identifier: "UpdateServiceRequest" }) as any as S.Schema<UpdateServiceRequest>;
|
|
870
|
-
|
|
871
361
|
export type CreateAccessKeyError = Forbidden | NotFound | UnprocessableEntity | StackitOpError;
|
|
872
362
|
/** Create Access Key Create an access key for the given project. */
|
|
873
363
|
export const createAccessKey: API.OperationMethod<
|
|
@@ -876,8 +366,8 @@ export const createAccessKey: API.OperationMethod<
|
|
|
876
366
|
CreateAccessKeyError,
|
|
877
367
|
StackitOpContext
|
|
878
368
|
> = /*@__PURE__*/ API.make(() => ({
|
|
879
|
-
input: CreateAccessKeyRequest
|
|
880
|
-
output: CreateAccessKeyResponse
|
|
369
|
+
input: __S(76, __c19, 0) as any as S.Schema<CreateAccessKeyRequest>,
|
|
370
|
+
output: __S(77, __c19, 1) as any as S.Schema<CreateAccessKeyResponse>,
|
|
881
371
|
errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
882
372
|
protocol: StackitProtocol,
|
|
883
373
|
retry: Retry.Retry,
|
|
@@ -891,8 +381,8 @@ export const createBucket: API.OperationMethod<
|
|
|
891
381
|
CreateBucketError,
|
|
892
382
|
StackitOpContext
|
|
893
383
|
> = /*@__PURE__*/ API.make(() => ({
|
|
894
|
-
input: CreateBucketRequest
|
|
895
|
-
output: CreateBucketResponse
|
|
384
|
+
input: __S(80, __c20, 0) as any as S.Schema<CreateBucketRequest>,
|
|
385
|
+
output: __S(84, __c21, 0) as any as S.Schema<CreateBucketResponse>,
|
|
896
386
|
errors: [NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
897
387
|
protocol: StackitProtocol,
|
|
898
388
|
retry: Retry.Retry,
|
|
@@ -906,8 +396,8 @@ export const createComplianceLock: API.OperationMethod<
|
|
|
906
396
|
CreateComplianceLockError,
|
|
907
397
|
StackitOpContext
|
|
908
398
|
> = /*@__PURE__*/ API.make(() => ({
|
|
909
|
-
input: CreateComplianceLockRequest
|
|
910
|
-
output: ComplianceLockResponse
|
|
399
|
+
input: __S(88, __c22, 0) as any as S.Schema<CreateComplianceLockRequest>,
|
|
400
|
+
output: __S(92, __c23, 0) as any as S.Schema<ComplianceLockResponse>,
|
|
911
401
|
errors: [NotFound, Conflict, UnknownStackitError],
|
|
912
402
|
protocol: StackitProtocol,
|
|
913
403
|
retry: Retry.Retry,
|
|
@@ -926,8 +416,8 @@ export const createCredentialsGroup: API.OperationMethod<
|
|
|
926
416
|
CreateCredentialsGroupError,
|
|
927
417
|
StackitOpContext
|
|
928
418
|
> = /*@__PURE__*/ API.make(() => ({
|
|
929
|
-
input: CreateCredentialsGroupRequest
|
|
930
|
-
output: CreateCredentialsGroupResponse
|
|
419
|
+
input: __S(96, __c24, 0) as any as S.Schema<CreateCredentialsGroupRequest>,
|
|
420
|
+
output: __S(97, __c24, 1) as any as S.Schema<CreateCredentialsGroupResponse>,
|
|
931
421
|
errors: [Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
932
422
|
protocol: StackitProtocol,
|
|
933
423
|
retry: Retry.Retry,
|
|
@@ -941,8 +431,8 @@ export const deleteAccessKey: API.OperationMethod<
|
|
|
941
431
|
DeleteAccessKeyError,
|
|
942
432
|
StackitOpContext
|
|
943
433
|
> = /*@__PURE__*/ API.make(() => ({
|
|
944
|
-
input: DeleteAccessKeyRequest
|
|
945
|
-
output: DeleteAccessKeyResponse
|
|
434
|
+
input: __S(104, __c26, 0) as any as S.Schema<DeleteAccessKeyRequest>,
|
|
435
|
+
output: __S(105, __c26, 1) as any as S.Schema<DeleteAccessKeyResponse>,
|
|
946
436
|
errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
947
437
|
protocol: StackitProtocol,
|
|
948
438
|
retry: Retry.Retry,
|
|
@@ -956,8 +446,8 @@ export const deleteBucket: API.OperationMethod<
|
|
|
956
446
|
DeleteBucketError,
|
|
957
447
|
StackitOpContext
|
|
958
448
|
> = /*@__PURE__*/ API.make(() => ({
|
|
959
|
-
input: DeleteBucketRequest
|
|
960
|
-
output: DeleteBucketResponse
|
|
449
|
+
input: __S(0, __c0, 0) as any as S.Schema<DeleteBucketRequest>,
|
|
450
|
+
output: __S(84, __c21, 0) as any as S.Schema<DeleteBucketResponse>,
|
|
961
451
|
errors: [NotFound, UnprocessableEntity, UnknownStackitError],
|
|
962
452
|
protocol: StackitProtocol,
|
|
963
453
|
retry: Retry.Retry,
|
|
@@ -971,8 +461,8 @@ export const deleteComplianceLock: API.OperationMethod<
|
|
|
971
461
|
DeleteComplianceLockError,
|
|
972
462
|
StackitOpContext
|
|
973
463
|
> = /*@__PURE__*/ API.make(() => ({
|
|
974
|
-
input: DeleteComplianceLockRequest
|
|
975
|
-
output: ComplianceLockResponse
|
|
464
|
+
input: __S(4, __c1, 0) as any as S.Schema<DeleteComplianceLockRequest>,
|
|
465
|
+
output: __S(92, __c23, 0) as any as S.Schema<ComplianceLockResponse>,
|
|
976
466
|
errors: [NotFound, Conflict, UnknownStackitError],
|
|
977
467
|
protocol: StackitProtocol,
|
|
978
468
|
retry: Retry.Retry,
|
|
@@ -986,8 +476,8 @@ export const deleteCredentialsGroup: API.OperationMethod<
|
|
|
986
476
|
DeleteCredentialsGroupError,
|
|
987
477
|
StackitOpContext
|
|
988
478
|
> = /*@__PURE__*/ API.make(() => ({
|
|
989
|
-
input: DeleteCredentialsGroupRequest
|
|
990
|
-
output: DeleteCredentialsGroupResponse
|
|
479
|
+
input: __S(8, __c2, 0) as any as S.Schema<DeleteCredentialsGroupRequest>,
|
|
480
|
+
output: __S(9, __c2, 1) as any as S.Schema<DeleteCredentialsGroupResponse>,
|
|
991
481
|
errors: [NotFound, UnprocessableEntity, UnknownStackitError],
|
|
992
482
|
protocol: StackitProtocol,
|
|
993
483
|
retry: Retry.Retry,
|
|
@@ -1001,8 +491,8 @@ export const deleteDefaultRetention: API.OperationMethod<
|
|
|
1001
491
|
DeleteDefaultRetentionError,
|
|
1002
492
|
StackitOpContext
|
|
1003
493
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1004
|
-
input: DeleteDefaultRetentionRequest
|
|
1005
|
-
output: DeleteDefaultRetentionResponse
|
|
494
|
+
input: __S(12, __c3, 0) as any as S.Schema<DeleteDefaultRetentionRequest>,
|
|
495
|
+
output: __S(84, __c21, 0) as any as S.Schema<DeleteDefaultRetentionResponse>,
|
|
1006
496
|
errors: [NotFound, Conflict, UnknownStackitError],
|
|
1007
497
|
protocol: StackitProtocol,
|
|
1008
498
|
retry: Retry.Retry,
|
|
@@ -1022,8 +512,8 @@ export const disableService: API.OperationMethod<
|
|
|
1022
512
|
DisableServiceError,
|
|
1023
513
|
StackitOpContext
|
|
1024
514
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1025
|
-
input: DisableServiceRequest
|
|
1026
|
-
output: ProjectStatus
|
|
515
|
+
input: __S(16, __c4, 0) as any as S.Schema<DisableServiceRequest>,
|
|
516
|
+
output: __S(21, __c5, 1) as any as S.Schema<ProjectStatus>,
|
|
1027
517
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
1028
518
|
protocol: StackitProtocol,
|
|
1029
519
|
retry: Retry.Retry,
|
|
@@ -1037,8 +527,8 @@ export const enableService: API.OperationMethod<
|
|
|
1037
527
|
EnableServiceError,
|
|
1038
528
|
StackitOpContext
|
|
1039
529
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1040
|
-
input: EnableServiceRequest
|
|
1041
|
-
output: ProjectStatus
|
|
530
|
+
input: __S(24, __c6, 0) as any as S.Schema<EnableServiceRequest>,
|
|
531
|
+
output: __S(21, __c5, 1) as any as S.Schema<ProjectStatus>,
|
|
1042
532
|
errors: [Forbidden, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
1043
533
|
protocol: StackitProtocol,
|
|
1044
534
|
retry: Retry.Retry,
|
|
@@ -1052,8 +542,8 @@ export const getBucket: API.OperationMethod<
|
|
|
1052
542
|
GetBucketError,
|
|
1053
543
|
StackitOpContext
|
|
1054
544
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1055
|
-
input: GetBucketRequest
|
|
1056
|
-
output: GetBucketResponse
|
|
545
|
+
input: __S(28, __c7, 0) as any as S.Schema<GetBucketRequest>,
|
|
546
|
+
output: __S(29, __c7, 1) as any as S.Schema<GetBucketResponse>,
|
|
1057
547
|
errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1058
548
|
protocol: StackitProtocol,
|
|
1059
549
|
retry: Retry.Retry,
|
|
@@ -1067,8 +557,8 @@ export const getComplianceLock: API.OperationMethod<
|
|
|
1067
557
|
GetComplianceLockError,
|
|
1068
558
|
StackitOpContext
|
|
1069
559
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1070
|
-
input: GetComplianceLockRequest
|
|
1071
|
-
output: ComplianceLockResponse
|
|
560
|
+
input: __S(36, __c9, 0) as any as S.Schema<GetComplianceLockRequest>,
|
|
561
|
+
output: __S(92, __c23, 0) as any as S.Schema<ComplianceLockResponse>,
|
|
1072
562
|
errors: [NotFound, UnknownStackitError],
|
|
1073
563
|
protocol: StackitProtocol,
|
|
1074
564
|
retry: Retry.Retry,
|
|
@@ -1082,8 +572,8 @@ export const getCredentialsGroup: API.OperationMethod<
|
|
|
1082
572
|
GetCredentialsGroupError,
|
|
1083
573
|
StackitOpContext
|
|
1084
574
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1085
|
-
input: GetCredentialsGroupRequest
|
|
1086
|
-
output: GetCredentialsGroupResponse
|
|
575
|
+
input: __S(40, __c10, 0) as any as S.Schema<GetCredentialsGroupRequest>,
|
|
576
|
+
output: __S(42, __c10, 2) as any as S.Schema<GetCredentialsGroupResponse>,
|
|
1087
577
|
errors: [NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1088
578
|
protocol: StackitProtocol,
|
|
1089
579
|
retry: Retry.Retry,
|
|
@@ -1097,8 +587,8 @@ export const getDefaultRetention: API.OperationMethod<
|
|
|
1097
587
|
GetDefaultRetentionError,
|
|
1098
588
|
StackitOpContext
|
|
1099
589
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1100
|
-
input: GetDefaultRetentionRequest
|
|
1101
|
-
output: DefaultRetentionResponse
|
|
590
|
+
input: __S(44, __c11, 0) as any as S.Schema<GetDefaultRetentionRequest>,
|
|
591
|
+
output: __S(48, __c12, 0) as any as S.Schema<DefaultRetentionResponse>,
|
|
1102
592
|
errors: [NotFound, Conflict, UnknownStackitError],
|
|
1103
593
|
protocol: StackitProtocol,
|
|
1104
594
|
retry: Retry.Retry,
|
|
@@ -1112,8 +602,8 @@ export const getServiceStatus: API.OperationMethod<
|
|
|
1112
602
|
GetServiceStatusError,
|
|
1113
603
|
StackitOpContext
|
|
1114
604
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1115
|
-
input: GetServiceStatusRequest
|
|
1116
|
-
output: ProjectStatus
|
|
605
|
+
input: __S(52, __c13, 0) as any as S.Schema<GetServiceStatusRequest>,
|
|
606
|
+
output: __S(21, __c5, 1) as any as S.Schema<ProjectStatus>,
|
|
1117
607
|
errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1118
608
|
protocol: StackitProtocol,
|
|
1119
609
|
retry: Retry.Retry,
|
|
@@ -1127,8 +617,8 @@ export const listAccessKeys: API.OperationMethod<
|
|
|
1127
617
|
ListAccessKeysError,
|
|
1128
618
|
StackitOpContext
|
|
1129
619
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1130
|
-
input: ListAccessKeysRequest
|
|
1131
|
-
output: ListAccessKeysResponse
|
|
620
|
+
input: __S(56, __c14, 0) as any as S.Schema<ListAccessKeysRequest>,
|
|
621
|
+
output: __S(59, __c14, 3) as any as S.Schema<ListAccessKeysResponse>,
|
|
1132
622
|
errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1133
623
|
protocol: StackitProtocol,
|
|
1134
624
|
retry: Retry.Retry,
|
|
@@ -1142,8 +632,8 @@ export const listBuckets: API.OperationMethod<
|
|
|
1142
632
|
ListBucketsError,
|
|
1143
633
|
StackitOpContext
|
|
1144
634
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1145
|
-
input: ListBucketsRequest
|
|
1146
|
-
output: ListBucketsResponse
|
|
635
|
+
input: __S(60, __c15, 0) as any as S.Schema<ListBucketsRequest>,
|
|
636
|
+
output: __S(62, __c15, 2) as any as S.Schema<ListBucketsResponse>,
|
|
1147
637
|
errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1148
638
|
protocol: StackitProtocol,
|
|
1149
639
|
retry: Retry.Retry,
|
|
@@ -1157,8 +647,8 @@ export const listCredentialsGroups: API.OperationMethod<
|
|
|
1157
647
|
ListCredentialsGroupsError,
|
|
1158
648
|
StackitOpContext
|
|
1159
649
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1160
|
-
input: ListCredentialsGroupsRequest
|
|
1161
|
-
output: ListCredentialsGroupsResponse
|
|
650
|
+
input: __S(64, __c16, 0) as any as S.Schema<ListCredentialsGroupsRequest>,
|
|
651
|
+
output: __S(66, __c16, 2) as any as S.Schema<ListCredentialsGroupsResponse>,
|
|
1162
652
|
errors: [NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1163
653
|
protocol: StackitProtocol,
|
|
1164
654
|
retry: Retry.Retry,
|
|
@@ -1172,8 +662,8 @@ export const setDefaultRetention: API.OperationMethod<
|
|
|
1172
662
|
SetDefaultRetentionError,
|
|
1173
663
|
StackitOpContext
|
|
1174
664
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1175
|
-
input: SetDefaultRetentionRequest
|
|
1176
|
-
output: DefaultRetentionResponse
|
|
665
|
+
input: __S(68, __c17, 0) as any as S.Schema<SetDefaultRetentionRequest>,
|
|
666
|
+
output: __S(48, __c12, 0) as any as S.Schema<DefaultRetentionResponse>,
|
|
1177
667
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1178
668
|
protocol: StackitProtocol,
|
|
1179
669
|
retry: Retry.Retry,
|
|
@@ -1187,9 +677,576 @@ export const updateService: API.OperationMethod<
|
|
|
1187
677
|
UpdateServiceError,
|
|
1188
678
|
StackitOpContext
|
|
1189
679
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1190
|
-
input: UpdateServiceRequest
|
|
1191
|
-
output: ProjectStatus
|
|
680
|
+
input: __S(72, __c18, 0) as any as S.Schema<UpdateServiceRequest>,
|
|
681
|
+
output: __S(21, __c5, 1) as any as S.Schema<ProjectStatus>,
|
|
1192
682
|
errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1193
683
|
protocol: StackitProtocol,
|
|
1194
684
|
retry: Retry.Retry,
|
|
1195
685
|
}));
|
|
686
|
+
|
|
687
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
688
|
+
function __c0(j: number): any {
|
|
689
|
+
switch (j) {
|
|
690
|
+
case 0:
|
|
691
|
+
return S.suspend(() =>
|
|
692
|
+
S.Struct({
|
|
693
|
+
projectId: S.String.pipe(T.Label()),
|
|
694
|
+
region: S.String.pipe(T.Label()),
|
|
695
|
+
bucketName: S.String.pipe(T.Label()),
|
|
696
|
+
}).pipe(
|
|
697
|
+
T.Http({
|
|
698
|
+
method: "DELETE",
|
|
699
|
+
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
|
|
700
|
+
code: 200,
|
|
701
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
702
|
+
}),
|
|
703
|
+
),
|
|
704
|
+
).annotate({ identifier: "DeleteBucketRequest" });
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
function __c1(j: number): any {
|
|
708
|
+
switch (j) {
|
|
709
|
+
case 0:
|
|
710
|
+
return S.suspend(() =>
|
|
711
|
+
S.Struct({
|
|
712
|
+
projectId: S.String.pipe(T.Label()),
|
|
713
|
+
region: S.String.pipe(T.Label()),
|
|
714
|
+
}).pipe(
|
|
715
|
+
T.Http({
|
|
716
|
+
method: "DELETE",
|
|
717
|
+
uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
|
|
718
|
+
code: 200,
|
|
719
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
720
|
+
}),
|
|
721
|
+
),
|
|
722
|
+
).annotate({ identifier: "DeleteComplianceLockRequest" });
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
function __c2(j: number): any {
|
|
726
|
+
switch (j) {
|
|
727
|
+
case 0:
|
|
728
|
+
return S.suspend(() =>
|
|
729
|
+
S.Struct({
|
|
730
|
+
projectId: S.String.pipe(T.Label()),
|
|
731
|
+
region: S.String.pipe(T.Label()),
|
|
732
|
+
groupId: S.String.pipe(T.Label()),
|
|
733
|
+
}).pipe(
|
|
734
|
+
T.Http({
|
|
735
|
+
method: "DELETE",
|
|
736
|
+
uri: "/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",
|
|
737
|
+
code: 200,
|
|
738
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
739
|
+
}),
|
|
740
|
+
),
|
|
741
|
+
).annotate({ identifier: "DeleteCredentialsGroupRequest" });
|
|
742
|
+
case 1:
|
|
743
|
+
return S.suspend(() =>
|
|
744
|
+
S.Struct({
|
|
745
|
+
credentialsGroupId: S.String,
|
|
746
|
+
project: S.String,
|
|
747
|
+
}),
|
|
748
|
+
).annotate({ identifier: "DeleteCredentialsGroupResponse" });
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
function __c3(j: number): any {
|
|
752
|
+
switch (j) {
|
|
753
|
+
case 0:
|
|
754
|
+
return S.suspend(() =>
|
|
755
|
+
S.Struct({
|
|
756
|
+
projectId: S.String.pipe(T.Label()),
|
|
757
|
+
region: S.String.pipe(T.Label()),
|
|
758
|
+
bucketName: S.String.pipe(T.Label()),
|
|
759
|
+
}).pipe(
|
|
760
|
+
T.Http({
|
|
761
|
+
method: "DELETE",
|
|
762
|
+
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
|
|
763
|
+
code: 200,
|
|
764
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
765
|
+
}),
|
|
766
|
+
),
|
|
767
|
+
).annotate({ identifier: "DeleteDefaultRetentionRequest" });
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
function __c4(j: number): any {
|
|
771
|
+
switch (j) {
|
|
772
|
+
case 0:
|
|
773
|
+
return S.suspend(() =>
|
|
774
|
+
S.Struct({
|
|
775
|
+
projectId: S.String.pipe(T.Label()),
|
|
776
|
+
region: S.String.pipe(T.Label()),
|
|
777
|
+
}).pipe(
|
|
778
|
+
T.Http({
|
|
779
|
+
method: "DELETE",
|
|
780
|
+
uri: "/v2/project/{projectId}/regions/{region}",
|
|
781
|
+
code: 200,
|
|
782
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
783
|
+
}),
|
|
784
|
+
),
|
|
785
|
+
).annotate({ identifier: "DisableServiceRequest" });
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function __c5(j: number): any {
|
|
789
|
+
switch (j) {
|
|
790
|
+
case 0:
|
|
791
|
+
return S.Record(S.String, S.String);
|
|
792
|
+
case 1:
|
|
793
|
+
return S.suspend(() =>
|
|
794
|
+
S.Struct({
|
|
795
|
+
labels: S.optional(__S(20, __c5, 0)),
|
|
796
|
+
project: S.String,
|
|
797
|
+
scope: S.String,
|
|
798
|
+
}),
|
|
799
|
+
).annotate({ identifier: "ProjectStatus" });
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
function __c6(j: number): any {
|
|
803
|
+
switch (j) {
|
|
804
|
+
case 0:
|
|
805
|
+
return S.suspend(() =>
|
|
806
|
+
S.Struct({
|
|
807
|
+
projectId: S.String.pipe(T.Label()),
|
|
808
|
+
region: S.String.pipe(T.Label()),
|
|
809
|
+
}).pipe(
|
|
810
|
+
T.Http({
|
|
811
|
+
method: "POST",
|
|
812
|
+
uri: "/v2/project/{projectId}/regions/{region}",
|
|
813
|
+
code: 200,
|
|
814
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
815
|
+
}),
|
|
816
|
+
),
|
|
817
|
+
).annotate({ identifier: "EnableServiceRequest" });
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
function __c7(j: number): any {
|
|
821
|
+
switch (j) {
|
|
822
|
+
case 0:
|
|
823
|
+
return S.suspend(() =>
|
|
824
|
+
S.Struct({
|
|
825
|
+
projectId: S.String.pipe(T.Label()),
|
|
826
|
+
region: S.String.pipe(T.Label()),
|
|
827
|
+
bucketName: S.String.pipe(T.Label()),
|
|
828
|
+
}).pipe(
|
|
829
|
+
T.Http({
|
|
830
|
+
method: "GET",
|
|
831
|
+
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
|
|
832
|
+
code: 200,
|
|
833
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
834
|
+
}),
|
|
835
|
+
),
|
|
836
|
+
).annotate({ identifier: "GetBucketRequest" });
|
|
837
|
+
case 1:
|
|
838
|
+
return S.suspend(() =>
|
|
839
|
+
S.Struct({
|
|
840
|
+
bucket: __S(32, __c8, 0),
|
|
841
|
+
project: S.String,
|
|
842
|
+
}),
|
|
843
|
+
).annotate({ identifier: "GetBucketResponse" });
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
function __c8(j: number): any {
|
|
847
|
+
switch (j) {
|
|
848
|
+
case 0:
|
|
849
|
+
return S.suspend(() =>
|
|
850
|
+
S.Struct({
|
|
851
|
+
name: S.String,
|
|
852
|
+
objectLockEnabled: S.Boolean,
|
|
853
|
+
region: S.String,
|
|
854
|
+
urlPathStyle: S.String,
|
|
855
|
+
urlVirtualHostedStyle: S.String,
|
|
856
|
+
}),
|
|
857
|
+
).annotate({ identifier: "Bucket" });
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function __c9(j: number): any {
|
|
861
|
+
switch (j) {
|
|
862
|
+
case 0:
|
|
863
|
+
return S.suspend(() =>
|
|
864
|
+
S.Struct({
|
|
865
|
+
projectId: S.String.pipe(T.Label()),
|
|
866
|
+
region: S.String.pipe(T.Label()),
|
|
867
|
+
}).pipe(
|
|
868
|
+
T.Http({
|
|
869
|
+
method: "GET",
|
|
870
|
+
uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
|
|
871
|
+
code: 200,
|
|
872
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
873
|
+
}),
|
|
874
|
+
),
|
|
875
|
+
).annotate({ identifier: "GetComplianceLockRequest" });
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
function __c10(j: number): any {
|
|
879
|
+
switch (j) {
|
|
880
|
+
case 0:
|
|
881
|
+
return S.suspend(() =>
|
|
882
|
+
S.Struct({
|
|
883
|
+
projectId: S.String.pipe(T.Label()),
|
|
884
|
+
region: S.String.pipe(T.Label()),
|
|
885
|
+
groupId: S.String.pipe(T.Label()),
|
|
886
|
+
}).pipe(
|
|
887
|
+
T.Http({
|
|
888
|
+
method: "GET",
|
|
889
|
+
uri: "/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",
|
|
890
|
+
code: 200,
|
|
891
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
892
|
+
}),
|
|
893
|
+
),
|
|
894
|
+
).annotate({ identifier: "GetCredentialsGroupRequest" });
|
|
895
|
+
case 1:
|
|
896
|
+
return S.suspend(() =>
|
|
897
|
+
S.Struct({
|
|
898
|
+
credentialsGroupId: S.String,
|
|
899
|
+
displayName: S.String,
|
|
900
|
+
urn: S.String,
|
|
901
|
+
userUrn: S.String,
|
|
902
|
+
}),
|
|
903
|
+
).annotate({ identifier: "CredentialsGroupExtended" });
|
|
904
|
+
case 2:
|
|
905
|
+
return S.suspend(() =>
|
|
906
|
+
S.Struct({
|
|
907
|
+
credentialsGroup: __S(41, __c10, 1),
|
|
908
|
+
project: S.String,
|
|
909
|
+
}),
|
|
910
|
+
).annotate({ identifier: "GetCredentialsGroupResponse" });
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
function __c11(j: number): any {
|
|
914
|
+
switch (j) {
|
|
915
|
+
case 0:
|
|
916
|
+
return S.suspend(() =>
|
|
917
|
+
S.Struct({
|
|
918
|
+
projectId: S.String.pipe(T.Label()),
|
|
919
|
+
region: S.String.pipe(T.Label()),
|
|
920
|
+
bucketName: S.String.pipe(T.Label()),
|
|
921
|
+
}).pipe(
|
|
922
|
+
T.Http({
|
|
923
|
+
method: "GET",
|
|
924
|
+
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
|
|
925
|
+
code: 200,
|
|
926
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
927
|
+
}),
|
|
928
|
+
),
|
|
929
|
+
).annotate({ identifier: "GetDefaultRetentionRequest" });
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
function __c12(j: number): any {
|
|
933
|
+
switch (j) {
|
|
934
|
+
case 0:
|
|
935
|
+
return S.suspend(() =>
|
|
936
|
+
S.Struct({
|
|
937
|
+
bucket: S.String,
|
|
938
|
+
days: S.Number,
|
|
939
|
+
mode: S.String,
|
|
940
|
+
project: S.String,
|
|
941
|
+
}),
|
|
942
|
+
).annotate({ identifier: "DefaultRetentionResponse" });
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
function __c13(j: number): any {
|
|
946
|
+
switch (j) {
|
|
947
|
+
case 0:
|
|
948
|
+
return S.suspend(() =>
|
|
949
|
+
S.Struct({
|
|
950
|
+
projectId: S.String.pipe(T.Label()),
|
|
951
|
+
region: S.String.pipe(T.Label()),
|
|
952
|
+
}).pipe(
|
|
953
|
+
T.Http({
|
|
954
|
+
method: "GET",
|
|
955
|
+
uri: "/v2/project/{projectId}/regions/{region}",
|
|
956
|
+
code: 200,
|
|
957
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
958
|
+
}),
|
|
959
|
+
),
|
|
960
|
+
).annotate({ identifier: "GetServiceStatusRequest" });
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
function __c14(j: number): any {
|
|
964
|
+
switch (j) {
|
|
965
|
+
case 0:
|
|
966
|
+
return S.suspend(() =>
|
|
967
|
+
S.Struct({
|
|
968
|
+
projectId: S.String.pipe(T.Label()),
|
|
969
|
+
region: S.String.pipe(T.Label()),
|
|
970
|
+
credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
|
|
971
|
+
}).pipe(
|
|
972
|
+
T.Http({
|
|
973
|
+
method: "GET",
|
|
974
|
+
uri: "/v2/project/{projectId}/regions/{region}/access-keys",
|
|
975
|
+
code: 200,
|
|
976
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
977
|
+
}),
|
|
978
|
+
),
|
|
979
|
+
).annotate({ identifier: "ListAccessKeysRequest" });
|
|
980
|
+
case 1:
|
|
981
|
+
return S.suspend(() =>
|
|
982
|
+
S.Struct({
|
|
983
|
+
displayName: S.String,
|
|
984
|
+
expires: S.NullOr(S.String),
|
|
985
|
+
keyId: S.String,
|
|
986
|
+
}),
|
|
987
|
+
).annotate({ identifier: "AccessKey" });
|
|
988
|
+
case 2:
|
|
989
|
+
return S.Array(__S(57, __c14, 1));
|
|
990
|
+
case 3:
|
|
991
|
+
return S.suspend(() =>
|
|
992
|
+
S.Struct({
|
|
993
|
+
accessKeys: __S(58, __c14, 2),
|
|
994
|
+
project: S.String,
|
|
995
|
+
}),
|
|
996
|
+
).annotate({ identifier: "ListAccessKeysResponse" });
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
function __c15(j: number): any {
|
|
1000
|
+
switch (j) {
|
|
1001
|
+
case 0:
|
|
1002
|
+
return S.suspend(() =>
|
|
1003
|
+
S.Struct({
|
|
1004
|
+
projectId: S.String.pipe(T.Label()),
|
|
1005
|
+
region: S.String.pipe(T.Label()),
|
|
1006
|
+
}).pipe(
|
|
1007
|
+
T.Http({
|
|
1008
|
+
method: "GET",
|
|
1009
|
+
uri: "/v2/project/{projectId}/regions/{region}/buckets",
|
|
1010
|
+
code: 200,
|
|
1011
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1012
|
+
}),
|
|
1013
|
+
),
|
|
1014
|
+
).annotate({ identifier: "ListBucketsRequest" });
|
|
1015
|
+
case 1:
|
|
1016
|
+
return S.Array(__S(32, __c8, 0));
|
|
1017
|
+
case 2:
|
|
1018
|
+
return S.suspend(() =>
|
|
1019
|
+
S.Struct({
|
|
1020
|
+
buckets: __S(61, __c15, 1),
|
|
1021
|
+
project: S.String,
|
|
1022
|
+
}),
|
|
1023
|
+
).annotate({ identifier: "ListBucketsResponse" });
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
function __c16(j: number): any {
|
|
1027
|
+
switch (j) {
|
|
1028
|
+
case 0:
|
|
1029
|
+
return S.suspend(() =>
|
|
1030
|
+
S.Struct({
|
|
1031
|
+
projectId: S.String.pipe(T.Label()),
|
|
1032
|
+
region: S.String.pipe(T.Label()),
|
|
1033
|
+
}).pipe(
|
|
1034
|
+
T.Http({
|
|
1035
|
+
method: "GET",
|
|
1036
|
+
uri: "/v2/project/{projectId}/regions/{region}/credentials-groups",
|
|
1037
|
+
code: 200,
|
|
1038
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1039
|
+
}),
|
|
1040
|
+
),
|
|
1041
|
+
).annotate({ identifier: "ListCredentialsGroupsRequest" });
|
|
1042
|
+
case 1:
|
|
1043
|
+
return S.Array(__S(100, __c25, 0));
|
|
1044
|
+
case 2:
|
|
1045
|
+
return S.suspend(() =>
|
|
1046
|
+
S.Struct({
|
|
1047
|
+
credentialsGroups: __S(65, __c16, 1),
|
|
1048
|
+
project: S.String,
|
|
1049
|
+
}),
|
|
1050
|
+
).annotate({ identifier: "ListCredentialsGroupsResponse" });
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
function __c17(j: number): any {
|
|
1054
|
+
switch (j) {
|
|
1055
|
+
case 0:
|
|
1056
|
+
return S.suspend(() =>
|
|
1057
|
+
S.Struct({
|
|
1058
|
+
projectId: S.String.pipe(T.Label()),
|
|
1059
|
+
region: S.String.pipe(T.Label()),
|
|
1060
|
+
bucketName: S.String.pipe(T.Label()),
|
|
1061
|
+
days: S.Number,
|
|
1062
|
+
mode: S.String,
|
|
1063
|
+
}).pipe(
|
|
1064
|
+
T.Http({
|
|
1065
|
+
method: "PUT",
|
|
1066
|
+
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
|
|
1067
|
+
code: 200,
|
|
1068
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1069
|
+
}),
|
|
1070
|
+
),
|
|
1071
|
+
).annotate({ identifier: "SetDefaultRetentionRequest" });
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
function __c18(j: number): any {
|
|
1075
|
+
switch (j) {
|
|
1076
|
+
case 0:
|
|
1077
|
+
return S.suspend(() =>
|
|
1078
|
+
S.Struct({
|
|
1079
|
+
projectId: S.String.pipe(T.Label()),
|
|
1080
|
+
region: S.String.pipe(T.Label()),
|
|
1081
|
+
labels: __S(20, __c5, 0),
|
|
1082
|
+
}).pipe(
|
|
1083
|
+
T.Http({
|
|
1084
|
+
method: "PUT",
|
|
1085
|
+
uri: "/v2/project/{projectId}/regions/{region}",
|
|
1086
|
+
code: 200,
|
|
1087
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1088
|
+
}),
|
|
1089
|
+
),
|
|
1090
|
+
).annotate({ identifier: "UpdateServiceRequest" });
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
function __c19(j: number): any {
|
|
1094
|
+
switch (j) {
|
|
1095
|
+
case 0:
|
|
1096
|
+
return S.suspend(() =>
|
|
1097
|
+
S.Struct({
|
|
1098
|
+
projectId: S.String.pipe(T.Label()),
|
|
1099
|
+
region: S.String.pipe(T.Label()),
|
|
1100
|
+
credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
|
|
1101
|
+
expires: S.optional(S.NullOr(S.String)),
|
|
1102
|
+
}).pipe(
|
|
1103
|
+
T.Http({
|
|
1104
|
+
method: "POST",
|
|
1105
|
+
uri: "/v2/project/{projectId}/regions/{region}/access-key",
|
|
1106
|
+
code: 200,
|
|
1107
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1108
|
+
}),
|
|
1109
|
+
),
|
|
1110
|
+
).annotate({ identifier: "CreateAccessKeyRequest" });
|
|
1111
|
+
case 1:
|
|
1112
|
+
return S.suspend(() =>
|
|
1113
|
+
S.Struct({
|
|
1114
|
+
accessKey: S.String,
|
|
1115
|
+
displayName: S.String,
|
|
1116
|
+
expires: S.NullOr(S.String),
|
|
1117
|
+
keyId: S.String,
|
|
1118
|
+
project: S.String,
|
|
1119
|
+
secretAccessKey: S.String.pipe(T.SensitiveValue({})),
|
|
1120
|
+
}),
|
|
1121
|
+
).annotate({ identifier: "CreateAccessKeyResponse" });
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
function __c20(j: number): any {
|
|
1125
|
+
switch (j) {
|
|
1126
|
+
case 0:
|
|
1127
|
+
return S.suspend(() =>
|
|
1128
|
+
S.Struct({
|
|
1129
|
+
projectId: S.String.pipe(T.Label()),
|
|
1130
|
+
region: S.String.pipe(T.Label()),
|
|
1131
|
+
bucketName: S.String.pipe(T.Label()),
|
|
1132
|
+
objectLockEnabled: S.optional(S.Boolean.pipe(T.Query())),
|
|
1133
|
+
}).pipe(
|
|
1134
|
+
T.Http({
|
|
1135
|
+
method: "POST",
|
|
1136
|
+
uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
|
|
1137
|
+
code: 200,
|
|
1138
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1139
|
+
}),
|
|
1140
|
+
),
|
|
1141
|
+
).annotate({ identifier: "CreateBucketRequest" });
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
function __c21(j: number): any {
|
|
1145
|
+
switch (j) {
|
|
1146
|
+
case 0:
|
|
1147
|
+
return S.suspend(() =>
|
|
1148
|
+
S.Struct({
|
|
1149
|
+
bucket: S.String,
|
|
1150
|
+
project: S.String,
|
|
1151
|
+
}),
|
|
1152
|
+
).annotate({ identifier: "CreateBucketResponse" });
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
function __c22(j: number): any {
|
|
1156
|
+
switch (j) {
|
|
1157
|
+
case 0:
|
|
1158
|
+
return S.suspend(() =>
|
|
1159
|
+
S.Struct({
|
|
1160
|
+
projectId: S.String.pipe(T.Label()),
|
|
1161
|
+
region: S.String.pipe(T.Label()),
|
|
1162
|
+
}).pipe(
|
|
1163
|
+
T.Http({
|
|
1164
|
+
method: "POST",
|
|
1165
|
+
uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
|
|
1166
|
+
code: 200,
|
|
1167
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1168
|
+
}),
|
|
1169
|
+
),
|
|
1170
|
+
).annotate({ identifier: "CreateComplianceLockRequest" });
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
function __c23(j: number): any {
|
|
1174
|
+
switch (j) {
|
|
1175
|
+
case 0:
|
|
1176
|
+
return S.suspend(() =>
|
|
1177
|
+
S.Struct({
|
|
1178
|
+
maxRetentionDays: S.Number,
|
|
1179
|
+
project: S.String,
|
|
1180
|
+
}),
|
|
1181
|
+
).annotate({ identifier: "ComplianceLockResponse" });
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
function __c24(j: number): any {
|
|
1185
|
+
switch (j) {
|
|
1186
|
+
case 0:
|
|
1187
|
+
return S.suspend(() =>
|
|
1188
|
+
S.Struct({
|
|
1189
|
+
projectId: S.String.pipe(T.Label()),
|
|
1190
|
+
region: S.String.pipe(T.Label()),
|
|
1191
|
+
displayName: S.String,
|
|
1192
|
+
}).pipe(
|
|
1193
|
+
T.Http({
|
|
1194
|
+
method: "POST",
|
|
1195
|
+
uri: "/v2/project/{projectId}/regions/{region}/credentials-group",
|
|
1196
|
+
code: 200,
|
|
1197
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1198
|
+
}),
|
|
1199
|
+
),
|
|
1200
|
+
).annotate({ identifier: "CreateCredentialsGroupRequest" });
|
|
1201
|
+
case 1:
|
|
1202
|
+
return S.suspend(() =>
|
|
1203
|
+
S.Struct({
|
|
1204
|
+
credentialsGroup: __S(100, __c25, 0),
|
|
1205
|
+
project: S.String,
|
|
1206
|
+
}),
|
|
1207
|
+
).annotate({ identifier: "CreateCredentialsGroupResponse" });
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
function __c25(j: number): any {
|
|
1211
|
+
switch (j) {
|
|
1212
|
+
case 0:
|
|
1213
|
+
return S.suspend(() =>
|
|
1214
|
+
S.Struct({
|
|
1215
|
+
credentialsGroupId: S.String,
|
|
1216
|
+
displayName: S.String,
|
|
1217
|
+
urn: S.String,
|
|
1218
|
+
}),
|
|
1219
|
+
).annotate({ identifier: "CredentialsGroup" });
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
function __c26(j: number): any {
|
|
1223
|
+
switch (j) {
|
|
1224
|
+
case 0:
|
|
1225
|
+
return S.suspend(() =>
|
|
1226
|
+
S.Struct({
|
|
1227
|
+
projectId: S.String.pipe(T.Label()),
|
|
1228
|
+
region: S.String.pipe(T.Label()),
|
|
1229
|
+
keyId: S.String.pipe(T.Label()),
|
|
1230
|
+
credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
|
|
1231
|
+
}).pipe(
|
|
1232
|
+
T.Http({
|
|
1233
|
+
method: "DELETE",
|
|
1234
|
+
uri: "/v2/project/{projectId}/regions/{region}/access-key/{keyId}",
|
|
1235
|
+
code: 200,
|
|
1236
|
+
baseUrl: "https://object-storage.api.stackit.cloud",
|
|
1237
|
+
}),
|
|
1238
|
+
),
|
|
1239
|
+
).annotate({ identifier: "DeleteAccessKeyRequest" });
|
|
1240
|
+
case 1:
|
|
1241
|
+
return S.suspend(() =>
|
|
1242
|
+
S.Struct({
|
|
1243
|
+
keyId: S.String,
|
|
1244
|
+
project: S.String,
|
|
1245
|
+
}),
|
|
1246
|
+
).annotate({ identifier: "DeleteAccessKeyResponse" });
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1250
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1251
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1252
|
+
}
|