@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17
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/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -49
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -26
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -24
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +1 -45
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -147
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -31
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +28 -512
- package/lib/services/alb.js.map +1 -1
- 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 +33 -520
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -322
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +1 -362
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +31 -905
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -178
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -176
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -725
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -316
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +1 -356
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -398
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +35 -519
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +181 -3542
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +29 -474
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +41 -662
- package/lib/services/kms.js.map +1 -1
- 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 +1 -153
- package/lib/services/lb_ip_lists.js.map +1 -1
- 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 +29 -496
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +33 -573
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -474
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +34 -550
- package/lib/services/mariadb.js.map +1 -1
- 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 +1 -335
- package/lib/services/model_experiments.js.map +1 -1
- 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 +1 -286
- package/lib/services/model_serving.js.map +1 -1
- 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 +42 -802
- package/lib/services/mongodb_flex.js.map +1 -1
- 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 +38 -539
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +159 -3157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +34 -562
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +31 -735
- package/lib/services/pim.js.map +1 -1
- 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 +47 -852
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +37 -518
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +35 -573
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -197
- package/lib/services/registry.js.map +1 -1
- 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 +36 -472
- package/lib/services/resource_manager.js.map +1 -1
- 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 +1 -184
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +25 -444
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +40 -669
- package/lib/services/scf.js.map +1 -1
- 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 +42 -612
- package/lib/services/secrets_manager.js.map +1 -1
- 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 +29 -453
- package/lib/services/server_backup.js.map +1 -1
- 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 +1 -351
- package/lib/services/server_update.js.map +1 -1
- 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 +30 -505
- package/lib/services/service_account.js.map +1 -1
- 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 +1 -156
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -789
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +26 -557
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +46 -935
- package/lib/services/sqlserverflex.js.map +1 -1
- 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 +26 -378
- package/lib/services/stackit_marketplace.js.map +1 -1
- 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 +34 -531
- package/lib/services/telemetry_link.js.map +1 -1
- 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 +29 -483
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -278
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +34 -566
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +43 -930
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -507
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +4 -0
- package/lib/services.lazy/alb_waf.js +4 -0
- package/lib/services.lazy/authorization.js +1 -0
- package/lib/services.lazy/automation.js +1 -0
- package/lib/services.lazy/cdn.js +4 -0
- package/lib/services.lazy/certificates.js +1 -0
- package/lib/services.lazy/cost.js +1 -0
- package/lib/services.lazy/dns.js +4 -0
- package/lib/services.lazy/dremio.js +1 -0
- package/lib/services.lazy/edge.js +1 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/git.js +4 -0
- package/lib/services.lazy/iaas.js +4 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/intake.js +4 -0
- package/lib/services.lazy/kms.js +4 -0
- package/lib/services.lazy/lb_ip_lists.js +1 -0
- package/lib/services.lazy/load_balancer.js +4 -0
- package/lib/services.lazy/logme.js +4 -0
- package/lib/services.lazy/logs.js +4 -0
- package/lib/services.lazy/mariadb.js +4 -0
- package/lib/services.lazy/model_experiments.js +1 -0
- package/lib/services.lazy/model_serving.js +1 -0
- package/lib/services.lazy/mongodb_flex.js +4 -0
- package/lib/services.lazy/object_storage.js +4 -0
- package/lib/services.lazy/observability.js +4 -0
- package/lib/services.lazy/opensearch.js +4 -0
- package/lib/services.lazy/pim.js +4 -0
- package/lib/services.lazy/postgres_flex.js +4 -0
- package/lib/services.lazy/pubsub.js +4 -0
- package/lib/services.lazy/rabbitmq.js +4 -0
- package/lib/services.lazy/registry.js +1 -0
- package/lib/services.lazy/resource_manager.js +4 -0
- package/lib/services.lazy/run_command.js +1 -0
- package/lib/services.lazy/sca.js +4 -0
- package/lib/services.lazy/scf.js +4 -0
- package/lib/services.lazy/secrets_manager.js +4 -0
- package/lib/services.lazy/server_backup.js +4 -0
- package/lib/services.lazy/server_update.js +1 -0
- package/lib/services.lazy/service_account.js +4 -0
- package/lib/services.lazy/service_enablement.js +1 -0
- package/lib/services.lazy/sfs.js +4 -0
- package/lib/services.lazy/ske.js +4 -0
- package/lib/services.lazy/sqlserverflex.js +4 -0
- package/lib/services.lazy/stackit_marketplace.js +4 -0
- package/lib/services.lazy/telemetry_link.js +4 -0
- package/lib/services.lazy/telemetry_router.js +4 -0
- package/lib/services.lazy/ufw.js +1 -0
- package/lib/services.lazy/valkey.js +4 -0
- package/lib/services.lazy/vpn.js +4 -0
- package/lib/services.lazy/workflows.js +4 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +1 -15
- package/package.json +9 -7
- 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/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -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/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- package/src/protocol.test.ts +0 -304
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
package/src/services/registry.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
|
|
|
@@ -51,13 +54,6 @@ export interface Credentials {
|
|
|
51
54
|
access_key?: string;
|
|
52
55
|
access_secret?: string | Redacted.Redacted<string>;
|
|
53
56
|
}
|
|
54
|
-
export const Credentials = /*@__PURE__*/ S.suspend(() =>
|
|
55
|
-
S.Struct({
|
|
56
|
-
access_key: S.optional(S.String),
|
|
57
|
-
access_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
58
|
-
}),
|
|
59
|
-
).annotate({ identifier: "Credentials" }) as any as S.Schema<Credentials>;
|
|
60
|
-
|
|
61
57
|
/** Provide an upstream repository this project is a proxy for */
|
|
62
58
|
export interface CreateProxyRequest {
|
|
63
59
|
credentials?: Credentials;
|
|
@@ -68,15 +64,6 @@ export interface CreateProxyRequest {
|
|
|
68
64
|
/** Upstream registry url to proxy */
|
|
69
65
|
url: string;
|
|
70
66
|
}
|
|
71
|
-
export const CreateProxyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
72
|
-
S.Struct({
|
|
73
|
-
credentials: S.optional(Credentials),
|
|
74
|
-
description: S.optional(S.String),
|
|
75
|
-
registry_type: S.String,
|
|
76
|
-
url: S.String,
|
|
77
|
-
}),
|
|
78
|
-
).annotate({ identifier: "CreateProxyRequest" }) as any as S.Schema<CreateProxyRequest>;
|
|
79
|
-
|
|
80
67
|
export interface CreateArtifactoryRequest {
|
|
81
68
|
/** Project identifier. */
|
|
82
69
|
projectId: string;
|
|
@@ -89,33 +76,10 @@ export interface CreateArtifactoryRequest {
|
|
|
89
76
|
/** If proxy configuration is provided, this project will be created as a proxy-cache for the upstream registry. */
|
|
90
77
|
proxy?: CreateProxyRequest;
|
|
91
78
|
}
|
|
92
|
-
export const CreateArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
93
|
-
S.Struct({
|
|
94
|
-
projectId: S.String.pipe(T.Label()),
|
|
95
|
-
regionId: S.String.pipe(T.Label()),
|
|
96
|
-
claim: S.optional(S.Boolean.pipe(T.Query())),
|
|
97
|
-
name: S.String,
|
|
98
|
-
proxy: S.optional(CreateProxyRequest),
|
|
99
|
-
}).pipe(
|
|
100
|
-
T.Http({
|
|
101
|
-
method: "POST",
|
|
102
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
103
|
-
code: 200,
|
|
104
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
105
|
-
}),
|
|
106
|
-
),
|
|
107
|
-
).annotate({ identifier: "CreateArtifactoryRequest" }) as any as S.Schema<CreateArtifactoryRequest>;
|
|
108
|
-
|
|
109
79
|
/** Credentials for upstream registry, redacted */
|
|
110
80
|
export interface RedactedCredentials {
|
|
111
81
|
access_key?: string;
|
|
112
82
|
}
|
|
113
|
-
export const RedactedCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
114
|
-
S.Struct({
|
|
115
|
-
access_key: S.optional(S.String),
|
|
116
|
-
}),
|
|
117
|
-
).annotate({ identifier: "RedactedCredentials" }) as any as S.Schema<RedactedCredentials>;
|
|
118
|
-
|
|
119
83
|
/** Replication settings for a proxy-cache artifactory */
|
|
120
84
|
export interface Proxy {
|
|
121
85
|
credentials?: RedactedCredentials;
|
|
@@ -126,15 +90,6 @@ export interface Proxy {
|
|
|
126
90
|
/** Upstream registry url to proxy */
|
|
127
91
|
url: string;
|
|
128
92
|
}
|
|
129
|
-
export const Proxy = /*@__PURE__*/ S.suspend(() =>
|
|
130
|
-
S.Struct({
|
|
131
|
-
credentials: S.optional(RedactedCredentials),
|
|
132
|
-
description: S.optional(S.String),
|
|
133
|
-
registry_type: S.String,
|
|
134
|
-
url: S.String,
|
|
135
|
-
}),
|
|
136
|
-
).annotate({ identifier: "Proxy" }) as any as S.Schema<Proxy>;
|
|
137
|
-
|
|
138
93
|
/** Artifactory Information. */
|
|
139
94
|
export interface Artifactory {
|
|
140
95
|
/** How many bytes of quota is consumed. Read Only. */
|
|
@@ -153,19 +108,6 @@ export interface Artifactory {
|
|
|
153
108
|
/** How many users does this artifactory have. Read Only. */
|
|
154
109
|
user_count: number;
|
|
155
110
|
}
|
|
156
|
-
export const Artifactory = /*@__PURE__*/ S.suspend(() =>
|
|
157
|
-
S.Struct({
|
|
158
|
-
consumed_quota_bytes: S.Number,
|
|
159
|
-
create_time: S.String,
|
|
160
|
-
id: S.String,
|
|
161
|
-
name: S.String,
|
|
162
|
-
proxy: S.optional(Proxy),
|
|
163
|
-
state: S.String,
|
|
164
|
-
url: S.String,
|
|
165
|
-
user_count: S.Number,
|
|
166
|
-
}),
|
|
167
|
-
).annotate({ identifier: "Artifactory" }) as any as S.Schema<Artifactory>;
|
|
168
|
-
|
|
169
111
|
export interface DeleteArtifactoryRequest {
|
|
170
112
|
/** Project identifier. */
|
|
171
113
|
projectId: string;
|
|
@@ -174,26 +116,7 @@ export interface DeleteArtifactoryRequest {
|
|
|
174
116
|
/** Artifactory identifier. */
|
|
175
117
|
artifactoryId: string;
|
|
176
118
|
}
|
|
177
|
-
export const DeleteArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
178
|
-
S.Struct({
|
|
179
|
-
projectId: S.String.pipe(T.Label()),
|
|
180
|
-
regionId: S.String.pipe(T.Label()),
|
|
181
|
-
artifactoryId: S.String.pipe(T.Label()),
|
|
182
|
-
}).pipe(
|
|
183
|
-
T.Http({
|
|
184
|
-
method: "DELETE",
|
|
185
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
186
|
-
code: 200,
|
|
187
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
188
|
-
}),
|
|
189
|
-
),
|
|
190
|
-
).annotate({ identifier: "DeleteArtifactoryRequest" }) as any as S.Schema<DeleteArtifactoryRequest>;
|
|
191
|
-
|
|
192
119
|
export interface DeleteArtifactoryResponse {}
|
|
193
|
-
export const DeleteArtifactoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
194
|
-
identifier: "DeleteArtifactoryResponse",
|
|
195
|
-
}) as any as S.Schema<DeleteArtifactoryResponse>;
|
|
196
|
-
|
|
197
120
|
export interface GetArtifactoryRequest {
|
|
198
121
|
/** Project identifier. */
|
|
199
122
|
projectId: string;
|
|
@@ -202,21 +125,6 @@ export interface GetArtifactoryRequest {
|
|
|
202
125
|
/** Artifactory identifier. */
|
|
203
126
|
artifactoryId: string;
|
|
204
127
|
}
|
|
205
|
-
export const GetArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
206
|
-
S.Struct({
|
|
207
|
-
projectId: S.String.pipe(T.Label()),
|
|
208
|
-
regionId: S.String.pipe(T.Label()),
|
|
209
|
-
artifactoryId: S.String.pipe(T.Label()),
|
|
210
|
-
}).pipe(
|
|
211
|
-
T.Http({
|
|
212
|
-
method: "GET",
|
|
213
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
214
|
-
code: 200,
|
|
215
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
216
|
-
}),
|
|
217
|
-
),
|
|
218
|
-
).annotate({ identifier: "GetArtifactoryRequest" }) as any as S.Schema<GetArtifactoryRequest>;
|
|
219
|
-
|
|
220
128
|
export interface ListArtifactoriesRequest {
|
|
221
129
|
/** Project identifier. */
|
|
222
130
|
projectId: string;
|
|
@@ -227,93 +135,32 @@ export interface ListArtifactoriesRequest {
|
|
|
227
135
|
/** A page token, received from a previous `ListArtifactories` call. Provide this to retrieve the subsequent page. */
|
|
228
136
|
next_page_token?: string;
|
|
229
137
|
}
|
|
230
|
-
export const ListArtifactoriesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
231
|
-
S.Struct({
|
|
232
|
-
projectId: S.String.pipe(T.Label()),
|
|
233
|
-
regionId: S.String.pipe(T.Label()),
|
|
234
|
-
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
235
|
-
next_page_token: S.optional(S.String.pipe(T.Query())),
|
|
236
|
-
}).pipe(
|
|
237
|
-
T.Http({
|
|
238
|
-
method: "GET",
|
|
239
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
240
|
-
code: 200,
|
|
241
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
242
|
-
}),
|
|
243
|
-
),
|
|
244
|
-
).annotate({ identifier: "ListArtifactoriesRequest" }) as any as S.Schema<ListArtifactoriesRequest>;
|
|
245
|
-
|
|
246
138
|
export type ArtifactoryListArtifactoriesList = Array<Artifactory>;
|
|
247
|
-
export const ArtifactoryListArtifactoriesList = /*@__PURE__*/ S.Array(
|
|
248
|
-
Artifactory,
|
|
249
|
-
) as any as S.Schema<ArtifactoryListArtifactoriesList>;
|
|
250
|
-
|
|
251
139
|
/** A list of artifactories inside a STACKIT project. */
|
|
252
140
|
export interface ArtifactoryList {
|
|
253
141
|
artifactories: ArtifactoryListArtifactoriesList;
|
|
254
142
|
/** A token to retrieve the next page of results. Pass this value as `page_token` in the subsequent request. If empty, there are no more pages. */
|
|
255
143
|
next_page_token?: string;
|
|
256
144
|
}
|
|
257
|
-
export const ArtifactoryList = /*@__PURE__*/ S.suspend(() =>
|
|
258
|
-
S.Struct({
|
|
259
|
-
artifactories: ArtifactoryListArtifactoriesList,
|
|
260
|
-
next_page_token: S.optional(S.String),
|
|
261
|
-
}),
|
|
262
|
-
).annotate({ identifier: "ArtifactoryList" }) as any as S.Schema<ArtifactoryList>;
|
|
263
|
-
|
|
264
145
|
export interface ListReplicationAdaptersRequest {
|
|
265
146
|
/** Project identifier. */
|
|
266
147
|
projectId: string;
|
|
267
148
|
/** STACKIT region identification */
|
|
268
149
|
regionId: string;
|
|
269
150
|
}
|
|
270
|
-
export const ListReplicationAdaptersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
271
|
-
S.Struct({
|
|
272
|
-
projectId: S.String.pipe(T.Label()),
|
|
273
|
-
regionId: S.String.pipe(T.Label()),
|
|
274
|
-
}).pipe(
|
|
275
|
-
T.Http({
|
|
276
|
-
method: "GET",
|
|
277
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/replication/adapters",
|
|
278
|
-
code: 200,
|
|
279
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
280
|
-
}),
|
|
281
|
-
),
|
|
282
|
-
).annotate({
|
|
283
|
-
identifier: "ListReplicationAdaptersRequest",
|
|
284
|
-
}) as any as S.Schema<ListReplicationAdaptersRequest>;
|
|
285
|
-
|
|
286
151
|
export interface ReplicationAdapter {
|
|
287
152
|
/** Human-friendly name of the provider the adapter relates to. */
|
|
288
153
|
display_name: string;
|
|
289
154
|
/** Identifies the replication adapter */
|
|
290
155
|
registry_type: string;
|
|
291
156
|
}
|
|
292
|
-
export const ReplicationAdapter = /*@__PURE__*/ S.suspend(() =>
|
|
293
|
-
S.Struct({
|
|
294
|
-
display_name: S.String,
|
|
295
|
-
registry_type: S.String,
|
|
296
|
-
}),
|
|
297
|
-
).annotate({ identifier: "ReplicationAdapter" }) as any as S.Schema<ReplicationAdapter>;
|
|
298
|
-
|
|
299
157
|
export type ReplicationAdapterListReplicationAdaptersList = Array<ReplicationAdapter>;
|
|
300
|
-
export const ReplicationAdapterListReplicationAdaptersList = /*@__PURE__*/ S.Array(
|
|
301
|
-
ReplicationAdapter,
|
|
302
|
-
) as any as S.Schema<ReplicationAdapterListReplicationAdaptersList>;
|
|
303
|
-
|
|
304
158
|
/** A list of replication adapters */
|
|
305
159
|
export interface ReplicationAdapterList {
|
|
306
160
|
/** A token to retrieve the next page of results. Pass this value as `page_token` in the subsequent request. If empty, there are no more pages. */
|
|
307
161
|
next_page_token?: string;
|
|
308
162
|
replication_adapters: ReplicationAdapterListReplicationAdaptersList;
|
|
309
163
|
}
|
|
310
|
-
export const ReplicationAdapterList = /*@__PURE__*/ S.suspend(() =>
|
|
311
|
-
S.Struct({
|
|
312
|
-
next_page_token: S.optional(S.String),
|
|
313
|
-
replication_adapters: ReplicationAdapterListReplicationAdaptersList,
|
|
314
|
-
}),
|
|
315
|
-
).annotate({ identifier: "ReplicationAdapterList" }) as any as S.Schema<ReplicationAdapterList>;
|
|
316
|
-
|
|
317
164
|
/** Update an upstream repository for a proxy-cache project */
|
|
318
165
|
export interface UpdateProxyRequest {
|
|
319
166
|
credentials?: Credentials;
|
|
@@ -322,14 +169,6 @@ export interface UpdateProxyRequest {
|
|
|
322
169
|
/** Upstream registry url to proxy */
|
|
323
170
|
url?: string;
|
|
324
171
|
}
|
|
325
|
-
export const UpdateProxyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
326
|
-
S.Struct({
|
|
327
|
-
credentials: S.optional(Credentials),
|
|
328
|
-
description: S.optional(S.String),
|
|
329
|
-
url: S.optional(S.String),
|
|
330
|
-
}),
|
|
331
|
-
).annotate({ identifier: "UpdateProxyRequest" }) as any as S.Schema<UpdateProxyRequest>;
|
|
332
|
-
|
|
333
172
|
export interface PatchArtifactoryRequest {
|
|
334
173
|
/** Project identifier. */
|
|
335
174
|
projectId: string;
|
|
@@ -339,22 +178,6 @@ export interface PatchArtifactoryRequest {
|
|
|
339
178
|
artifactoryId: string;
|
|
340
179
|
proxy?: UpdateProxyRequest;
|
|
341
180
|
}
|
|
342
|
-
export const PatchArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
343
|
-
S.Struct({
|
|
344
|
-
projectId: S.String.pipe(T.Label()),
|
|
345
|
-
regionId: S.String.pipe(T.Label()),
|
|
346
|
-
artifactoryId: S.String.pipe(T.Label()),
|
|
347
|
-
proxy: S.optional(UpdateProxyRequest),
|
|
348
|
-
}).pipe(
|
|
349
|
-
T.Http({
|
|
350
|
-
method: "PATCH",
|
|
351
|
-
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
352
|
-
code: 200,
|
|
353
|
-
baseUrl: "https://registry.api.stackit.cloud",
|
|
354
|
-
}),
|
|
355
|
-
),
|
|
356
|
-
).annotate({ identifier: "PatchArtifactoryRequest" }) as any as S.Schema<PatchArtifactoryRequest>;
|
|
357
|
-
|
|
358
181
|
export type CreateArtifactoryError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
359
182
|
/** Creates an artifactory Creates an artifactory associated to the specified project. */
|
|
360
183
|
export const createArtifactory: API.OperationMethod<
|
|
@@ -363,8 +186,8 @@ export const createArtifactory: API.OperationMethod<
|
|
|
363
186
|
CreateArtifactoryError,
|
|
364
187
|
StackitOpContext
|
|
365
188
|
> = /*@__PURE__*/ API.make(() => ({
|
|
366
|
-
input: CreateArtifactoryRequest
|
|
367
|
-
output: Artifactory
|
|
189
|
+
input: __S(1, __c0, 1) as any as S.Schema<CreateArtifactoryRequest>,
|
|
190
|
+
output: __S(6, __c1, 2) as any as S.Schema<Artifactory>,
|
|
368
191
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
369
192
|
protocol: StackitProtocol,
|
|
370
193
|
retry: Retry.Retry,
|
|
@@ -378,8 +201,8 @@ export const deleteArtifactory: API.OperationMethod<
|
|
|
378
201
|
DeleteArtifactoryError,
|
|
379
202
|
StackitOpContext
|
|
380
203
|
> = /*@__PURE__*/ API.make(() => ({
|
|
381
|
-
input: DeleteArtifactoryRequest
|
|
382
|
-
output: DeleteArtifactoryResponse
|
|
204
|
+
input: __S(12, __c3, 0) as any as S.Schema<DeleteArtifactoryRequest>,
|
|
205
|
+
output: __S(13, __c3, 1) as any as S.Schema<DeleteArtifactoryResponse>,
|
|
383
206
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
384
207
|
protocol: StackitProtocol,
|
|
385
208
|
retry: Retry.Retry,
|
|
@@ -393,8 +216,8 @@ export const getArtifactory: API.OperationMethod<
|
|
|
393
216
|
GetArtifactoryError,
|
|
394
217
|
StackitOpContext
|
|
395
218
|
> = /*@__PURE__*/ API.make(() => ({
|
|
396
|
-
input: GetArtifactoryRequest
|
|
397
|
-
output: Artifactory
|
|
219
|
+
input: __S(16, __c4, 0) as any as S.Schema<GetArtifactoryRequest>,
|
|
220
|
+
output: __S(6, __c1, 2) as any as S.Schema<Artifactory>,
|
|
398
221
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
399
222
|
protocol: StackitProtocol,
|
|
400
223
|
retry: Retry.Retry,
|
|
@@ -408,8 +231,8 @@ export const listArtifactories: API.OperationMethod<
|
|
|
408
231
|
ListArtifactoriesError,
|
|
409
232
|
StackitOpContext
|
|
410
233
|
> = /*@__PURE__*/ API.make(() => ({
|
|
411
|
-
input: ListArtifactoriesRequest
|
|
412
|
-
output: ArtifactoryList
|
|
234
|
+
input: __S(20, __c5, 0) as any as S.Schema<ListArtifactoriesRequest>,
|
|
235
|
+
output: __S(22, __c5, 2) as any as S.Schema<ArtifactoryList>,
|
|
413
236
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
414
237
|
protocol: StackitProtocol,
|
|
415
238
|
retry: Retry.Retry,
|
|
@@ -423,8 +246,8 @@ export const listReplicationAdapters: API.OperationMethod<
|
|
|
423
246
|
ListReplicationAdaptersError,
|
|
424
247
|
StackitOpContext
|
|
425
248
|
> = /*@__PURE__*/ API.make(() => ({
|
|
426
|
-
input: ListReplicationAdaptersRequest
|
|
427
|
-
output: ReplicationAdapterList
|
|
249
|
+
input: __S(24, __c6, 0) as any as S.Schema<ListReplicationAdaptersRequest>,
|
|
250
|
+
output: __S(27, __c6, 3) as any as S.Schema<ReplicationAdapterList>,
|
|
428
251
|
errors: [BadRequest, UnknownStackitError],
|
|
429
252
|
protocol: StackitProtocol,
|
|
430
253
|
retry: Retry.Retry,
|
|
@@ -438,9 +261,219 @@ export const patchArtifactory: API.OperationMethod<
|
|
|
438
261
|
PatchArtifactoryError,
|
|
439
262
|
StackitOpContext
|
|
440
263
|
> = /*@__PURE__*/ API.make(() => ({
|
|
441
|
-
input: PatchArtifactoryRequest
|
|
442
|
-
output: Artifactory
|
|
264
|
+
input: __S(29, __c7, 1) as any as S.Schema<PatchArtifactoryRequest>,
|
|
265
|
+
output: __S(6, __c1, 2) as any as S.Schema<Artifactory>,
|
|
443
266
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
444
267
|
protocol: StackitProtocol,
|
|
445
268
|
retry: Retry.Retry,
|
|
446
269
|
}));
|
|
270
|
+
|
|
271
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
272
|
+
function __c0(j: number): any {
|
|
273
|
+
switch (j) {
|
|
274
|
+
case 0:
|
|
275
|
+
return S.suspend(() =>
|
|
276
|
+
S.Struct({
|
|
277
|
+
credentials: S.optional(__S(8, __c2, 0)),
|
|
278
|
+
description: S.optional(S.String),
|
|
279
|
+
registry_type: S.String,
|
|
280
|
+
url: S.String,
|
|
281
|
+
}),
|
|
282
|
+
).annotate({ identifier: "CreateProxyRequest" });
|
|
283
|
+
case 1:
|
|
284
|
+
return S.suspend(() =>
|
|
285
|
+
S.Struct({
|
|
286
|
+
projectId: S.String.pipe(T.Label()),
|
|
287
|
+
regionId: S.String.pipe(T.Label()),
|
|
288
|
+
claim: S.optional(S.Boolean.pipe(T.Query())),
|
|
289
|
+
name: S.String,
|
|
290
|
+
proxy: S.optional(__S(0, __c0, 0)),
|
|
291
|
+
}).pipe(
|
|
292
|
+
T.Http({
|
|
293
|
+
method: "POST",
|
|
294
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
295
|
+
code: 200,
|
|
296
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
297
|
+
}),
|
|
298
|
+
),
|
|
299
|
+
).annotate({ identifier: "CreateArtifactoryRequest" });
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
function __c1(j: number): any {
|
|
303
|
+
switch (j) {
|
|
304
|
+
case 0:
|
|
305
|
+
return S.suspend(() =>
|
|
306
|
+
S.Struct({
|
|
307
|
+
access_key: S.optional(S.String),
|
|
308
|
+
}),
|
|
309
|
+
).annotate({ identifier: "RedactedCredentials" });
|
|
310
|
+
case 1:
|
|
311
|
+
return S.suspend(() =>
|
|
312
|
+
S.Struct({
|
|
313
|
+
credentials: S.optional(__S(4, __c1, 0)),
|
|
314
|
+
description: S.optional(S.String),
|
|
315
|
+
registry_type: S.String,
|
|
316
|
+
url: S.String,
|
|
317
|
+
}),
|
|
318
|
+
).annotate({ identifier: "Proxy" });
|
|
319
|
+
case 2:
|
|
320
|
+
return S.suspend(() =>
|
|
321
|
+
S.Struct({
|
|
322
|
+
consumed_quota_bytes: S.Number,
|
|
323
|
+
create_time: S.String,
|
|
324
|
+
id: S.String,
|
|
325
|
+
name: S.String,
|
|
326
|
+
proxy: S.optional(__S(5, __c1, 1)),
|
|
327
|
+
state: S.String,
|
|
328
|
+
url: S.String,
|
|
329
|
+
user_count: S.Number,
|
|
330
|
+
}),
|
|
331
|
+
).annotate({ identifier: "Artifactory" });
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
function __c2(j: number): any {
|
|
335
|
+
switch (j) {
|
|
336
|
+
case 0:
|
|
337
|
+
return S.suspend(() =>
|
|
338
|
+
S.Struct({
|
|
339
|
+
access_key: S.optional(S.String),
|
|
340
|
+
access_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
341
|
+
}),
|
|
342
|
+
).annotate({ identifier: "Credentials" });
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function __c3(j: number): any {
|
|
346
|
+
switch (j) {
|
|
347
|
+
case 0:
|
|
348
|
+
return S.suspend(() =>
|
|
349
|
+
S.Struct({
|
|
350
|
+
projectId: S.String.pipe(T.Label()),
|
|
351
|
+
regionId: S.String.pipe(T.Label()),
|
|
352
|
+
artifactoryId: S.String.pipe(T.Label()),
|
|
353
|
+
}).pipe(
|
|
354
|
+
T.Http({
|
|
355
|
+
method: "DELETE",
|
|
356
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
357
|
+
code: 200,
|
|
358
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
359
|
+
}),
|
|
360
|
+
),
|
|
361
|
+
).annotate({ identifier: "DeleteArtifactoryRequest" });
|
|
362
|
+
case 1:
|
|
363
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteArtifactoryResponse" });
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function __c4(j: number): any {
|
|
367
|
+
switch (j) {
|
|
368
|
+
case 0:
|
|
369
|
+
return S.suspend(() =>
|
|
370
|
+
S.Struct({
|
|
371
|
+
projectId: S.String.pipe(T.Label()),
|
|
372
|
+
regionId: S.String.pipe(T.Label()),
|
|
373
|
+
artifactoryId: S.String.pipe(T.Label()),
|
|
374
|
+
}).pipe(
|
|
375
|
+
T.Http({
|
|
376
|
+
method: "GET",
|
|
377
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
378
|
+
code: 200,
|
|
379
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
380
|
+
}),
|
|
381
|
+
),
|
|
382
|
+
).annotate({ identifier: "GetArtifactoryRequest" });
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
function __c5(j: number): any {
|
|
386
|
+
switch (j) {
|
|
387
|
+
case 0:
|
|
388
|
+
return S.suspend(() =>
|
|
389
|
+
S.Struct({
|
|
390
|
+
projectId: S.String.pipe(T.Label()),
|
|
391
|
+
regionId: S.String.pipe(T.Label()),
|
|
392
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
393
|
+
next_page_token: S.optional(S.String.pipe(T.Query())),
|
|
394
|
+
}).pipe(
|
|
395
|
+
T.Http({
|
|
396
|
+
method: "GET",
|
|
397
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
398
|
+
code: 200,
|
|
399
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
400
|
+
}),
|
|
401
|
+
),
|
|
402
|
+
).annotate({ identifier: "ListArtifactoriesRequest" });
|
|
403
|
+
case 1:
|
|
404
|
+
return S.Array(__S(6, __c1, 2));
|
|
405
|
+
case 2:
|
|
406
|
+
return S.suspend(() =>
|
|
407
|
+
S.Struct({
|
|
408
|
+
artifactories: __S(21, __c5, 1),
|
|
409
|
+
next_page_token: S.optional(S.String),
|
|
410
|
+
}),
|
|
411
|
+
).annotate({ identifier: "ArtifactoryList" });
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
function __c6(j: number): any {
|
|
415
|
+
switch (j) {
|
|
416
|
+
case 0:
|
|
417
|
+
return S.suspend(() =>
|
|
418
|
+
S.Struct({
|
|
419
|
+
projectId: S.String.pipe(T.Label()),
|
|
420
|
+
regionId: S.String.pipe(T.Label()),
|
|
421
|
+
}).pipe(
|
|
422
|
+
T.Http({
|
|
423
|
+
method: "GET",
|
|
424
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/replication/adapters",
|
|
425
|
+
code: 200,
|
|
426
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
427
|
+
}),
|
|
428
|
+
),
|
|
429
|
+
).annotate({ identifier: "ListReplicationAdaptersRequest" });
|
|
430
|
+
case 1:
|
|
431
|
+
return S.suspend(() =>
|
|
432
|
+
S.Struct({
|
|
433
|
+
display_name: S.String,
|
|
434
|
+
registry_type: S.String,
|
|
435
|
+
}),
|
|
436
|
+
).annotate({ identifier: "ReplicationAdapter" });
|
|
437
|
+
case 2:
|
|
438
|
+
return S.Array(__S(25, __c6, 1));
|
|
439
|
+
case 3:
|
|
440
|
+
return S.suspend(() =>
|
|
441
|
+
S.Struct({
|
|
442
|
+
next_page_token: S.optional(S.String),
|
|
443
|
+
replication_adapters: __S(26, __c6, 2),
|
|
444
|
+
}),
|
|
445
|
+
).annotate({ identifier: "ReplicationAdapterList" });
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
function __c7(j: number): any {
|
|
449
|
+
switch (j) {
|
|
450
|
+
case 0:
|
|
451
|
+
return S.suspend(() =>
|
|
452
|
+
S.Struct({
|
|
453
|
+
credentials: S.optional(__S(8, __c2, 0)),
|
|
454
|
+
description: S.optional(S.String),
|
|
455
|
+
url: S.optional(S.String),
|
|
456
|
+
}),
|
|
457
|
+
).annotate({ identifier: "UpdateProxyRequest" });
|
|
458
|
+
case 1:
|
|
459
|
+
return S.suspend(() =>
|
|
460
|
+
S.Struct({
|
|
461
|
+
projectId: S.String.pipe(T.Label()),
|
|
462
|
+
regionId: S.String.pipe(T.Label()),
|
|
463
|
+
artifactoryId: S.String.pipe(T.Label()),
|
|
464
|
+
proxy: S.optional(__S(28, __c7, 0)),
|
|
465
|
+
}).pipe(
|
|
466
|
+
T.Http({
|
|
467
|
+
method: "PATCH",
|
|
468
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
469
|
+
code: 200,
|
|
470
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
471
|
+
}),
|
|
472
|
+
),
|
|
473
|
+
).annotate({ identifier: "PatchArtifactoryRequest" });
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
477
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
478
|
+
return (__s[i] ??= __L.at(f, j));
|
|
479
|
+
}
|