@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
7
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
8
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
9
10
|
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
10
13
|
|
|
11
14
|
export type { StackitOpError, StackitOpContext };
|
|
12
15
|
|
|
@@ -38,8 +41,6 @@ export class NotFound
|
|
|
38
41
|
) {}
|
|
39
42
|
|
|
40
43
|
export type CloneInstanceRequestRegion = "eu01" | "eu02";
|
|
41
|
-
export const CloneInstanceRequestRegion = S.String;
|
|
42
|
-
|
|
43
44
|
export interface CloneInstanceRequest {
|
|
44
45
|
/** project id */
|
|
45
46
|
projectId: string;
|
|
@@ -49,70 +50,21 @@ export interface CloneInstanceRequest {
|
|
|
49
50
|
instanceId: string;
|
|
50
51
|
timestamp?: string;
|
|
51
52
|
}
|
|
52
|
-
export const CloneInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
53
|
-
S.Struct({
|
|
54
|
-
projectId: S.String.pipe(T.Label()),
|
|
55
|
-
region: CloneInstanceRequestRegion.pipe(T.Label()),
|
|
56
|
-
instanceId: S.String.pipe(T.Label()),
|
|
57
|
-
timestamp: S.optional(S.String),
|
|
58
|
-
}).pipe(
|
|
59
|
-
T.Http({
|
|
60
|
-
method: "POST",
|
|
61
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",
|
|
62
|
-
code: 200,
|
|
63
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
64
|
-
}),
|
|
65
|
-
),
|
|
66
|
-
).annotate({ identifier: "CloneInstanceRequest" }) as any as S.Schema<CloneInstanceRequest>;
|
|
67
|
-
|
|
68
53
|
export interface CloneInstanceResponse {
|
|
69
54
|
instanceId?: string;
|
|
70
55
|
}
|
|
71
|
-
export const CloneInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
72
|
-
S.Struct({
|
|
73
|
-
instanceId: S.optional(S.String),
|
|
74
|
-
}),
|
|
75
|
-
).annotate({ identifier: "CloneInstanceResponse" }) as any as S.Schema<CloneInstanceResponse>;
|
|
76
|
-
|
|
77
56
|
export type CreateInstanceRequestRegion = "eu01" | "eu02";
|
|
78
|
-
export const CreateInstanceRequestRegion = S.String;
|
|
79
|
-
|
|
80
57
|
export type ACLItemsList = Array<string>;
|
|
81
|
-
export const ACLItemsList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<ACLItemsList>;
|
|
82
|
-
|
|
83
58
|
export interface ACL {
|
|
84
59
|
items?: ACLItemsList;
|
|
85
60
|
}
|
|
86
|
-
export const ACL = /*@__PURE__*/ S.suspend(() =>
|
|
87
|
-
S.Struct({
|
|
88
|
-
items: S.optional(ACLItemsList),
|
|
89
|
-
}),
|
|
90
|
-
).annotate({ identifier: "ACL" }) as any as S.Schema<ACL>;
|
|
91
|
-
|
|
92
61
|
/** Labels field is not certain/clear */
|
|
93
62
|
export type CreateInstanceRequestLabelsMap = { [key: string]: string | undefined };
|
|
94
|
-
export const CreateInstanceRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
95
|
-
S.String,
|
|
96
|
-
S.String,
|
|
97
|
-
) as any as S.Schema<CreateInstanceRequestLabelsMap>;
|
|
98
|
-
|
|
99
63
|
export type CreateInstanceRequestOptionsMap = { [key: string]: string | undefined };
|
|
100
|
-
export const CreateInstanceRequestOptionsMap = /*@__PURE__*/ S.Record(
|
|
101
|
-
S.String,
|
|
102
|
-
S.String,
|
|
103
|
-
) as any as S.Schema<CreateInstanceRequestOptionsMap>;
|
|
104
|
-
|
|
105
64
|
export interface Storage {
|
|
106
65
|
class?: string;
|
|
107
66
|
size?: number;
|
|
108
67
|
}
|
|
109
|
-
export const Storage = /*@__PURE__*/ S.suspend(() =>
|
|
110
|
-
S.Struct({
|
|
111
|
-
class: S.optional(S.String),
|
|
112
|
-
size: S.optional(S.Number),
|
|
113
|
-
}),
|
|
114
|
-
).annotate({ identifier: "Storage" }) as any as S.Schema<Storage>;
|
|
115
|
-
|
|
116
68
|
export interface CreateInstanceRequest {
|
|
117
69
|
/** project id */
|
|
118
70
|
projectId: string;
|
|
@@ -130,47 +82,12 @@ export interface CreateInstanceRequest {
|
|
|
130
82
|
storage: Storage;
|
|
131
83
|
version: string;
|
|
132
84
|
}
|
|
133
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
134
|
-
S.Struct({
|
|
135
|
-
projectId: S.String.pipe(T.Label()),
|
|
136
|
-
region: CreateInstanceRequestRegion.pipe(T.Label()),
|
|
137
|
-
acl: ACL,
|
|
138
|
-
backupSchedule: S.String,
|
|
139
|
-
flavorId: S.String,
|
|
140
|
-
labels: S.optional(CreateInstanceRequestLabelsMap),
|
|
141
|
-
name: S.String,
|
|
142
|
-
options: CreateInstanceRequestOptionsMap,
|
|
143
|
-
replicas: S.Number,
|
|
144
|
-
storage: Storage,
|
|
145
|
-
version: S.String,
|
|
146
|
-
}).pipe(
|
|
147
|
-
T.Http({
|
|
148
|
-
method: "POST",
|
|
149
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances",
|
|
150
|
-
code: 200,
|
|
151
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
152
|
-
}),
|
|
153
|
-
),
|
|
154
|
-
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
155
|
-
|
|
156
85
|
export interface CreateInstanceResponse {
|
|
157
86
|
id?: string;
|
|
158
87
|
}
|
|
159
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
160
|
-
S.Struct({
|
|
161
|
-
id: S.optional(S.String),
|
|
162
|
-
}),
|
|
163
|
-
).annotate({ identifier: "CreateInstanceResponse" }) as any as S.Schema<CreateInstanceResponse>;
|
|
164
|
-
|
|
165
88
|
export type CreateUserRequestRegion = "eu01" | "eu02";
|
|
166
|
-
export const CreateUserRequestRegion = S.String;
|
|
167
|
-
|
|
168
89
|
/** The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** */
|
|
169
90
|
export type CreateUserRequestRolesList = Array<string>;
|
|
170
|
-
export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
171
|
-
S.String,
|
|
172
|
-
) as any as S.Schema<CreateUserRequestRolesList>;
|
|
173
|
-
|
|
174
91
|
export interface CreateUserRequest {
|
|
175
92
|
/** project id */
|
|
176
93
|
projectId: string;
|
|
@@ -183,28 +100,8 @@ export interface CreateUserRequest {
|
|
|
183
100
|
roles: CreateUserRequestRolesList;
|
|
184
101
|
username?: string;
|
|
185
102
|
}
|
|
186
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
187
|
-
S.Struct({
|
|
188
|
-
projectId: S.String.pipe(T.Label()),
|
|
189
|
-
region: CreateUserRequestRegion.pipe(T.Label()),
|
|
190
|
-
instanceId: S.String.pipe(T.Label()),
|
|
191
|
-
database: S.String,
|
|
192
|
-
roles: CreateUserRequestRolesList,
|
|
193
|
-
username: S.optional(S.String),
|
|
194
|
-
}).pipe(
|
|
195
|
-
T.Http({
|
|
196
|
-
method: "POST",
|
|
197
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
198
|
-
code: 200,
|
|
199
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
200
|
-
}),
|
|
201
|
-
),
|
|
202
|
-
).annotate({ identifier: "CreateUserRequest" }) as any as S.Schema<CreateUserRequest>;
|
|
203
|
-
|
|
204
103
|
/** The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** */
|
|
205
104
|
export type UserRolesList = Array<string>;
|
|
206
|
-
export const UserRolesList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<UserRolesList>;
|
|
207
|
-
|
|
208
105
|
export interface User {
|
|
209
106
|
database?: string;
|
|
210
107
|
host?: string;
|
|
@@ -216,31 +113,10 @@ export interface User {
|
|
|
216
113
|
uri?: string;
|
|
217
114
|
username?: string;
|
|
218
115
|
}
|
|
219
|
-
export const User = /*@__PURE__*/ S.suspend(() =>
|
|
220
|
-
S.Struct({
|
|
221
|
-
database: S.optional(S.String),
|
|
222
|
-
host: S.optional(S.String),
|
|
223
|
-
id: S.optional(S.String),
|
|
224
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
225
|
-
port: S.optional(S.Number),
|
|
226
|
-
roles: S.optional(UserRolesList),
|
|
227
|
-
uri: S.optional(S.String),
|
|
228
|
-
username: S.optional(S.String),
|
|
229
|
-
}),
|
|
230
|
-
).annotate({ identifier: "User" }) as any as S.Schema<User>;
|
|
231
|
-
|
|
232
116
|
export interface CreateUserResponse {
|
|
233
117
|
item?: User;
|
|
234
118
|
}
|
|
235
|
-
export const CreateUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
236
|
-
S.Struct({
|
|
237
|
-
item: S.optional(User),
|
|
238
|
-
}),
|
|
239
|
-
).annotate({ identifier: "CreateUserResponse" }) as any as S.Schema<CreateUserResponse>;
|
|
240
|
-
|
|
241
119
|
export type DeleteInstanceRequestRegion = "eu01" | "eu02";
|
|
242
|
-
export const DeleteInstanceRequestRegion = S.String;
|
|
243
|
-
|
|
244
120
|
export interface DeleteInstanceRequest {
|
|
245
121
|
/** project id */
|
|
246
122
|
projectId: string;
|
|
@@ -249,29 +125,8 @@ export interface DeleteInstanceRequest {
|
|
|
249
125
|
/** instance id */
|
|
250
126
|
instanceId: string;
|
|
251
127
|
}
|
|
252
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
253
|
-
S.Struct({
|
|
254
|
-
projectId: S.String.pipe(T.Label()),
|
|
255
|
-
region: DeleteInstanceRequestRegion.pipe(T.Label()),
|
|
256
|
-
instanceId: S.String.pipe(T.Label()),
|
|
257
|
-
}).pipe(
|
|
258
|
-
T.Http({
|
|
259
|
-
method: "DELETE",
|
|
260
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
261
|
-
code: 200,
|
|
262
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
263
|
-
}),
|
|
264
|
-
),
|
|
265
|
-
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
266
|
-
|
|
267
128
|
export interface DeleteInstanceResponse {}
|
|
268
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
269
|
-
identifier: "DeleteInstanceResponse",
|
|
270
|
-
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
271
|
-
|
|
272
129
|
export type DeleteUserRequestRegion = "eu01" | "eu02";
|
|
273
|
-
export const DeleteUserRequestRegion = S.String;
|
|
274
|
-
|
|
275
130
|
export interface DeleteUserRequest {
|
|
276
131
|
/** project id */
|
|
277
132
|
projectId: string;
|
|
@@ -282,30 +137,8 @@ export interface DeleteUserRequest {
|
|
|
282
137
|
/** user id */
|
|
283
138
|
userId: string;
|
|
284
139
|
}
|
|
285
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
286
|
-
S.Struct({
|
|
287
|
-
projectId: S.String.pipe(T.Label()),
|
|
288
|
-
region: DeleteUserRequestRegion.pipe(T.Label()),
|
|
289
|
-
instanceId: S.String.pipe(T.Label()),
|
|
290
|
-
userId: S.String.pipe(T.Label()),
|
|
291
|
-
}).pipe(
|
|
292
|
-
T.Http({
|
|
293
|
-
method: "DELETE",
|
|
294
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
295
|
-
code: 200,
|
|
296
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
297
|
-
}),
|
|
298
|
-
),
|
|
299
|
-
).annotate({ identifier: "DeleteUserRequest" }) as any as S.Schema<DeleteUserRequest>;
|
|
300
|
-
|
|
301
140
|
export interface DeleteUserResponse {}
|
|
302
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
303
|
-
identifier: "DeleteUserResponse",
|
|
304
|
-
}) as any as S.Schema<DeleteUserResponse>;
|
|
305
|
-
|
|
306
141
|
export type GetBackupRequestRegion = "eu01" | "eu02";
|
|
307
|
-
export const GetBackupRequestRegion = S.String;
|
|
308
|
-
|
|
309
142
|
export interface GetBackupRequest {
|
|
310
143
|
/** project id */
|
|
311
144
|
projectId: string;
|
|
@@ -316,33 +149,8 @@ export interface GetBackupRequest {
|
|
|
316
149
|
/** backup id */
|
|
317
150
|
backupId: string;
|
|
318
151
|
}
|
|
319
|
-
export const GetBackupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
320
|
-
S.Struct({
|
|
321
|
-
projectId: S.String.pipe(T.Label()),
|
|
322
|
-
region: GetBackupRequestRegion.pipe(T.Label()),
|
|
323
|
-
instanceId: S.String.pipe(T.Label()),
|
|
324
|
-
backupId: S.String.pipe(T.Label()),
|
|
325
|
-
}).pipe(
|
|
326
|
-
T.Http({
|
|
327
|
-
method: "GET",
|
|
328
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
329
|
-
code: 200,
|
|
330
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
331
|
-
}),
|
|
332
|
-
),
|
|
333
|
-
).annotate({ identifier: "GetBackupRequest" }) as any as S.Schema<GetBackupRequest>;
|
|
334
|
-
|
|
335
152
|
export type BackupLabelsList = Array<string>;
|
|
336
|
-
export const BackupLabelsList = /*@__PURE__*/ S.Array(
|
|
337
|
-
S.String,
|
|
338
|
-
) as any as S.Schema<BackupLabelsList>;
|
|
339
|
-
|
|
340
153
|
export type BackupOptionsMap = { [key: string]: string | undefined };
|
|
341
|
-
export const BackupOptionsMap = /*@__PURE__*/ S.Record(
|
|
342
|
-
S.String,
|
|
343
|
-
S.String,
|
|
344
|
-
) as any as S.Schema<BackupOptionsMap>;
|
|
345
|
-
|
|
346
154
|
export interface Backup {
|
|
347
155
|
endTime?: string;
|
|
348
156
|
error?: string;
|
|
@@ -353,31 +161,10 @@ export interface Backup {
|
|
|
353
161
|
size?: number;
|
|
354
162
|
startTime?: string;
|
|
355
163
|
}
|
|
356
|
-
export const Backup = /*@__PURE__*/ S.suspend(() =>
|
|
357
|
-
S.Struct({
|
|
358
|
-
endTime: S.optional(S.String),
|
|
359
|
-
error: S.optional(S.String),
|
|
360
|
-
id: S.optional(S.String),
|
|
361
|
-
labels: S.optional(BackupLabelsList),
|
|
362
|
-
name: S.optional(S.String),
|
|
363
|
-
options: S.optional(BackupOptionsMap),
|
|
364
|
-
size: S.optional(S.Number),
|
|
365
|
-
startTime: S.optional(S.String),
|
|
366
|
-
}),
|
|
367
|
-
).annotate({ identifier: "Backup" }) as any as S.Schema<Backup>;
|
|
368
|
-
|
|
369
164
|
export interface GetBackupResponse {
|
|
370
165
|
item?: Backup;
|
|
371
166
|
}
|
|
372
|
-
export const GetBackupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
373
|
-
S.Struct({
|
|
374
|
-
item: S.optional(Backup),
|
|
375
|
-
}),
|
|
376
|
-
).annotate({ identifier: "GetBackupResponse" }) as any as S.Schema<GetBackupResponse>;
|
|
377
|
-
|
|
378
167
|
export type GetInstanceRequestRegion = "eu01" | "eu02";
|
|
379
|
-
export const GetInstanceRequestRegion = S.String;
|
|
380
|
-
|
|
381
168
|
export interface GetInstanceRequest {
|
|
382
169
|
/** project id */
|
|
383
170
|
projectId: string;
|
|
@@ -386,46 +173,15 @@ export interface GetInstanceRequest {
|
|
|
386
173
|
/** instance id */
|
|
387
174
|
instanceId: string;
|
|
388
175
|
}
|
|
389
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
390
|
-
S.Struct({
|
|
391
|
-
projectId: S.String.pipe(T.Label()),
|
|
392
|
-
region: GetInstanceRequestRegion.pipe(T.Label()),
|
|
393
|
-
instanceId: S.String.pipe(T.Label()),
|
|
394
|
-
}).pipe(
|
|
395
|
-
T.Http({
|
|
396
|
-
method: "GET",
|
|
397
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
398
|
-
code: 200,
|
|
399
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
400
|
-
}),
|
|
401
|
-
),
|
|
402
|
-
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
403
|
-
|
|
404
176
|
export interface Flavor {
|
|
405
177
|
cpu?: number;
|
|
406
178
|
description?: string;
|
|
407
179
|
id?: string;
|
|
408
180
|
memory?: number;
|
|
409
181
|
}
|
|
410
|
-
export const Flavor = /*@__PURE__*/ S.suspend(() =>
|
|
411
|
-
S.Struct({
|
|
412
|
-
cpu: S.optional(S.Number),
|
|
413
|
-
description: S.optional(S.String),
|
|
414
|
-
id: S.optional(S.String),
|
|
415
|
-
memory: S.optional(S.Number),
|
|
416
|
-
}),
|
|
417
|
-
).annotate({ identifier: "Flavor" }) as any as S.Schema<Flavor>;
|
|
418
|
-
|
|
419
182
|
export type InstanceOptionsMap = { [key: string]: string | undefined };
|
|
420
|
-
export const InstanceOptionsMap = /*@__PURE__*/ S.Record(
|
|
421
|
-
S.String,
|
|
422
|
-
S.String,
|
|
423
|
-
) as any as S.Schema<InstanceOptionsMap>;
|
|
424
|
-
|
|
425
183
|
/** The current status of the instance. */
|
|
426
184
|
export type InstanceStatus = "READY" | "PENDING" | "PROCESSING" | "FAILED" | "UNKNOWN";
|
|
427
|
-
export const InstanceStatus = S.String;
|
|
428
|
-
|
|
429
185
|
export interface Instance {
|
|
430
186
|
acl?: ACL;
|
|
431
187
|
backupSchedule?: string;
|
|
@@ -439,33 +195,10 @@ export interface Instance {
|
|
|
439
195
|
storage?: Storage;
|
|
440
196
|
version?: string;
|
|
441
197
|
}
|
|
442
|
-
export const Instance = /*@__PURE__*/ S.suspend(() =>
|
|
443
|
-
S.Struct({
|
|
444
|
-
acl: S.optional(ACL),
|
|
445
|
-
backupSchedule: S.optional(S.String),
|
|
446
|
-
flavor: S.optional(Flavor),
|
|
447
|
-
id: S.optional(S.String),
|
|
448
|
-
name: S.optional(S.String),
|
|
449
|
-
options: S.optional(InstanceOptionsMap),
|
|
450
|
-
replicas: S.optional(S.Number),
|
|
451
|
-
status: S.optional(InstanceStatus),
|
|
452
|
-
storage: S.optional(Storage),
|
|
453
|
-
version: S.optional(S.String),
|
|
454
|
-
}),
|
|
455
|
-
).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
|
|
456
|
-
|
|
457
198
|
export interface InstanceResponse {
|
|
458
199
|
item?: Instance;
|
|
459
200
|
}
|
|
460
|
-
export const InstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
461
|
-
S.Struct({
|
|
462
|
-
item: S.optional(Instance),
|
|
463
|
-
}),
|
|
464
|
-
).annotate({ identifier: "InstanceResponse" }) as any as S.Schema<InstanceResponse>;
|
|
465
|
-
|
|
466
201
|
export type GetUserRequestRegion = "eu01" | "eu02";
|
|
467
|
-
export const GetUserRequestRegion = S.String;
|
|
468
|
-
|
|
469
202
|
export interface GetUserRequest {
|
|
470
203
|
/** project id */
|
|
471
204
|
projectId: string;
|
|
@@ -476,28 +209,8 @@ export interface GetUserRequest {
|
|
|
476
209
|
/** user id */
|
|
477
210
|
userId: string;
|
|
478
211
|
}
|
|
479
|
-
export const GetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
480
|
-
S.Struct({
|
|
481
|
-
projectId: S.String.pipe(T.Label()),
|
|
482
|
-
region: GetUserRequestRegion.pipe(T.Label()),
|
|
483
|
-
instanceId: S.String.pipe(T.Label()),
|
|
484
|
-
userId: S.String.pipe(T.Label()),
|
|
485
|
-
}).pipe(
|
|
486
|
-
T.Http({
|
|
487
|
-
method: "GET",
|
|
488
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
489
|
-
code: 200,
|
|
490
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
491
|
-
}),
|
|
492
|
-
),
|
|
493
|
-
).annotate({ identifier: "GetUserRequest" }) as any as S.Schema<GetUserRequest>;
|
|
494
|
-
|
|
495
212
|
/** The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** */
|
|
496
213
|
export type InstanceResponseUserRolesList = Array<string>;
|
|
497
|
-
export const InstanceResponseUserRolesList = /*@__PURE__*/ S.Array(
|
|
498
|
-
S.String,
|
|
499
|
-
) as any as S.Schema<InstanceResponseUserRolesList>;
|
|
500
|
-
|
|
501
214
|
export interface InstanceResponseUser {
|
|
502
215
|
database?: string;
|
|
503
216
|
host?: string;
|
|
@@ -507,29 +220,10 @@ export interface InstanceResponseUser {
|
|
|
507
220
|
roles?: InstanceResponseUserRolesList;
|
|
508
221
|
username?: string;
|
|
509
222
|
}
|
|
510
|
-
export const InstanceResponseUser = /*@__PURE__*/ S.suspend(() =>
|
|
511
|
-
S.Struct({
|
|
512
|
-
database: S.optional(S.String),
|
|
513
|
-
host: S.optional(S.String),
|
|
514
|
-
id: S.optional(S.String),
|
|
515
|
-
port: S.optional(S.Number),
|
|
516
|
-
roles: S.optional(InstanceResponseUserRolesList),
|
|
517
|
-
username: S.optional(S.String),
|
|
518
|
-
}),
|
|
519
|
-
).annotate({ identifier: "InstanceResponseUser" }) as any as S.Schema<InstanceResponseUser>;
|
|
520
|
-
|
|
521
223
|
export interface GetUserResponse {
|
|
522
224
|
item?: InstanceResponseUser;
|
|
523
225
|
}
|
|
524
|
-
export const GetUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
525
|
-
S.Struct({
|
|
526
|
-
item: S.optional(InstanceResponseUser),
|
|
527
|
-
}),
|
|
528
|
-
).annotate({ identifier: "GetUserResponse" }) as any as S.Schema<GetUserResponse>;
|
|
529
|
-
|
|
530
226
|
export type ListAdvisorSlowQueriesRequestRegion = "eu01" | "eu02";
|
|
531
|
-
export const ListAdvisorSlowQueriesRequestRegion = S.String;
|
|
532
|
-
|
|
533
227
|
export interface ListAdvisorSlowQueriesRequest {
|
|
534
228
|
/** project id */
|
|
535
229
|
projectId: string;
|
|
@@ -538,57 +232,19 @@ export interface ListAdvisorSlowQueriesRequest {
|
|
|
538
232
|
/** instance id */
|
|
539
233
|
instanceId: string;
|
|
540
234
|
}
|
|
541
|
-
export const ListAdvisorSlowQueriesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
542
|
-
S.Struct({
|
|
543
|
-
projectId: S.String.pipe(T.Label()),
|
|
544
|
-
region: ListAdvisorSlowQueriesRequestRegion.pipe(T.Label()),
|
|
545
|
-
instanceId: S.String.pipe(T.Label()),
|
|
546
|
-
}).pipe(
|
|
547
|
-
T.Http({
|
|
548
|
-
method: "GET",
|
|
549
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/slow-queries",
|
|
550
|
-
code: 200,
|
|
551
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
552
|
-
}),
|
|
553
|
-
),
|
|
554
|
-
).annotate({
|
|
555
|
-
identifier: "ListAdvisorSlowQueriesRequest",
|
|
556
|
-
}) as any as S.Schema<ListAdvisorSlowQueriesRequest>;
|
|
557
|
-
|
|
558
235
|
export interface SlowQuery {
|
|
559
236
|
/** The raw log line pertaining to the slow query. */
|
|
560
237
|
line?: string;
|
|
561
238
|
/** The namespace in which the slow query ran. */
|
|
562
239
|
namespace?: string;
|
|
563
240
|
}
|
|
564
|
-
export const SlowQuery = /*@__PURE__*/ S.suspend(() =>
|
|
565
|
-
S.Struct({
|
|
566
|
-
line: S.optional(S.String),
|
|
567
|
-
namespace: S.optional(S.String),
|
|
568
|
-
}),
|
|
569
|
-
).annotate({ identifier: "SlowQuery" }) as any as S.Schema<SlowQuery>;
|
|
570
|
-
|
|
571
241
|
/** A list of documents with information about slow queries as detected by the Performance Advisor. */
|
|
572
242
|
export type HandlersInstancesSlowQueriesResponseSlowQueriesList = Array<SlowQuery>;
|
|
573
|
-
export const HandlersInstancesSlowQueriesResponseSlowQueriesList = /*@__PURE__*/ S.Array(
|
|
574
|
-
SlowQuery,
|
|
575
|
-
) as any as S.Schema<HandlersInstancesSlowQueriesResponseSlowQueriesList>;
|
|
576
|
-
|
|
577
243
|
export interface HandlersInstancesSlowQueriesResponse {
|
|
578
244
|
/** A list of documents with information about slow queries as detected by the Performance Advisor. */
|
|
579
245
|
slowQueries?: HandlersInstancesSlowQueriesResponseSlowQueriesList;
|
|
580
246
|
}
|
|
581
|
-
export const HandlersInstancesSlowQueriesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
582
|
-
S.Struct({
|
|
583
|
-
slowQueries: S.optional(HandlersInstancesSlowQueriesResponseSlowQueriesList),
|
|
584
|
-
}),
|
|
585
|
-
).annotate({
|
|
586
|
-
identifier: "HandlersInstancesSlowQueriesResponse",
|
|
587
|
-
}) as any as S.Schema<HandlersInstancesSlowQueriesResponse>;
|
|
588
|
-
|
|
589
247
|
export type ListBackupsRequestRegion = "eu01" | "eu02";
|
|
590
|
-
export const ListBackupsRequestRegion = S.String;
|
|
591
|
-
|
|
592
248
|
export interface ListBackupsRequest {
|
|
593
249
|
/** project id */
|
|
594
250
|
projectId: string;
|
|
@@ -597,65 +253,19 @@ export interface ListBackupsRequest {
|
|
|
597
253
|
/** instance id */
|
|
598
254
|
instanceId: string;
|
|
599
255
|
}
|
|
600
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
601
|
-
S.Struct({
|
|
602
|
-
projectId: S.String.pipe(T.Label()),
|
|
603
|
-
region: ListBackupsRequestRegion.pipe(T.Label()),
|
|
604
|
-
instanceId: S.String.pipe(T.Label()),
|
|
605
|
-
}).pipe(
|
|
606
|
-
T.Http({
|
|
607
|
-
method: "GET",
|
|
608
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
609
|
-
code: 200,
|
|
610
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
611
|
-
}),
|
|
612
|
-
),
|
|
613
|
-
).annotate({ identifier: "ListBackupsRequest" }) as any as S.Schema<ListBackupsRequest>;
|
|
614
|
-
|
|
615
256
|
export type ListBackupsResponseItemsList = Array<Backup>;
|
|
616
|
-
export const ListBackupsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
617
|
-
Backup,
|
|
618
|
-
) as any as S.Schema<ListBackupsResponseItemsList>;
|
|
619
|
-
|
|
620
257
|
export interface ListBackupsResponse {
|
|
621
258
|
count?: number;
|
|
622
259
|
items?: ListBackupsResponseItemsList;
|
|
623
260
|
}
|
|
624
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
625
|
-
S.Struct({
|
|
626
|
-
count: S.optional(S.Number),
|
|
627
|
-
items: S.optional(ListBackupsResponseItemsList),
|
|
628
|
-
}),
|
|
629
|
-
).annotate({ identifier: "ListBackupsResponse" }) as any as S.Schema<ListBackupsResponse>;
|
|
630
|
-
|
|
631
261
|
export type ListFlavorsRequestRegion = "eu01" | "eu02";
|
|
632
|
-
export const ListFlavorsRequestRegion = S.String;
|
|
633
|
-
|
|
634
262
|
export interface ListFlavorsRequest {
|
|
635
263
|
/** project id */
|
|
636
264
|
projectId: string;
|
|
637
265
|
/** The region which should be addressed */
|
|
638
266
|
region: ListFlavorsRequestRegion | (string & {});
|
|
639
267
|
}
|
|
640
|
-
export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
641
|
-
S.Struct({
|
|
642
|
-
projectId: S.String.pipe(T.Label()),
|
|
643
|
-
region: ListFlavorsRequestRegion.pipe(T.Label()),
|
|
644
|
-
}).pipe(
|
|
645
|
-
T.Http({
|
|
646
|
-
method: "GET",
|
|
647
|
-
uri: "/v2/projects/{projectId}/regions/{region}/flavors",
|
|
648
|
-
code: 200,
|
|
649
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
650
|
-
}),
|
|
651
|
-
),
|
|
652
|
-
).annotate({ identifier: "ListFlavorsRequest" }) as any as S.Schema<ListFlavorsRequest>;
|
|
653
|
-
|
|
654
268
|
export type InstanceFlavorCategoriesList = Array<string>;
|
|
655
|
-
export const InstanceFlavorCategoriesList = /*@__PURE__*/ S.Array(
|
|
656
|
-
S.String,
|
|
657
|
-
) as any as S.Schema<InstanceFlavorCategoriesList>;
|
|
658
|
-
|
|
659
269
|
export interface InstanceFlavor {
|
|
660
270
|
categories?: InstanceFlavorCategoriesList;
|
|
661
271
|
cpu?: number;
|
|
@@ -663,33 +273,11 @@ export interface InstanceFlavor {
|
|
|
663
273
|
id?: string;
|
|
664
274
|
memory?: number;
|
|
665
275
|
}
|
|
666
|
-
export const InstanceFlavor = /*@__PURE__*/ S.suspend(() =>
|
|
667
|
-
S.Struct({
|
|
668
|
-
categories: S.optional(InstanceFlavorCategoriesList),
|
|
669
|
-
cpu: S.optional(S.Number),
|
|
670
|
-
description: S.optional(S.String),
|
|
671
|
-
id: S.optional(S.String),
|
|
672
|
-
memory: S.optional(S.Number),
|
|
673
|
-
}),
|
|
674
|
-
).annotate({ identifier: "InstanceFlavor" }) as any as S.Schema<InstanceFlavor>;
|
|
675
|
-
|
|
676
276
|
export type ListFlavorsResponseFlavorsList = Array<InstanceFlavor>;
|
|
677
|
-
export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(
|
|
678
|
-
InstanceFlavor,
|
|
679
|
-
) as any as S.Schema<ListFlavorsResponseFlavorsList>;
|
|
680
|
-
|
|
681
277
|
export interface ListFlavorsResponse {
|
|
682
278
|
flavors?: ListFlavorsResponseFlavorsList;
|
|
683
279
|
}
|
|
684
|
-
export const ListFlavorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
685
|
-
S.Struct({
|
|
686
|
-
flavors: S.optional(ListFlavorsResponseFlavorsList),
|
|
687
|
-
}),
|
|
688
|
-
).annotate({ identifier: "ListFlavorsResponse" }) as any as S.Schema<ListFlavorsResponse>;
|
|
689
|
-
|
|
690
280
|
export type ListInstancesRequestRegion = "eu01" | "eu02";
|
|
691
|
-
export const ListInstancesRequestRegion = S.String;
|
|
692
|
-
|
|
693
281
|
export interface ListInstancesRequest {
|
|
694
282
|
/** project id */
|
|
695
283
|
projectId: string;
|
|
@@ -698,58 +286,20 @@ export interface ListInstancesRequest {
|
|
|
698
286
|
/** instance tag */
|
|
699
287
|
tag: string;
|
|
700
288
|
}
|
|
701
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
702
|
-
S.Struct({
|
|
703
|
-
projectId: S.String.pipe(T.Label()),
|
|
704
|
-
region: ListInstancesRequestRegion.pipe(T.Label()),
|
|
705
|
-
tag: S.String.pipe(T.Query()),
|
|
706
|
-
}).pipe(
|
|
707
|
-
T.Http({
|
|
708
|
-
method: "GET",
|
|
709
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances",
|
|
710
|
-
code: 200,
|
|
711
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
712
|
-
}),
|
|
713
|
-
),
|
|
714
|
-
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
715
|
-
|
|
716
289
|
/** The current status of the instance. */
|
|
717
290
|
export type InstanceListInstanceStatus = "READY" | "PENDING" | "PROCESSING" | "FAILED" | "UNKNOWN";
|
|
718
|
-
export const InstanceListInstanceStatus = S.String;
|
|
719
|
-
|
|
720
291
|
export interface InstanceListInstance {
|
|
721
292
|
id?: string;
|
|
722
293
|
name?: string;
|
|
723
294
|
/** The current status of the instance. */
|
|
724
295
|
status?: InstanceListInstanceStatus;
|
|
725
296
|
}
|
|
726
|
-
export const InstanceListInstance = /*@__PURE__*/ S.suspend(() =>
|
|
727
|
-
S.Struct({
|
|
728
|
-
id: S.optional(S.String),
|
|
729
|
-
name: S.optional(S.String),
|
|
730
|
-
status: S.optional(InstanceListInstanceStatus),
|
|
731
|
-
}),
|
|
732
|
-
).annotate({ identifier: "InstanceListInstance" }) as any as S.Schema<InstanceListInstance>;
|
|
733
|
-
|
|
734
297
|
export type ListInstancesResponseItemsList = Array<InstanceListInstance>;
|
|
735
|
-
export const ListInstancesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
736
|
-
InstanceListInstance,
|
|
737
|
-
) as any as S.Schema<ListInstancesResponseItemsList>;
|
|
738
|
-
|
|
739
298
|
export interface ListInstancesResponse {
|
|
740
299
|
count?: number;
|
|
741
300
|
items?: ListInstancesResponseItemsList;
|
|
742
301
|
}
|
|
743
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
744
|
-
S.Struct({
|
|
745
|
-
count: S.optional(S.Number),
|
|
746
|
-
items: S.optional(ListInstancesResponseItemsList),
|
|
747
|
-
}),
|
|
748
|
-
).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
|
|
749
|
-
|
|
750
302
|
export type ListMetricsRequestRegion = "eu01" | "eu02";
|
|
751
|
-
export const ListMetricsRequestRegion = S.String;
|
|
752
|
-
|
|
753
303
|
export interface ListMetricsRequest {
|
|
754
304
|
/** project id */
|
|
755
305
|
projectId: string;
|
|
@@ -768,88 +318,26 @@ export interface ListMetricsRequest {
|
|
|
768
318
|
/** period end */
|
|
769
319
|
end?: string;
|
|
770
320
|
}
|
|
771
|
-
export const ListMetricsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
772
|
-
S.Struct({
|
|
773
|
-
projectId: S.String.pipe(T.Label()),
|
|
774
|
-
region: ListMetricsRequestRegion.pipe(T.Label()),
|
|
775
|
-
instanceId: S.String.pipe(T.Label()),
|
|
776
|
-
metric: S.String.pipe(T.Label()),
|
|
777
|
-
granularity: S.String.pipe(T.Query()),
|
|
778
|
-
period: S.optional(S.String.pipe(T.Query())),
|
|
779
|
-
start: S.optional(S.String.pipe(T.Query())),
|
|
780
|
-
end: S.optional(S.String.pipe(T.Query())),
|
|
781
|
-
}).pipe(
|
|
782
|
-
T.Http({
|
|
783
|
-
method: "GET",
|
|
784
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}",
|
|
785
|
-
code: 200,
|
|
786
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
787
|
-
}),
|
|
788
|
-
),
|
|
789
|
-
).annotate({ identifier: "ListMetricsRequest" }) as any as S.Schema<ListMetricsRequest>;
|
|
790
|
-
|
|
791
321
|
export interface DataPoint {
|
|
792
322
|
timestamp?: string;
|
|
793
323
|
value?: number;
|
|
794
324
|
}
|
|
795
|
-
export const DataPoint = /*@__PURE__*/ S.suspend(() =>
|
|
796
|
-
S.Struct({
|
|
797
|
-
timestamp: S.optional(S.String),
|
|
798
|
-
value: S.optional(S.Number),
|
|
799
|
-
}),
|
|
800
|
-
).annotate({ identifier: "DataPoint" }) as any as S.Schema<DataPoint>;
|
|
801
|
-
|
|
802
325
|
export type HostMetricDatapointsList = Array<DataPoint>;
|
|
803
|
-
export const HostMetricDatapointsList = /*@__PURE__*/ S.Array(
|
|
804
|
-
DataPoint,
|
|
805
|
-
) as any as S.Schema<HostMetricDatapointsList>;
|
|
806
|
-
|
|
807
326
|
export interface HostMetric {
|
|
808
327
|
datapoints?: HostMetricDatapointsList;
|
|
809
328
|
name?: string;
|
|
810
329
|
units?: string;
|
|
811
330
|
}
|
|
812
|
-
export const HostMetric = /*@__PURE__*/ S.suspend(() =>
|
|
813
|
-
S.Struct({
|
|
814
|
-
datapoints: S.optional(HostMetricDatapointsList),
|
|
815
|
-
name: S.optional(S.String),
|
|
816
|
-
units: S.optional(S.String),
|
|
817
|
-
}),
|
|
818
|
-
).annotate({ identifier: "HostMetric" }) as any as S.Schema<HostMetric>;
|
|
819
|
-
|
|
820
331
|
export type HostHostMetricsList = Array<HostMetric>;
|
|
821
|
-
export const HostHostMetricsList = /*@__PURE__*/ S.Array(
|
|
822
|
-
HostMetric,
|
|
823
|
-
) as any as S.Schema<HostHostMetricsList>;
|
|
824
|
-
|
|
825
332
|
export interface Host {
|
|
826
333
|
hostMetrics?: HostHostMetricsList;
|
|
827
334
|
id?: string;
|
|
828
335
|
}
|
|
829
|
-
export const Host = /*@__PURE__*/ S.suspend(() =>
|
|
830
|
-
S.Struct({
|
|
831
|
-
hostMetrics: S.optional(HostHostMetricsList),
|
|
832
|
-
id: S.optional(S.String),
|
|
833
|
-
}),
|
|
834
|
-
).annotate({ identifier: "Host" }) as any as S.Schema<Host>;
|
|
835
|
-
|
|
836
336
|
export type ListMetricsResponseHostsList = Array<Host>;
|
|
837
|
-
export const ListMetricsResponseHostsList = /*@__PURE__*/ S.Array(
|
|
838
|
-
Host,
|
|
839
|
-
) as any as S.Schema<ListMetricsResponseHostsList>;
|
|
840
|
-
|
|
841
337
|
export interface ListMetricsResponse {
|
|
842
338
|
hosts?: ListMetricsResponseHostsList;
|
|
843
339
|
}
|
|
844
|
-
export const ListMetricsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
845
|
-
S.Struct({
|
|
846
|
-
hosts: S.optional(ListMetricsResponseHostsList),
|
|
847
|
-
}),
|
|
848
|
-
).annotate({ identifier: "ListMetricsResponse" }) as any as S.Schema<ListMetricsResponse>;
|
|
849
|
-
|
|
850
340
|
export type ListRestoreJobsRequestRegion = "eu01" | "eu02";
|
|
851
|
-
export const ListRestoreJobsRequestRegion = S.String;
|
|
852
|
-
|
|
853
341
|
export interface ListRestoreJobsRequest {
|
|
854
342
|
/** project id */
|
|
855
343
|
projectId: string;
|
|
@@ -858,21 +346,6 @@ export interface ListRestoreJobsRequest {
|
|
|
858
346
|
/** instance id */
|
|
859
347
|
instanceId: string;
|
|
860
348
|
}
|
|
861
|
-
export const ListRestoreJobsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
862
|
-
S.Struct({
|
|
863
|
-
projectId: S.String.pipe(T.Label()),
|
|
864
|
-
region: ListRestoreJobsRequestRegion.pipe(T.Label()),
|
|
865
|
-
instanceId: S.String.pipe(T.Label()),
|
|
866
|
-
}).pipe(
|
|
867
|
-
T.Http({
|
|
868
|
-
method: "GET",
|
|
869
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
870
|
-
code: 200,
|
|
871
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
872
|
-
}),
|
|
873
|
-
),
|
|
874
|
-
).annotate({ identifier: "ListRestoreJobsRequest" }) as any as S.Schema<ListRestoreJobsRequest>;
|
|
875
|
-
|
|
876
349
|
export interface RestoreInstanceStatus {
|
|
877
350
|
backupID?: string;
|
|
878
351
|
date?: string;
|
|
@@ -880,33 +353,11 @@ export interface RestoreInstanceStatus {
|
|
|
880
353
|
instanceId?: string;
|
|
881
354
|
status?: string;
|
|
882
355
|
}
|
|
883
|
-
export const RestoreInstanceStatus = /*@__PURE__*/ S.suspend(() =>
|
|
884
|
-
S.Struct({
|
|
885
|
-
backupID: S.optional(S.String),
|
|
886
|
-
date: S.optional(S.String),
|
|
887
|
-
id: S.optional(S.String),
|
|
888
|
-
instanceId: S.optional(S.String),
|
|
889
|
-
status: S.optional(S.String),
|
|
890
|
-
}),
|
|
891
|
-
).annotate({ identifier: "RestoreInstanceStatus" }) as any as S.Schema<RestoreInstanceStatus>;
|
|
892
|
-
|
|
893
356
|
export type ListRestoreJobsResponseItemsList = Array<RestoreInstanceStatus>;
|
|
894
|
-
export const ListRestoreJobsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
895
|
-
RestoreInstanceStatus,
|
|
896
|
-
) as any as S.Schema<ListRestoreJobsResponseItemsList>;
|
|
897
|
-
|
|
898
357
|
export interface ListRestoreJobsResponse {
|
|
899
358
|
items?: ListRestoreJobsResponseItemsList;
|
|
900
359
|
}
|
|
901
|
-
export const ListRestoreJobsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
902
|
-
S.Struct({
|
|
903
|
-
items: S.optional(ListRestoreJobsResponseItemsList),
|
|
904
|
-
}),
|
|
905
|
-
).annotate({ identifier: "ListRestoreJobsResponse" }) as any as S.Schema<ListRestoreJobsResponse>;
|
|
906
|
-
|
|
907
360
|
export type ListStoragesRequestRegion = "eu01" | "eu02";
|
|
908
|
-
export const ListStoragesRequestRegion = S.String;
|
|
909
|
-
|
|
910
361
|
export interface ListStoragesRequest {
|
|
911
362
|
/** project id */
|
|
912
363
|
projectId: string;
|
|
@@ -915,51 +366,16 @@ export interface ListStoragesRequest {
|
|
|
915
366
|
/** flavor id */
|
|
916
367
|
flavor: string;
|
|
917
368
|
}
|
|
918
|
-
export const ListStoragesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
919
|
-
S.Struct({
|
|
920
|
-
projectId: S.String.pipe(T.Label()),
|
|
921
|
-
region: ListStoragesRequestRegion.pipe(T.Label()),
|
|
922
|
-
flavor: S.String.pipe(T.Label()),
|
|
923
|
-
}).pipe(
|
|
924
|
-
T.Http({
|
|
925
|
-
method: "GET",
|
|
926
|
-
uri: "/v2/projects/{projectId}/regions/{region}/storages/{flavor}",
|
|
927
|
-
code: 200,
|
|
928
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
929
|
-
}),
|
|
930
|
-
),
|
|
931
|
-
).annotate({ identifier: "ListStoragesRequest" }) as any as S.Schema<ListStoragesRequest>;
|
|
932
|
-
|
|
933
369
|
export type ListStoragesResponseStorageClassesList = Array<string>;
|
|
934
|
-
export const ListStoragesResponseStorageClassesList = /*@__PURE__*/ S.Array(
|
|
935
|
-
S.String,
|
|
936
|
-
) as any as S.Schema<ListStoragesResponseStorageClassesList>;
|
|
937
|
-
|
|
938
370
|
export interface StorageRange {
|
|
939
371
|
max?: number;
|
|
940
372
|
min?: number;
|
|
941
373
|
}
|
|
942
|
-
export const StorageRange = /*@__PURE__*/ S.suspend(() =>
|
|
943
|
-
S.Struct({
|
|
944
|
-
max: S.optional(S.Number),
|
|
945
|
-
min: S.optional(S.Number),
|
|
946
|
-
}),
|
|
947
|
-
).annotate({ identifier: "StorageRange" }) as any as S.Schema<StorageRange>;
|
|
948
|
-
|
|
949
374
|
export interface ListStoragesResponse {
|
|
950
375
|
storageClasses?: ListStoragesResponseStorageClassesList;
|
|
951
376
|
storageRange?: StorageRange;
|
|
952
377
|
}
|
|
953
|
-
export const ListStoragesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
954
|
-
S.Struct({
|
|
955
|
-
storageClasses: S.optional(ListStoragesResponseStorageClassesList),
|
|
956
|
-
storageRange: S.optional(StorageRange),
|
|
957
|
-
}),
|
|
958
|
-
).annotate({ identifier: "ListStoragesResponse" }) as any as S.Schema<ListStoragesResponse>;
|
|
959
|
-
|
|
960
378
|
export type ListSuggestedIndexesRequestRegion = "eu01" | "eu02";
|
|
961
|
-
export const ListSuggestedIndexesRequestRegion = S.String;
|
|
962
|
-
|
|
963
379
|
export interface ListSuggestedIndexesRequest {
|
|
964
380
|
/** project id */
|
|
965
381
|
projectId: string;
|
|
@@ -968,29 +384,8 @@ export interface ListSuggestedIndexesRequest {
|
|
|
968
384
|
/** instance id */
|
|
969
385
|
instanceId: string;
|
|
970
386
|
}
|
|
971
|
-
export const ListSuggestedIndexesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
972
|
-
S.Struct({
|
|
973
|
-
projectId: S.String.pipe(T.Label()),
|
|
974
|
-
region: ListSuggestedIndexesRequestRegion.pipe(T.Label()),
|
|
975
|
-
instanceId: S.String.pipe(T.Label()),
|
|
976
|
-
}).pipe(
|
|
977
|
-
T.Http({
|
|
978
|
-
method: "GET",
|
|
979
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/suggested-indexes",
|
|
980
|
-
code: 200,
|
|
981
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
982
|
-
}),
|
|
983
|
-
),
|
|
984
|
-
).annotate({
|
|
985
|
-
identifier: "ListSuggestedIndexesRequest",
|
|
986
|
-
}) as any as S.Schema<ListSuggestedIndexesRequest>;
|
|
987
|
-
|
|
988
387
|
/** Documents containing the search criteria used by the query. */
|
|
989
388
|
export type MongodbatlasOperationPredicatesList = Array<unknown>;
|
|
990
|
-
export const MongodbatlasOperationPredicatesList = /*@__PURE__*/ S.Array(
|
|
991
|
-
S.Unknown,
|
|
992
|
-
) as any as S.Schema<MongodbatlasOperationPredicatesList>;
|
|
993
|
-
|
|
994
389
|
export interface MongodbatlasStats {
|
|
995
390
|
/** Duration in milliseconds of the query. */
|
|
996
391
|
ms?: number;
|
|
@@ -1001,15 +396,6 @@ export interface MongodbatlasStats {
|
|
|
1001
396
|
/** Query timestamp, in seconds since epoch. */
|
|
1002
397
|
ts?: number;
|
|
1003
398
|
}
|
|
1004
|
-
export const MongodbatlasStats = /*@__PURE__*/ S.suspend(() =>
|
|
1005
|
-
S.Struct({
|
|
1006
|
-
ms: S.optional(S.Number),
|
|
1007
|
-
nReturned: S.optional(S.Number),
|
|
1008
|
-
nScanned: S.optional(S.Number),
|
|
1009
|
-
ts: S.optional(S.Number),
|
|
1010
|
-
}),
|
|
1011
|
-
).annotate({ identifier: "MongodbatlasStats" }) as any as S.Schema<MongodbatlasStats>;
|
|
1012
|
-
|
|
1013
399
|
export interface MongodbatlasOperation {
|
|
1014
400
|
/** Documents containing the search criteria used by the query. */
|
|
1015
401
|
predicates?: MongodbatlasOperationPredicatesList;
|
|
@@ -1018,20 +404,8 @@ export interface MongodbatlasOperation {
|
|
|
1018
404
|
/** Query statistics. */
|
|
1019
405
|
stats?: MongodbatlasStats;
|
|
1020
406
|
}
|
|
1021
|
-
export const MongodbatlasOperation = /*@__PURE__*/ S.suspend(() =>
|
|
1022
|
-
S.Struct({
|
|
1023
|
-
predicates: S.optional(MongodbatlasOperationPredicatesList),
|
|
1024
|
-
raw: S.optional(S.String),
|
|
1025
|
-
stats: S.optional(MongodbatlasStats),
|
|
1026
|
-
}),
|
|
1027
|
-
).annotate({ identifier: "MongodbatlasOperation" }) as any as S.Schema<MongodbatlasOperation>;
|
|
1028
|
-
|
|
1029
407
|
/** It represents documents with specific information and log lines for individual queries. */
|
|
1030
408
|
export type ShapeOperationsList = Array<MongodbatlasOperation>;
|
|
1031
|
-
export const ShapeOperationsList = /*@__PURE__*/ S.Array(
|
|
1032
|
-
MongodbatlasOperation,
|
|
1033
|
-
) as any as S.Schema<ShapeOperationsList>;
|
|
1034
|
-
|
|
1035
409
|
export interface Shape {
|
|
1036
410
|
/** Average duration in milliseconds for the queries examined that match this shape. */
|
|
1037
411
|
avgMs?: number;
|
|
@@ -1046,41 +420,13 @@ export interface Shape {
|
|
|
1046
420
|
/** It represents documents with specific information and log lines for individual queries. */
|
|
1047
421
|
operations?: ShapeOperationsList;
|
|
1048
422
|
}
|
|
1049
|
-
export const Shape = /*@__PURE__*/ S.suspend(() =>
|
|
1050
|
-
S.Struct({
|
|
1051
|
-
avgMs: S.optional(S.Number),
|
|
1052
|
-
count: S.optional(S.Number),
|
|
1053
|
-
id: S.optional(S.String),
|
|
1054
|
-
inefficiencyScore: S.optional(S.Number),
|
|
1055
|
-
namespace: S.optional(S.String),
|
|
1056
|
-
operations: S.optional(ShapeOperationsList),
|
|
1057
|
-
}),
|
|
1058
|
-
).annotate({ identifier: "Shape" }) as any as S.Schema<Shape>;
|
|
1059
|
-
|
|
1060
423
|
/** Documents with information about the query shapes that are served by the suggested indexes. */
|
|
1061
424
|
export type HandlersInstancesSuggestedIndexesResponseShapesList = Array<Shape>;
|
|
1062
|
-
export const HandlersInstancesSuggestedIndexesResponseShapesList = /*@__PURE__*/ S.Array(
|
|
1063
|
-
Shape,
|
|
1064
|
-
) as any as S.Schema<HandlersInstancesSuggestedIndexesResponseShapesList>;
|
|
1065
|
-
|
|
1066
425
|
/** List of unique identifiers which correspond the query shapes in this response which pertain to this suggested index. */
|
|
1067
426
|
export type SuggestedIndexImpactList = Array<string>;
|
|
1068
|
-
export const SuggestedIndexImpactList = /*@__PURE__*/ S.Array(
|
|
1069
|
-
S.String,
|
|
1070
|
-
) as any as S.Schema<SuggestedIndexImpactList>;
|
|
1071
|
-
|
|
1072
427
|
export type SuggestedIndexIndexItemMap = { [key: string]: number | undefined };
|
|
1073
|
-
export const SuggestedIndexIndexItemMap = /*@__PURE__*/ S.Record(
|
|
1074
|
-
S.String,
|
|
1075
|
-
S.Number,
|
|
1076
|
-
) as any as S.Schema<SuggestedIndexIndexItemMap>;
|
|
1077
|
-
|
|
1078
428
|
/** Array of documents that specifies a key in the index and its sort order, ascending or descending. */
|
|
1079
429
|
export type SuggestedIndexIndexList = Array<SuggestedIndexIndexItemMap>;
|
|
1080
|
-
export const SuggestedIndexIndexList = /*@__PURE__*/ S.Array(
|
|
1081
|
-
SuggestedIndexIndexItemMap,
|
|
1082
|
-
) as any as S.Schema<SuggestedIndexIndexList>;
|
|
1083
|
-
|
|
1084
430
|
export interface SuggestedIndex {
|
|
1085
431
|
/** Unique id for this suggested index. */
|
|
1086
432
|
id?: string;
|
|
@@ -1093,40 +439,15 @@ export interface SuggestedIndex {
|
|
|
1093
439
|
/** Estimated percentage performance improvement that the suggested index would provide. */
|
|
1094
440
|
weight?: number;
|
|
1095
441
|
}
|
|
1096
|
-
export const SuggestedIndex = /*@__PURE__*/ S.suspend(() =>
|
|
1097
|
-
S.Struct({
|
|
1098
|
-
id: S.optional(S.String),
|
|
1099
|
-
impact: S.optional(SuggestedIndexImpactList),
|
|
1100
|
-
index: S.optional(SuggestedIndexIndexList),
|
|
1101
|
-
namespace: S.optional(S.String),
|
|
1102
|
-
weight: S.optional(S.Number),
|
|
1103
|
-
}),
|
|
1104
|
-
).annotate({ identifier: "SuggestedIndex" }) as any as S.Schema<SuggestedIndex>;
|
|
1105
|
-
|
|
1106
442
|
/** Documents with information about the indexes suggested by the Performance Advisor. */
|
|
1107
443
|
export type HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList = Array<SuggestedIndex>;
|
|
1108
|
-
export const HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList = /*@__PURE__*/ S.Array(
|
|
1109
|
-
SuggestedIndex,
|
|
1110
|
-
) as any as S.Schema<HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList>;
|
|
1111
|
-
|
|
1112
444
|
export interface HandlersInstancesSuggestedIndexesResponse {
|
|
1113
445
|
/** Documents with information about the query shapes that are served by the suggested indexes. */
|
|
1114
446
|
shapes?: HandlersInstancesSuggestedIndexesResponseShapesList;
|
|
1115
447
|
/** Documents with information about the indexes suggested by the Performance Advisor. */
|
|
1116
448
|
suggestedIndexes?: HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList;
|
|
1117
449
|
}
|
|
1118
|
-
export const HandlersInstancesSuggestedIndexesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1119
|
-
S.Struct({
|
|
1120
|
-
shapes: S.optional(HandlersInstancesSuggestedIndexesResponseShapesList),
|
|
1121
|
-
suggestedIndexes: S.optional(HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList),
|
|
1122
|
-
}),
|
|
1123
|
-
).annotate({
|
|
1124
|
-
identifier: "HandlersInstancesSuggestedIndexesResponse",
|
|
1125
|
-
}) as any as S.Schema<HandlersInstancesSuggestedIndexesResponse>;
|
|
1126
|
-
|
|
1127
450
|
export type ListUsersRequestRegion = "eu01" | "eu02";
|
|
1128
|
-
export const ListUsersRequestRegion = S.String;
|
|
1129
|
-
|
|
1130
451
|
export interface ListUsersRequest {
|
|
1131
452
|
/** project id */
|
|
1132
453
|
projectId: string;
|
|
@@ -1135,101 +456,30 @@ export interface ListUsersRequest {
|
|
|
1135
456
|
/** instance id */
|
|
1136
457
|
instanceId: string;
|
|
1137
458
|
}
|
|
1138
|
-
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1139
|
-
S.Struct({
|
|
1140
|
-
projectId: S.String.pipe(T.Label()),
|
|
1141
|
-
region: ListUsersRequestRegion.pipe(T.Label()),
|
|
1142
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1143
|
-
}).pipe(
|
|
1144
|
-
T.Http({
|
|
1145
|
-
method: "GET",
|
|
1146
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
1147
|
-
code: 200,
|
|
1148
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1149
|
-
}),
|
|
1150
|
-
),
|
|
1151
|
-
).annotate({ identifier: "ListUsersRequest" }) as any as S.Schema<ListUsersRequest>;
|
|
1152
|
-
|
|
1153
459
|
export interface ListUser {
|
|
1154
460
|
id?: string;
|
|
1155
461
|
username?: string;
|
|
1156
462
|
}
|
|
1157
|
-
export const ListUser = /*@__PURE__*/ S.suspend(() =>
|
|
1158
|
-
S.Struct({
|
|
1159
|
-
id: S.optional(S.String),
|
|
1160
|
-
username: S.optional(S.String),
|
|
1161
|
-
}),
|
|
1162
|
-
).annotate({ identifier: "ListUser" }) as any as S.Schema<ListUser>;
|
|
1163
|
-
|
|
1164
463
|
export type ListUsersResponseItemsList = Array<ListUser>;
|
|
1165
|
-
export const ListUsersResponseItemsList = /*@__PURE__*/ S.Array(
|
|
1166
|
-
ListUser,
|
|
1167
|
-
) as any as S.Schema<ListUsersResponseItemsList>;
|
|
1168
|
-
|
|
1169
464
|
export interface ListUsersResponse {
|
|
1170
465
|
count?: number;
|
|
1171
466
|
items?: ListUsersResponseItemsList;
|
|
1172
467
|
}
|
|
1173
|
-
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1174
|
-
S.Struct({
|
|
1175
|
-
count: S.optional(S.Number),
|
|
1176
|
-
items: S.optional(ListUsersResponseItemsList),
|
|
1177
|
-
}),
|
|
1178
|
-
).annotate({ identifier: "ListUsersResponse" }) as any as S.Schema<ListUsersResponse>;
|
|
1179
|
-
|
|
1180
468
|
export type ListVersionsRequestRegion = "eu01" | "eu02";
|
|
1181
|
-
export const ListVersionsRequestRegion = S.String;
|
|
1182
|
-
|
|
1183
469
|
export interface ListVersionsRequest {
|
|
1184
470
|
/** project id */
|
|
1185
471
|
projectId: string;
|
|
1186
472
|
/** The region which should be addressed */
|
|
1187
473
|
region: ListVersionsRequestRegion | (string & {});
|
|
1188
474
|
}
|
|
1189
|
-
export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1190
|
-
S.Struct({
|
|
1191
|
-
projectId: S.String.pipe(T.Label()),
|
|
1192
|
-
region: ListVersionsRequestRegion.pipe(T.Label()),
|
|
1193
|
-
}).pipe(
|
|
1194
|
-
T.Http({
|
|
1195
|
-
method: "GET",
|
|
1196
|
-
uri: "/v2/projects/{projectId}/regions/{region}/versions",
|
|
1197
|
-
code: 200,
|
|
1198
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1199
|
-
}),
|
|
1200
|
-
),
|
|
1201
|
-
).annotate({ identifier: "ListVersionsRequest" }) as any as S.Schema<ListVersionsRequest>;
|
|
1202
|
-
|
|
1203
475
|
export type ListVersionsResponseVersionsList = Array<string>;
|
|
1204
|
-
export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(
|
|
1205
|
-
S.String,
|
|
1206
|
-
) as any as S.Schema<ListVersionsResponseVersionsList>;
|
|
1207
|
-
|
|
1208
476
|
export interface ListVersionsResponse {
|
|
1209
477
|
versions?: ListVersionsResponseVersionsList;
|
|
1210
478
|
}
|
|
1211
|
-
export const ListVersionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1212
|
-
S.Struct({
|
|
1213
|
-
versions: S.optional(ListVersionsResponseVersionsList),
|
|
1214
|
-
}),
|
|
1215
|
-
).annotate({ identifier: "ListVersionsResponse" }) as any as S.Schema<ListVersionsResponse>;
|
|
1216
|
-
|
|
1217
479
|
export type PartialUpdateInstanceRequestRegion = "eu01" | "eu02";
|
|
1218
|
-
export const PartialUpdateInstanceRequestRegion = S.String;
|
|
1219
|
-
|
|
1220
480
|
/** Labels field is not certain/clear */
|
|
1221
481
|
export type PartialUpdateInstanceRequestLabelsMap = { [key: string]: string | undefined };
|
|
1222
|
-
export const PartialUpdateInstanceRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
1223
|
-
S.String,
|
|
1224
|
-
S.String,
|
|
1225
|
-
) as any as S.Schema<PartialUpdateInstanceRequestLabelsMap>;
|
|
1226
|
-
|
|
1227
482
|
export type PartialUpdateInstanceRequestOptionsMap = { [key: string]: string | undefined };
|
|
1228
|
-
export const PartialUpdateInstanceRequestOptionsMap = /*@__PURE__*/ S.Record(
|
|
1229
|
-
S.String,
|
|
1230
|
-
S.String,
|
|
1231
|
-
) as any as S.Schema<PartialUpdateInstanceRequestOptionsMap>;
|
|
1232
|
-
|
|
1233
483
|
export interface PartialUpdateInstanceRequest {
|
|
1234
484
|
/** project id */
|
|
1235
485
|
projectId: string;
|
|
@@ -1248,50 +498,12 @@ export interface PartialUpdateInstanceRequest {
|
|
|
1248
498
|
storage?: Storage;
|
|
1249
499
|
version?: string;
|
|
1250
500
|
}
|
|
1251
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1252
|
-
S.Struct({
|
|
1253
|
-
projectId: S.String.pipe(T.Label()),
|
|
1254
|
-
region: PartialUpdateInstanceRequestRegion.pipe(T.Label()),
|
|
1255
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1256
|
-
acl: S.optional(ACL),
|
|
1257
|
-
backupSchedule: S.optional(S.String),
|
|
1258
|
-
flavorId: S.optional(S.String),
|
|
1259
|
-
labels: S.optional(PartialUpdateInstanceRequestLabelsMap),
|
|
1260
|
-
name: S.optional(S.String),
|
|
1261
|
-
options: S.optional(PartialUpdateInstanceRequestOptionsMap),
|
|
1262
|
-
replicas: S.optional(S.Number),
|
|
1263
|
-
storage: S.optional(Storage),
|
|
1264
|
-
version: S.optional(S.String),
|
|
1265
|
-
}).pipe(
|
|
1266
|
-
T.Http({
|
|
1267
|
-
method: "PATCH",
|
|
1268
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1269
|
-
code: 200,
|
|
1270
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1271
|
-
}),
|
|
1272
|
-
),
|
|
1273
|
-
).annotate({
|
|
1274
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
1275
|
-
}) as any as S.Schema<PartialUpdateInstanceRequest>;
|
|
1276
|
-
|
|
1277
501
|
export interface UpdateInstanceResponse {
|
|
1278
502
|
item?: Instance;
|
|
1279
503
|
}
|
|
1280
|
-
export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1281
|
-
S.Struct({
|
|
1282
|
-
item: S.optional(Instance),
|
|
1283
|
-
}),
|
|
1284
|
-
).annotate({ identifier: "UpdateInstanceResponse" }) as any as S.Schema<UpdateInstanceResponse>;
|
|
1285
|
-
|
|
1286
504
|
export type PartialUpdateUserRequestRegion = "eu01" | "eu02";
|
|
1287
|
-
export const PartialUpdateUserRequestRegion = S.String;
|
|
1288
|
-
|
|
1289
505
|
/** The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** */
|
|
1290
506
|
export type PartialUpdateUserRequestRolesList = Array<string>;
|
|
1291
|
-
export const PartialUpdateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
1292
|
-
S.String,
|
|
1293
|
-
) as any as S.Schema<PartialUpdateUserRequestRolesList>;
|
|
1294
|
-
|
|
1295
507
|
export interface PartialUpdateUserRequest {
|
|
1296
508
|
/** project id */
|
|
1297
509
|
projectId: string;
|
|
@@ -1305,32 +517,8 @@ export interface PartialUpdateUserRequest {
|
|
|
1305
517
|
/** The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** */
|
|
1306
518
|
roles?: PartialUpdateUserRequestRolesList;
|
|
1307
519
|
}
|
|
1308
|
-
export const PartialUpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1309
|
-
S.Struct({
|
|
1310
|
-
projectId: S.String.pipe(T.Label()),
|
|
1311
|
-
region: PartialUpdateUserRequestRegion.pipe(T.Label()),
|
|
1312
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1313
|
-
userId: S.String.pipe(T.Label()),
|
|
1314
|
-
database: S.optional(S.String),
|
|
1315
|
-
roles: S.optional(PartialUpdateUserRequestRolesList),
|
|
1316
|
-
}).pipe(
|
|
1317
|
-
T.Http({
|
|
1318
|
-
method: "PATCH",
|
|
1319
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1320
|
-
code: 200,
|
|
1321
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1322
|
-
}),
|
|
1323
|
-
),
|
|
1324
|
-
).annotate({ identifier: "PartialUpdateUserRequest" }) as any as S.Schema<PartialUpdateUserRequest>;
|
|
1325
|
-
|
|
1326
520
|
export interface PartialUpdateUserResponse {}
|
|
1327
|
-
export const PartialUpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1328
|
-
identifier: "PartialUpdateUserResponse",
|
|
1329
|
-
}) as any as S.Schema<PartialUpdateUserResponse>;
|
|
1330
|
-
|
|
1331
521
|
export type ResetUserRequestRegion = "eu01" | "eu02";
|
|
1332
|
-
export const ResetUserRequestRegion = S.String;
|
|
1333
|
-
|
|
1334
522
|
export interface ResetUserRequest {
|
|
1335
523
|
/** project id */
|
|
1336
524
|
projectId: string;
|
|
@@ -1341,25 +529,7 @@ export interface ResetUserRequest {
|
|
|
1341
529
|
/** user id */
|
|
1342
530
|
userId: string;
|
|
1343
531
|
}
|
|
1344
|
-
export const ResetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1345
|
-
S.Struct({
|
|
1346
|
-
projectId: S.String.pipe(T.Label()),
|
|
1347
|
-
region: ResetUserRequestRegion.pipe(T.Label()),
|
|
1348
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1349
|
-
userId: S.String.pipe(T.Label()),
|
|
1350
|
-
}).pipe(
|
|
1351
|
-
T.Http({
|
|
1352
|
-
method: "POST",
|
|
1353
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
1354
|
-
code: 200,
|
|
1355
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1356
|
-
}),
|
|
1357
|
-
),
|
|
1358
|
-
).annotate({ identifier: "ResetUserRequest" }) as any as S.Schema<ResetUserRequest>;
|
|
1359
|
-
|
|
1360
532
|
export type RestoreInstanceRequestRegion = "eu01" | "eu02";
|
|
1361
|
-
export const RestoreInstanceRequestRegion = S.String;
|
|
1362
|
-
|
|
1363
533
|
export interface RestoreInstanceRequest {
|
|
1364
534
|
/** project id */
|
|
1365
535
|
projectId: string;
|
|
@@ -1369,34 +539,10 @@ export interface RestoreInstanceRequest {
|
|
|
1369
539
|
instanceId: string;
|
|
1370
540
|
backupId: string;
|
|
1371
541
|
}
|
|
1372
|
-
export const RestoreInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1373
|
-
S.Struct({
|
|
1374
|
-
projectId: S.String.pipe(T.Label()),
|
|
1375
|
-
region: RestoreInstanceRequestRegion.pipe(T.Label()),
|
|
1376
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1377
|
-
backupId: S.String,
|
|
1378
|
-
}).pipe(
|
|
1379
|
-
T.Http({
|
|
1380
|
-
method: "POST",
|
|
1381
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
1382
|
-
code: 200,
|
|
1383
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1384
|
-
}),
|
|
1385
|
-
),
|
|
1386
|
-
).annotate({ identifier: "RestoreInstanceRequest" }) as any as S.Schema<RestoreInstanceRequest>;
|
|
1387
|
-
|
|
1388
542
|
export interface RestoreInstanceResponse {
|
|
1389
543
|
item?: RestoreInstanceStatus;
|
|
1390
544
|
}
|
|
1391
|
-
export const RestoreInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1392
|
-
S.Struct({
|
|
1393
|
-
item: S.optional(RestoreInstanceStatus),
|
|
1394
|
-
}),
|
|
1395
|
-
).annotate({ identifier: "RestoreInstanceResponse" }) as any as S.Schema<RestoreInstanceResponse>;
|
|
1396
|
-
|
|
1397
545
|
export type UpdateBackupScheduleRequestRegion = "eu01" | "eu02";
|
|
1398
|
-
export const UpdateBackupScheduleRequestRegion = S.String;
|
|
1399
|
-
|
|
1400
546
|
export interface UpdateBackupScheduleRequest {
|
|
1401
547
|
/** project id */
|
|
1402
548
|
projectId: string;
|
|
@@ -1411,29 +557,6 @@ export interface UpdateBackupScheduleRequest {
|
|
|
1411
557
|
snapshotRetentionDays?: number;
|
|
1412
558
|
weeklySnapshotRetentionWeeks?: number;
|
|
1413
559
|
}
|
|
1414
|
-
export const UpdateBackupScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1415
|
-
S.Struct({
|
|
1416
|
-
projectId: S.String.pipe(T.Label()),
|
|
1417
|
-
region: UpdateBackupScheduleRequestRegion.pipe(T.Label()),
|
|
1418
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1419
|
-
backupSchedule: S.optional(S.String),
|
|
1420
|
-
dailySnapshotRetentionDays: S.optional(S.Number),
|
|
1421
|
-
monthlySnapshotRetentionMonths: S.optional(S.Number),
|
|
1422
|
-
pointInTimeWindowHours: S.optional(S.Number),
|
|
1423
|
-
snapshotRetentionDays: S.optional(S.Number),
|
|
1424
|
-
weeklySnapshotRetentionWeeks: S.optional(S.Number),
|
|
1425
|
-
}).pipe(
|
|
1426
|
-
T.Http({
|
|
1427
|
-
method: "PUT",
|
|
1428
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
1429
|
-
code: 200,
|
|
1430
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1431
|
-
}),
|
|
1432
|
-
),
|
|
1433
|
-
).annotate({
|
|
1434
|
-
identifier: "UpdateBackupScheduleRequest",
|
|
1435
|
-
}) as any as S.Schema<UpdateBackupScheduleRequest>;
|
|
1436
|
-
|
|
1437
560
|
export interface BackupSchedule {
|
|
1438
561
|
backupSchedule?: string;
|
|
1439
562
|
dailySnapshotRetentionDays?: number;
|
|
@@ -1442,33 +565,10 @@ export interface BackupSchedule {
|
|
|
1442
565
|
snapshotRetentionDays?: number;
|
|
1443
566
|
weeklySnapshotRetentionWeeks?: number;
|
|
1444
567
|
}
|
|
1445
|
-
export const BackupSchedule = /*@__PURE__*/ S.suspend(() =>
|
|
1446
|
-
S.Struct({
|
|
1447
|
-
backupSchedule: S.optional(S.String),
|
|
1448
|
-
dailySnapshotRetentionDays: S.optional(S.Number),
|
|
1449
|
-
monthlySnapshotRetentionMonths: S.optional(S.Number),
|
|
1450
|
-
pointInTimeWindowHours: S.optional(S.Number),
|
|
1451
|
-
snapshotRetentionDays: S.optional(S.Number),
|
|
1452
|
-
weeklySnapshotRetentionWeeks: S.optional(S.Number),
|
|
1453
|
-
}),
|
|
1454
|
-
).annotate({ identifier: "BackupSchedule" }) as any as S.Schema<BackupSchedule>;
|
|
1455
|
-
|
|
1456
568
|
export type UpdateInstanceRequestRegion = "eu01" | "eu02";
|
|
1457
|
-
export const UpdateInstanceRequestRegion = S.String;
|
|
1458
|
-
|
|
1459
569
|
/** Labels field is not certain/clear */
|
|
1460
570
|
export type UpdateInstanceRequestLabelsMap = { [key: string]: string | undefined };
|
|
1461
|
-
export const UpdateInstanceRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
1462
|
-
S.String,
|
|
1463
|
-
S.String,
|
|
1464
|
-
) as any as S.Schema<UpdateInstanceRequestLabelsMap>;
|
|
1465
|
-
|
|
1466
571
|
export type UpdateInstanceRequestOptionsMap = { [key: string]: string | undefined };
|
|
1467
|
-
export const UpdateInstanceRequestOptionsMap = /*@__PURE__*/ S.Record(
|
|
1468
|
-
S.String,
|
|
1469
|
-
S.String,
|
|
1470
|
-
) as any as S.Schema<UpdateInstanceRequestOptionsMap>;
|
|
1471
|
-
|
|
1472
572
|
export interface UpdateInstanceRequest {
|
|
1473
573
|
/** project id */
|
|
1474
574
|
projectId: string;
|
|
@@ -1487,39 +587,9 @@ export interface UpdateInstanceRequest {
|
|
|
1487
587
|
storage: Storage;
|
|
1488
588
|
version: string;
|
|
1489
589
|
}
|
|
1490
|
-
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1491
|
-
S.Struct({
|
|
1492
|
-
projectId: S.String.pipe(T.Label()),
|
|
1493
|
-
region: UpdateInstanceRequestRegion.pipe(T.Label()),
|
|
1494
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1495
|
-
acl: ACL,
|
|
1496
|
-
backupSchedule: S.String,
|
|
1497
|
-
flavorId: S.String,
|
|
1498
|
-
labels: S.optional(UpdateInstanceRequestLabelsMap),
|
|
1499
|
-
name: S.String,
|
|
1500
|
-
options: UpdateInstanceRequestOptionsMap,
|
|
1501
|
-
replicas: S.Number,
|
|
1502
|
-
storage: Storage,
|
|
1503
|
-
version: S.String,
|
|
1504
|
-
}).pipe(
|
|
1505
|
-
T.Http({
|
|
1506
|
-
method: "PUT",
|
|
1507
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1508
|
-
code: 200,
|
|
1509
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1510
|
-
}),
|
|
1511
|
-
),
|
|
1512
|
-
).annotate({ identifier: "UpdateInstanceRequest" }) as any as S.Schema<UpdateInstanceRequest>;
|
|
1513
|
-
|
|
1514
590
|
export type UpdateUserRequestRegion = "eu01" | "eu02";
|
|
1515
|
-
export const UpdateUserRequestRegion = S.String;
|
|
1516
|
-
|
|
1517
591
|
/** The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** */
|
|
1518
592
|
export type UpdateUserRequestRolesList = Array<string>;
|
|
1519
|
-
export const UpdateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
1520
|
-
S.String,
|
|
1521
|
-
) as any as S.Schema<UpdateUserRequestRolesList>;
|
|
1522
|
-
|
|
1523
593
|
export interface UpdateUserRequest {
|
|
1524
594
|
/** project id */
|
|
1525
595
|
projectId: string;
|
|
@@ -1533,29 +603,7 @@ export interface UpdateUserRequest {
|
|
|
1533
603
|
/** The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** */
|
|
1534
604
|
roles: UpdateUserRequestRolesList;
|
|
1535
605
|
}
|
|
1536
|
-
export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1537
|
-
S.Struct({
|
|
1538
|
-
projectId: S.String.pipe(T.Label()),
|
|
1539
|
-
region: UpdateUserRequestRegion.pipe(T.Label()),
|
|
1540
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1541
|
-
userId: S.String.pipe(T.Label()),
|
|
1542
|
-
database: S.String,
|
|
1543
|
-
roles: UpdateUserRequestRolesList,
|
|
1544
|
-
}).pipe(
|
|
1545
|
-
T.Http({
|
|
1546
|
-
method: "PUT",
|
|
1547
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1548
|
-
code: 200,
|
|
1549
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1550
|
-
}),
|
|
1551
|
-
),
|
|
1552
|
-
).annotate({ identifier: "UpdateUserRequest" }) as any as S.Schema<UpdateUserRequest>;
|
|
1553
|
-
|
|
1554
606
|
export interface UpdateUserResponse {}
|
|
1555
|
-
export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1556
|
-
identifier: "UpdateUserResponse",
|
|
1557
|
-
}) as any as S.Schema<UpdateUserResponse>;
|
|
1558
|
-
|
|
1559
607
|
export type CloneInstanceError = BadRequest | NotFound | StackitOpError;
|
|
1560
608
|
/** Clone instance Clone an instance via PIT restore<br/> Note that the Timestamp is a RFC3339 standard and uses by default UTC time format<br/> As an example a valid timestamp look like "2023-04-20T15:05:15Z" */
|
|
1561
609
|
export const cloneInstance: API.OperationMethod<
|
|
@@ -1564,8 +612,8 @@ export const cloneInstance: API.OperationMethod<
|
|
|
1564
612
|
CloneInstanceError,
|
|
1565
613
|
StackitOpContext
|
|
1566
614
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1567
|
-
input: CloneInstanceRequest
|
|
1568
|
-
output: CloneInstanceResponse
|
|
615
|
+
input: __S(304, __c19, 0) as any as S.Schema<CloneInstanceRequest>,
|
|
616
|
+
output: __S(305, __c19, 1) as any as S.Schema<CloneInstanceResponse>,
|
|
1569
617
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1570
618
|
protocol: StackitProtocol,
|
|
1571
619
|
retry: Retry.Retry,
|
|
@@ -1579,8 +627,8 @@ export const createInstance: API.OperationMethod<
|
|
|
1579
627
|
CreateInstanceError,
|
|
1580
628
|
StackitOpContext
|
|
1581
629
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1582
|
-
input: CreateInstanceRequest
|
|
1583
|
-
output: CreateInstanceResponse
|
|
630
|
+
input: __S(320, __c20, 0) as any as S.Schema<CreateInstanceRequest>,
|
|
631
|
+
output: __S(321, __c20, 1) as any as S.Schema<CreateInstanceResponse>,
|
|
1584
632
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1585
633
|
protocol: StackitProtocol,
|
|
1586
634
|
retry: Retry.Retry,
|
|
@@ -1594,8 +642,8 @@ export const createUser: API.OperationMethod<
|
|
|
1594
642
|
CreateUserError,
|
|
1595
643
|
StackitOpContext
|
|
1596
644
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1597
|
-
input: CreateUserRequest
|
|
1598
|
-
output: CreateUserResponse
|
|
645
|
+
input: __S(384, __c24, 0) as any as S.Schema<CreateUserRequest>,
|
|
646
|
+
output: __S(385, __c24, 1) as any as S.Schema<CreateUserResponse>,
|
|
1599
647
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1600
648
|
protocol: StackitProtocol,
|
|
1601
649
|
retry: Retry.Retry,
|
|
@@ -1609,8 +657,8 @@ export const deleteInstance: API.OperationMethod<
|
|
|
1609
657
|
DeleteInstanceError,
|
|
1610
658
|
StackitOpContext
|
|
1611
659
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1612
|
-
input: DeleteInstanceRequest
|
|
1613
|
-
output: DeleteInstanceResponse
|
|
660
|
+
input: __S(416, __c26, 0) as any as S.Schema<DeleteInstanceRequest>,
|
|
661
|
+
output: __S(432, __c27, 0) as any as S.Schema<DeleteInstanceResponse>,
|
|
1614
662
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1615
663
|
protocol: StackitProtocol,
|
|
1616
664
|
retry: Retry.Retry,
|
|
@@ -1624,8 +672,8 @@ export const deleteUser: API.OperationMethod<
|
|
|
1624
672
|
DeleteUserError,
|
|
1625
673
|
StackitOpContext
|
|
1626
674
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1627
|
-
input: DeleteUserRequest
|
|
1628
|
-
output: DeleteUserResponse
|
|
675
|
+
input: __S(448, __c28, 0) as any as S.Schema<DeleteUserRequest>,
|
|
676
|
+
output: __S(432, __c27, 0) as any as S.Schema<DeleteUserResponse>,
|
|
1629
677
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1630
678
|
protocol: StackitProtocol,
|
|
1631
679
|
retry: Retry.Retry,
|
|
@@ -1639,8 +687,8 @@ export const getBackup: API.OperationMethod<
|
|
|
1639
687
|
GetBackupError,
|
|
1640
688
|
StackitOpContext
|
|
1641
689
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1642
|
-
input: GetBackupRequest
|
|
1643
|
-
output: GetBackupResponse
|
|
690
|
+
input: __S(464, __c29, 0) as any as S.Schema<GetBackupRequest>,
|
|
691
|
+
output: __S(465, __c29, 1) as any as S.Schema<GetBackupResponse>,
|
|
1644
692
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1645
693
|
protocol: StackitProtocol,
|
|
1646
694
|
retry: Retry.Retry,
|
|
@@ -1654,8 +702,8 @@ export const getInstance: API.OperationMethod<
|
|
|
1654
702
|
GetInstanceError,
|
|
1655
703
|
StackitOpContext
|
|
1656
704
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1657
|
-
input: GetInstanceRequest
|
|
1658
|
-
output: InstanceResponse
|
|
705
|
+
input: __S(496, __c31, 0) as any as S.Schema<GetInstanceRequest>,
|
|
706
|
+
output: __S(514, __c32, 2) as any as S.Schema<InstanceResponse>,
|
|
1659
707
|
errors: [BadRequest, UnknownStackitError],
|
|
1660
708
|
protocol: StackitProtocol,
|
|
1661
709
|
retry: Retry.Retry,
|
|
@@ -1669,8 +717,8 @@ export const getUser: API.OperationMethod<
|
|
|
1669
717
|
GetUserError,
|
|
1670
718
|
StackitOpContext
|
|
1671
719
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1672
|
-
input: GetUserRequest
|
|
1673
|
-
output: GetUserResponse
|
|
720
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetUserRequest>,
|
|
721
|
+
output: __S(2, __c0, 2) as any as S.Schema<GetUserResponse>,
|
|
1674
722
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1675
723
|
protocol: StackitProtocol,
|
|
1676
724
|
retry: Retry.Retry,
|
|
@@ -1684,8 +732,8 @@ export const listAdvisorSlowQueries: API.OperationMethod<
|
|
|
1684
732
|
ListAdvisorSlowQueriesError,
|
|
1685
733
|
StackitOpContext
|
|
1686
734
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1687
|
-
input: ListAdvisorSlowQueriesRequest
|
|
1688
|
-
output: HandlersInstancesSlowQueriesResponse
|
|
735
|
+
input: __S(16, __c1, 0) as any as S.Schema<ListAdvisorSlowQueriesRequest>,
|
|
736
|
+
output: __S(19, __c1, 3) as any as S.Schema<HandlersInstancesSlowQueriesResponse>,
|
|
1689
737
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1690
738
|
protocol: StackitProtocol,
|
|
1691
739
|
retry: Retry.Retry,
|
|
@@ -1699,8 +747,8 @@ export const listBackups: API.OperationMethod<
|
|
|
1699
747
|
ListBackupsError,
|
|
1700
748
|
StackitOpContext
|
|
1701
749
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1702
|
-
input: ListBackupsRequest
|
|
1703
|
-
output: ListBackupsResponse
|
|
750
|
+
input: __S(32, __c2, 0) as any as S.Schema<ListBackupsRequest>,
|
|
751
|
+
output: __S(34, __c2, 2) as any as S.Schema<ListBackupsResponse>,
|
|
1704
752
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1705
753
|
protocol: StackitProtocol,
|
|
1706
754
|
retry: Retry.Retry,
|
|
@@ -1714,8 +762,8 @@ export const listFlavors: API.OperationMethod<
|
|
|
1714
762
|
ListFlavorsError,
|
|
1715
763
|
StackitOpContext
|
|
1716
764
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1717
|
-
input: ListFlavorsRequest
|
|
1718
|
-
output: ListFlavorsResponse
|
|
765
|
+
input: __S(48, __c3, 0) as any as S.Schema<ListFlavorsRequest>,
|
|
766
|
+
output: __S(51, __c3, 3) as any as S.Schema<ListFlavorsResponse>,
|
|
1719
767
|
errors: [BadRequest, UnknownStackitError],
|
|
1720
768
|
protocol: StackitProtocol,
|
|
1721
769
|
retry: Retry.Retry,
|
|
@@ -1729,8 +777,8 @@ export const listInstances: API.OperationMethod<
|
|
|
1729
777
|
ListInstancesError,
|
|
1730
778
|
StackitOpContext
|
|
1731
779
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1732
|
-
input: ListInstancesRequest
|
|
1733
|
-
output: ListInstancesResponse
|
|
780
|
+
input: __S(64, __c4, 0) as any as S.Schema<ListInstancesRequest>,
|
|
781
|
+
output: __S(67, __c4, 3) as any as S.Schema<ListInstancesResponse>,
|
|
1734
782
|
errors: [BadRequest, UnknownStackitError],
|
|
1735
783
|
protocol: StackitProtocol,
|
|
1736
784
|
retry: Retry.Retry,
|
|
@@ -1744,8 +792,8 @@ export const listMetrics: API.OperationMethod<
|
|
|
1744
792
|
ListMetricsError,
|
|
1745
793
|
StackitOpContext
|
|
1746
794
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1747
|
-
input: ListMetricsRequest
|
|
1748
|
-
output: ListMetricsResponse
|
|
795
|
+
input: __S(80, __c5, 0) as any as S.Schema<ListMetricsRequest>,
|
|
796
|
+
output: __S(87, __c5, 7) as any as S.Schema<ListMetricsResponse>,
|
|
1749
797
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1750
798
|
protocol: StackitProtocol,
|
|
1751
799
|
retry: Retry.Retry,
|
|
@@ -1759,8 +807,8 @@ export const listRestoreJobs: API.OperationMethod<
|
|
|
1759
807
|
ListRestoreJobsError,
|
|
1760
808
|
StackitOpContext
|
|
1761
809
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1762
|
-
input: ListRestoreJobsRequest
|
|
1763
|
-
output: ListRestoreJobsResponse
|
|
810
|
+
input: __S(96, __c6, 0) as any as S.Schema<ListRestoreJobsRequest>,
|
|
811
|
+
output: __S(98, __c6, 2) as any as S.Schema<ListRestoreJobsResponse>,
|
|
1764
812
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1765
813
|
protocol: StackitProtocol,
|
|
1766
814
|
retry: Retry.Retry,
|
|
@@ -1774,8 +822,8 @@ export const listStorages: API.OperationMethod<
|
|
|
1774
822
|
ListStoragesError,
|
|
1775
823
|
StackitOpContext
|
|
1776
824
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1777
|
-
input: ListStoragesRequest
|
|
1778
|
-
output: ListStoragesResponse
|
|
825
|
+
input: __S(128, __c8, 0) as any as S.Schema<ListStoragesRequest>,
|
|
826
|
+
output: __S(130, __c8, 2) as any as S.Schema<ListStoragesResponse>,
|
|
1779
827
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1780
828
|
protocol: StackitProtocol,
|
|
1781
829
|
retry: Retry.Retry,
|
|
@@ -1789,8 +837,8 @@ export const listSuggestedIndexes: API.OperationMethod<
|
|
|
1789
837
|
ListSuggestedIndexesError,
|
|
1790
838
|
StackitOpContext
|
|
1791
839
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1792
|
-
input: ListSuggestedIndexesRequest
|
|
1793
|
-
output: HandlersInstancesSuggestedIndexesResponse
|
|
840
|
+
input: __S(144, __c9, 0) as any as S.Schema<ListSuggestedIndexesRequest>,
|
|
841
|
+
output: __S(155, __c9, 11) as any as S.Schema<HandlersInstancesSuggestedIndexesResponse>,
|
|
1794
842
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1795
843
|
protocol: StackitProtocol,
|
|
1796
844
|
retry: Retry.Retry,
|
|
@@ -1804,8 +852,8 @@ export const listUsers: API.OperationMethod<
|
|
|
1804
852
|
ListUsersError,
|
|
1805
853
|
StackitOpContext
|
|
1806
854
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1807
|
-
input: ListUsersRequest
|
|
1808
|
-
output: ListUsersResponse
|
|
855
|
+
input: __S(160, __c10, 0) as any as S.Schema<ListUsersRequest>,
|
|
856
|
+
output: __S(163, __c10, 3) as any as S.Schema<ListUsersResponse>,
|
|
1809
857
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1810
858
|
protocol: StackitProtocol,
|
|
1811
859
|
retry: Retry.Retry,
|
|
@@ -1819,8 +867,8 @@ export const listVersions: API.OperationMethod<
|
|
|
1819
867
|
ListVersionsError,
|
|
1820
868
|
StackitOpContext
|
|
1821
869
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1822
|
-
input: ListVersionsRequest
|
|
1823
|
-
output: ListVersionsResponse
|
|
870
|
+
input: __S(176, __c11, 0) as any as S.Schema<ListVersionsRequest>,
|
|
871
|
+
output: __S(177, __c11, 1) as any as S.Schema<ListVersionsResponse>,
|
|
1824
872
|
errors: [BadRequest, UnknownStackitError],
|
|
1825
873
|
protocol: StackitProtocol,
|
|
1826
874
|
retry: Retry.Retry,
|
|
@@ -1834,8 +882,8 @@ export const partialUpdateInstance: API.OperationMethod<
|
|
|
1834
882
|
PartialUpdateInstanceError,
|
|
1835
883
|
StackitOpContext
|
|
1836
884
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1837
|
-
input: PartialUpdateInstanceRequest
|
|
1838
|
-
output: UpdateInstanceResponse
|
|
885
|
+
input: __S(192, __c12, 0) as any as S.Schema<PartialUpdateInstanceRequest>,
|
|
886
|
+
output: __S(514, __c32, 2) as any as S.Schema<UpdateInstanceResponse>,
|
|
1839
887
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1840
888
|
protocol: StackitProtocol,
|
|
1841
889
|
retry: Retry.Retry,
|
|
@@ -1849,8 +897,8 @@ export const partialUpdateUser: API.OperationMethod<
|
|
|
1849
897
|
PartialUpdateUserError,
|
|
1850
898
|
StackitOpContext
|
|
1851
899
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1852
|
-
input: PartialUpdateUserRequest
|
|
1853
|
-
output: PartialUpdateUserResponse
|
|
900
|
+
input: __S(208, __c13, 0) as any as S.Schema<PartialUpdateUserRequest>,
|
|
901
|
+
output: __S(432, __c27, 0) as any as S.Schema<PartialUpdateUserResponse>,
|
|
1854
902
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1855
903
|
protocol: StackitProtocol,
|
|
1856
904
|
retry: Retry.Retry,
|
|
@@ -1864,8 +912,8 @@ export const resetUser: API.OperationMethod<
|
|
|
1864
912
|
ResetUserError,
|
|
1865
913
|
StackitOpContext
|
|
1866
914
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1867
|
-
input: ResetUserRequest
|
|
1868
|
-
output: User
|
|
915
|
+
input: __S(224, __c14, 0) as any as S.Schema<ResetUserRequest>,
|
|
916
|
+
output: __S(400, __c25, 0) as any as S.Schema<User>,
|
|
1869
917
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1870
918
|
protocol: StackitProtocol,
|
|
1871
919
|
retry: Retry.Retry,
|
|
@@ -1879,8 +927,8 @@ export const restoreInstance: API.OperationMethod<
|
|
|
1879
927
|
RestoreInstanceError,
|
|
1880
928
|
StackitOpContext
|
|
1881
929
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1882
|
-
input: RestoreInstanceRequest
|
|
1883
|
-
output: RestoreInstanceResponse
|
|
930
|
+
input: __S(240, __c15, 0) as any as S.Schema<RestoreInstanceRequest>,
|
|
931
|
+
output: __S(241, __c15, 1) as any as S.Schema<RestoreInstanceResponse>,
|
|
1884
932
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1885
933
|
protocol: StackitProtocol,
|
|
1886
934
|
retry: Retry.Retry,
|
|
@@ -1894,8 +942,8 @@ export const updateBackupSchedule: API.OperationMethod<
|
|
|
1894
942
|
UpdateBackupScheduleError,
|
|
1895
943
|
StackitOpContext
|
|
1896
944
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1897
|
-
input: UpdateBackupScheduleRequest
|
|
1898
|
-
output: BackupSchedule
|
|
945
|
+
input: __S(256, __c16, 0) as any as S.Schema<UpdateBackupScheduleRequest>,
|
|
946
|
+
output: __S(257, __c16, 1) as any as S.Schema<BackupSchedule>,
|
|
1899
947
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1900
948
|
protocol: StackitProtocol,
|
|
1901
949
|
retry: Retry.Retry,
|
|
@@ -1909,8 +957,8 @@ export const updateInstance: API.OperationMethod<
|
|
|
1909
957
|
UpdateInstanceError,
|
|
1910
958
|
StackitOpContext
|
|
1911
959
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1912
|
-
input: UpdateInstanceRequest
|
|
1913
|
-
output: UpdateInstanceResponse
|
|
960
|
+
input: __S(272, __c17, 0) as any as S.Schema<UpdateInstanceRequest>,
|
|
961
|
+
output: __S(514, __c32, 2) as any as S.Schema<UpdateInstanceResponse>,
|
|
1914
962
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1915
963
|
protocol: StackitProtocol,
|
|
1916
964
|
retry: Retry.Retry,
|
|
@@ -1924,9 +972,909 @@ export const updateUser: API.OperationMethod<
|
|
|
1924
972
|
UpdateUserError,
|
|
1925
973
|
StackitOpContext
|
|
1926
974
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1927
|
-
input: UpdateUserRequest
|
|
1928
|
-
output: UpdateUserResponse
|
|
975
|
+
input: __S(288, __c18, 0) as any as S.Schema<UpdateUserRequest>,
|
|
976
|
+
output: __S(432, __c27, 0) as any as S.Schema<UpdateUserResponse>,
|
|
1929
977
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1930
978
|
protocol: StackitProtocol,
|
|
1931
979
|
retry: Retry.Retry,
|
|
1932
980
|
}));
|
|
981
|
+
|
|
982
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
983
|
+
function __c0(j: number): any {
|
|
984
|
+
switch (j) {
|
|
985
|
+
case 0:
|
|
986
|
+
return S.suspend(() =>
|
|
987
|
+
S.Struct({
|
|
988
|
+
projectId: S.String.pipe(T.Label()),
|
|
989
|
+
region: S.String.pipe(T.Label()),
|
|
990
|
+
instanceId: S.String.pipe(T.Label()),
|
|
991
|
+
userId: S.String.pipe(T.Label()),
|
|
992
|
+
}).pipe(
|
|
993
|
+
T.Http({
|
|
994
|
+
method: "GET",
|
|
995
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
996
|
+
code: 200,
|
|
997
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
998
|
+
}),
|
|
999
|
+
),
|
|
1000
|
+
).annotate({ identifier: "GetUserRequest" });
|
|
1001
|
+
case 1:
|
|
1002
|
+
return S.suspend(() =>
|
|
1003
|
+
S.Struct({
|
|
1004
|
+
database: S.optional(S.String),
|
|
1005
|
+
host: S.optional(S.String),
|
|
1006
|
+
id: S.optional(S.String),
|
|
1007
|
+
port: S.optional(S.Number),
|
|
1008
|
+
roles: S.optional(__S(336, __c21, 0)),
|
|
1009
|
+
username: S.optional(S.String),
|
|
1010
|
+
}),
|
|
1011
|
+
).annotate({ identifier: "InstanceResponseUser" });
|
|
1012
|
+
case 2:
|
|
1013
|
+
return S.suspend(() =>
|
|
1014
|
+
S.Struct({
|
|
1015
|
+
item: S.optional(__S(1, __c0, 1)),
|
|
1016
|
+
}),
|
|
1017
|
+
).annotate({ identifier: "GetUserResponse" });
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
function __c1(j: number): any {
|
|
1021
|
+
switch (j) {
|
|
1022
|
+
case 0:
|
|
1023
|
+
return S.suspend(() =>
|
|
1024
|
+
S.Struct({
|
|
1025
|
+
projectId: S.String.pipe(T.Label()),
|
|
1026
|
+
region: S.String.pipe(T.Label()),
|
|
1027
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1028
|
+
}).pipe(
|
|
1029
|
+
T.Http({
|
|
1030
|
+
method: "GET",
|
|
1031
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/slow-queries",
|
|
1032
|
+
code: 200,
|
|
1033
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1034
|
+
}),
|
|
1035
|
+
),
|
|
1036
|
+
).annotate({ identifier: "ListAdvisorSlowQueriesRequest" });
|
|
1037
|
+
case 1:
|
|
1038
|
+
return S.suspend(() =>
|
|
1039
|
+
S.Struct({
|
|
1040
|
+
line: S.optional(S.String),
|
|
1041
|
+
namespace: S.optional(S.String),
|
|
1042
|
+
}),
|
|
1043
|
+
).annotate({ identifier: "SlowQuery" });
|
|
1044
|
+
case 2:
|
|
1045
|
+
return S.Array(__S(17, __c1, 1));
|
|
1046
|
+
case 3:
|
|
1047
|
+
return S.suspend(() =>
|
|
1048
|
+
S.Struct({
|
|
1049
|
+
slowQueries: S.optional(__S(18, __c1, 2)),
|
|
1050
|
+
}),
|
|
1051
|
+
).annotate({ identifier: "HandlersInstancesSlowQueriesResponse" });
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
function __c2(j: number): any {
|
|
1055
|
+
switch (j) {
|
|
1056
|
+
case 0:
|
|
1057
|
+
return S.suspend(() =>
|
|
1058
|
+
S.Struct({
|
|
1059
|
+
projectId: S.String.pipe(T.Label()),
|
|
1060
|
+
region: S.String.pipe(T.Label()),
|
|
1061
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1062
|
+
}).pipe(
|
|
1063
|
+
T.Http({
|
|
1064
|
+
method: "GET",
|
|
1065
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
1066
|
+
code: 200,
|
|
1067
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1068
|
+
}),
|
|
1069
|
+
),
|
|
1070
|
+
).annotate({ identifier: "ListBackupsRequest" });
|
|
1071
|
+
case 1:
|
|
1072
|
+
return S.Array(__S(480, __c30, 0));
|
|
1073
|
+
case 2:
|
|
1074
|
+
return S.suspend(() =>
|
|
1075
|
+
S.Struct({
|
|
1076
|
+
count: S.optional(S.Number),
|
|
1077
|
+
items: S.optional(__S(33, __c2, 1)),
|
|
1078
|
+
}),
|
|
1079
|
+
).annotate({ identifier: "ListBackupsResponse" });
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
function __c3(j: number): any {
|
|
1083
|
+
switch (j) {
|
|
1084
|
+
case 0:
|
|
1085
|
+
return S.suspend(() =>
|
|
1086
|
+
S.Struct({
|
|
1087
|
+
projectId: S.String.pipe(T.Label()),
|
|
1088
|
+
region: S.String.pipe(T.Label()),
|
|
1089
|
+
}).pipe(
|
|
1090
|
+
T.Http({
|
|
1091
|
+
method: "GET",
|
|
1092
|
+
uri: "/v2/projects/{projectId}/regions/{region}/flavors",
|
|
1093
|
+
code: 200,
|
|
1094
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1095
|
+
}),
|
|
1096
|
+
),
|
|
1097
|
+
).annotate({ identifier: "ListFlavorsRequest" });
|
|
1098
|
+
case 1:
|
|
1099
|
+
return S.suspend(() =>
|
|
1100
|
+
S.Struct({
|
|
1101
|
+
categories: S.optional(__S(336, __c21, 0)),
|
|
1102
|
+
cpu: S.optional(S.Number),
|
|
1103
|
+
description: S.optional(S.String),
|
|
1104
|
+
id: S.optional(S.String),
|
|
1105
|
+
memory: S.optional(S.Number),
|
|
1106
|
+
}),
|
|
1107
|
+
).annotate({ identifier: "InstanceFlavor" });
|
|
1108
|
+
case 2:
|
|
1109
|
+
return S.Array(__S(49, __c3, 1));
|
|
1110
|
+
case 3:
|
|
1111
|
+
return S.suspend(() =>
|
|
1112
|
+
S.Struct({
|
|
1113
|
+
flavors: S.optional(__S(50, __c3, 2)),
|
|
1114
|
+
}),
|
|
1115
|
+
).annotate({ identifier: "ListFlavorsResponse" });
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
function __c4(j: number): any {
|
|
1119
|
+
switch (j) {
|
|
1120
|
+
case 0:
|
|
1121
|
+
return S.suspend(() =>
|
|
1122
|
+
S.Struct({
|
|
1123
|
+
projectId: S.String.pipe(T.Label()),
|
|
1124
|
+
region: S.String.pipe(T.Label()),
|
|
1125
|
+
tag: S.String.pipe(T.Query()),
|
|
1126
|
+
}).pipe(
|
|
1127
|
+
T.Http({
|
|
1128
|
+
method: "GET",
|
|
1129
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances",
|
|
1130
|
+
code: 200,
|
|
1131
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1132
|
+
}),
|
|
1133
|
+
),
|
|
1134
|
+
).annotate({ identifier: "ListInstancesRequest" });
|
|
1135
|
+
case 1:
|
|
1136
|
+
return S.suspend(() =>
|
|
1137
|
+
S.Struct({
|
|
1138
|
+
id: S.optional(S.String),
|
|
1139
|
+
name: S.optional(S.String),
|
|
1140
|
+
status: S.optional(S.String),
|
|
1141
|
+
}),
|
|
1142
|
+
).annotate({ identifier: "InstanceListInstance" });
|
|
1143
|
+
case 2:
|
|
1144
|
+
return S.Array(__S(65, __c4, 1));
|
|
1145
|
+
case 3:
|
|
1146
|
+
return S.suspend(() =>
|
|
1147
|
+
S.Struct({
|
|
1148
|
+
count: S.optional(S.Number),
|
|
1149
|
+
items: S.optional(__S(66, __c4, 2)),
|
|
1150
|
+
}),
|
|
1151
|
+
).annotate({ identifier: "ListInstancesResponse" });
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
function __c5(j: number): any {
|
|
1155
|
+
switch (j) {
|
|
1156
|
+
case 0:
|
|
1157
|
+
return S.suspend(() =>
|
|
1158
|
+
S.Struct({
|
|
1159
|
+
projectId: S.String.pipe(T.Label()),
|
|
1160
|
+
region: S.String.pipe(T.Label()),
|
|
1161
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1162
|
+
metric: S.String.pipe(T.Label()),
|
|
1163
|
+
granularity: S.String.pipe(T.Query()),
|
|
1164
|
+
period: S.optional(S.String.pipe(T.Query())),
|
|
1165
|
+
start: S.optional(S.String.pipe(T.Query())),
|
|
1166
|
+
end: S.optional(S.String.pipe(T.Query())),
|
|
1167
|
+
}).pipe(
|
|
1168
|
+
T.Http({
|
|
1169
|
+
method: "GET",
|
|
1170
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}",
|
|
1171
|
+
code: 200,
|
|
1172
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1173
|
+
}),
|
|
1174
|
+
),
|
|
1175
|
+
).annotate({ identifier: "ListMetricsRequest" });
|
|
1176
|
+
case 1:
|
|
1177
|
+
return S.suspend(() =>
|
|
1178
|
+
S.Struct({
|
|
1179
|
+
timestamp: S.optional(S.String),
|
|
1180
|
+
value: S.optional(S.Number),
|
|
1181
|
+
}),
|
|
1182
|
+
).annotate({ identifier: "DataPoint" });
|
|
1183
|
+
case 2:
|
|
1184
|
+
return S.Array(__S(81, __c5, 1));
|
|
1185
|
+
case 3:
|
|
1186
|
+
return S.suspend(() =>
|
|
1187
|
+
S.Struct({
|
|
1188
|
+
datapoints: S.optional(__S(82, __c5, 2)),
|
|
1189
|
+
name: S.optional(S.String),
|
|
1190
|
+
units: S.optional(S.String),
|
|
1191
|
+
}),
|
|
1192
|
+
).annotate({ identifier: "HostMetric" });
|
|
1193
|
+
case 4:
|
|
1194
|
+
return S.Array(__S(83, __c5, 3));
|
|
1195
|
+
case 5:
|
|
1196
|
+
return S.suspend(() =>
|
|
1197
|
+
S.Struct({
|
|
1198
|
+
hostMetrics: S.optional(__S(84, __c5, 4)),
|
|
1199
|
+
id: S.optional(S.String),
|
|
1200
|
+
}),
|
|
1201
|
+
).annotate({ identifier: "Host" });
|
|
1202
|
+
case 6:
|
|
1203
|
+
return S.Array(__S(85, __c5, 5));
|
|
1204
|
+
case 7:
|
|
1205
|
+
return S.suspend(() =>
|
|
1206
|
+
S.Struct({
|
|
1207
|
+
hosts: S.optional(__S(86, __c5, 6)),
|
|
1208
|
+
}),
|
|
1209
|
+
).annotate({ identifier: "ListMetricsResponse" });
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
function __c6(j: number): any {
|
|
1213
|
+
switch (j) {
|
|
1214
|
+
case 0:
|
|
1215
|
+
return S.suspend(() =>
|
|
1216
|
+
S.Struct({
|
|
1217
|
+
projectId: S.String.pipe(T.Label()),
|
|
1218
|
+
region: S.String.pipe(T.Label()),
|
|
1219
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1220
|
+
}).pipe(
|
|
1221
|
+
T.Http({
|
|
1222
|
+
method: "GET",
|
|
1223
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
1224
|
+
code: 200,
|
|
1225
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1226
|
+
}),
|
|
1227
|
+
),
|
|
1228
|
+
).annotate({ identifier: "ListRestoreJobsRequest" });
|
|
1229
|
+
case 1:
|
|
1230
|
+
return S.Array(__S(112, __c7, 0));
|
|
1231
|
+
case 2:
|
|
1232
|
+
return S.suspend(() =>
|
|
1233
|
+
S.Struct({
|
|
1234
|
+
items: S.optional(__S(97, __c6, 1)),
|
|
1235
|
+
}),
|
|
1236
|
+
).annotate({ identifier: "ListRestoreJobsResponse" });
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
function __c7(j: number): any {
|
|
1240
|
+
switch (j) {
|
|
1241
|
+
case 0:
|
|
1242
|
+
return S.suspend(() =>
|
|
1243
|
+
S.Struct({
|
|
1244
|
+
backupID: S.optional(S.String),
|
|
1245
|
+
date: S.optional(S.String),
|
|
1246
|
+
id: S.optional(S.String),
|
|
1247
|
+
instanceId: S.optional(S.String),
|
|
1248
|
+
status: S.optional(S.String),
|
|
1249
|
+
}),
|
|
1250
|
+
).annotate({ identifier: "RestoreInstanceStatus" });
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
function __c8(j: number): any {
|
|
1254
|
+
switch (j) {
|
|
1255
|
+
case 0:
|
|
1256
|
+
return S.suspend(() =>
|
|
1257
|
+
S.Struct({
|
|
1258
|
+
projectId: S.String.pipe(T.Label()),
|
|
1259
|
+
region: S.String.pipe(T.Label()),
|
|
1260
|
+
flavor: S.String.pipe(T.Label()),
|
|
1261
|
+
}).pipe(
|
|
1262
|
+
T.Http({
|
|
1263
|
+
method: "GET",
|
|
1264
|
+
uri: "/v2/projects/{projectId}/regions/{region}/storages/{flavor}",
|
|
1265
|
+
code: 200,
|
|
1266
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1267
|
+
}),
|
|
1268
|
+
),
|
|
1269
|
+
).annotate({ identifier: "ListStoragesRequest" });
|
|
1270
|
+
case 1:
|
|
1271
|
+
return S.suspend(() =>
|
|
1272
|
+
S.Struct({
|
|
1273
|
+
max: S.optional(S.Number),
|
|
1274
|
+
min: S.optional(S.Number),
|
|
1275
|
+
}),
|
|
1276
|
+
).annotate({ identifier: "StorageRange" });
|
|
1277
|
+
case 2:
|
|
1278
|
+
return S.suspend(() =>
|
|
1279
|
+
S.Struct({
|
|
1280
|
+
storageClasses: S.optional(__S(336, __c21, 0)),
|
|
1281
|
+
storageRange: S.optional(__S(129, __c8, 1)),
|
|
1282
|
+
}),
|
|
1283
|
+
).annotate({ identifier: "ListStoragesResponse" });
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
function __c9(j: number): any {
|
|
1287
|
+
switch (j) {
|
|
1288
|
+
case 0:
|
|
1289
|
+
return S.suspend(() =>
|
|
1290
|
+
S.Struct({
|
|
1291
|
+
projectId: S.String.pipe(T.Label()),
|
|
1292
|
+
region: S.String.pipe(T.Label()),
|
|
1293
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1294
|
+
}).pipe(
|
|
1295
|
+
T.Http({
|
|
1296
|
+
method: "GET",
|
|
1297
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/suggested-indexes",
|
|
1298
|
+
code: 200,
|
|
1299
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1300
|
+
}),
|
|
1301
|
+
),
|
|
1302
|
+
).annotate({ identifier: "ListSuggestedIndexesRequest" });
|
|
1303
|
+
case 1:
|
|
1304
|
+
return S.Array(S.Unknown);
|
|
1305
|
+
case 2:
|
|
1306
|
+
return S.suspend(() =>
|
|
1307
|
+
S.Struct({
|
|
1308
|
+
ms: S.optional(S.Number),
|
|
1309
|
+
nReturned: S.optional(S.Number),
|
|
1310
|
+
nScanned: S.optional(S.Number),
|
|
1311
|
+
ts: S.optional(S.Number),
|
|
1312
|
+
}),
|
|
1313
|
+
).annotate({ identifier: "MongodbatlasStats" });
|
|
1314
|
+
case 3:
|
|
1315
|
+
return S.suspend(() =>
|
|
1316
|
+
S.Struct({
|
|
1317
|
+
predicates: S.optional(__S(145, __c9, 1)),
|
|
1318
|
+
raw: S.optional(S.String),
|
|
1319
|
+
stats: S.optional(__S(146, __c9, 2)),
|
|
1320
|
+
}),
|
|
1321
|
+
).annotate({ identifier: "MongodbatlasOperation" });
|
|
1322
|
+
case 4:
|
|
1323
|
+
return S.Array(__S(147, __c9, 3));
|
|
1324
|
+
case 5:
|
|
1325
|
+
return S.suspend(() =>
|
|
1326
|
+
S.Struct({
|
|
1327
|
+
avgMs: S.optional(S.Number),
|
|
1328
|
+
count: S.optional(S.Number),
|
|
1329
|
+
id: S.optional(S.String),
|
|
1330
|
+
inefficiencyScore: S.optional(S.Number),
|
|
1331
|
+
namespace: S.optional(S.String),
|
|
1332
|
+
operations: S.optional(__S(148, __c9, 4)),
|
|
1333
|
+
}),
|
|
1334
|
+
).annotate({ identifier: "Shape" });
|
|
1335
|
+
case 6:
|
|
1336
|
+
return S.Array(__S(149, __c9, 5));
|
|
1337
|
+
case 7:
|
|
1338
|
+
return S.Record(S.String, S.Number);
|
|
1339
|
+
case 8:
|
|
1340
|
+
return S.Array(__S(151, __c9, 7));
|
|
1341
|
+
case 9:
|
|
1342
|
+
return S.suspend(() =>
|
|
1343
|
+
S.Struct({
|
|
1344
|
+
id: S.optional(S.String),
|
|
1345
|
+
impact: S.optional(__S(336, __c21, 0)),
|
|
1346
|
+
index: S.optional(__S(152, __c9, 8)),
|
|
1347
|
+
namespace: S.optional(S.String),
|
|
1348
|
+
weight: S.optional(S.Number),
|
|
1349
|
+
}),
|
|
1350
|
+
).annotate({ identifier: "SuggestedIndex" });
|
|
1351
|
+
case 10:
|
|
1352
|
+
return S.Array(__S(153, __c9, 9));
|
|
1353
|
+
case 11:
|
|
1354
|
+
return S.suspend(() =>
|
|
1355
|
+
S.Struct({
|
|
1356
|
+
shapes: S.optional(__S(150, __c9, 6)),
|
|
1357
|
+
suggestedIndexes: S.optional(__S(154, __c9, 10)),
|
|
1358
|
+
}),
|
|
1359
|
+
).annotate({ identifier: "HandlersInstancesSuggestedIndexesResponse" });
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
function __c10(j: number): any {
|
|
1363
|
+
switch (j) {
|
|
1364
|
+
case 0:
|
|
1365
|
+
return S.suspend(() =>
|
|
1366
|
+
S.Struct({
|
|
1367
|
+
projectId: S.String.pipe(T.Label()),
|
|
1368
|
+
region: S.String.pipe(T.Label()),
|
|
1369
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1370
|
+
}).pipe(
|
|
1371
|
+
T.Http({
|
|
1372
|
+
method: "GET",
|
|
1373
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
1374
|
+
code: 200,
|
|
1375
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1376
|
+
}),
|
|
1377
|
+
),
|
|
1378
|
+
).annotate({ identifier: "ListUsersRequest" });
|
|
1379
|
+
case 1:
|
|
1380
|
+
return S.suspend(() =>
|
|
1381
|
+
S.Struct({
|
|
1382
|
+
id: S.optional(S.String),
|
|
1383
|
+
username: S.optional(S.String),
|
|
1384
|
+
}),
|
|
1385
|
+
).annotate({ identifier: "ListUser" });
|
|
1386
|
+
case 2:
|
|
1387
|
+
return S.Array(__S(161, __c10, 1));
|
|
1388
|
+
case 3:
|
|
1389
|
+
return S.suspend(() =>
|
|
1390
|
+
S.Struct({
|
|
1391
|
+
count: S.optional(S.Number),
|
|
1392
|
+
items: S.optional(__S(162, __c10, 2)),
|
|
1393
|
+
}),
|
|
1394
|
+
).annotate({ identifier: "ListUsersResponse" });
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
function __c11(j: number): any {
|
|
1398
|
+
switch (j) {
|
|
1399
|
+
case 0:
|
|
1400
|
+
return S.suspend(() =>
|
|
1401
|
+
S.Struct({
|
|
1402
|
+
projectId: S.String.pipe(T.Label()),
|
|
1403
|
+
region: S.String.pipe(T.Label()),
|
|
1404
|
+
}).pipe(
|
|
1405
|
+
T.Http({
|
|
1406
|
+
method: "GET",
|
|
1407
|
+
uri: "/v2/projects/{projectId}/regions/{region}/versions",
|
|
1408
|
+
code: 200,
|
|
1409
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1410
|
+
}),
|
|
1411
|
+
),
|
|
1412
|
+
).annotate({ identifier: "ListVersionsRequest" });
|
|
1413
|
+
case 1:
|
|
1414
|
+
return S.suspend(() =>
|
|
1415
|
+
S.Struct({
|
|
1416
|
+
versions: S.optional(__S(336, __c21, 0)),
|
|
1417
|
+
}),
|
|
1418
|
+
).annotate({ identifier: "ListVersionsResponse" });
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
function __c12(j: number): any {
|
|
1422
|
+
switch (j) {
|
|
1423
|
+
case 0:
|
|
1424
|
+
return S.suspend(() =>
|
|
1425
|
+
S.Struct({
|
|
1426
|
+
projectId: S.String.pipe(T.Label()),
|
|
1427
|
+
region: S.String.pipe(T.Label()),
|
|
1428
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1429
|
+
acl: S.optional(__S(368, __c23, 0)),
|
|
1430
|
+
backupSchedule: S.optional(S.String),
|
|
1431
|
+
flavorId: S.optional(S.String),
|
|
1432
|
+
labels: S.optional(__S(352, __c22, 0)),
|
|
1433
|
+
name: S.optional(S.String),
|
|
1434
|
+
options: S.optional(__S(352, __c22, 0)),
|
|
1435
|
+
replicas: S.optional(S.Number),
|
|
1436
|
+
storage: S.optional(__S(369, __c23, 1)),
|
|
1437
|
+
version: S.optional(S.String),
|
|
1438
|
+
}).pipe(
|
|
1439
|
+
T.Http({
|
|
1440
|
+
method: "PATCH",
|
|
1441
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1442
|
+
code: 200,
|
|
1443
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1444
|
+
}),
|
|
1445
|
+
),
|
|
1446
|
+
).annotate({ identifier: "PartialUpdateInstanceRequest" });
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
function __c13(j: number): any {
|
|
1450
|
+
switch (j) {
|
|
1451
|
+
case 0:
|
|
1452
|
+
return S.suspend(() =>
|
|
1453
|
+
S.Struct({
|
|
1454
|
+
projectId: S.String.pipe(T.Label()),
|
|
1455
|
+
region: S.String.pipe(T.Label()),
|
|
1456
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1457
|
+
userId: S.String.pipe(T.Label()),
|
|
1458
|
+
database: S.optional(S.String),
|
|
1459
|
+
roles: S.optional(__S(336, __c21, 0)),
|
|
1460
|
+
}).pipe(
|
|
1461
|
+
T.Http({
|
|
1462
|
+
method: "PATCH",
|
|
1463
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1464
|
+
code: 200,
|
|
1465
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1466
|
+
}),
|
|
1467
|
+
),
|
|
1468
|
+
).annotate({ identifier: "PartialUpdateUserRequest" });
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
function __c14(j: number): any {
|
|
1472
|
+
switch (j) {
|
|
1473
|
+
case 0:
|
|
1474
|
+
return S.suspend(() =>
|
|
1475
|
+
S.Struct({
|
|
1476
|
+
projectId: S.String.pipe(T.Label()),
|
|
1477
|
+
region: S.String.pipe(T.Label()),
|
|
1478
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1479
|
+
userId: S.String.pipe(T.Label()),
|
|
1480
|
+
}).pipe(
|
|
1481
|
+
T.Http({
|
|
1482
|
+
method: "POST",
|
|
1483
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
1484
|
+
code: 200,
|
|
1485
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1486
|
+
}),
|
|
1487
|
+
),
|
|
1488
|
+
).annotate({ identifier: "ResetUserRequest" });
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
function __c15(j: number): any {
|
|
1492
|
+
switch (j) {
|
|
1493
|
+
case 0:
|
|
1494
|
+
return S.suspend(() =>
|
|
1495
|
+
S.Struct({
|
|
1496
|
+
projectId: S.String.pipe(T.Label()),
|
|
1497
|
+
region: S.String.pipe(T.Label()),
|
|
1498
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1499
|
+
backupId: S.String,
|
|
1500
|
+
}).pipe(
|
|
1501
|
+
T.Http({
|
|
1502
|
+
method: "POST",
|
|
1503
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
1504
|
+
code: 200,
|
|
1505
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1506
|
+
}),
|
|
1507
|
+
),
|
|
1508
|
+
).annotate({ identifier: "RestoreInstanceRequest" });
|
|
1509
|
+
case 1:
|
|
1510
|
+
return S.suspend(() =>
|
|
1511
|
+
S.Struct({
|
|
1512
|
+
item: S.optional(__S(112, __c7, 0)),
|
|
1513
|
+
}),
|
|
1514
|
+
).annotate({ identifier: "RestoreInstanceResponse" });
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
function __c16(j: number): any {
|
|
1518
|
+
switch (j) {
|
|
1519
|
+
case 0:
|
|
1520
|
+
return S.suspend(() =>
|
|
1521
|
+
S.Struct({
|
|
1522
|
+
projectId: S.String.pipe(T.Label()),
|
|
1523
|
+
region: S.String.pipe(T.Label()),
|
|
1524
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1525
|
+
backupSchedule: S.optional(S.String),
|
|
1526
|
+
dailySnapshotRetentionDays: S.optional(S.Number),
|
|
1527
|
+
monthlySnapshotRetentionMonths: S.optional(S.Number),
|
|
1528
|
+
pointInTimeWindowHours: S.optional(S.Number),
|
|
1529
|
+
snapshotRetentionDays: S.optional(S.Number),
|
|
1530
|
+
weeklySnapshotRetentionWeeks: S.optional(S.Number),
|
|
1531
|
+
}).pipe(
|
|
1532
|
+
T.Http({
|
|
1533
|
+
method: "PUT",
|
|
1534
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
1535
|
+
code: 200,
|
|
1536
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1537
|
+
}),
|
|
1538
|
+
),
|
|
1539
|
+
).annotate({ identifier: "UpdateBackupScheduleRequest" });
|
|
1540
|
+
case 1:
|
|
1541
|
+
return S.suspend(() =>
|
|
1542
|
+
S.Struct({
|
|
1543
|
+
backupSchedule: S.optional(S.String),
|
|
1544
|
+
dailySnapshotRetentionDays: S.optional(S.Number),
|
|
1545
|
+
monthlySnapshotRetentionMonths: S.optional(S.Number),
|
|
1546
|
+
pointInTimeWindowHours: S.optional(S.Number),
|
|
1547
|
+
snapshotRetentionDays: S.optional(S.Number),
|
|
1548
|
+
weeklySnapshotRetentionWeeks: S.optional(S.Number),
|
|
1549
|
+
}),
|
|
1550
|
+
).annotate({ identifier: "BackupSchedule" });
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
function __c17(j: number): any {
|
|
1554
|
+
switch (j) {
|
|
1555
|
+
case 0:
|
|
1556
|
+
return S.suspend(() =>
|
|
1557
|
+
S.Struct({
|
|
1558
|
+
projectId: S.String.pipe(T.Label()),
|
|
1559
|
+
region: S.String.pipe(T.Label()),
|
|
1560
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1561
|
+
acl: __S(368, __c23, 0),
|
|
1562
|
+
backupSchedule: S.String,
|
|
1563
|
+
flavorId: S.String,
|
|
1564
|
+
labels: S.optional(__S(352, __c22, 0)),
|
|
1565
|
+
name: S.String,
|
|
1566
|
+
options: __S(352, __c22, 0),
|
|
1567
|
+
replicas: S.Number,
|
|
1568
|
+
storage: __S(369, __c23, 1),
|
|
1569
|
+
version: S.String,
|
|
1570
|
+
}).pipe(
|
|
1571
|
+
T.Http({
|
|
1572
|
+
method: "PUT",
|
|
1573
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1574
|
+
code: 200,
|
|
1575
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1576
|
+
}),
|
|
1577
|
+
),
|
|
1578
|
+
).annotate({ identifier: "UpdateInstanceRequest" });
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
function __c18(j: number): any {
|
|
1582
|
+
switch (j) {
|
|
1583
|
+
case 0:
|
|
1584
|
+
return S.suspend(() =>
|
|
1585
|
+
S.Struct({
|
|
1586
|
+
projectId: S.String.pipe(T.Label()),
|
|
1587
|
+
region: S.String.pipe(T.Label()),
|
|
1588
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1589
|
+
userId: S.String.pipe(T.Label()),
|
|
1590
|
+
database: S.String,
|
|
1591
|
+
roles: __S(336, __c21, 0),
|
|
1592
|
+
}).pipe(
|
|
1593
|
+
T.Http({
|
|
1594
|
+
method: "PUT",
|
|
1595
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1596
|
+
code: 200,
|
|
1597
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1598
|
+
}),
|
|
1599
|
+
),
|
|
1600
|
+
).annotate({ identifier: "UpdateUserRequest" });
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
function __c19(j: number): any {
|
|
1604
|
+
switch (j) {
|
|
1605
|
+
case 0:
|
|
1606
|
+
return S.suspend(() =>
|
|
1607
|
+
S.Struct({
|
|
1608
|
+
projectId: S.String.pipe(T.Label()),
|
|
1609
|
+
region: S.String.pipe(T.Label()),
|
|
1610
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1611
|
+
timestamp: S.optional(S.String),
|
|
1612
|
+
}).pipe(
|
|
1613
|
+
T.Http({
|
|
1614
|
+
method: "POST",
|
|
1615
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",
|
|
1616
|
+
code: 200,
|
|
1617
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1618
|
+
}),
|
|
1619
|
+
),
|
|
1620
|
+
).annotate({ identifier: "CloneInstanceRequest" });
|
|
1621
|
+
case 1:
|
|
1622
|
+
return S.suspend(() =>
|
|
1623
|
+
S.Struct({
|
|
1624
|
+
instanceId: S.optional(S.String),
|
|
1625
|
+
}),
|
|
1626
|
+
).annotate({ identifier: "CloneInstanceResponse" });
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
function __c20(j: number): any {
|
|
1630
|
+
switch (j) {
|
|
1631
|
+
case 0:
|
|
1632
|
+
return S.suspend(() =>
|
|
1633
|
+
S.Struct({
|
|
1634
|
+
projectId: S.String.pipe(T.Label()),
|
|
1635
|
+
region: S.String.pipe(T.Label()),
|
|
1636
|
+
acl: __S(368, __c23, 0),
|
|
1637
|
+
backupSchedule: S.String,
|
|
1638
|
+
flavorId: S.String,
|
|
1639
|
+
labels: S.optional(__S(352, __c22, 0)),
|
|
1640
|
+
name: S.String,
|
|
1641
|
+
options: __S(352, __c22, 0),
|
|
1642
|
+
replicas: S.Number,
|
|
1643
|
+
storage: __S(369, __c23, 1),
|
|
1644
|
+
version: S.String,
|
|
1645
|
+
}).pipe(
|
|
1646
|
+
T.Http({
|
|
1647
|
+
method: "POST",
|
|
1648
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances",
|
|
1649
|
+
code: 200,
|
|
1650
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1651
|
+
}),
|
|
1652
|
+
),
|
|
1653
|
+
).annotate({ identifier: "CreateInstanceRequest" });
|
|
1654
|
+
case 1:
|
|
1655
|
+
return S.suspend(() =>
|
|
1656
|
+
S.Struct({
|
|
1657
|
+
id: S.optional(S.String),
|
|
1658
|
+
}),
|
|
1659
|
+
).annotate({ identifier: "CreateInstanceResponse" });
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
function __c21(j: number): any {
|
|
1663
|
+
switch (j) {
|
|
1664
|
+
case 0:
|
|
1665
|
+
return S.Array(S.String);
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
function __c22(j: number): any {
|
|
1669
|
+
switch (j) {
|
|
1670
|
+
case 0:
|
|
1671
|
+
return S.Record(S.String, S.String);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
function __c23(j: number): any {
|
|
1675
|
+
switch (j) {
|
|
1676
|
+
case 0:
|
|
1677
|
+
return S.suspend(() =>
|
|
1678
|
+
S.Struct({
|
|
1679
|
+
items: S.optional(__S(336, __c21, 0)),
|
|
1680
|
+
}),
|
|
1681
|
+
).annotate({ identifier: "ACL" });
|
|
1682
|
+
case 1:
|
|
1683
|
+
return S.suspend(() =>
|
|
1684
|
+
S.Struct({
|
|
1685
|
+
class: S.optional(S.String),
|
|
1686
|
+
size: S.optional(S.Number),
|
|
1687
|
+
}),
|
|
1688
|
+
).annotate({ identifier: "Storage" });
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
function __c24(j: number): any {
|
|
1692
|
+
switch (j) {
|
|
1693
|
+
case 0:
|
|
1694
|
+
return S.suspend(() =>
|
|
1695
|
+
S.Struct({
|
|
1696
|
+
projectId: S.String.pipe(T.Label()),
|
|
1697
|
+
region: S.String.pipe(T.Label()),
|
|
1698
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1699
|
+
database: S.String,
|
|
1700
|
+
roles: __S(336, __c21, 0),
|
|
1701
|
+
username: S.optional(S.String),
|
|
1702
|
+
}).pipe(
|
|
1703
|
+
T.Http({
|
|
1704
|
+
method: "POST",
|
|
1705
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
1706
|
+
code: 200,
|
|
1707
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1708
|
+
}),
|
|
1709
|
+
),
|
|
1710
|
+
).annotate({ identifier: "CreateUserRequest" });
|
|
1711
|
+
case 1:
|
|
1712
|
+
return S.suspend(() =>
|
|
1713
|
+
S.Struct({
|
|
1714
|
+
item: S.optional(__S(400, __c25, 0)),
|
|
1715
|
+
}),
|
|
1716
|
+
).annotate({ identifier: "CreateUserResponse" });
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
function __c25(j: number): any {
|
|
1720
|
+
switch (j) {
|
|
1721
|
+
case 0:
|
|
1722
|
+
return S.suspend(() =>
|
|
1723
|
+
S.Struct({
|
|
1724
|
+
database: S.optional(S.String),
|
|
1725
|
+
host: S.optional(S.String),
|
|
1726
|
+
id: S.optional(S.String),
|
|
1727
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1728
|
+
port: S.optional(S.Number),
|
|
1729
|
+
roles: S.optional(__S(336, __c21, 0)),
|
|
1730
|
+
uri: S.optional(S.String),
|
|
1731
|
+
username: S.optional(S.String),
|
|
1732
|
+
}),
|
|
1733
|
+
).annotate({ identifier: "User" });
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
function __c26(j: number): any {
|
|
1737
|
+
switch (j) {
|
|
1738
|
+
case 0:
|
|
1739
|
+
return S.suspend(() =>
|
|
1740
|
+
S.Struct({
|
|
1741
|
+
projectId: S.String.pipe(T.Label()),
|
|
1742
|
+
region: S.String.pipe(T.Label()),
|
|
1743
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1744
|
+
}).pipe(
|
|
1745
|
+
T.Http({
|
|
1746
|
+
method: "DELETE",
|
|
1747
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1748
|
+
code: 200,
|
|
1749
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1750
|
+
}),
|
|
1751
|
+
),
|
|
1752
|
+
).annotate({ identifier: "DeleteInstanceRequest" });
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
function __c27(j: number): any {
|
|
1756
|
+
switch (j) {
|
|
1757
|
+
case 0:
|
|
1758
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteInstanceResponse" });
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
function __c28(j: number): any {
|
|
1762
|
+
switch (j) {
|
|
1763
|
+
case 0:
|
|
1764
|
+
return S.suspend(() =>
|
|
1765
|
+
S.Struct({
|
|
1766
|
+
projectId: S.String.pipe(T.Label()),
|
|
1767
|
+
region: S.String.pipe(T.Label()),
|
|
1768
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1769
|
+
userId: S.String.pipe(T.Label()),
|
|
1770
|
+
}).pipe(
|
|
1771
|
+
T.Http({
|
|
1772
|
+
method: "DELETE",
|
|
1773
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
1774
|
+
code: 200,
|
|
1775
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1776
|
+
}),
|
|
1777
|
+
),
|
|
1778
|
+
).annotate({ identifier: "DeleteUserRequest" });
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
function __c29(j: number): any {
|
|
1782
|
+
switch (j) {
|
|
1783
|
+
case 0:
|
|
1784
|
+
return S.suspend(() =>
|
|
1785
|
+
S.Struct({
|
|
1786
|
+
projectId: S.String.pipe(T.Label()),
|
|
1787
|
+
region: S.String.pipe(T.Label()),
|
|
1788
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1789
|
+
backupId: S.String.pipe(T.Label()),
|
|
1790
|
+
}).pipe(
|
|
1791
|
+
T.Http({
|
|
1792
|
+
method: "GET",
|
|
1793
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
1794
|
+
code: 200,
|
|
1795
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1796
|
+
}),
|
|
1797
|
+
),
|
|
1798
|
+
).annotate({ identifier: "GetBackupRequest" });
|
|
1799
|
+
case 1:
|
|
1800
|
+
return S.suspend(() =>
|
|
1801
|
+
S.Struct({
|
|
1802
|
+
item: S.optional(__S(480, __c30, 0)),
|
|
1803
|
+
}),
|
|
1804
|
+
).annotate({ identifier: "GetBackupResponse" });
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
function __c30(j: number): any {
|
|
1808
|
+
switch (j) {
|
|
1809
|
+
case 0:
|
|
1810
|
+
return S.suspend(() =>
|
|
1811
|
+
S.Struct({
|
|
1812
|
+
endTime: S.optional(S.String),
|
|
1813
|
+
error: S.optional(S.String),
|
|
1814
|
+
id: S.optional(S.String),
|
|
1815
|
+
labels: S.optional(__S(336, __c21, 0)),
|
|
1816
|
+
name: S.optional(S.String),
|
|
1817
|
+
options: S.optional(__S(352, __c22, 0)),
|
|
1818
|
+
size: S.optional(S.Number),
|
|
1819
|
+
startTime: S.optional(S.String),
|
|
1820
|
+
}),
|
|
1821
|
+
).annotate({ identifier: "Backup" });
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
function __c31(j: number): any {
|
|
1825
|
+
switch (j) {
|
|
1826
|
+
case 0:
|
|
1827
|
+
return S.suspend(() =>
|
|
1828
|
+
S.Struct({
|
|
1829
|
+
projectId: S.String.pipe(T.Label()),
|
|
1830
|
+
region: S.String.pipe(T.Label()),
|
|
1831
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1832
|
+
}).pipe(
|
|
1833
|
+
T.Http({
|
|
1834
|
+
method: "GET",
|
|
1835
|
+
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1836
|
+
code: 200,
|
|
1837
|
+
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
1838
|
+
}),
|
|
1839
|
+
),
|
|
1840
|
+
).annotate({ identifier: "GetInstanceRequest" });
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
function __c32(j: number): any {
|
|
1844
|
+
switch (j) {
|
|
1845
|
+
case 0:
|
|
1846
|
+
return S.suspend(() =>
|
|
1847
|
+
S.Struct({
|
|
1848
|
+
cpu: S.optional(S.Number),
|
|
1849
|
+
description: S.optional(S.String),
|
|
1850
|
+
id: S.optional(S.String),
|
|
1851
|
+
memory: S.optional(S.Number),
|
|
1852
|
+
}),
|
|
1853
|
+
).annotate({ identifier: "Flavor" });
|
|
1854
|
+
case 1:
|
|
1855
|
+
return S.suspend(() =>
|
|
1856
|
+
S.Struct({
|
|
1857
|
+
acl: S.optional(__S(368, __c23, 0)),
|
|
1858
|
+
backupSchedule: S.optional(S.String),
|
|
1859
|
+
flavor: S.optional(__S(512, __c32, 0)),
|
|
1860
|
+
id: S.optional(S.String),
|
|
1861
|
+
name: S.optional(S.String),
|
|
1862
|
+
options: S.optional(__S(352, __c22, 0)),
|
|
1863
|
+
replicas: S.optional(S.Number),
|
|
1864
|
+
status: S.optional(S.String),
|
|
1865
|
+
storage: S.optional(__S(369, __c23, 1)),
|
|
1866
|
+
version: S.optional(S.String),
|
|
1867
|
+
}),
|
|
1868
|
+
).annotate({ identifier: "Instance" });
|
|
1869
|
+
case 2:
|
|
1870
|
+
return S.suspend(() =>
|
|
1871
|
+
S.Struct({
|
|
1872
|
+
item: S.optional(__S(513, __c32, 1)),
|
|
1873
|
+
}),
|
|
1874
|
+
).annotate({ identifier: "InstanceResponse" });
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1878
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1879
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1880
|
+
}
|