@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
|
@@ -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
|
|
|
@@ -56,21 +59,11 @@ export class UnprocessableEntity
|
|
|
56
59
|
) {}
|
|
57
60
|
|
|
58
61
|
export type CloneInstanceRequestRegion = "eu01" | "eu02";
|
|
59
|
-
export const CloneInstanceRequestRegion = S.String;
|
|
60
|
-
|
|
61
62
|
export interface CloneInstanceOverrides {
|
|
62
63
|
class: string;
|
|
63
64
|
name?: string;
|
|
64
65
|
size: number;
|
|
65
66
|
}
|
|
66
|
-
export const CloneInstanceOverrides = /*@__PURE__*/ S.suspend(() =>
|
|
67
|
-
S.Struct({
|
|
68
|
-
class: S.String,
|
|
69
|
-
name: S.optional(S.String),
|
|
70
|
-
size: S.Number,
|
|
71
|
-
}),
|
|
72
|
-
).annotate({ identifier: "CloneInstanceOverrides" }) as any as S.Schema<CloneInstanceOverrides>;
|
|
73
|
-
|
|
74
67
|
export interface CloneInstanceRequest {
|
|
75
68
|
/** The STACKIT project ID. */
|
|
76
69
|
projectId: string;
|
|
@@ -81,35 +74,10 @@ export interface CloneInstanceRequest {
|
|
|
81
74
|
instanceOverrides: CloneInstanceOverrides;
|
|
82
75
|
pointInTime: string;
|
|
83
76
|
}
|
|
84
|
-
export const CloneInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
85
|
-
S.Struct({
|
|
86
|
-
projectId: S.String.pipe(T.Label()),
|
|
87
|
-
region: CloneInstanceRequestRegion.pipe(T.Label()),
|
|
88
|
-
instanceId: S.String.pipe(T.Label()),
|
|
89
|
-
instanceOverrides: CloneInstanceOverrides,
|
|
90
|
-
pointInTime: S.String,
|
|
91
|
-
}).pipe(
|
|
92
|
-
T.Http({
|
|
93
|
-
method: "POST",
|
|
94
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",
|
|
95
|
-
code: 200,
|
|
96
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
97
|
-
}),
|
|
98
|
-
),
|
|
99
|
-
).annotate({ identifier: "CloneInstanceRequest" }) as any as S.Schema<CloneInstanceRequest>;
|
|
100
|
-
|
|
101
77
|
export interface CloneInstanceResponse {
|
|
102
78
|
id: string;
|
|
103
79
|
}
|
|
104
|
-
export const CloneInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
105
|
-
S.Struct({
|
|
106
|
-
id: S.String,
|
|
107
|
-
}),
|
|
108
|
-
).annotate({ identifier: "CloneInstanceResponse" }) as any as S.Schema<CloneInstanceResponse>;
|
|
109
|
-
|
|
110
80
|
export type CreateDatabaseRequestRegion = "eu01" | "eu02";
|
|
111
|
-
export const CreateDatabaseRequestRegion = S.String;
|
|
112
|
-
|
|
113
81
|
export interface CreateDatabaseRequest {
|
|
114
82
|
/** The STACKIT project ID. */
|
|
115
83
|
projectId: string;
|
|
@@ -120,36 +88,11 @@ export interface CreateDatabaseRequest {
|
|
|
120
88
|
name: string;
|
|
121
89
|
owner?: string;
|
|
122
90
|
}
|
|
123
|
-
export const CreateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
124
|
-
S.Struct({
|
|
125
|
-
projectId: S.String.pipe(T.Label()),
|
|
126
|
-
region: CreateDatabaseRequestRegion.pipe(T.Label()),
|
|
127
|
-
instanceId: S.String.pipe(T.Label()),
|
|
128
|
-
name: S.String,
|
|
129
|
-
owner: S.optional(S.String),
|
|
130
|
-
}).pipe(
|
|
131
|
-
T.Http({
|
|
132
|
-
method: "POST",
|
|
133
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
134
|
-
code: 200,
|
|
135
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
136
|
-
}),
|
|
137
|
-
),
|
|
138
|
-
).annotate({ identifier: "CreateDatabaseRequest" }) as any as S.Schema<CreateDatabaseRequest>;
|
|
139
|
-
|
|
140
91
|
export interface CreateDatabaseResponse {
|
|
141
92
|
id: number;
|
|
142
93
|
}
|
|
143
|
-
export const CreateDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
144
|
-
S.Struct({
|
|
145
|
-
id: S.Number,
|
|
146
|
-
}),
|
|
147
|
-
).annotate({ identifier: "CreateDatabaseResponse" }) as any as S.Schema<CreateDatabaseResponse>;
|
|
148
|
-
|
|
149
94
|
export type CreateInstanceRequestRegion = "eu01" | "eu02";
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
/** The configuration for instance's volume and backup storage encryption. ⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. */
|
|
95
|
+
/** The configuration for instance's volume and backup storage encryption. U+26A0 **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. */
|
|
153
96
|
export interface InstanceEncryption {
|
|
154
97
|
/** The encryption-key key identifier */
|
|
155
98
|
kekKeyId: string;
|
|
@@ -159,54 +102,22 @@ export interface InstanceEncryption {
|
|
|
159
102
|
kekKeyVersion: string;
|
|
160
103
|
serviceAccount: string;
|
|
161
104
|
}
|
|
162
|
-
export const InstanceEncryption = /*@__PURE__*/ S.suspend(() =>
|
|
163
|
-
S.Struct({
|
|
164
|
-
kekKeyId: S.String,
|
|
165
|
-
kekKeyRingId: S.String,
|
|
166
|
-
kekKeyVersion: S.String,
|
|
167
|
-
serviceAccount: S.String,
|
|
168
|
-
}),
|
|
169
|
-
).annotate({ identifier: "InstanceEncryption" }) as any as S.Schema<InstanceEncryption>;
|
|
170
|
-
|
|
171
105
|
/** Key-value pairs, 63 characters max, begin and end with an alphanumerical character, may contain dashes (-), underscores (_), dots (.), and alphanumerics between. Key MUST be at least 1 character. Max 64 labels Regex for keys: ^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$ Regex for values: ^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$ The stackit- prefix is reserved and cannot be used for Keys. */
|
|
172
106
|
export type Labels = { [key: string]: string | null | undefined };
|
|
173
|
-
|
|
174
|
-
S.String,
|
|
175
|
-
S.NullOr(S.String),
|
|
176
|
-
) as any as S.Schema<Labels>;
|
|
177
|
-
|
|
178
|
-
/** The access scope of the instance. It defines if the instance is public or airgapped. ⚠️ **Note:** "SNA" value for the "network.accessScope" field is only permitted for enabled accounts. If your account does not have access, the request will be rejected. */
|
|
107
|
+
/** The access scope of the instance. It defines if the instance is public or airgapped. U+26A0 **Note:** "SNA" value for the "network.accessScope" field is only permitted for enabled accounts. If your account does not have access, the request will be rejected. */
|
|
179
108
|
export type InstanceNetworkAccessScope = "PUBLIC" | "SNA";
|
|
180
|
-
export const InstanceNetworkAccessScope = S.String;
|
|
181
|
-
|
|
182
109
|
/** List of IPV4 cidr. */
|
|
183
110
|
export type Acl = Array<string>;
|
|
184
|
-
export const Acl = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<Acl>;
|
|
185
|
-
|
|
186
111
|
/** The access configuration of the instance */
|
|
187
112
|
export interface InstanceNetworkCreate {
|
|
188
113
|
accessScope?: InstanceNetworkAccessScope | (string & {});
|
|
189
114
|
acl: Acl;
|
|
190
115
|
}
|
|
191
|
-
export const InstanceNetworkCreate = /*@__PURE__*/ S.suspend(() =>
|
|
192
|
-
S.Struct({
|
|
193
|
-
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
194
|
-
acl: Acl,
|
|
195
|
-
}),
|
|
196
|
-
).annotate({ identifier: "InstanceNetworkCreate" }) as any as S.Schema<InstanceNetworkCreate>;
|
|
197
|
-
|
|
198
116
|
/** The object containing information about the storage size and class. */
|
|
199
117
|
export interface StorageCreate {
|
|
200
118
|
class: string;
|
|
201
119
|
size: number;
|
|
202
120
|
}
|
|
203
|
-
export const StorageCreate = /*@__PURE__*/ S.suspend(() =>
|
|
204
|
-
S.Struct({
|
|
205
|
-
class: S.String,
|
|
206
|
-
size: S.Number,
|
|
207
|
-
}),
|
|
208
|
-
).annotate({ identifier: "StorageCreate" }) as any as S.Schema<StorageCreate>;
|
|
209
|
-
|
|
210
121
|
export interface CreateInstanceRequest {
|
|
211
122
|
/** The STACKIT project ID. */
|
|
212
123
|
projectId: string;
|
|
@@ -222,47 +133,12 @@ export interface CreateInstanceRequest {
|
|
|
222
133
|
storage: StorageCreate;
|
|
223
134
|
version: string;
|
|
224
135
|
}
|
|
225
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
226
|
-
S.Struct({
|
|
227
|
-
projectId: S.String.pipe(T.Label()),
|
|
228
|
-
region: CreateInstanceRequestRegion.pipe(T.Label()),
|
|
229
|
-
backupSchedule: S.String,
|
|
230
|
-
encryption: S.optional(InstanceEncryption),
|
|
231
|
-
flavorId: S.String,
|
|
232
|
-
labels: S.optional(Labels),
|
|
233
|
-
name: S.String,
|
|
234
|
-
network: InstanceNetworkCreate,
|
|
235
|
-
retentionDays: S.NullOr(S.Number),
|
|
236
|
-
storage: StorageCreate,
|
|
237
|
-
version: S.String,
|
|
238
|
-
}).pipe(
|
|
239
|
-
T.Http({
|
|
240
|
-
method: "POST",
|
|
241
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
242
|
-
code: 200,
|
|
243
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
244
|
-
}),
|
|
245
|
-
),
|
|
246
|
-
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
247
|
-
|
|
248
136
|
export interface CreateInstanceResponse {
|
|
249
137
|
id: string;
|
|
250
138
|
}
|
|
251
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
252
|
-
S.Struct({
|
|
253
|
-
id: S.String,
|
|
254
|
-
}),
|
|
255
|
-
).annotate({ identifier: "CreateInstanceResponse" }) as any as S.Schema<CreateInstanceResponse>;
|
|
256
|
-
|
|
257
139
|
export type CreateUserRequestRegion = "eu01" | "eu02";
|
|
258
|
-
export const CreateUserRequestRegion = S.String;
|
|
259
|
-
|
|
260
140
|
/** A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. */
|
|
261
141
|
export type CreateUserRequestRolesList = Array<string>;
|
|
262
|
-
export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
263
|
-
S.String,
|
|
264
|
-
) as any as S.Schema<CreateUserRequestRolesList>;
|
|
265
|
-
|
|
266
142
|
export interface CreateUserRequest {
|
|
267
143
|
/** The STACKIT project ID. */
|
|
268
144
|
projectId: string;
|
|
@@ -274,41 +150,13 @@ export interface CreateUserRequest {
|
|
|
274
150
|
/** A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. */
|
|
275
151
|
roles?: CreateUserRequestRolesList;
|
|
276
152
|
}
|
|
277
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
278
|
-
S.Struct({
|
|
279
|
-
projectId: S.String.pipe(T.Label()),
|
|
280
|
-
region: CreateUserRequestRegion.pipe(T.Label()),
|
|
281
|
-
instanceId: S.String.pipe(T.Label()),
|
|
282
|
-
name: S.String,
|
|
283
|
-
roles: S.optional(CreateUserRequestRolesList),
|
|
284
|
-
}).pipe(
|
|
285
|
-
T.Http({
|
|
286
|
-
method: "POST",
|
|
287
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
288
|
-
code: 200,
|
|
289
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
290
|
-
}),
|
|
291
|
-
),
|
|
292
|
-
).annotate({ identifier: "CreateUserRequest" }) as any as S.Schema<CreateUserRequest>;
|
|
293
|
-
|
|
294
153
|
export interface CreateUserResponse {
|
|
295
154
|
id: number;
|
|
296
155
|
name: string;
|
|
297
156
|
password: string | Redacted.Redacted<string>;
|
|
298
157
|
state: string;
|
|
299
158
|
}
|
|
300
|
-
export const CreateUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
301
|
-
S.Struct({
|
|
302
|
-
id: S.Number,
|
|
303
|
-
name: S.String,
|
|
304
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
305
|
-
state: S.String,
|
|
306
|
-
}),
|
|
307
|
-
).annotate({ identifier: "CreateUserResponse" }) as any as S.Schema<CreateUserResponse>;
|
|
308
|
-
|
|
309
159
|
export type DeleteDatabaseRequestRegion = "eu01" | "eu02";
|
|
310
|
-
export const DeleteDatabaseRequestRegion = S.String;
|
|
311
|
-
|
|
312
160
|
export interface DeleteDatabaseRequest {
|
|
313
161
|
/** The STACKIT project ID. */
|
|
314
162
|
projectId: string;
|
|
@@ -319,30 +167,8 @@ export interface DeleteDatabaseRequest {
|
|
|
319
167
|
/** The ID of the database. */
|
|
320
168
|
databaseId: number;
|
|
321
169
|
}
|
|
322
|
-
export const DeleteDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
323
|
-
S.Struct({
|
|
324
|
-
projectId: S.String.pipe(T.Label()),
|
|
325
|
-
region: DeleteDatabaseRequestRegion.pipe(T.Label()),
|
|
326
|
-
instanceId: S.String.pipe(T.Label()),
|
|
327
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
328
|
-
}).pipe(
|
|
329
|
-
T.Http({
|
|
330
|
-
method: "DELETE",
|
|
331
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
332
|
-
code: 200,
|
|
333
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
334
|
-
}),
|
|
335
|
-
),
|
|
336
|
-
).annotate({ identifier: "DeleteDatabaseRequest" }) as any as S.Schema<DeleteDatabaseRequest>;
|
|
337
|
-
|
|
338
170
|
export interface DeleteDatabaseResponse {}
|
|
339
|
-
export const DeleteDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
340
|
-
identifier: "DeleteDatabaseResponse",
|
|
341
|
-
}) as any as S.Schema<DeleteDatabaseResponse>;
|
|
342
|
-
|
|
343
171
|
export type DeleteInstanceRequestRegion = "eu01" | "eu02";
|
|
344
|
-
export const DeleteInstanceRequestRegion = S.String;
|
|
345
|
-
|
|
346
172
|
export interface DeleteInstanceRequest {
|
|
347
173
|
/** The STACKIT project ID. */
|
|
348
174
|
projectId: string;
|
|
@@ -351,29 +177,8 @@ export interface DeleteInstanceRequest {
|
|
|
351
177
|
/** The ID of the instance. */
|
|
352
178
|
instanceId: string;
|
|
353
179
|
}
|
|
354
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
355
|
-
S.Struct({
|
|
356
|
-
projectId: S.String.pipe(T.Label()),
|
|
357
|
-
region: DeleteInstanceRequestRegion.pipe(T.Label()),
|
|
358
|
-
instanceId: S.String.pipe(T.Label()),
|
|
359
|
-
}).pipe(
|
|
360
|
-
T.Http({
|
|
361
|
-
method: "DELETE",
|
|
362
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
363
|
-
code: 200,
|
|
364
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
365
|
-
}),
|
|
366
|
-
),
|
|
367
|
-
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
368
|
-
|
|
369
180
|
export interface DeleteInstanceResponse {}
|
|
370
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
371
|
-
identifier: "DeleteInstanceResponse",
|
|
372
|
-
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
373
|
-
|
|
374
181
|
export type DeleteUserRequestRegion = "eu01" | "eu02";
|
|
375
|
-
export const DeleteUserRequestRegion = S.String;
|
|
376
|
-
|
|
377
182
|
export interface DeleteUserRequest {
|
|
378
183
|
/** The STACKIT project ID. */
|
|
379
184
|
projectId: string;
|
|
@@ -384,30 +189,8 @@ export interface DeleteUserRequest {
|
|
|
384
189
|
/** The ID of the user. */
|
|
385
190
|
userId: number;
|
|
386
191
|
}
|
|
387
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
388
|
-
S.Struct({
|
|
389
|
-
projectId: S.String.pipe(T.Label()),
|
|
390
|
-
region: DeleteUserRequestRegion.pipe(T.Label()),
|
|
391
|
-
instanceId: S.String.pipe(T.Label()),
|
|
392
|
-
userId: S.Number.pipe(T.Label()),
|
|
393
|
-
}).pipe(
|
|
394
|
-
T.Http({
|
|
395
|
-
method: "DELETE",
|
|
396
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
397
|
-
code: 200,
|
|
398
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
399
|
-
}),
|
|
400
|
-
),
|
|
401
|
-
).annotate({ identifier: "DeleteUserRequest" }) as any as S.Schema<DeleteUserRequest>;
|
|
402
|
-
|
|
403
192
|
export interface DeleteUserResponse {}
|
|
404
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
405
|
-
identifier: "DeleteUserResponse",
|
|
406
|
-
}) as any as S.Schema<DeleteUserResponse>;
|
|
407
|
-
|
|
408
193
|
export type GetBackupRequestRegion = "eu01" | "eu02";
|
|
409
|
-
export const GetBackupRequestRegion = S.String;
|
|
410
|
-
|
|
411
194
|
export interface GetBackupRequest {
|
|
412
195
|
/** The STACKIT project ID. */
|
|
413
196
|
projectId: string;
|
|
@@ -418,22 +201,6 @@ export interface GetBackupRequest {
|
|
|
418
201
|
/** The ID of the backup. */
|
|
419
202
|
backupId: number;
|
|
420
203
|
}
|
|
421
|
-
export const GetBackupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
422
|
-
S.Struct({
|
|
423
|
-
projectId: S.String.pipe(T.Label()),
|
|
424
|
-
region: GetBackupRequestRegion.pipe(T.Label()),
|
|
425
|
-
instanceId: S.String.pipe(T.Label()),
|
|
426
|
-
backupId: S.Number.pipe(T.Label()),
|
|
427
|
-
}).pipe(
|
|
428
|
-
T.Http({
|
|
429
|
-
method: "GET",
|
|
430
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
431
|
-
code: 200,
|
|
432
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
433
|
-
}),
|
|
434
|
-
),
|
|
435
|
-
).annotate({ identifier: "GetBackupRequest" }) as any as S.Schema<GetBackupRequest>;
|
|
436
|
-
|
|
437
204
|
export interface BackupData {
|
|
438
205
|
completionTime: string;
|
|
439
206
|
id: number;
|
|
@@ -442,20 +209,7 @@ export interface BackupData {
|
|
|
442
209
|
size: number;
|
|
443
210
|
type: string;
|
|
444
211
|
}
|
|
445
|
-
export const BackupData = /*@__PURE__*/ S.suspend(() =>
|
|
446
|
-
S.Struct({
|
|
447
|
-
completionTime: S.String,
|
|
448
|
-
id: S.Number,
|
|
449
|
-
name: S.String,
|
|
450
|
-
retainedUntil: S.String,
|
|
451
|
-
size: S.Number,
|
|
452
|
-
type: S.String,
|
|
453
|
-
}),
|
|
454
|
-
).annotate({ identifier: "BackupData" }) as any as S.Schema<BackupData>;
|
|
455
|
-
|
|
456
212
|
export type GetDatabaseRequestRegion = "eu01" | "eu02";
|
|
457
|
-
export const GetDatabaseRequestRegion = S.String;
|
|
458
|
-
|
|
459
213
|
export interface GetDatabaseRequest {
|
|
460
214
|
/** The STACKIT project ID. */
|
|
461
215
|
projectId: string;
|
|
@@ -466,38 +220,12 @@ export interface GetDatabaseRequest {
|
|
|
466
220
|
/** The ID of the database. */
|
|
467
221
|
databaseId: number;
|
|
468
222
|
}
|
|
469
|
-
export const GetDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
470
|
-
S.Struct({
|
|
471
|
-
projectId: S.String.pipe(T.Label()),
|
|
472
|
-
region: GetDatabaseRequestRegion.pipe(T.Label()),
|
|
473
|
-
instanceId: S.String.pipe(T.Label()),
|
|
474
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
475
|
-
}).pipe(
|
|
476
|
-
T.Http({
|
|
477
|
-
method: "GET",
|
|
478
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
479
|
-
code: 200,
|
|
480
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
481
|
-
}),
|
|
482
|
-
),
|
|
483
|
-
).annotate({ identifier: "GetDatabaseRequest" }) as any as S.Schema<GetDatabaseRequest>;
|
|
484
|
-
|
|
485
223
|
export interface GetDatabaseResponse {
|
|
486
224
|
id: number;
|
|
487
225
|
name: string;
|
|
488
226
|
owner: string;
|
|
489
227
|
}
|
|
490
|
-
export const GetDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
491
|
-
S.Struct({
|
|
492
|
-
id: S.Number,
|
|
493
|
-
name: S.String,
|
|
494
|
-
owner: S.String,
|
|
495
|
-
}),
|
|
496
|
-
).annotate({ identifier: "GetDatabaseResponse" }) as any as S.Schema<GetDatabaseResponse>;
|
|
497
|
-
|
|
498
228
|
export type GetInstanceRequestRegion = "eu01" | "eu02";
|
|
499
|
-
export const GetInstanceRequestRegion = S.String;
|
|
500
|
-
|
|
501
229
|
export interface GetInstanceRequest {
|
|
502
230
|
/** The STACKIT project ID. */
|
|
503
231
|
projectId: string;
|
|
@@ -506,21 +234,6 @@ export interface GetInstanceRequest {
|
|
|
506
234
|
/** The ID of the instance. */
|
|
507
235
|
instanceId: string;
|
|
508
236
|
}
|
|
509
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
510
|
-
S.Struct({
|
|
511
|
-
projectId: S.String.pipe(T.Label()),
|
|
512
|
-
region: GetInstanceRequestRegion.pipe(T.Label()),
|
|
513
|
-
instanceId: S.String.pipe(T.Label()),
|
|
514
|
-
}).pipe(
|
|
515
|
-
T.Http({
|
|
516
|
-
method: "GET",
|
|
517
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
518
|
-
code: 200,
|
|
519
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
520
|
-
}),
|
|
521
|
-
),
|
|
522
|
-
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
523
|
-
|
|
524
237
|
/** The DNS name and port in the instance overview */
|
|
525
238
|
export interface InstanceConnectionInfoWrite {
|
|
526
239
|
/** The host of the instance. */
|
|
@@ -528,25 +241,10 @@ export interface InstanceConnectionInfoWrite {
|
|
|
528
241
|
/** The port of the instance. */
|
|
529
242
|
port: number;
|
|
530
243
|
}
|
|
531
|
-
export const InstanceConnectionInfoWrite = /*@__PURE__*/ S.suspend(() =>
|
|
532
|
-
S.Struct({
|
|
533
|
-
host: S.String,
|
|
534
|
-
port: S.Number,
|
|
535
|
-
}),
|
|
536
|
-
).annotate({
|
|
537
|
-
identifier: "InstanceConnectionInfoWrite",
|
|
538
|
-
}) as any as S.Schema<InstanceConnectionInfoWrite>;
|
|
539
|
-
|
|
540
244
|
/** The connection information of the instance */
|
|
541
245
|
export interface InstanceConnectionInfo {
|
|
542
246
|
write: InstanceConnectionInfoWrite;
|
|
543
247
|
}
|
|
544
|
-
export const InstanceConnectionInfo = /*@__PURE__*/ S.suspend(() =>
|
|
545
|
-
S.Struct({
|
|
546
|
-
write: InstanceConnectionInfoWrite,
|
|
547
|
-
}),
|
|
548
|
-
).annotate({ identifier: "InstanceConnectionInfo" }) as any as S.Schema<InstanceConnectionInfo>;
|
|
549
|
-
|
|
550
248
|
/** The access configuration of the instance */
|
|
551
249
|
export interface InstanceNetwork {
|
|
552
250
|
accessScope?: InstanceNetworkAccessScope;
|
|
@@ -554,31 +252,13 @@ export interface InstanceNetwork {
|
|
|
554
252
|
instanceAddress?: string;
|
|
555
253
|
routerAddress?: string;
|
|
556
254
|
}
|
|
557
|
-
export const InstanceNetwork = /*@__PURE__*/ S.suspend(() =>
|
|
558
|
-
S.Struct({
|
|
559
|
-
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
560
|
-
acl: Acl,
|
|
561
|
-
instanceAddress: S.optional(S.String),
|
|
562
|
-
routerAddress: S.optional(S.String),
|
|
563
|
-
}),
|
|
564
|
-
).annotate({ identifier: "InstanceNetwork" }) as any as S.Schema<InstanceNetwork>;
|
|
565
|
-
|
|
566
255
|
/** The current state of the instance. */
|
|
567
256
|
export type State = "READY" | "PENDING" | "PROGRESSING" | "FAILURE" | "UNKNOWN" | "TERMINATING";
|
|
568
|
-
export const State = S.String;
|
|
569
|
-
|
|
570
257
|
/** The object containing information about the storage size and class. */
|
|
571
258
|
export interface Storage {
|
|
572
259
|
class?: string;
|
|
573
260
|
size?: number;
|
|
574
261
|
}
|
|
575
|
-
export const Storage = /*@__PURE__*/ S.suspend(() =>
|
|
576
|
-
S.Struct({
|
|
577
|
-
class: S.optional(S.String),
|
|
578
|
-
size: S.optional(S.Number),
|
|
579
|
-
}),
|
|
580
|
-
).annotate({ identifier: "Storage" }) as any as S.Schema<Storage>;
|
|
581
|
-
|
|
582
262
|
export interface GetInstanceResponse {
|
|
583
263
|
backupSchedule: string;
|
|
584
264
|
connectionInfo: InstanceConnectionInfo;
|
|
@@ -594,27 +274,7 @@ export interface GetInstanceResponse {
|
|
|
594
274
|
storage: Storage;
|
|
595
275
|
version: string;
|
|
596
276
|
}
|
|
597
|
-
export const GetInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
598
|
-
S.Struct({
|
|
599
|
-
backupSchedule: S.String,
|
|
600
|
-
connectionInfo: InstanceConnectionInfo,
|
|
601
|
-
encryption: S.optional(InstanceEncryption),
|
|
602
|
-
flavorId: S.String,
|
|
603
|
-
id: S.String,
|
|
604
|
-
isDeletable: S.Boolean,
|
|
605
|
-
labels: S.optional(Labels),
|
|
606
|
-
name: S.String,
|
|
607
|
-
network: InstanceNetwork,
|
|
608
|
-
retentionDays: S.NullOr(S.Number),
|
|
609
|
-
state: State,
|
|
610
|
-
storage: Storage,
|
|
611
|
-
version: S.String,
|
|
612
|
-
}),
|
|
613
|
-
).annotate({ identifier: "GetInstanceResponse" }) as any as S.Schema<GetInstanceResponse>;
|
|
614
|
-
|
|
615
277
|
export type GetUserRequestRegion = "eu01" | "eu02";
|
|
616
|
-
export const GetUserRequestRegion = S.String;
|
|
617
|
-
|
|
618
278
|
export interface GetUserRequest {
|
|
619
279
|
/** The STACKIT project ID. */
|
|
620
280
|
projectId: string;
|
|
@@ -625,28 +285,8 @@ export interface GetUserRequest {
|
|
|
625
285
|
/** The ID of the user. */
|
|
626
286
|
userId: number;
|
|
627
287
|
}
|
|
628
|
-
export const GetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
629
|
-
S.Struct({
|
|
630
|
-
projectId: S.String.pipe(T.Label()),
|
|
631
|
-
region: GetUserRequestRegion.pipe(T.Label()),
|
|
632
|
-
instanceId: S.String.pipe(T.Label()),
|
|
633
|
-
userId: S.Number.pipe(T.Label()),
|
|
634
|
-
}).pipe(
|
|
635
|
-
T.Http({
|
|
636
|
-
method: "GET",
|
|
637
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
638
|
-
code: 200,
|
|
639
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
640
|
-
}),
|
|
641
|
-
),
|
|
642
|
-
).annotate({ identifier: "GetUserRequest" }) as any as S.Schema<GetUserRequest>;
|
|
643
|
-
|
|
644
288
|
/** A list of user roles. */
|
|
645
289
|
export type GetUserResponseRolesList = Array<string>;
|
|
646
|
-
export const GetUserResponseRolesList = /*@__PURE__*/ S.Array(
|
|
647
|
-
S.String,
|
|
648
|
-
) as any as S.Schema<GetUserResponseRolesList>;
|
|
649
|
-
|
|
650
290
|
export interface GetUserResponse {
|
|
651
291
|
id: number;
|
|
652
292
|
name: string;
|
|
@@ -654,18 +294,7 @@ export interface GetUserResponse {
|
|
|
654
294
|
roles: GetUserResponseRolesList;
|
|
655
295
|
state: string;
|
|
656
296
|
}
|
|
657
|
-
export const GetUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
658
|
-
S.Struct({
|
|
659
|
-
id: S.Number,
|
|
660
|
-
name: S.String,
|
|
661
|
-
roles: GetUserResponseRolesList,
|
|
662
|
-
state: S.String,
|
|
663
|
-
}),
|
|
664
|
-
).annotate({ identifier: "GetUserResponse" }) as any as S.Schema<GetUserResponse>;
|
|
665
|
-
|
|
666
297
|
export type ListBackupsRequestRegion = "eu01" | "eu02";
|
|
667
|
-
export const ListBackupsRequestRegion = S.String;
|
|
668
|
-
|
|
669
298
|
export type BackupSort =
|
|
670
299
|
| "completion_time.desc"
|
|
671
300
|
| "completion_time.asc"
|
|
@@ -679,8 +308,6 @@ export type BackupSort =
|
|
|
679
308
|
| "size.asc"
|
|
680
309
|
| "type.desc"
|
|
681
310
|
| "type.asc";
|
|
682
|
-
export const BackupSort = S.String;
|
|
683
|
-
|
|
684
311
|
export interface ListBackupsRequest {
|
|
685
312
|
/** The STACKIT project ID. */
|
|
686
313
|
projectId: string;
|
|
@@ -695,30 +322,8 @@ export interface ListBackupsRequest {
|
|
|
695
322
|
/** Sorting of the backups to be returned on each page. */
|
|
696
323
|
sort?: BackupSort | (string & {});
|
|
697
324
|
}
|
|
698
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
699
|
-
S.Struct({
|
|
700
|
-
projectId: S.String.pipe(T.Label()),
|
|
701
|
-
region: ListBackupsRequestRegion.pipe(T.Label()),
|
|
702
|
-
instanceId: S.String.pipe(T.Label()),
|
|
703
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
704
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
705
|
-
sort: S.optional(BackupSort.pipe(T.Query())),
|
|
706
|
-
}).pipe(
|
|
707
|
-
T.Http({
|
|
708
|
-
method: "GET",
|
|
709
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
710
|
-
code: 200,
|
|
711
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
712
|
-
}),
|
|
713
|
-
),
|
|
714
|
-
).annotate({ identifier: "ListBackupsRequest" }) as any as S.Schema<ListBackupsRequest>;
|
|
715
|
-
|
|
716
325
|
/** The list containing the information about the backups. */
|
|
717
326
|
export type ListBackupsResponseBackupsList = Array<BackupData>;
|
|
718
|
-
export const ListBackupsResponseBackupsList = /*@__PURE__*/ S.Array(
|
|
719
|
-
BackupData,
|
|
720
|
-
) as any as S.Schema<ListBackupsResponseBackupsList>;
|
|
721
|
-
|
|
722
327
|
export interface Pagination {
|
|
723
328
|
page: number;
|
|
724
329
|
size: number;
|
|
@@ -726,31 +331,12 @@ export interface Pagination {
|
|
|
726
331
|
totalPages: number;
|
|
727
332
|
totalRows: number;
|
|
728
333
|
}
|
|
729
|
-
export const Pagination = /*@__PURE__*/ S.suspend(() =>
|
|
730
|
-
S.Struct({
|
|
731
|
-
page: S.Number,
|
|
732
|
-
size: S.Number,
|
|
733
|
-
sort: S.String,
|
|
734
|
-
totalPages: S.Number,
|
|
735
|
-
totalRows: S.Number,
|
|
736
|
-
}),
|
|
737
|
-
).annotate({ identifier: "Pagination" }) as any as S.Schema<Pagination>;
|
|
738
|
-
|
|
739
334
|
export interface ListBackupsResponse {
|
|
740
335
|
/** The list containing the information about the backups. */
|
|
741
336
|
backups: ListBackupsResponseBackupsList;
|
|
742
337
|
pagination: Pagination;
|
|
743
338
|
}
|
|
744
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
745
|
-
S.Struct({
|
|
746
|
-
backups: ListBackupsResponseBackupsList,
|
|
747
|
-
pagination: Pagination,
|
|
748
|
-
}),
|
|
749
|
-
).annotate({ identifier: "ListBackupsResponse" }) as any as S.Schema<ListBackupsResponse>;
|
|
750
|
-
|
|
751
339
|
export type ListCollationsRequestRegion = "eu01" | "eu02";
|
|
752
|
-
export const ListCollationsRequestRegion = S.String;
|
|
753
|
-
|
|
754
340
|
export interface ListCollationsRequest {
|
|
755
341
|
/** The STACKIT project ID. */
|
|
756
342
|
projectId: string;
|
|
@@ -759,40 +345,13 @@ export interface ListCollationsRequest {
|
|
|
759
345
|
/** The ID of the instance. */
|
|
760
346
|
instanceId: string;
|
|
761
347
|
}
|
|
762
|
-
export const ListCollationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
763
|
-
S.Struct({
|
|
764
|
-
projectId: S.String.pipe(T.Label()),
|
|
765
|
-
region: ListCollationsRequestRegion.pipe(T.Label()),
|
|
766
|
-
instanceId: S.String.pipe(T.Label()),
|
|
767
|
-
}).pipe(
|
|
768
|
-
T.Http({
|
|
769
|
-
method: "GET",
|
|
770
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",
|
|
771
|
-
code: 200,
|
|
772
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
773
|
-
}),
|
|
774
|
-
),
|
|
775
|
-
).annotate({ identifier: "ListCollationsRequest" }) as any as S.Schema<ListCollationsRequest>;
|
|
776
|
-
|
|
777
348
|
/** List of collations available for the instance. */
|
|
778
349
|
export type ListCollationsResponseCollationsList = Array<string>;
|
|
779
|
-
export const ListCollationsResponseCollationsList = /*@__PURE__*/ S.Array(
|
|
780
|
-
S.String,
|
|
781
|
-
) as any as S.Schema<ListCollationsResponseCollationsList>;
|
|
782
|
-
|
|
783
350
|
export interface ListCollationsResponse {
|
|
784
351
|
/** List of collations available for the instance. */
|
|
785
352
|
collations: ListCollationsResponseCollationsList;
|
|
786
353
|
}
|
|
787
|
-
export const ListCollationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
788
|
-
S.Struct({
|
|
789
|
-
collations: ListCollationsResponseCollationsList,
|
|
790
|
-
}),
|
|
791
|
-
).annotate({ identifier: "ListCollationsResponse" }) as any as S.Schema<ListCollationsResponse>;
|
|
792
|
-
|
|
793
354
|
export type ListDatabasesRequestRegion = "eu01" | "eu02";
|
|
794
|
-
export const ListDatabasesRequestRegion = S.String;
|
|
795
|
-
|
|
796
355
|
export type DatabaseSort =
|
|
797
356
|
| "created_at.desc"
|
|
798
357
|
| "created_at.asc"
|
|
@@ -802,8 +361,6 @@ export type DatabaseSort =
|
|
|
802
361
|
| "database_name.asc"
|
|
803
362
|
| "database_owner.desc"
|
|
804
363
|
| "database_owner.asc";
|
|
805
|
-
export const DatabaseSort = S.String;
|
|
806
|
-
|
|
807
364
|
export interface ListDatabasesRequest {
|
|
808
365
|
/** The STACKIT project ID. */
|
|
809
366
|
projectId: string;
|
|
@@ -818,58 +375,19 @@ export interface ListDatabasesRequest {
|
|
|
818
375
|
/** Sorting of the databases to be returned on each page. */
|
|
819
376
|
sort?: DatabaseSort | (string & {});
|
|
820
377
|
}
|
|
821
|
-
export const ListDatabasesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
822
|
-
S.Struct({
|
|
823
|
-
projectId: S.String.pipe(T.Label()),
|
|
824
|
-
region: ListDatabasesRequestRegion.pipe(T.Label()),
|
|
825
|
-
instanceId: S.String.pipe(T.Label()),
|
|
826
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
827
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
828
|
-
sort: S.optional(DatabaseSort.pipe(T.Query())),
|
|
829
|
-
}).pipe(
|
|
830
|
-
T.Http({
|
|
831
|
-
method: "GET",
|
|
832
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
833
|
-
code: 200,
|
|
834
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
835
|
-
}),
|
|
836
|
-
),
|
|
837
|
-
).annotate({ identifier: "ListDatabasesRequest" }) as any as S.Schema<ListDatabasesRequest>;
|
|
838
|
-
|
|
839
378
|
export interface ListDatabase {
|
|
840
379
|
id: number;
|
|
841
380
|
name: string;
|
|
842
381
|
owner: string;
|
|
843
382
|
}
|
|
844
|
-
export const ListDatabase = /*@__PURE__*/ S.suspend(() =>
|
|
845
|
-
S.Struct({
|
|
846
|
-
id: S.Number,
|
|
847
|
-
name: S.String,
|
|
848
|
-
owner: S.String,
|
|
849
|
-
}),
|
|
850
|
-
).annotate({ identifier: "ListDatabase" }) as any as S.Schema<ListDatabase>;
|
|
851
|
-
|
|
852
383
|
/** A list containing all databases for the instance. */
|
|
853
384
|
export type ListDatabasesResponseDatabasesList = Array<ListDatabase>;
|
|
854
|
-
export const ListDatabasesResponseDatabasesList = /*@__PURE__*/ S.Array(
|
|
855
|
-
ListDatabase,
|
|
856
|
-
) as any as S.Schema<ListDatabasesResponseDatabasesList>;
|
|
857
|
-
|
|
858
385
|
export interface ListDatabasesResponse {
|
|
859
386
|
/** A list containing all databases for the instance. */
|
|
860
387
|
databases: ListDatabasesResponseDatabasesList;
|
|
861
388
|
pagination: Pagination;
|
|
862
389
|
}
|
|
863
|
-
export const ListDatabasesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
864
|
-
S.Struct({
|
|
865
|
-
databases: ListDatabasesResponseDatabasesList,
|
|
866
|
-
pagination: Pagination,
|
|
867
|
-
}),
|
|
868
|
-
).annotate({ identifier: "ListDatabasesResponse" }) as any as S.Schema<ListDatabasesResponse>;
|
|
869
|
-
|
|
870
390
|
export type ListFlavorsRequestRegion = "eu01" | "eu02";
|
|
871
|
-
export const ListFlavorsRequestRegion = S.String;
|
|
872
|
-
|
|
873
391
|
export type FlavorSort =
|
|
874
392
|
| "cpu.desc"
|
|
875
393
|
| "cpu.asc"
|
|
@@ -887,8 +405,6 @@ export type FlavorSort =
|
|
|
887
405
|
| "storage_class.desc"
|
|
888
406
|
| "node_type.asc"
|
|
889
407
|
| "node_type.desc";
|
|
890
|
-
export const FlavorSort = S.String;
|
|
891
|
-
|
|
892
408
|
export interface ListFlavorsRequest {
|
|
893
409
|
/** The STACKIT project ID. */
|
|
894
410
|
projectId: string;
|
|
@@ -901,45 +417,14 @@ export interface ListFlavorsRequest {
|
|
|
901
417
|
/** Sorting of the flavors to be returned on each page. */
|
|
902
418
|
sort?: FlavorSort | (string & {});
|
|
903
419
|
}
|
|
904
|
-
export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
905
|
-
S.Struct({
|
|
906
|
-
projectId: S.String.pipe(T.Label()),
|
|
907
|
-
region: ListFlavorsRequestRegion.pipe(T.Label()),
|
|
908
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
909
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
910
|
-
sort: S.optional(FlavorSort.pipe(T.Query())),
|
|
911
|
-
}).pipe(
|
|
912
|
-
T.Http({
|
|
913
|
-
method: "GET",
|
|
914
|
-
uri: "/v3/projects/{projectId}/regions/{region}/flavors",
|
|
915
|
-
code: 200,
|
|
916
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
917
|
-
}),
|
|
918
|
-
),
|
|
919
|
-
).annotate({ identifier: "ListFlavorsRequest" }) as any as S.Schema<ListFlavorsRequest>;
|
|
920
|
-
|
|
921
420
|
/** a storageClass defines how efficient the storage can work */
|
|
922
421
|
export interface FlavorStorageClassesStorageClass {
|
|
923
422
|
class: string;
|
|
924
423
|
maxIoPerSec: number;
|
|
925
424
|
maxThroughInMb: number;
|
|
926
425
|
}
|
|
927
|
-
export const FlavorStorageClassesStorageClass = /*@__PURE__*/ S.suspend(() =>
|
|
928
|
-
S.Struct({
|
|
929
|
-
class: S.String,
|
|
930
|
-
maxIoPerSec: S.Number,
|
|
931
|
-
maxThroughInMb: S.Number,
|
|
932
|
-
}),
|
|
933
|
-
).annotate({
|
|
934
|
-
identifier: "FlavorStorageClassesStorageClass",
|
|
935
|
-
}) as any as S.Schema<FlavorStorageClassesStorageClass>;
|
|
936
|
-
|
|
937
426
|
/** maximum storage which can be ordered for the flavor in Gigabyte. */
|
|
938
427
|
export type FlavorStorageClasses = Array<FlavorStorageClassesStorageClass>;
|
|
939
|
-
export const FlavorStorageClasses = /*@__PURE__*/ S.Array(
|
|
940
|
-
FlavorStorageClassesStorageClass,
|
|
941
|
-
) as any as S.Schema<FlavorStorageClasses>;
|
|
942
|
-
|
|
943
428
|
/** The flavor of the instance containing the technical features. */
|
|
944
429
|
export interface ListFlavors {
|
|
945
430
|
cpu: number;
|
|
@@ -951,40 +436,14 @@ export interface ListFlavors {
|
|
|
951
436
|
nodeType: string;
|
|
952
437
|
storageClasses: FlavorStorageClasses;
|
|
953
438
|
}
|
|
954
|
-
export const ListFlavors = /*@__PURE__*/ S.suspend(() =>
|
|
955
|
-
S.Struct({
|
|
956
|
-
cpu: S.Number,
|
|
957
|
-
description: S.String,
|
|
958
|
-
id: S.String,
|
|
959
|
-
maxGB: S.Number,
|
|
960
|
-
memory: S.Number,
|
|
961
|
-
minGB: S.Number,
|
|
962
|
-
nodeType: S.String,
|
|
963
|
-
storageClasses: FlavorStorageClasses,
|
|
964
|
-
}),
|
|
965
|
-
).annotate({ identifier: "ListFlavors" }) as any as S.Schema<ListFlavors>;
|
|
966
|
-
|
|
967
439
|
/** List of flavors available for the project. */
|
|
968
440
|
export type ListFlavorsResponseFlavorsList = Array<ListFlavors>;
|
|
969
|
-
export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(
|
|
970
|
-
ListFlavors,
|
|
971
|
-
) as any as S.Schema<ListFlavorsResponseFlavorsList>;
|
|
972
|
-
|
|
973
441
|
export interface ListFlavorsResponse {
|
|
974
442
|
/** List of flavors available for the project. */
|
|
975
443
|
flavors: ListFlavorsResponseFlavorsList;
|
|
976
444
|
pagination: Pagination;
|
|
977
445
|
}
|
|
978
|
-
export const ListFlavorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
979
|
-
S.Struct({
|
|
980
|
-
flavors: ListFlavorsResponseFlavorsList,
|
|
981
|
-
pagination: Pagination,
|
|
982
|
-
}),
|
|
983
|
-
).annotate({ identifier: "ListFlavorsResponse" }) as any as S.Schema<ListFlavorsResponse>;
|
|
984
|
-
|
|
985
446
|
export type ListInstancesRequestRegion = "eu01" | "eu02";
|
|
986
|
-
export const ListInstancesRequestRegion = S.String;
|
|
987
|
-
|
|
988
447
|
export type InstanceSort =
|
|
989
448
|
| "id.desc"
|
|
990
449
|
| "id.asc"
|
|
@@ -994,8 +453,6 @@ export type InstanceSort =
|
|
|
994
453
|
| "name.desc"
|
|
995
454
|
| "state.asc"
|
|
996
455
|
| "state.desc";
|
|
997
|
-
export const InstanceSort = S.String;
|
|
998
|
-
|
|
999
456
|
export interface ListInstancesRequest {
|
|
1000
457
|
/** The STACKIT project ID. */
|
|
1001
458
|
projectId: string;
|
|
@@ -1008,59 +465,20 @@ export interface ListInstancesRequest {
|
|
|
1008
465
|
/** Sorting of the items to be returned on each page. */
|
|
1009
466
|
sort?: InstanceSort | (string & {});
|
|
1010
467
|
}
|
|
1011
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1012
|
-
S.Struct({
|
|
1013
|
-
projectId: S.String.pipe(T.Label()),
|
|
1014
|
-
region: ListInstancesRequestRegion.pipe(T.Label()),
|
|
1015
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
1016
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
1017
|
-
sort: S.optional(InstanceSort.pipe(T.Query())),
|
|
1018
|
-
}).pipe(
|
|
1019
|
-
T.Http({
|
|
1020
|
-
method: "GET",
|
|
1021
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
1022
|
-
code: 200,
|
|
1023
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1024
|
-
}),
|
|
1025
|
-
),
|
|
1026
|
-
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
1027
|
-
|
|
1028
468
|
export interface ListInstance {
|
|
1029
469
|
id: string;
|
|
1030
470
|
isDeletable: boolean;
|
|
1031
471
|
name: string;
|
|
1032
472
|
state: State;
|
|
1033
473
|
}
|
|
1034
|
-
export const ListInstance = /*@__PURE__*/ S.suspend(() =>
|
|
1035
|
-
S.Struct({
|
|
1036
|
-
id: S.String,
|
|
1037
|
-
isDeletable: S.Boolean,
|
|
1038
|
-
name: S.String,
|
|
1039
|
-
state: State,
|
|
1040
|
-
}),
|
|
1041
|
-
).annotate({ identifier: "ListInstance" }) as any as S.Schema<ListInstance>;
|
|
1042
|
-
|
|
1043
474
|
/** List of owned instances and their current state. */
|
|
1044
475
|
export type ListInstancesResponseInstancesList = Array<ListInstance>;
|
|
1045
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
1046
|
-
ListInstance,
|
|
1047
|
-
) as any as S.Schema<ListInstancesResponseInstancesList>;
|
|
1048
|
-
|
|
1049
476
|
export interface ListInstancesResponse {
|
|
1050
477
|
/** List of owned instances and their current state. */
|
|
1051
478
|
instances: ListInstancesResponseInstancesList;
|
|
1052
479
|
pagination: Pagination;
|
|
1053
480
|
}
|
|
1054
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1055
|
-
S.Struct({
|
|
1056
|
-
instances: ListInstancesResponseInstancesList,
|
|
1057
|
-
pagination: Pagination,
|
|
1058
|
-
}),
|
|
1059
|
-
).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
|
|
1060
|
-
|
|
1061
481
|
export type ListRolesRequestRegion = "eu01" | "eu02";
|
|
1062
|
-
export const ListRolesRequestRegion = S.String;
|
|
1063
|
-
|
|
1064
482
|
export interface ListRolesRequest {
|
|
1065
483
|
/** The STACKIT project ID. */
|
|
1066
484
|
projectId: string;
|
|
@@ -1069,43 +487,14 @@ export interface ListRolesRequest {
|
|
|
1069
487
|
/** The ID of the instance. */
|
|
1070
488
|
instanceId: string;
|
|
1071
489
|
}
|
|
1072
|
-
export const ListRolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1073
|
-
S.Struct({
|
|
1074
|
-
projectId: S.String.pipe(T.Label()),
|
|
1075
|
-
region: ListRolesRequestRegion.pipe(T.Label()),
|
|
1076
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1077
|
-
}).pipe(
|
|
1078
|
-
T.Http({
|
|
1079
|
-
method: "GET",
|
|
1080
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",
|
|
1081
|
-
code: 200,
|
|
1082
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1083
|
-
}),
|
|
1084
|
-
),
|
|
1085
|
-
).annotate({ identifier: "ListRolesRequest" }) as any as S.Schema<ListRolesRequest>;
|
|
1086
|
-
|
|
1087
490
|
/** List of all role names available in the instance */
|
|
1088
491
|
export type ListRolesResponseRolesList = Array<string>;
|
|
1089
|
-
export const ListRolesResponseRolesList = /*@__PURE__*/ S.Array(
|
|
1090
|
-
S.String,
|
|
1091
|
-
) as any as S.Schema<ListRolesResponseRolesList>;
|
|
1092
|
-
|
|
1093
492
|
export interface ListRolesResponse {
|
|
1094
493
|
/** List of all role names available in the instance */
|
|
1095
494
|
roles: ListRolesResponseRolesList;
|
|
1096
495
|
}
|
|
1097
|
-
export const ListRolesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1098
|
-
S.Struct({
|
|
1099
|
-
roles: ListRolesResponseRolesList,
|
|
1100
|
-
}),
|
|
1101
|
-
).annotate({ identifier: "ListRolesResponse" }) as any as S.Schema<ListRolesResponse>;
|
|
1102
|
-
|
|
1103
496
|
export type ListUsersRequestRegion = "eu01" | "eu02";
|
|
1104
|
-
export const ListUsersRequestRegion = S.String;
|
|
1105
|
-
|
|
1106
497
|
export type UserSort = "id.asc" | "id.desc" | "name.desc" | "name.asc" | "state.desc" | "state.asc";
|
|
1107
|
-
export const UserSort = S.String;
|
|
1108
|
-
|
|
1109
498
|
export interface ListUsersRequest {
|
|
1110
499
|
/** The STACKIT project ID. */
|
|
1111
500
|
projectId: string;
|
|
@@ -1120,78 +509,25 @@ export interface ListUsersRequest {
|
|
|
1120
509
|
/** Sorting of the users to be returned on each page. */
|
|
1121
510
|
sort?: UserSort | (string & {});
|
|
1122
511
|
}
|
|
1123
|
-
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1124
|
-
S.Struct({
|
|
1125
|
-
projectId: S.String.pipe(T.Label()),
|
|
1126
|
-
region: ListUsersRequestRegion.pipe(T.Label()),
|
|
1127
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1128
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
1129
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
1130
|
-
sort: S.optional(UserSort.pipe(T.Query())),
|
|
1131
|
-
}).pipe(
|
|
1132
|
-
T.Http({
|
|
1133
|
-
method: "GET",
|
|
1134
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
1135
|
-
code: 200,
|
|
1136
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1137
|
-
}),
|
|
1138
|
-
),
|
|
1139
|
-
).annotate({ identifier: "ListUsersRequest" }) as any as S.Schema<ListUsersRequest>;
|
|
1140
|
-
|
|
1141
512
|
export interface ListUser {
|
|
1142
513
|
id: number;
|
|
1143
514
|
name: string;
|
|
1144
515
|
state: string;
|
|
1145
516
|
}
|
|
1146
|
-
export const ListUser = /*@__PURE__*/ S.suspend(() =>
|
|
1147
|
-
S.Struct({
|
|
1148
|
-
id: S.Number,
|
|
1149
|
-
name: S.String,
|
|
1150
|
-
state: S.String,
|
|
1151
|
-
}),
|
|
1152
|
-
).annotate({ identifier: "ListUser" }) as any as S.Schema<ListUser>;
|
|
1153
|
-
|
|
1154
517
|
/** List of all users inside an instance */
|
|
1155
518
|
export type ListUsersResponseUsersList = Array<ListUser>;
|
|
1156
|
-
export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(
|
|
1157
|
-
ListUser,
|
|
1158
|
-
) as any as S.Schema<ListUsersResponseUsersList>;
|
|
1159
|
-
|
|
1160
519
|
export interface ListUsersResponse {
|
|
1161
520
|
pagination: Pagination;
|
|
1162
521
|
/** List of all users inside an instance */
|
|
1163
522
|
users: ListUsersResponseUsersList;
|
|
1164
523
|
}
|
|
1165
|
-
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1166
|
-
S.Struct({
|
|
1167
|
-
pagination: Pagination,
|
|
1168
|
-
users: ListUsersResponseUsersList,
|
|
1169
|
-
}),
|
|
1170
|
-
).annotate({ identifier: "ListUsersResponse" }) as any as S.Schema<ListUsersResponse>;
|
|
1171
|
-
|
|
1172
524
|
export type ListVersionsRequestRegion = "eu01" | "eu02";
|
|
1173
|
-
export const ListVersionsRequestRegion = S.String;
|
|
1174
|
-
|
|
1175
525
|
export interface ListVersionsRequest {
|
|
1176
526
|
/** The STACKIT project ID. */
|
|
1177
527
|
projectId: string;
|
|
1178
528
|
/** The region which should be addressed */
|
|
1179
529
|
region: ListVersionsRequestRegion | (string & {});
|
|
1180
530
|
}
|
|
1181
|
-
export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1182
|
-
S.Struct({
|
|
1183
|
-
projectId: S.String.pipe(T.Label()),
|
|
1184
|
-
region: ListVersionsRequestRegion.pipe(T.Label()),
|
|
1185
|
-
}).pipe(
|
|
1186
|
-
T.Http({
|
|
1187
|
-
method: "GET",
|
|
1188
|
-
uri: "/v3/projects/{projectId}/regions/{region}/versions",
|
|
1189
|
-
code: 200,
|
|
1190
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1191
|
-
}),
|
|
1192
|
-
),
|
|
1193
|
-
).annotate({ identifier: "ListVersionsRequest" }) as any as S.Schema<ListVersionsRequest>;
|
|
1194
|
-
|
|
1195
531
|
/** The version of the postgres instance and more details. */
|
|
1196
532
|
export interface Version {
|
|
1197
533
|
/** Flag if the version is a beta version. If set the version may contain bugs and is not fully tested. */
|
|
@@ -1203,34 +539,13 @@ export interface Version {
|
|
|
1203
539
|
/** The postgres version used for the instance. */
|
|
1204
540
|
version: string;
|
|
1205
541
|
}
|
|
1206
|
-
export const Version = /*@__PURE__*/ S.suspend(() =>
|
|
1207
|
-
S.Struct({
|
|
1208
|
-
beta: S.Boolean,
|
|
1209
|
-
deprecated: S.String,
|
|
1210
|
-
recommend: S.Boolean,
|
|
1211
|
-
version: S.String,
|
|
1212
|
-
}),
|
|
1213
|
-
).annotate({ identifier: "Version" }) as any as S.Schema<Version>;
|
|
1214
|
-
|
|
1215
542
|
/** A list containing available postgres versions. */
|
|
1216
543
|
export type ListVersionsResponseVersionsList = Array<Version>;
|
|
1217
|
-
export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(
|
|
1218
|
-
Version,
|
|
1219
|
-
) as any as S.Schema<ListVersionsResponseVersionsList>;
|
|
1220
|
-
|
|
1221
544
|
export interface ListVersionsResponse {
|
|
1222
545
|
/** A list containing available postgres versions. */
|
|
1223
546
|
versions: ListVersionsResponseVersionsList;
|
|
1224
547
|
}
|
|
1225
|
-
export const ListVersionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1226
|
-
S.Struct({
|
|
1227
|
-
versions: ListVersionsResponseVersionsList,
|
|
1228
|
-
}),
|
|
1229
|
-
).annotate({ identifier: "ListVersionsResponse" }) as any as S.Schema<ListVersionsResponse>;
|
|
1230
|
-
|
|
1231
548
|
export type PartialUpdateDatabaseRequestRegion = "eu01" | "eu02";
|
|
1232
|
-
export const PartialUpdateDatabaseRequestRegion = S.String;
|
|
1233
|
-
|
|
1234
549
|
export interface PartialUpdateDatabaseRequest {
|
|
1235
550
|
/** The STACKIT project ID. */
|
|
1236
551
|
projectId: string;
|
|
@@ -1243,58 +558,18 @@ export interface PartialUpdateDatabaseRequest {
|
|
|
1243
558
|
name?: string;
|
|
1244
559
|
owner?: string;
|
|
1245
560
|
}
|
|
1246
|
-
export const PartialUpdateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1247
|
-
S.Struct({
|
|
1248
|
-
projectId: S.String.pipe(T.Label()),
|
|
1249
|
-
region: PartialUpdateDatabaseRequestRegion.pipe(T.Label()),
|
|
1250
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1251
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
1252
|
-
name: S.optional(S.String),
|
|
1253
|
-
owner: S.optional(S.String),
|
|
1254
|
-
}).pipe(
|
|
1255
|
-
T.Http({
|
|
1256
|
-
method: "PATCH",
|
|
1257
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
1258
|
-
code: 200,
|
|
1259
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1260
|
-
}),
|
|
1261
|
-
),
|
|
1262
|
-
).annotate({
|
|
1263
|
-
identifier: "PartialUpdateDatabaseRequest",
|
|
1264
|
-
}) as any as S.Schema<PartialUpdateDatabaseRequest>;
|
|
1265
|
-
|
|
1266
561
|
export interface PartialUpdateDatabaseResponse {}
|
|
1267
|
-
export const PartialUpdateDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1268
|
-
identifier: "PartialUpdateDatabaseResponse",
|
|
1269
|
-
}) as any as S.Schema<PartialUpdateDatabaseResponse>;
|
|
1270
|
-
|
|
1271
562
|
export type PartialUpdateInstanceRequestRegion = "eu01" | "eu02";
|
|
1272
|
-
export const PartialUpdateInstanceRequestRegion = S.String;
|
|
1273
|
-
|
|
1274
563
|
/** List of IPV4 cidr. */
|
|
1275
564
|
export type AclOpt = Array<string>;
|
|
1276
|
-
export const AclOpt = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<AclOpt>;
|
|
1277
|
-
|
|
1278
565
|
/** The access configuration of the instance */
|
|
1279
566
|
export interface InstanceNetworkOpt {
|
|
1280
567
|
acl?: AclOpt;
|
|
1281
568
|
}
|
|
1282
|
-
export const InstanceNetworkOpt = /*@__PURE__*/ S.suspend(() =>
|
|
1283
|
-
S.Struct({
|
|
1284
|
-
acl: S.optional(AclOpt),
|
|
1285
|
-
}),
|
|
1286
|
-
).annotate({ identifier: "InstanceNetworkOpt" }) as any as S.Schema<InstanceNetworkOpt>;
|
|
1287
|
-
|
|
1288
569
|
/** The object containing information about the storage size and class. */
|
|
1289
570
|
export interface StorageUpdate {
|
|
1290
571
|
size?: number;
|
|
1291
572
|
}
|
|
1292
|
-
export const StorageUpdate = /*@__PURE__*/ S.suspend(() =>
|
|
1293
|
-
S.Struct({
|
|
1294
|
-
size: S.optional(S.Number),
|
|
1295
|
-
}),
|
|
1296
|
-
).annotate({ identifier: "StorageUpdate" }) as any as S.Schema<StorageUpdate>;
|
|
1297
|
-
|
|
1298
573
|
export interface PartialUpdateInstanceRequest {
|
|
1299
574
|
/** The STACKIT project ID. */
|
|
1300
575
|
projectId: string;
|
|
@@ -1311,45 +586,10 @@ export interface PartialUpdateInstanceRequest {
|
|
|
1311
586
|
storage?: StorageUpdate;
|
|
1312
587
|
version?: string;
|
|
1313
588
|
}
|
|
1314
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1315
|
-
S.Struct({
|
|
1316
|
-
projectId: S.String.pipe(T.Label()),
|
|
1317
|
-
region: PartialUpdateInstanceRequestRegion.pipe(T.Label()),
|
|
1318
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1319
|
-
backupSchedule: S.optional(S.String),
|
|
1320
|
-
flavorId: S.optional(S.String),
|
|
1321
|
-
labels: S.optional(Labels),
|
|
1322
|
-
name: S.optional(S.String),
|
|
1323
|
-
network: S.optional(InstanceNetworkOpt),
|
|
1324
|
-
retentionDays: S.optional(S.Number),
|
|
1325
|
-
storage: S.optional(StorageUpdate),
|
|
1326
|
-
version: S.optional(S.String),
|
|
1327
|
-
}).pipe(
|
|
1328
|
-
T.Http({
|
|
1329
|
-
method: "PATCH",
|
|
1330
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1331
|
-
code: 200,
|
|
1332
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1333
|
-
}),
|
|
1334
|
-
),
|
|
1335
|
-
).annotate({
|
|
1336
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
1337
|
-
}) as any as S.Schema<PartialUpdateInstanceRequest>;
|
|
1338
|
-
|
|
1339
589
|
export interface PartialUpdateInstanceResponse {}
|
|
1340
|
-
export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1341
|
-
identifier: "PartialUpdateInstanceResponse",
|
|
1342
|
-
}) as any as S.Schema<PartialUpdateInstanceResponse>;
|
|
1343
|
-
|
|
1344
590
|
export type PartialUpdateUserRequestRegion = "eu01" | "eu02";
|
|
1345
|
-
export const PartialUpdateUserRequestRegion = S.String;
|
|
1346
|
-
|
|
1347
591
|
/** A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. */
|
|
1348
592
|
export type PartialUpdateUserRequestRolesList = Array<string>;
|
|
1349
|
-
export const PartialUpdateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
1350
|
-
S.String,
|
|
1351
|
-
) as any as S.Schema<PartialUpdateUserRequestRolesList>;
|
|
1352
|
-
|
|
1353
593
|
export interface PartialUpdateUserRequest {
|
|
1354
594
|
/** The STACKIT project ID. */
|
|
1355
595
|
projectId: string;
|
|
@@ -1363,32 +603,8 @@ export interface PartialUpdateUserRequest {
|
|
|
1363
603
|
/** A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. */
|
|
1364
604
|
roles?: PartialUpdateUserRequestRolesList;
|
|
1365
605
|
}
|
|
1366
|
-
export const PartialUpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1367
|
-
S.Struct({
|
|
1368
|
-
projectId: S.String.pipe(T.Label()),
|
|
1369
|
-
region: PartialUpdateUserRequestRegion.pipe(T.Label()),
|
|
1370
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1371
|
-
userId: S.Number.pipe(T.Label()),
|
|
1372
|
-
name: S.optional(S.String),
|
|
1373
|
-
roles: S.optional(PartialUpdateUserRequestRolesList),
|
|
1374
|
-
}).pipe(
|
|
1375
|
-
T.Http({
|
|
1376
|
-
method: "PATCH",
|
|
1377
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1378
|
-
code: 200,
|
|
1379
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1380
|
-
}),
|
|
1381
|
-
),
|
|
1382
|
-
).annotate({ identifier: "PartialUpdateUserRequest" }) as any as S.Schema<PartialUpdateUserRequest>;
|
|
1383
|
-
|
|
1384
606
|
export interface PartialUpdateUserResponse {}
|
|
1385
|
-
export const PartialUpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1386
|
-
identifier: "PartialUpdateUserResponse",
|
|
1387
|
-
}) as any as S.Schema<PartialUpdateUserResponse>;
|
|
1388
|
-
|
|
1389
607
|
export type ResetUserPasswordRequestRegion = "eu01" | "eu02";
|
|
1390
|
-
export const ResetUserPasswordRequestRegion = S.String;
|
|
1391
|
-
|
|
1392
608
|
export interface ResetUserPasswordRequest {
|
|
1393
609
|
/** The STACKIT project ID. */
|
|
1394
610
|
projectId: string;
|
|
@@ -1399,40 +615,12 @@ export interface ResetUserPasswordRequest {
|
|
|
1399
615
|
/** The ID of the user. */
|
|
1400
616
|
userId: number;
|
|
1401
617
|
}
|
|
1402
|
-
export const ResetUserPasswordRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1403
|
-
S.Struct({
|
|
1404
|
-
projectId: S.String.pipe(T.Label()),
|
|
1405
|
-
region: ResetUserPasswordRequestRegion.pipe(T.Label()),
|
|
1406
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1407
|
-
userId: S.Number.pipe(T.Label()),
|
|
1408
|
-
}).pipe(
|
|
1409
|
-
T.Http({
|
|
1410
|
-
method: "POST",
|
|
1411
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
1412
|
-
code: 200,
|
|
1413
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1414
|
-
}),
|
|
1415
|
-
),
|
|
1416
|
-
).annotate({ identifier: "ResetUserPasswordRequest" }) as any as S.Schema<ResetUserPasswordRequest>;
|
|
1417
|
-
|
|
1418
618
|
export interface ResetUserPasswordResponse {
|
|
1419
619
|
name: string;
|
|
1420
620
|
password: string | Redacted.Redacted<string>;
|
|
1421
621
|
state: string;
|
|
1422
622
|
}
|
|
1423
|
-
export const ResetUserPasswordResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1424
|
-
S.Struct({
|
|
1425
|
-
name: S.String,
|
|
1426
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
1427
|
-
state: S.String,
|
|
1428
|
-
}),
|
|
1429
|
-
).annotate({
|
|
1430
|
-
identifier: "ResetUserPasswordResponse",
|
|
1431
|
-
}) as any as S.Schema<ResetUserPasswordResponse>;
|
|
1432
|
-
|
|
1433
623
|
export type UpdateDatabaseRequestRegion = "eu01" | "eu02";
|
|
1434
|
-
export const UpdateDatabaseRequestRegion = S.String;
|
|
1435
|
-
|
|
1436
624
|
export interface UpdateDatabaseRequest {
|
|
1437
625
|
/** The STACKIT project ID. */
|
|
1438
626
|
projectId: string;
|
|
@@ -1445,42 +633,12 @@ export interface UpdateDatabaseRequest {
|
|
|
1445
633
|
name: string;
|
|
1446
634
|
owner: string;
|
|
1447
635
|
}
|
|
1448
|
-
export const UpdateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1449
|
-
S.Struct({
|
|
1450
|
-
projectId: S.String.pipe(T.Label()),
|
|
1451
|
-
region: UpdateDatabaseRequestRegion.pipe(T.Label()),
|
|
1452
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1453
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
1454
|
-
name: S.String,
|
|
1455
|
-
owner: S.String,
|
|
1456
|
-
}).pipe(
|
|
1457
|
-
T.Http({
|
|
1458
|
-
method: "PUT",
|
|
1459
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
1460
|
-
code: 200,
|
|
1461
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1462
|
-
}),
|
|
1463
|
-
),
|
|
1464
|
-
).annotate({ identifier: "UpdateDatabaseRequest" }) as any as S.Schema<UpdateDatabaseRequest>;
|
|
1465
|
-
|
|
1466
636
|
export interface UpdateDatabaseResponse {}
|
|
1467
|
-
export const UpdateDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1468
|
-
identifier: "UpdateDatabaseResponse",
|
|
1469
|
-
}) as any as S.Schema<UpdateDatabaseResponse>;
|
|
1470
|
-
|
|
1471
637
|
export type UpdateInstanceRequestRegion = "eu01" | "eu02";
|
|
1472
|
-
export const UpdateInstanceRequestRegion = S.String;
|
|
1473
|
-
|
|
1474
638
|
/** The access configuration of the instance */
|
|
1475
639
|
export interface InstanceNetworkUpdate {
|
|
1476
640
|
acl: Acl;
|
|
1477
641
|
}
|
|
1478
|
-
export const InstanceNetworkUpdate = /*@__PURE__*/ S.suspend(() =>
|
|
1479
|
-
S.Struct({
|
|
1480
|
-
acl: Acl,
|
|
1481
|
-
}),
|
|
1482
|
-
).annotate({ identifier: "InstanceNetworkUpdate" }) as any as S.Schema<InstanceNetworkUpdate>;
|
|
1483
|
-
|
|
1484
642
|
export interface UpdateInstanceRequest {
|
|
1485
643
|
/** The STACKIT project ID. */
|
|
1486
644
|
projectId: string;
|
|
@@ -1497,37 +655,8 @@ export interface UpdateInstanceRequest {
|
|
|
1497
655
|
storage: StorageUpdate;
|
|
1498
656
|
version: string;
|
|
1499
657
|
}
|
|
1500
|
-
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1501
|
-
S.Struct({
|
|
1502
|
-
projectId: S.String.pipe(T.Label()),
|
|
1503
|
-
region: UpdateInstanceRequestRegion.pipe(T.Label()),
|
|
1504
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1505
|
-
backupSchedule: S.String,
|
|
1506
|
-
flavorId: S.String,
|
|
1507
|
-
labels: S.optional(Labels),
|
|
1508
|
-
name: S.String,
|
|
1509
|
-
network: InstanceNetworkUpdate,
|
|
1510
|
-
retentionDays: S.NullOr(S.Number),
|
|
1511
|
-
storage: StorageUpdate,
|
|
1512
|
-
version: S.String,
|
|
1513
|
-
}).pipe(
|
|
1514
|
-
T.Http({
|
|
1515
|
-
method: "PUT",
|
|
1516
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1517
|
-
code: 200,
|
|
1518
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1519
|
-
}),
|
|
1520
|
-
),
|
|
1521
|
-
).annotate({ identifier: "UpdateInstanceRequest" }) as any as S.Schema<UpdateInstanceRequest>;
|
|
1522
|
-
|
|
1523
658
|
export interface UpdateInstanceResponse {}
|
|
1524
|
-
export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1525
|
-
identifier: "UpdateInstanceResponse",
|
|
1526
|
-
}) as any as S.Schema<UpdateInstanceResponse>;
|
|
1527
|
-
|
|
1528
659
|
export type UpdateInstanceProtectionRequestRegion = "eu01" | "eu02";
|
|
1529
|
-
export const UpdateInstanceProtectionRequestRegion = S.String;
|
|
1530
|
-
|
|
1531
660
|
export interface UpdateInstanceProtectionRequest {
|
|
1532
661
|
/** The STACKIT project ID. */
|
|
1533
662
|
projectId: string;
|
|
@@ -1537,44 +666,12 @@ export interface UpdateInstanceProtectionRequest {
|
|
|
1537
666
|
instanceId: string;
|
|
1538
667
|
isDeletable: boolean;
|
|
1539
668
|
}
|
|
1540
|
-
export const UpdateInstanceProtectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1541
|
-
S.Struct({
|
|
1542
|
-
projectId: S.String.pipe(T.Label()),
|
|
1543
|
-
region: UpdateInstanceProtectionRequestRegion.pipe(T.Label()),
|
|
1544
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1545
|
-
isDeletable: S.Boolean,
|
|
1546
|
-
}).pipe(
|
|
1547
|
-
T.Http({
|
|
1548
|
-
method: "POST",
|
|
1549
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",
|
|
1550
|
-
code: 200,
|
|
1551
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1552
|
-
}),
|
|
1553
|
-
),
|
|
1554
|
-
).annotate({
|
|
1555
|
-
identifier: "UpdateInstanceProtectionRequest",
|
|
1556
|
-
}) as any as S.Schema<UpdateInstanceProtectionRequest>;
|
|
1557
|
-
|
|
1558
669
|
export interface UpdateInstanceProtectionResponse {
|
|
1559
670
|
isDeletable: boolean;
|
|
1560
671
|
}
|
|
1561
|
-
export const UpdateInstanceProtectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1562
|
-
S.Struct({
|
|
1563
|
-
isDeletable: S.Boolean,
|
|
1564
|
-
}),
|
|
1565
|
-
).annotate({
|
|
1566
|
-
identifier: "UpdateInstanceProtectionResponse",
|
|
1567
|
-
}) as any as S.Schema<UpdateInstanceProtectionResponse>;
|
|
1568
|
-
|
|
1569
672
|
export type UpdateUserRequestRegion = "eu01" | "eu02";
|
|
1570
|
-
export const UpdateUserRequestRegion = S.String;
|
|
1571
|
-
|
|
1572
673
|
/** A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. */
|
|
1573
674
|
export type UpdateUserRequestRolesList = Array<string>;
|
|
1574
|
-
export const UpdateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
1575
|
-
S.String,
|
|
1576
|
-
) as any as S.Schema<UpdateUserRequestRolesList>;
|
|
1577
|
-
|
|
1578
675
|
export interface UpdateUserRequest {
|
|
1579
676
|
/** The STACKIT project ID. */
|
|
1580
677
|
projectId: string;
|
|
@@ -1588,29 +685,7 @@ export interface UpdateUserRequest {
|
|
|
1588
685
|
/** A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. */
|
|
1589
686
|
roles: UpdateUserRequestRolesList;
|
|
1590
687
|
}
|
|
1591
|
-
export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1592
|
-
S.Struct({
|
|
1593
|
-
projectId: S.String.pipe(T.Label()),
|
|
1594
|
-
region: UpdateUserRequestRegion.pipe(T.Label()),
|
|
1595
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1596
|
-
userId: S.Number.pipe(T.Label()),
|
|
1597
|
-
name: S.optional(S.String),
|
|
1598
|
-
roles: UpdateUserRequestRolesList,
|
|
1599
|
-
}).pipe(
|
|
1600
|
-
T.Http({
|
|
1601
|
-
method: "PUT",
|
|
1602
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1603
|
-
code: 200,
|
|
1604
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1605
|
-
}),
|
|
1606
|
-
),
|
|
1607
|
-
).annotate({ identifier: "UpdateUserRequest" }) as any as S.Schema<UpdateUserRequest>;
|
|
1608
|
-
|
|
1609
688
|
export interface UpdateUserResponse {}
|
|
1610
|
-
export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1611
|
-
identifier: "UpdateUserResponse",
|
|
1612
|
-
}) as any as S.Schema<UpdateUserResponse>;
|
|
1613
|
-
|
|
1614
689
|
export type CloneInstanceError =
|
|
1615
690
|
| BadRequest
|
|
1616
691
|
| Forbidden
|
|
@@ -1625,8 +700,8 @@ export const cloneInstance: API.OperationMethod<
|
|
|
1625
700
|
CloneInstanceError,
|
|
1626
701
|
StackitOpContext
|
|
1627
702
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1628
|
-
input: CloneInstanceRequest
|
|
1629
|
-
output: CloneInstanceResponse
|
|
703
|
+
input: __S(209, __c26, 1) as any as S.Schema<CloneInstanceRequest>,
|
|
704
|
+
output: __S(216, __c27, 0) as any as S.Schema<CloneInstanceResponse>,
|
|
1630
705
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
1631
706
|
protocol: StackitProtocol,
|
|
1632
707
|
retry: Retry.Retry,
|
|
@@ -1646,8 +721,8 @@ export const createDatabase: API.OperationMethod<
|
|
|
1646
721
|
CreateDatabaseError,
|
|
1647
722
|
StackitOpContext
|
|
1648
723
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1649
|
-
input: CreateDatabaseRequest
|
|
1650
|
-
output: CreateDatabaseResponse
|
|
724
|
+
input: __S(224, __c28, 0) as any as S.Schema<CreateDatabaseRequest>,
|
|
725
|
+
output: __S(225, __c28, 1) as any as S.Schema<CreateDatabaseResponse>,
|
|
1651
726
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
1652
727
|
protocol: StackitProtocol,
|
|
1653
728
|
retry: Retry.Retry,
|
|
@@ -1666,8 +741,8 @@ export const createInstance: API.OperationMethod<
|
|
|
1666
741
|
CreateInstanceError,
|
|
1667
742
|
StackitOpContext
|
|
1668
743
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1669
|
-
input: CreateInstanceRequest
|
|
1670
|
-
output: CreateInstanceResponse
|
|
744
|
+
input: __S(234, __c29, 2) as any as S.Schema<CreateInstanceRequest>,
|
|
745
|
+
output: __S(216, __c27, 0) as any as S.Schema<CreateInstanceResponse>,
|
|
1671
746
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1672
747
|
protocol: StackitProtocol,
|
|
1673
748
|
retry: Retry.Retry,
|
|
@@ -1687,8 +762,8 @@ export const createUser: API.OperationMethod<
|
|
|
1687
762
|
CreateUserError,
|
|
1688
763
|
StackitOpContext
|
|
1689
764
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1690
|
-
input: CreateUserRequest
|
|
1691
|
-
output: CreateUserResponse
|
|
765
|
+
input: __S(264, __c33, 0) as any as S.Schema<CreateUserRequest>,
|
|
766
|
+
output: __S(265, __c33, 1) as any as S.Schema<CreateUserResponse>,
|
|
1692
767
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
1693
768
|
protocol: StackitProtocol,
|
|
1694
769
|
retry: Retry.Retry,
|
|
@@ -1702,8 +777,8 @@ export const deleteDatabase: API.OperationMethod<
|
|
|
1702
777
|
DeleteDatabaseError,
|
|
1703
778
|
StackitOpContext
|
|
1704
779
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1705
|
-
input: DeleteDatabaseRequest
|
|
1706
|
-
output: DeleteDatabaseResponse
|
|
780
|
+
input: __S(272, __c34, 0) as any as S.Schema<DeleteDatabaseRequest>,
|
|
781
|
+
output: __S(280, __c35, 0) as any as S.Schema<DeleteDatabaseResponse>,
|
|
1707
782
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1708
783
|
protocol: StackitProtocol,
|
|
1709
784
|
retry: Retry.Retry,
|
|
@@ -1717,8 +792,8 @@ export const deleteInstance: API.OperationMethod<
|
|
|
1717
792
|
DeleteInstanceError,
|
|
1718
793
|
StackitOpContext
|
|
1719
794
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1720
|
-
input: DeleteInstanceRequest
|
|
1721
|
-
output: DeleteInstanceResponse
|
|
795
|
+
input: __S(0, __c0, 0) as any as S.Schema<DeleteInstanceRequest>,
|
|
796
|
+
output: __S(280, __c35, 0) as any as S.Schema<DeleteInstanceResponse>,
|
|
1722
797
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1723
798
|
protocol: StackitProtocol,
|
|
1724
799
|
retry: Retry.Retry,
|
|
@@ -1732,8 +807,8 @@ export const deleteUser: API.OperationMethod<
|
|
|
1732
807
|
DeleteUserError,
|
|
1733
808
|
StackitOpContext
|
|
1734
809
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1735
|
-
input: DeleteUserRequest
|
|
1736
|
-
output: DeleteUserResponse
|
|
810
|
+
input: __S(8, __c1, 0) as any as S.Schema<DeleteUserRequest>,
|
|
811
|
+
output: __S(280, __c35, 0) as any as S.Schema<DeleteUserResponse>,
|
|
1737
812
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
1738
813
|
protocol: StackitProtocol,
|
|
1739
814
|
retry: Retry.Retry,
|
|
@@ -1747,8 +822,8 @@ export const getBackup: API.OperationMethod<
|
|
|
1747
822
|
GetBackupError,
|
|
1748
823
|
StackitOpContext
|
|
1749
824
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1750
|
-
input: GetBackupRequest
|
|
1751
|
-
output: BackupData
|
|
825
|
+
input: __S(16, __c2, 0) as any as S.Schema<GetBackupRequest>,
|
|
826
|
+
output: __S(24, __c3, 0) as any as S.Schema<BackupData>,
|
|
1752
827
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1753
828
|
protocol: StackitProtocol,
|
|
1754
829
|
retry: Retry.Retry,
|
|
@@ -1762,8 +837,8 @@ export const getDatabase: API.OperationMethod<
|
|
|
1762
837
|
GetDatabaseError,
|
|
1763
838
|
StackitOpContext
|
|
1764
839
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1765
|
-
input: GetDatabaseRequest
|
|
1766
|
-
output: GetDatabaseResponse
|
|
840
|
+
input: __S(32, __c4, 0) as any as S.Schema<GetDatabaseRequest>,
|
|
841
|
+
output: __S(40, __c5, 0) as any as S.Schema<GetDatabaseResponse>,
|
|
1767
842
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1768
843
|
protocol: StackitProtocol,
|
|
1769
844
|
retry: Retry.Retry,
|
|
@@ -1777,8 +852,8 @@ export const getInstance: API.OperationMethod<
|
|
|
1777
852
|
GetInstanceError,
|
|
1778
853
|
StackitOpContext
|
|
1779
854
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1780
|
-
input: GetInstanceRequest
|
|
1781
|
-
output: GetInstanceResponse
|
|
855
|
+
input: __S(48, __c6, 0) as any as S.Schema<GetInstanceRequest>,
|
|
856
|
+
output: __S(53, __c6, 5) as any as S.Schema<GetInstanceResponse>,
|
|
1782
857
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1783
858
|
protocol: StackitProtocol,
|
|
1784
859
|
retry: Retry.Retry,
|
|
@@ -1792,8 +867,8 @@ export const getUser: API.OperationMethod<
|
|
|
1792
867
|
GetUserError,
|
|
1793
868
|
StackitOpContext
|
|
1794
869
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1795
|
-
input: GetUserRequest
|
|
1796
|
-
output: GetUserResponse
|
|
870
|
+
input: __S(56, __c7, 0) as any as S.Schema<GetUserRequest>,
|
|
871
|
+
output: __S(57, __c7, 1) as any as S.Schema<GetUserResponse>,
|
|
1797
872
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1798
873
|
protocol: StackitProtocol,
|
|
1799
874
|
retry: Retry.Retry,
|
|
@@ -1807,8 +882,8 @@ export const listBackups: API.OperationMethod<
|
|
|
1807
882
|
ListBackupsError,
|
|
1808
883
|
StackitOpContext
|
|
1809
884
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1810
|
-
input: ListBackupsRequest
|
|
1811
|
-
output: ListBackupsResponse
|
|
885
|
+
input: __S(64, __c8, 0) as any as S.Schema<ListBackupsRequest>,
|
|
886
|
+
output: __S(66, __c8, 2) as any as S.Schema<ListBackupsResponse>,
|
|
1812
887
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1813
888
|
protocol: StackitProtocol,
|
|
1814
889
|
retry: Retry.Retry,
|
|
@@ -1822,8 +897,8 @@ export const listCollations: API.OperationMethod<
|
|
|
1822
897
|
ListCollationsError,
|
|
1823
898
|
StackitOpContext
|
|
1824
899
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1825
|
-
input: ListCollationsRequest
|
|
1826
|
-
output: ListCollationsResponse
|
|
900
|
+
input: __S(80, __c10, 0) as any as S.Schema<ListCollationsRequest>,
|
|
901
|
+
output: __S(81, __c10, 1) as any as S.Schema<ListCollationsResponse>,
|
|
1827
902
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1828
903
|
protocol: StackitProtocol,
|
|
1829
904
|
retry: Retry.Retry,
|
|
@@ -1837,8 +912,8 @@ export const listDatabases: API.OperationMethod<
|
|
|
1837
912
|
ListDatabasesError,
|
|
1838
913
|
StackitOpContext
|
|
1839
914
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1840
|
-
input: ListDatabasesRequest
|
|
1841
|
-
output: ListDatabasesResponse
|
|
915
|
+
input: __S(88, __c11, 0) as any as S.Schema<ListDatabasesRequest>,
|
|
916
|
+
output: __S(90, __c11, 2) as any as S.Schema<ListDatabasesResponse>,
|
|
1842
917
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1843
918
|
protocol: StackitProtocol,
|
|
1844
919
|
retry: Retry.Retry,
|
|
@@ -1852,8 +927,8 @@ export const listFlavors2: API.OperationMethod<
|
|
|
1852
927
|
ListFlavors2Error,
|
|
1853
928
|
StackitOpContext
|
|
1854
929
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1855
|
-
input: ListFlavorsRequest
|
|
1856
|
-
output: ListFlavorsResponse
|
|
930
|
+
input: __S(96, __c12, 0) as any as S.Schema<ListFlavorsRequest>,
|
|
931
|
+
output: __S(101, __c12, 5) as any as S.Schema<ListFlavorsResponse>,
|
|
1857
932
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1858
933
|
protocol: StackitProtocol,
|
|
1859
934
|
retry: Retry.Retry,
|
|
@@ -1867,8 +942,8 @@ export const listInstances: API.OperationMethod<
|
|
|
1867
942
|
ListInstancesError,
|
|
1868
943
|
StackitOpContext
|
|
1869
944
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1870
|
-
input: ListInstancesRequest
|
|
1871
|
-
output: ListInstancesResponse
|
|
945
|
+
input: __S(104, __c13, 0) as any as S.Schema<ListInstancesRequest>,
|
|
946
|
+
output: __S(107, __c13, 3) as any as S.Schema<ListInstancesResponse>,
|
|
1872
947
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1873
948
|
protocol: StackitProtocol,
|
|
1874
949
|
retry: Retry.Retry,
|
|
@@ -1882,8 +957,8 @@ export const listRoles: API.OperationMethod<
|
|
|
1882
957
|
ListRolesError,
|
|
1883
958
|
StackitOpContext
|
|
1884
959
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1885
|
-
input: ListRolesRequest
|
|
1886
|
-
output: ListRolesResponse
|
|
960
|
+
input: __S(112, __c14, 0) as any as S.Schema<ListRolesRequest>,
|
|
961
|
+
output: __S(113, __c14, 1) as any as S.Schema<ListRolesResponse>,
|
|
1887
962
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1888
963
|
protocol: StackitProtocol,
|
|
1889
964
|
retry: Retry.Retry,
|
|
@@ -1897,8 +972,8 @@ export const listUsers: API.OperationMethod<
|
|
|
1897
972
|
ListUsersError,
|
|
1898
973
|
StackitOpContext
|
|
1899
974
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1900
|
-
input: ListUsersRequest
|
|
1901
|
-
output: ListUsersResponse
|
|
975
|
+
input: __S(120, __c15, 0) as any as S.Schema<ListUsersRequest>,
|
|
976
|
+
output: __S(123, __c15, 3) as any as S.Schema<ListUsersResponse>,
|
|
1902
977
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1903
978
|
protocol: StackitProtocol,
|
|
1904
979
|
retry: Retry.Retry,
|
|
@@ -1912,8 +987,8 @@ export const listVersions: API.OperationMethod<
|
|
|
1912
987
|
ListVersionsError,
|
|
1913
988
|
StackitOpContext
|
|
1914
989
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1915
|
-
input: ListVersionsRequest
|
|
1916
|
-
output: ListVersionsResponse
|
|
990
|
+
input: __S(128, __c16, 0) as any as S.Schema<ListVersionsRequest>,
|
|
991
|
+
output: __S(131, __c16, 3) as any as S.Schema<ListVersionsResponse>,
|
|
1917
992
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1918
993
|
protocol: StackitProtocol,
|
|
1919
994
|
retry: Retry.Retry,
|
|
@@ -1932,8 +1007,8 @@ export const partialUpdateDatabase: API.OperationMethod<
|
|
|
1932
1007
|
PartialUpdateDatabaseError,
|
|
1933
1008
|
StackitOpContext
|
|
1934
1009
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1935
|
-
input: PartialUpdateDatabaseRequest
|
|
1936
|
-
output: PartialUpdateDatabaseResponse
|
|
1010
|
+
input: __S(136, __c17, 0) as any as S.Schema<PartialUpdateDatabaseRequest>,
|
|
1011
|
+
output: __S(280, __c35, 0) as any as S.Schema<PartialUpdateDatabaseResponse>,
|
|
1937
1012
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1938
1013
|
protocol: StackitProtocol,
|
|
1939
1014
|
retry: Retry.Retry,
|
|
@@ -1952,8 +1027,8 @@ export const partialUpdateInstance: API.OperationMethod<
|
|
|
1952
1027
|
PartialUpdateInstanceError,
|
|
1953
1028
|
StackitOpContext
|
|
1954
1029
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1955
|
-
input: PartialUpdateInstanceRequest
|
|
1956
|
-
output: PartialUpdateInstanceResponse
|
|
1030
|
+
input: __S(145, __c18, 1) as any as S.Schema<PartialUpdateInstanceRequest>,
|
|
1031
|
+
output: __S(280, __c35, 0) as any as S.Schema<PartialUpdateInstanceResponse>,
|
|
1957
1032
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1958
1033
|
protocol: StackitProtocol,
|
|
1959
1034
|
retry: Retry.Retry,
|
|
@@ -1972,8 +1047,8 @@ export const partialUpdateUser: API.OperationMethod<
|
|
|
1972
1047
|
PartialUpdateUserError,
|
|
1973
1048
|
StackitOpContext
|
|
1974
1049
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1975
|
-
input: PartialUpdateUserRequest
|
|
1976
|
-
output: PartialUpdateUserResponse
|
|
1050
|
+
input: __S(160, __c20, 0) as any as S.Schema<PartialUpdateUserRequest>,
|
|
1051
|
+
output: __S(280, __c35, 0) as any as S.Schema<PartialUpdateUserResponse>,
|
|
1977
1052
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1978
1053
|
protocol: StackitProtocol,
|
|
1979
1054
|
retry: Retry.Retry,
|
|
@@ -1992,8 +1067,8 @@ export const resetUserPassword: API.OperationMethod<
|
|
|
1992
1067
|
ResetUserPasswordError,
|
|
1993
1068
|
StackitOpContext
|
|
1994
1069
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1995
|
-
input: ResetUserPasswordRequest
|
|
1996
|
-
output: ResetUserPasswordResponse
|
|
1070
|
+
input: __S(168, __c21, 0) as any as S.Schema<ResetUserPasswordRequest>,
|
|
1071
|
+
output: __S(169, __c21, 1) as any as S.Schema<ResetUserPasswordResponse>,
|
|
1997
1072
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
1998
1073
|
protocol: StackitProtocol,
|
|
1999
1074
|
retry: Retry.Retry,
|
|
@@ -2012,8 +1087,8 @@ export const updateDatabase: API.OperationMethod<
|
|
|
2012
1087
|
UpdateDatabaseError,
|
|
2013
1088
|
StackitOpContext
|
|
2014
1089
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2015
|
-
input: UpdateDatabaseRequest
|
|
2016
|
-
output: UpdateDatabaseResponse
|
|
1090
|
+
input: __S(176, __c22, 0) as any as S.Schema<UpdateDatabaseRequest>,
|
|
1091
|
+
output: __S(280, __c35, 0) as any as S.Schema<UpdateDatabaseResponse>,
|
|
2017
1092
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
2018
1093
|
protocol: StackitProtocol,
|
|
2019
1094
|
retry: Retry.Retry,
|
|
@@ -2032,8 +1107,8 @@ export const updateInstance: API.OperationMethod<
|
|
|
2032
1107
|
UpdateInstanceError,
|
|
2033
1108
|
StackitOpContext
|
|
2034
1109
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2035
|
-
input: UpdateInstanceRequest
|
|
2036
|
-
output: UpdateInstanceResponse
|
|
1110
|
+
input: __S(185, __c23, 1) as any as S.Schema<UpdateInstanceRequest>,
|
|
1111
|
+
output: __S(280, __c35, 0) as any as S.Schema<UpdateInstanceResponse>,
|
|
2037
1112
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
2038
1113
|
protocol: StackitProtocol,
|
|
2039
1114
|
retry: Retry.Retry,
|
|
@@ -2052,8 +1127,8 @@ export const updateInstanceProtection: API.OperationMethod<
|
|
|
2052
1127
|
UpdateInstanceProtectionError,
|
|
2053
1128
|
StackitOpContext
|
|
2054
1129
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2055
|
-
input: UpdateInstanceProtectionRequest
|
|
2056
|
-
output: UpdateInstanceProtectionResponse
|
|
1130
|
+
input: __S(192, __c24, 0) as any as S.Schema<UpdateInstanceProtectionRequest>,
|
|
1131
|
+
output: __S(193, __c24, 1) as any as S.Schema<UpdateInstanceProtectionResponse>,
|
|
2057
1132
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
2058
1133
|
protocol: StackitProtocol,
|
|
2059
1134
|
retry: Retry.Retry,
|
|
@@ -2072,9 +1147,914 @@ export const updateUser: API.OperationMethod<
|
|
|
2072
1147
|
UpdateUserError,
|
|
2073
1148
|
StackitOpContext
|
|
2074
1149
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2075
|
-
input: UpdateUserRequest
|
|
2076
|
-
output: UpdateUserResponse
|
|
1150
|
+
input: __S(200, __c25, 0) as any as S.Schema<UpdateUserRequest>,
|
|
1151
|
+
output: __S(280, __c35, 0) as any as S.Schema<UpdateUserResponse>,
|
|
2077
1152
|
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
2078
1153
|
protocol: StackitProtocol,
|
|
2079
1154
|
retry: Retry.Retry,
|
|
2080
1155
|
}));
|
|
1156
|
+
|
|
1157
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
1158
|
+
function __c0(j: number): any {
|
|
1159
|
+
switch (j) {
|
|
1160
|
+
case 0:
|
|
1161
|
+
return S.suspend(() =>
|
|
1162
|
+
S.Struct({
|
|
1163
|
+
projectId: S.String.pipe(T.Label()),
|
|
1164
|
+
region: S.String.pipe(T.Label()),
|
|
1165
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1166
|
+
}).pipe(
|
|
1167
|
+
T.Http({
|
|
1168
|
+
method: "DELETE",
|
|
1169
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1170
|
+
code: 200,
|
|
1171
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1172
|
+
}),
|
|
1173
|
+
),
|
|
1174
|
+
).annotate({ identifier: "DeleteInstanceRequest" });
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
function __c1(j: number): any {
|
|
1178
|
+
switch (j) {
|
|
1179
|
+
case 0:
|
|
1180
|
+
return S.suspend(() =>
|
|
1181
|
+
S.Struct({
|
|
1182
|
+
projectId: S.String.pipe(T.Label()),
|
|
1183
|
+
region: S.String.pipe(T.Label()),
|
|
1184
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1185
|
+
userId: S.Number.pipe(T.Label()),
|
|
1186
|
+
}).pipe(
|
|
1187
|
+
T.Http({
|
|
1188
|
+
method: "DELETE",
|
|
1189
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1190
|
+
code: 200,
|
|
1191
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1192
|
+
}),
|
|
1193
|
+
),
|
|
1194
|
+
).annotate({ identifier: "DeleteUserRequest" });
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
function __c2(j: number): any {
|
|
1198
|
+
switch (j) {
|
|
1199
|
+
case 0:
|
|
1200
|
+
return S.suspend(() =>
|
|
1201
|
+
S.Struct({
|
|
1202
|
+
projectId: S.String.pipe(T.Label()),
|
|
1203
|
+
region: S.String.pipe(T.Label()),
|
|
1204
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1205
|
+
backupId: S.Number.pipe(T.Label()),
|
|
1206
|
+
}).pipe(
|
|
1207
|
+
T.Http({
|
|
1208
|
+
method: "GET",
|
|
1209
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
1210
|
+
code: 200,
|
|
1211
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1212
|
+
}),
|
|
1213
|
+
),
|
|
1214
|
+
).annotate({ identifier: "GetBackupRequest" });
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
function __c3(j: number): any {
|
|
1218
|
+
switch (j) {
|
|
1219
|
+
case 0:
|
|
1220
|
+
return S.suspend(() =>
|
|
1221
|
+
S.Struct({
|
|
1222
|
+
completionTime: S.String,
|
|
1223
|
+
id: S.Number,
|
|
1224
|
+
name: S.String,
|
|
1225
|
+
retainedUntil: S.String,
|
|
1226
|
+
size: S.Number,
|
|
1227
|
+
type: S.String,
|
|
1228
|
+
}),
|
|
1229
|
+
).annotate({ identifier: "BackupData" });
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
function __c4(j: number): any {
|
|
1233
|
+
switch (j) {
|
|
1234
|
+
case 0:
|
|
1235
|
+
return S.suspend(() =>
|
|
1236
|
+
S.Struct({
|
|
1237
|
+
projectId: S.String.pipe(T.Label()),
|
|
1238
|
+
region: S.String.pipe(T.Label()),
|
|
1239
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1240
|
+
databaseId: S.Number.pipe(T.Label()),
|
|
1241
|
+
}).pipe(
|
|
1242
|
+
T.Http({
|
|
1243
|
+
method: "GET",
|
|
1244
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
1245
|
+
code: 200,
|
|
1246
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1247
|
+
}),
|
|
1248
|
+
),
|
|
1249
|
+
).annotate({ identifier: "GetDatabaseRequest" });
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
function __c5(j: number): any {
|
|
1253
|
+
switch (j) {
|
|
1254
|
+
case 0:
|
|
1255
|
+
return S.suspend(() =>
|
|
1256
|
+
S.Struct({
|
|
1257
|
+
id: S.Number,
|
|
1258
|
+
name: S.String,
|
|
1259
|
+
owner: S.String,
|
|
1260
|
+
}),
|
|
1261
|
+
).annotate({ identifier: "GetDatabaseResponse" });
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
function __c6(j: number): any {
|
|
1265
|
+
switch (j) {
|
|
1266
|
+
case 0:
|
|
1267
|
+
return S.suspend(() =>
|
|
1268
|
+
S.Struct({
|
|
1269
|
+
projectId: S.String.pipe(T.Label()),
|
|
1270
|
+
region: S.String.pipe(T.Label()),
|
|
1271
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1272
|
+
}).pipe(
|
|
1273
|
+
T.Http({
|
|
1274
|
+
method: "GET",
|
|
1275
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1276
|
+
code: 200,
|
|
1277
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1278
|
+
}),
|
|
1279
|
+
),
|
|
1280
|
+
).annotate({ identifier: "GetInstanceRequest" });
|
|
1281
|
+
case 1:
|
|
1282
|
+
return S.suspend(() =>
|
|
1283
|
+
S.Struct({
|
|
1284
|
+
host: S.String,
|
|
1285
|
+
port: S.Number,
|
|
1286
|
+
}),
|
|
1287
|
+
).annotate({ identifier: "InstanceConnectionInfoWrite" });
|
|
1288
|
+
case 2:
|
|
1289
|
+
return S.suspend(() =>
|
|
1290
|
+
S.Struct({
|
|
1291
|
+
write: __S(49, __c6, 1),
|
|
1292
|
+
}),
|
|
1293
|
+
).annotate({ identifier: "InstanceConnectionInfo" });
|
|
1294
|
+
case 3:
|
|
1295
|
+
return S.suspend(() =>
|
|
1296
|
+
S.Struct({
|
|
1297
|
+
accessScope: S.optional(S.String),
|
|
1298
|
+
acl: __S(256, __c32, 0),
|
|
1299
|
+
instanceAddress: S.optional(S.String),
|
|
1300
|
+
routerAddress: S.optional(S.String),
|
|
1301
|
+
}),
|
|
1302
|
+
).annotate({ identifier: "InstanceNetwork" });
|
|
1303
|
+
case 4:
|
|
1304
|
+
return S.suspend(() =>
|
|
1305
|
+
S.Struct({
|
|
1306
|
+
class: S.optional(S.String),
|
|
1307
|
+
size: S.optional(S.Number),
|
|
1308
|
+
}),
|
|
1309
|
+
).annotate({ identifier: "Storage" });
|
|
1310
|
+
case 5:
|
|
1311
|
+
return S.suspend(() =>
|
|
1312
|
+
S.Struct({
|
|
1313
|
+
backupSchedule: S.String,
|
|
1314
|
+
connectionInfo: __S(50, __c6, 2),
|
|
1315
|
+
encryption: S.optional(__S(240, __c30, 0)),
|
|
1316
|
+
flavorId: S.String,
|
|
1317
|
+
id: S.String,
|
|
1318
|
+
isDeletable: S.Boolean,
|
|
1319
|
+
labels: S.optional(__S(248, __c31, 0)),
|
|
1320
|
+
name: S.String,
|
|
1321
|
+
network: __S(51, __c6, 3),
|
|
1322
|
+
retentionDays: S.NullOr(S.Number),
|
|
1323
|
+
state: S.String,
|
|
1324
|
+
storage: __S(52, __c6, 4),
|
|
1325
|
+
version: S.String,
|
|
1326
|
+
}),
|
|
1327
|
+
).annotate({ identifier: "GetInstanceResponse" });
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
function __c7(j: number): any {
|
|
1331
|
+
switch (j) {
|
|
1332
|
+
case 0:
|
|
1333
|
+
return S.suspend(() =>
|
|
1334
|
+
S.Struct({
|
|
1335
|
+
projectId: S.String.pipe(T.Label()),
|
|
1336
|
+
region: S.String.pipe(T.Label()),
|
|
1337
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1338
|
+
userId: S.Number.pipe(T.Label()),
|
|
1339
|
+
}).pipe(
|
|
1340
|
+
T.Http({
|
|
1341
|
+
method: "GET",
|
|
1342
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1343
|
+
code: 200,
|
|
1344
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1345
|
+
}),
|
|
1346
|
+
),
|
|
1347
|
+
).annotate({ identifier: "GetUserRequest" });
|
|
1348
|
+
case 1:
|
|
1349
|
+
return S.suspend(() =>
|
|
1350
|
+
S.Struct({
|
|
1351
|
+
id: S.Number,
|
|
1352
|
+
name: S.String,
|
|
1353
|
+
roles: __S(256, __c32, 0),
|
|
1354
|
+
state: S.String,
|
|
1355
|
+
}),
|
|
1356
|
+
).annotate({ identifier: "GetUserResponse" });
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
function __c8(j: number): any {
|
|
1360
|
+
switch (j) {
|
|
1361
|
+
case 0:
|
|
1362
|
+
return S.suspend(() =>
|
|
1363
|
+
S.Struct({
|
|
1364
|
+
projectId: S.String.pipe(T.Label()),
|
|
1365
|
+
region: S.String.pipe(T.Label()),
|
|
1366
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1367
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1368
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1369
|
+
sort: S.optional(S.String.pipe(T.Query())),
|
|
1370
|
+
}).pipe(
|
|
1371
|
+
T.Http({
|
|
1372
|
+
method: "GET",
|
|
1373
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
1374
|
+
code: 200,
|
|
1375
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1376
|
+
}),
|
|
1377
|
+
),
|
|
1378
|
+
).annotate({ identifier: "ListBackupsRequest" });
|
|
1379
|
+
case 1:
|
|
1380
|
+
return S.Array(__S(24, __c3, 0));
|
|
1381
|
+
case 2:
|
|
1382
|
+
return S.suspend(() =>
|
|
1383
|
+
S.Struct({
|
|
1384
|
+
backups: __S(65, __c8, 1),
|
|
1385
|
+
pagination: __S(72, __c9, 0),
|
|
1386
|
+
}),
|
|
1387
|
+
).annotate({ identifier: "ListBackupsResponse" });
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
function __c9(j: number): any {
|
|
1391
|
+
switch (j) {
|
|
1392
|
+
case 0:
|
|
1393
|
+
return S.suspend(() =>
|
|
1394
|
+
S.Struct({
|
|
1395
|
+
page: S.Number,
|
|
1396
|
+
size: S.Number,
|
|
1397
|
+
sort: S.String,
|
|
1398
|
+
totalPages: S.Number,
|
|
1399
|
+
totalRows: S.Number,
|
|
1400
|
+
}),
|
|
1401
|
+
).annotate({ identifier: "Pagination" });
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
function __c10(j: number): any {
|
|
1405
|
+
switch (j) {
|
|
1406
|
+
case 0:
|
|
1407
|
+
return S.suspend(() =>
|
|
1408
|
+
S.Struct({
|
|
1409
|
+
projectId: S.String.pipe(T.Label()),
|
|
1410
|
+
region: S.String.pipe(T.Label()),
|
|
1411
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1412
|
+
}).pipe(
|
|
1413
|
+
T.Http({
|
|
1414
|
+
method: "GET",
|
|
1415
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",
|
|
1416
|
+
code: 200,
|
|
1417
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1418
|
+
}),
|
|
1419
|
+
),
|
|
1420
|
+
).annotate({ identifier: "ListCollationsRequest" });
|
|
1421
|
+
case 1:
|
|
1422
|
+
return S.suspend(() =>
|
|
1423
|
+
S.Struct({
|
|
1424
|
+
collations: __S(256, __c32, 0),
|
|
1425
|
+
}),
|
|
1426
|
+
).annotate({ identifier: "ListCollationsResponse" });
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
function __c11(j: number): any {
|
|
1430
|
+
switch (j) {
|
|
1431
|
+
case 0:
|
|
1432
|
+
return S.suspend(() =>
|
|
1433
|
+
S.Struct({
|
|
1434
|
+
projectId: S.String.pipe(T.Label()),
|
|
1435
|
+
region: S.String.pipe(T.Label()),
|
|
1436
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1437
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1438
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1439
|
+
sort: S.optional(S.String.pipe(T.Query())),
|
|
1440
|
+
}).pipe(
|
|
1441
|
+
T.Http({
|
|
1442
|
+
method: "GET",
|
|
1443
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
1444
|
+
code: 200,
|
|
1445
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1446
|
+
}),
|
|
1447
|
+
),
|
|
1448
|
+
).annotate({ identifier: "ListDatabasesRequest" });
|
|
1449
|
+
case 1:
|
|
1450
|
+
return S.Array(__S(40, __c5, 0));
|
|
1451
|
+
case 2:
|
|
1452
|
+
return S.suspend(() =>
|
|
1453
|
+
S.Struct({
|
|
1454
|
+
databases: __S(89, __c11, 1),
|
|
1455
|
+
pagination: __S(72, __c9, 0),
|
|
1456
|
+
}),
|
|
1457
|
+
).annotate({ identifier: "ListDatabasesResponse" });
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
function __c12(j: number): any {
|
|
1461
|
+
switch (j) {
|
|
1462
|
+
case 0:
|
|
1463
|
+
return S.suspend(() =>
|
|
1464
|
+
S.Struct({
|
|
1465
|
+
projectId: S.String.pipe(T.Label()),
|
|
1466
|
+
region: S.String.pipe(T.Label()),
|
|
1467
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1468
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1469
|
+
sort: S.optional(S.String.pipe(T.Query())),
|
|
1470
|
+
}).pipe(
|
|
1471
|
+
T.Http({
|
|
1472
|
+
method: "GET",
|
|
1473
|
+
uri: "/v3/projects/{projectId}/regions/{region}/flavors",
|
|
1474
|
+
code: 200,
|
|
1475
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1476
|
+
}),
|
|
1477
|
+
),
|
|
1478
|
+
).annotate({ identifier: "ListFlavorsRequest" });
|
|
1479
|
+
case 1:
|
|
1480
|
+
return S.suspend(() =>
|
|
1481
|
+
S.Struct({
|
|
1482
|
+
class: S.String,
|
|
1483
|
+
maxIoPerSec: S.Number,
|
|
1484
|
+
maxThroughInMb: S.Number,
|
|
1485
|
+
}),
|
|
1486
|
+
).annotate({ identifier: "FlavorStorageClassesStorageClass" });
|
|
1487
|
+
case 2:
|
|
1488
|
+
return S.Array(__S(97, __c12, 1));
|
|
1489
|
+
case 3:
|
|
1490
|
+
return S.suspend(() =>
|
|
1491
|
+
S.Struct({
|
|
1492
|
+
cpu: S.Number,
|
|
1493
|
+
description: S.String,
|
|
1494
|
+
id: S.String,
|
|
1495
|
+
maxGB: S.Number,
|
|
1496
|
+
memory: S.Number,
|
|
1497
|
+
minGB: S.Number,
|
|
1498
|
+
nodeType: S.String,
|
|
1499
|
+
storageClasses: __S(98, __c12, 2),
|
|
1500
|
+
}),
|
|
1501
|
+
).annotate({ identifier: "ListFlavors" });
|
|
1502
|
+
case 4:
|
|
1503
|
+
return S.Array(__S(99, __c12, 3));
|
|
1504
|
+
case 5:
|
|
1505
|
+
return S.suspend(() =>
|
|
1506
|
+
S.Struct({
|
|
1507
|
+
flavors: __S(100, __c12, 4),
|
|
1508
|
+
pagination: __S(72, __c9, 0),
|
|
1509
|
+
}),
|
|
1510
|
+
).annotate({ identifier: "ListFlavorsResponse" });
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
function __c13(j: number): any {
|
|
1514
|
+
switch (j) {
|
|
1515
|
+
case 0:
|
|
1516
|
+
return S.suspend(() =>
|
|
1517
|
+
S.Struct({
|
|
1518
|
+
projectId: S.String.pipe(T.Label()),
|
|
1519
|
+
region: S.String.pipe(T.Label()),
|
|
1520
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1521
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1522
|
+
sort: S.optional(S.String.pipe(T.Query())),
|
|
1523
|
+
}).pipe(
|
|
1524
|
+
T.Http({
|
|
1525
|
+
method: "GET",
|
|
1526
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
1527
|
+
code: 200,
|
|
1528
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1529
|
+
}),
|
|
1530
|
+
),
|
|
1531
|
+
).annotate({ identifier: "ListInstancesRequest" });
|
|
1532
|
+
case 1:
|
|
1533
|
+
return S.suspend(() =>
|
|
1534
|
+
S.Struct({
|
|
1535
|
+
id: S.String,
|
|
1536
|
+
isDeletable: S.Boolean,
|
|
1537
|
+
name: S.String,
|
|
1538
|
+
state: S.String,
|
|
1539
|
+
}),
|
|
1540
|
+
).annotate({ identifier: "ListInstance" });
|
|
1541
|
+
case 2:
|
|
1542
|
+
return S.Array(__S(105, __c13, 1));
|
|
1543
|
+
case 3:
|
|
1544
|
+
return S.suspend(() =>
|
|
1545
|
+
S.Struct({
|
|
1546
|
+
instances: __S(106, __c13, 2),
|
|
1547
|
+
pagination: __S(72, __c9, 0),
|
|
1548
|
+
}),
|
|
1549
|
+
).annotate({ identifier: "ListInstancesResponse" });
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
function __c14(j: number): any {
|
|
1553
|
+
switch (j) {
|
|
1554
|
+
case 0:
|
|
1555
|
+
return S.suspend(() =>
|
|
1556
|
+
S.Struct({
|
|
1557
|
+
projectId: S.String.pipe(T.Label()),
|
|
1558
|
+
region: S.String.pipe(T.Label()),
|
|
1559
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1560
|
+
}).pipe(
|
|
1561
|
+
T.Http({
|
|
1562
|
+
method: "GET",
|
|
1563
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",
|
|
1564
|
+
code: 200,
|
|
1565
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1566
|
+
}),
|
|
1567
|
+
),
|
|
1568
|
+
).annotate({ identifier: "ListRolesRequest" });
|
|
1569
|
+
case 1:
|
|
1570
|
+
return S.suspend(() =>
|
|
1571
|
+
S.Struct({
|
|
1572
|
+
roles: __S(256, __c32, 0),
|
|
1573
|
+
}),
|
|
1574
|
+
).annotate({ identifier: "ListRolesResponse" });
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
function __c15(j: number): any {
|
|
1578
|
+
switch (j) {
|
|
1579
|
+
case 0:
|
|
1580
|
+
return S.suspend(() =>
|
|
1581
|
+
S.Struct({
|
|
1582
|
+
projectId: S.String.pipe(T.Label()),
|
|
1583
|
+
region: S.String.pipe(T.Label()),
|
|
1584
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1585
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1586
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1587
|
+
sort: S.optional(S.String.pipe(T.Query())),
|
|
1588
|
+
}).pipe(
|
|
1589
|
+
T.Http({
|
|
1590
|
+
method: "GET",
|
|
1591
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
1592
|
+
code: 200,
|
|
1593
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1594
|
+
}),
|
|
1595
|
+
),
|
|
1596
|
+
).annotate({ identifier: "ListUsersRequest" });
|
|
1597
|
+
case 1:
|
|
1598
|
+
return S.suspend(() =>
|
|
1599
|
+
S.Struct({
|
|
1600
|
+
id: S.Number,
|
|
1601
|
+
name: S.String,
|
|
1602
|
+
state: S.String,
|
|
1603
|
+
}),
|
|
1604
|
+
).annotate({ identifier: "ListUser" });
|
|
1605
|
+
case 2:
|
|
1606
|
+
return S.Array(__S(121, __c15, 1));
|
|
1607
|
+
case 3:
|
|
1608
|
+
return S.suspend(() =>
|
|
1609
|
+
S.Struct({
|
|
1610
|
+
pagination: __S(72, __c9, 0),
|
|
1611
|
+
users: __S(122, __c15, 2),
|
|
1612
|
+
}),
|
|
1613
|
+
).annotate({ identifier: "ListUsersResponse" });
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
function __c16(j: number): any {
|
|
1617
|
+
switch (j) {
|
|
1618
|
+
case 0:
|
|
1619
|
+
return S.suspend(() =>
|
|
1620
|
+
S.Struct({
|
|
1621
|
+
projectId: S.String.pipe(T.Label()),
|
|
1622
|
+
region: S.String.pipe(T.Label()),
|
|
1623
|
+
}).pipe(
|
|
1624
|
+
T.Http({
|
|
1625
|
+
method: "GET",
|
|
1626
|
+
uri: "/v3/projects/{projectId}/regions/{region}/versions",
|
|
1627
|
+
code: 200,
|
|
1628
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1629
|
+
}),
|
|
1630
|
+
),
|
|
1631
|
+
).annotate({ identifier: "ListVersionsRequest" });
|
|
1632
|
+
case 1:
|
|
1633
|
+
return S.suspend(() =>
|
|
1634
|
+
S.Struct({
|
|
1635
|
+
beta: S.Boolean,
|
|
1636
|
+
deprecated: S.String,
|
|
1637
|
+
recommend: S.Boolean,
|
|
1638
|
+
version: S.String,
|
|
1639
|
+
}),
|
|
1640
|
+
).annotate({ identifier: "Version" });
|
|
1641
|
+
case 2:
|
|
1642
|
+
return S.Array(__S(129, __c16, 1));
|
|
1643
|
+
case 3:
|
|
1644
|
+
return S.suspend(() =>
|
|
1645
|
+
S.Struct({
|
|
1646
|
+
versions: __S(130, __c16, 2),
|
|
1647
|
+
}),
|
|
1648
|
+
).annotate({ identifier: "ListVersionsResponse" });
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
function __c17(j: number): any {
|
|
1652
|
+
switch (j) {
|
|
1653
|
+
case 0:
|
|
1654
|
+
return S.suspend(() =>
|
|
1655
|
+
S.Struct({
|
|
1656
|
+
projectId: S.String.pipe(T.Label()),
|
|
1657
|
+
region: S.String.pipe(T.Label()),
|
|
1658
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1659
|
+
databaseId: S.Number.pipe(T.Label()),
|
|
1660
|
+
name: S.optional(S.String),
|
|
1661
|
+
owner: S.optional(S.String),
|
|
1662
|
+
}).pipe(
|
|
1663
|
+
T.Http({
|
|
1664
|
+
method: "PATCH",
|
|
1665
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
1666
|
+
code: 200,
|
|
1667
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1668
|
+
}),
|
|
1669
|
+
),
|
|
1670
|
+
).annotate({ identifier: "PartialUpdateDatabaseRequest" });
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
function __c18(j: number): any {
|
|
1674
|
+
switch (j) {
|
|
1675
|
+
case 0:
|
|
1676
|
+
return S.suspend(() =>
|
|
1677
|
+
S.Struct({
|
|
1678
|
+
acl: S.optional(__S(256, __c32, 0)),
|
|
1679
|
+
}),
|
|
1680
|
+
).annotate({ identifier: "InstanceNetworkOpt" });
|
|
1681
|
+
case 1:
|
|
1682
|
+
return S.suspend(() =>
|
|
1683
|
+
S.Struct({
|
|
1684
|
+
projectId: S.String.pipe(T.Label()),
|
|
1685
|
+
region: S.String.pipe(T.Label()),
|
|
1686
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1687
|
+
backupSchedule: S.optional(S.String),
|
|
1688
|
+
flavorId: S.optional(S.String),
|
|
1689
|
+
labels: S.optional(__S(248, __c31, 0)),
|
|
1690
|
+
name: S.optional(S.String),
|
|
1691
|
+
network: S.optional(__S(144, __c18, 0)),
|
|
1692
|
+
retentionDays: S.optional(S.Number),
|
|
1693
|
+
storage: S.optional(__S(152, __c19, 0)),
|
|
1694
|
+
version: S.optional(S.String),
|
|
1695
|
+
}).pipe(
|
|
1696
|
+
T.Http({
|
|
1697
|
+
method: "PATCH",
|
|
1698
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1699
|
+
code: 200,
|
|
1700
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1701
|
+
}),
|
|
1702
|
+
),
|
|
1703
|
+
).annotate({ identifier: "PartialUpdateInstanceRequest" });
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
function __c19(j: number): any {
|
|
1707
|
+
switch (j) {
|
|
1708
|
+
case 0:
|
|
1709
|
+
return S.suspend(() =>
|
|
1710
|
+
S.Struct({
|
|
1711
|
+
size: S.optional(S.Number),
|
|
1712
|
+
}),
|
|
1713
|
+
).annotate({ identifier: "StorageUpdate" });
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
function __c20(j: number): any {
|
|
1717
|
+
switch (j) {
|
|
1718
|
+
case 0:
|
|
1719
|
+
return S.suspend(() =>
|
|
1720
|
+
S.Struct({
|
|
1721
|
+
projectId: S.String.pipe(T.Label()),
|
|
1722
|
+
region: S.String.pipe(T.Label()),
|
|
1723
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1724
|
+
userId: S.Number.pipe(T.Label()),
|
|
1725
|
+
name: S.optional(S.String),
|
|
1726
|
+
roles: S.optional(__S(256, __c32, 0)),
|
|
1727
|
+
}).pipe(
|
|
1728
|
+
T.Http({
|
|
1729
|
+
method: "PATCH",
|
|
1730
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1731
|
+
code: 200,
|
|
1732
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1733
|
+
}),
|
|
1734
|
+
),
|
|
1735
|
+
).annotate({ identifier: "PartialUpdateUserRequest" });
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
function __c21(j: number): any {
|
|
1739
|
+
switch (j) {
|
|
1740
|
+
case 0:
|
|
1741
|
+
return S.suspend(() =>
|
|
1742
|
+
S.Struct({
|
|
1743
|
+
projectId: S.String.pipe(T.Label()),
|
|
1744
|
+
region: S.String.pipe(T.Label()),
|
|
1745
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1746
|
+
userId: S.Number.pipe(T.Label()),
|
|
1747
|
+
}).pipe(
|
|
1748
|
+
T.Http({
|
|
1749
|
+
method: "POST",
|
|
1750
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
1751
|
+
code: 200,
|
|
1752
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1753
|
+
}),
|
|
1754
|
+
),
|
|
1755
|
+
).annotate({ identifier: "ResetUserPasswordRequest" });
|
|
1756
|
+
case 1:
|
|
1757
|
+
return S.suspend(() =>
|
|
1758
|
+
S.Struct({
|
|
1759
|
+
name: S.String,
|
|
1760
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
1761
|
+
state: S.String,
|
|
1762
|
+
}),
|
|
1763
|
+
).annotate({ identifier: "ResetUserPasswordResponse" });
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
function __c22(j: number): any {
|
|
1767
|
+
switch (j) {
|
|
1768
|
+
case 0:
|
|
1769
|
+
return S.suspend(() =>
|
|
1770
|
+
S.Struct({
|
|
1771
|
+
projectId: S.String.pipe(T.Label()),
|
|
1772
|
+
region: S.String.pipe(T.Label()),
|
|
1773
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1774
|
+
databaseId: S.Number.pipe(T.Label()),
|
|
1775
|
+
name: S.String,
|
|
1776
|
+
owner: S.String,
|
|
1777
|
+
}).pipe(
|
|
1778
|
+
T.Http({
|
|
1779
|
+
method: "PUT",
|
|
1780
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
1781
|
+
code: 200,
|
|
1782
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1783
|
+
}),
|
|
1784
|
+
),
|
|
1785
|
+
).annotate({ identifier: "UpdateDatabaseRequest" });
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
function __c23(j: number): any {
|
|
1789
|
+
switch (j) {
|
|
1790
|
+
case 0:
|
|
1791
|
+
return S.suspend(() =>
|
|
1792
|
+
S.Struct({
|
|
1793
|
+
acl: __S(256, __c32, 0),
|
|
1794
|
+
}),
|
|
1795
|
+
).annotate({ identifier: "InstanceNetworkUpdate" });
|
|
1796
|
+
case 1:
|
|
1797
|
+
return S.suspend(() =>
|
|
1798
|
+
S.Struct({
|
|
1799
|
+
projectId: S.String.pipe(T.Label()),
|
|
1800
|
+
region: S.String.pipe(T.Label()),
|
|
1801
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1802
|
+
backupSchedule: S.String,
|
|
1803
|
+
flavorId: S.String,
|
|
1804
|
+
labels: S.optional(__S(248, __c31, 0)),
|
|
1805
|
+
name: S.String,
|
|
1806
|
+
network: __S(184, __c23, 0),
|
|
1807
|
+
retentionDays: S.NullOr(S.Number),
|
|
1808
|
+
storage: __S(152, __c19, 0),
|
|
1809
|
+
version: S.String,
|
|
1810
|
+
}).pipe(
|
|
1811
|
+
T.Http({
|
|
1812
|
+
method: "PUT",
|
|
1813
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1814
|
+
code: 200,
|
|
1815
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1816
|
+
}),
|
|
1817
|
+
),
|
|
1818
|
+
).annotate({ identifier: "UpdateInstanceRequest" });
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
function __c24(j: number): any {
|
|
1822
|
+
switch (j) {
|
|
1823
|
+
case 0:
|
|
1824
|
+
return S.suspend(() =>
|
|
1825
|
+
S.Struct({
|
|
1826
|
+
projectId: S.String.pipe(T.Label()),
|
|
1827
|
+
region: S.String.pipe(T.Label()),
|
|
1828
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1829
|
+
isDeletable: S.Boolean,
|
|
1830
|
+
}).pipe(
|
|
1831
|
+
T.Http({
|
|
1832
|
+
method: "POST",
|
|
1833
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",
|
|
1834
|
+
code: 200,
|
|
1835
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1836
|
+
}),
|
|
1837
|
+
),
|
|
1838
|
+
).annotate({ identifier: "UpdateInstanceProtectionRequest" });
|
|
1839
|
+
case 1:
|
|
1840
|
+
return S.suspend(() =>
|
|
1841
|
+
S.Struct({
|
|
1842
|
+
isDeletable: S.Boolean,
|
|
1843
|
+
}),
|
|
1844
|
+
).annotate({ identifier: "UpdateInstanceProtectionResponse" });
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
function __c25(j: number): any {
|
|
1848
|
+
switch (j) {
|
|
1849
|
+
case 0:
|
|
1850
|
+
return S.suspend(() =>
|
|
1851
|
+
S.Struct({
|
|
1852
|
+
projectId: S.String.pipe(T.Label()),
|
|
1853
|
+
region: S.String.pipe(T.Label()),
|
|
1854
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1855
|
+
userId: S.Number.pipe(T.Label()),
|
|
1856
|
+
name: S.optional(S.String),
|
|
1857
|
+
roles: __S(256, __c32, 0),
|
|
1858
|
+
}).pipe(
|
|
1859
|
+
T.Http({
|
|
1860
|
+
method: "PUT",
|
|
1861
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1862
|
+
code: 200,
|
|
1863
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1864
|
+
}),
|
|
1865
|
+
),
|
|
1866
|
+
).annotate({ identifier: "UpdateUserRequest" });
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
function __c26(j: number): any {
|
|
1870
|
+
switch (j) {
|
|
1871
|
+
case 0:
|
|
1872
|
+
return S.suspend(() =>
|
|
1873
|
+
S.Struct({
|
|
1874
|
+
class: S.String,
|
|
1875
|
+
name: S.optional(S.String),
|
|
1876
|
+
size: S.Number,
|
|
1877
|
+
}),
|
|
1878
|
+
).annotate({ identifier: "CloneInstanceOverrides" });
|
|
1879
|
+
case 1:
|
|
1880
|
+
return S.suspend(() =>
|
|
1881
|
+
S.Struct({
|
|
1882
|
+
projectId: S.String.pipe(T.Label()),
|
|
1883
|
+
region: S.String.pipe(T.Label()),
|
|
1884
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1885
|
+
instanceOverrides: __S(208, __c26, 0),
|
|
1886
|
+
pointInTime: S.String,
|
|
1887
|
+
}).pipe(
|
|
1888
|
+
T.Http({
|
|
1889
|
+
method: "POST",
|
|
1890
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",
|
|
1891
|
+
code: 200,
|
|
1892
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1893
|
+
}),
|
|
1894
|
+
),
|
|
1895
|
+
).annotate({ identifier: "CloneInstanceRequest" });
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
function __c27(j: number): any {
|
|
1899
|
+
switch (j) {
|
|
1900
|
+
case 0:
|
|
1901
|
+
return S.suspend(() =>
|
|
1902
|
+
S.Struct({
|
|
1903
|
+
id: S.String,
|
|
1904
|
+
}),
|
|
1905
|
+
).annotate({ identifier: "CloneInstanceResponse" });
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
function __c28(j: number): any {
|
|
1909
|
+
switch (j) {
|
|
1910
|
+
case 0:
|
|
1911
|
+
return S.suspend(() =>
|
|
1912
|
+
S.Struct({
|
|
1913
|
+
projectId: S.String.pipe(T.Label()),
|
|
1914
|
+
region: S.String.pipe(T.Label()),
|
|
1915
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1916
|
+
name: S.String,
|
|
1917
|
+
owner: S.optional(S.String),
|
|
1918
|
+
}).pipe(
|
|
1919
|
+
T.Http({
|
|
1920
|
+
method: "POST",
|
|
1921
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
1922
|
+
code: 200,
|
|
1923
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1924
|
+
}),
|
|
1925
|
+
),
|
|
1926
|
+
).annotate({ identifier: "CreateDatabaseRequest" });
|
|
1927
|
+
case 1:
|
|
1928
|
+
return S.suspend(() =>
|
|
1929
|
+
S.Struct({
|
|
1930
|
+
id: S.Number,
|
|
1931
|
+
}),
|
|
1932
|
+
).annotate({ identifier: "CreateDatabaseResponse" });
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
function __c29(j: number): any {
|
|
1936
|
+
switch (j) {
|
|
1937
|
+
case 0:
|
|
1938
|
+
return S.suspend(() =>
|
|
1939
|
+
S.Struct({
|
|
1940
|
+
accessScope: S.optional(S.String),
|
|
1941
|
+
acl: __S(256, __c32, 0),
|
|
1942
|
+
}),
|
|
1943
|
+
).annotate({ identifier: "InstanceNetworkCreate" });
|
|
1944
|
+
case 1:
|
|
1945
|
+
return S.suspend(() =>
|
|
1946
|
+
S.Struct({
|
|
1947
|
+
class: S.String,
|
|
1948
|
+
size: S.Number,
|
|
1949
|
+
}),
|
|
1950
|
+
).annotate({ identifier: "StorageCreate" });
|
|
1951
|
+
case 2:
|
|
1952
|
+
return S.suspend(() =>
|
|
1953
|
+
S.Struct({
|
|
1954
|
+
projectId: S.String.pipe(T.Label()),
|
|
1955
|
+
region: S.String.pipe(T.Label()),
|
|
1956
|
+
backupSchedule: S.String,
|
|
1957
|
+
encryption: S.optional(__S(240, __c30, 0)),
|
|
1958
|
+
flavorId: S.String,
|
|
1959
|
+
labels: S.optional(__S(248, __c31, 0)),
|
|
1960
|
+
name: S.String,
|
|
1961
|
+
network: __S(232, __c29, 0),
|
|
1962
|
+
retentionDays: S.NullOr(S.Number),
|
|
1963
|
+
storage: __S(233, __c29, 1),
|
|
1964
|
+
version: S.String,
|
|
1965
|
+
}).pipe(
|
|
1966
|
+
T.Http({
|
|
1967
|
+
method: "POST",
|
|
1968
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
1969
|
+
code: 200,
|
|
1970
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
1971
|
+
}),
|
|
1972
|
+
),
|
|
1973
|
+
).annotate({ identifier: "CreateInstanceRequest" });
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
function __c30(j: number): any {
|
|
1977
|
+
switch (j) {
|
|
1978
|
+
case 0:
|
|
1979
|
+
return S.suspend(() =>
|
|
1980
|
+
S.Struct({
|
|
1981
|
+
kekKeyId: S.String,
|
|
1982
|
+
kekKeyRingId: S.String,
|
|
1983
|
+
kekKeyVersion: S.String,
|
|
1984
|
+
serviceAccount: S.String,
|
|
1985
|
+
}),
|
|
1986
|
+
).annotate({ identifier: "InstanceEncryption" });
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
function __c31(j: number): any {
|
|
1990
|
+
switch (j) {
|
|
1991
|
+
case 0:
|
|
1992
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.String));
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
function __c32(j: number): any {
|
|
1996
|
+
switch (j) {
|
|
1997
|
+
case 0:
|
|
1998
|
+
return S.Array(S.String);
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
function __c33(j: number): any {
|
|
2002
|
+
switch (j) {
|
|
2003
|
+
case 0:
|
|
2004
|
+
return S.suspend(() =>
|
|
2005
|
+
S.Struct({
|
|
2006
|
+
projectId: S.String.pipe(T.Label()),
|
|
2007
|
+
region: S.String.pipe(T.Label()),
|
|
2008
|
+
instanceId: S.String.pipe(T.Label()),
|
|
2009
|
+
name: S.String,
|
|
2010
|
+
roles: S.optional(__S(256, __c32, 0)),
|
|
2011
|
+
}).pipe(
|
|
2012
|
+
T.Http({
|
|
2013
|
+
method: "POST",
|
|
2014
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
2015
|
+
code: 200,
|
|
2016
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
2017
|
+
}),
|
|
2018
|
+
),
|
|
2019
|
+
).annotate({ identifier: "CreateUserRequest" });
|
|
2020
|
+
case 1:
|
|
2021
|
+
return S.suspend(() =>
|
|
2022
|
+
S.Struct({
|
|
2023
|
+
id: S.Number,
|
|
2024
|
+
name: S.String,
|
|
2025
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
2026
|
+
state: S.String,
|
|
2027
|
+
}),
|
|
2028
|
+
).annotate({ identifier: "CreateUserResponse" });
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
function __c34(j: number): any {
|
|
2032
|
+
switch (j) {
|
|
2033
|
+
case 0:
|
|
2034
|
+
return S.suspend(() =>
|
|
2035
|
+
S.Struct({
|
|
2036
|
+
projectId: S.String.pipe(T.Label()),
|
|
2037
|
+
region: S.String.pipe(T.Label()),
|
|
2038
|
+
instanceId: S.String.pipe(T.Label()),
|
|
2039
|
+
databaseId: S.Number.pipe(T.Label()),
|
|
2040
|
+
}).pipe(
|
|
2041
|
+
T.Http({
|
|
2042
|
+
method: "DELETE",
|
|
2043
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
2044
|
+
code: 200,
|
|
2045
|
+
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
2046
|
+
}),
|
|
2047
|
+
),
|
|
2048
|
+
).annotate({ identifier: "DeleteDatabaseRequest" });
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
function __c35(j: number): any {
|
|
2052
|
+
switch (j) {
|
|
2053
|
+
case 0:
|
|
2054
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDatabaseResponse" });
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
2058
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
2059
|
+
return (__s[i] ??= __L.at(f, j));
|
|
2060
|
+
}
|