@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14
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/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +45 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +147 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +513 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +521 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +323 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +321 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +363 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +906 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +179 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +177 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +842 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +726 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +317 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +357 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +399 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +520 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2986 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3543 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +475 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +663 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +160 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +154 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +497 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +574 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +475 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +551 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +336 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +287 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +803 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +470 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +540 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3158 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +563 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +736 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +853 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +519 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +574 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +198 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +473 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +185 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +553 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +445 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +670 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +613 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +454 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +352 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +506 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +157 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +790 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +562 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +558 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +936 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +379 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +532 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +484 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +279 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +567 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +931 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +508 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +85 -3
- package/src/credentials.ts +84 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +57 -0
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +225 -0
- package/src/retry.ts +47 -0
- package/src/services/alb.ts +1326 -0
- package/src/services/alb_waf.ts +1288 -0
- package/src/services/authorization.ts +704 -0
- package/src/services/automation.ts +796 -0
- package/src/services/cdn.ts +2576 -0
- package/src/services/certificates.ts +418 -0
- package/src/services/cost.ts +449 -0
- package/src/services/dns.ts +1936 -0
- package/src/services/dremio.ts +753 -0
- package/src/services/edge.ts +780 -0
- package/src/services/functions.ts +957 -0
- package/src/services/git.ts +1194 -0
- package/src/services/iaas.ts +7878 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1166 -0
- package/src/services/kms.ts +1537 -0
- package/src/services/lb_ip_lists.ts +342 -0
- package/src/services/load_balancer.ts +1266 -0
- package/src/services/logme.ts +1284 -0
- package/src/services/logs.ts +1049 -0
- package/src/services/mariadb.ts +1212 -0
- package/src/services/model_experiments.ts +741 -0
- package/src/services/model_serving.ts +654 -0
- package/src/services/mongodb_flex.ts +1932 -0
- package/src/services/object_storage.ts +1195 -0
- package/src/services/observability.ts +7364 -0
- package/src/services/opensearch.ts +1265 -0
- package/src/services/pim.ts +1985 -0
- package/src/services/postgres_flex.ts +2080 -0
- package/src/services/pubsub.ts +1193 -0
- package/src/services/rabbitmq.ts +1310 -0
- package/src/services/registry.ts +446 -0
- package/src/services/resource_manager.ts +1072 -0
- package/src/services/run_command.ts +413 -0
- package/src/services/sca.ts +1187 -0
- package/src/services/scf.ts +1396 -0
- package/src/services/secrets_manager.ts +1317 -0
- package/src/services/server_backup.ts +983 -0
- package/src/services/server_update.ts +738 -0
- package/src/services/service_account.ts +1121 -0
- package/src/services/service_enablement.ts +330 -0
- package/src/services/sfs.ts +1831 -0
- package/src/services/ske.ts +1386 -0
- package/src/services/sqlserverflex.ts +2307 -0
- package/src/services/stackit_marketplace.ts +787 -0
- package/src/services/telemetry_link.ts +1166 -0
- package/src/services/telemetry_router.ts +1110 -0
- package/src/services/ufw.ts +654 -0
- package/src/services/valkey.ts +1266 -0
- package/src/services/vpn.ts +2365 -0
- package/src/services/workflows.ts +1249 -0
- package/src/traits.ts +60 -0
|
@@ -0,0 +1,1932 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
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 Redacted from "effect/Redacted";
|
|
6
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
7
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
|
+
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
10
|
+
|
|
11
|
+
export type { StackitOpError, StackitOpContext };
|
|
12
|
+
|
|
13
|
+
export class BadRequest
|
|
14
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
15
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
16
|
+
code: S.Number,
|
|
17
|
+
message: S.String,
|
|
18
|
+
}).pipe(C.withBadRequestError),
|
|
19
|
+
[{ status: 400 }],
|
|
20
|
+
) {}
|
|
21
|
+
|
|
22
|
+
export class Conflict
|
|
23
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
24
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
25
|
+
code: S.Number,
|
|
26
|
+
message: S.String,
|
|
27
|
+
}).pipe(C.withConflictError),
|
|
28
|
+
[{ status: 409 }],
|
|
29
|
+
) {}
|
|
30
|
+
|
|
31
|
+
export class NotFound
|
|
32
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
33
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
34
|
+
code: S.Number,
|
|
35
|
+
message: S.String,
|
|
36
|
+
}).pipe(C.withBadRequestError),
|
|
37
|
+
[{ status: 404 }],
|
|
38
|
+
) {}
|
|
39
|
+
|
|
40
|
+
export type CloneInstanceRequestRegion = "eu01" | "eu02";
|
|
41
|
+
export const CloneInstanceRequestRegion = S.String;
|
|
42
|
+
|
|
43
|
+
export interface CloneInstanceRequest {
|
|
44
|
+
/** project id */
|
|
45
|
+
projectId: string;
|
|
46
|
+
/** The region which should be addressed */
|
|
47
|
+
region: CloneInstanceRequestRegion | (string & {});
|
|
48
|
+
/** instance id */
|
|
49
|
+
instanceId: string;
|
|
50
|
+
timestamp?: string;
|
|
51
|
+
}
|
|
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
|
+
export interface CloneInstanceResponse {
|
|
69
|
+
instanceId?: string;
|
|
70
|
+
}
|
|
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
|
+
export type CreateInstanceRequestRegion = "eu01" | "eu02";
|
|
78
|
+
export const CreateInstanceRequestRegion = S.String;
|
|
79
|
+
|
|
80
|
+
export type ACLItemsList = Array<string>;
|
|
81
|
+
export const ACLItemsList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<ACLItemsList>;
|
|
82
|
+
|
|
83
|
+
export interface ACL {
|
|
84
|
+
items?: ACLItemsList;
|
|
85
|
+
}
|
|
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
|
+
/** Labels field is not certain/clear */
|
|
93
|
+
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
|
+
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
|
+
export interface Storage {
|
|
106
|
+
class?: string;
|
|
107
|
+
size?: number;
|
|
108
|
+
}
|
|
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
|
+
export interface CreateInstanceRequest {
|
|
117
|
+
/** project id */
|
|
118
|
+
projectId: string;
|
|
119
|
+
/** The region which should be addressed */
|
|
120
|
+
region: CreateInstanceRequestRegion | (string & {});
|
|
121
|
+
/** ACL is the Access Control List defining the IP ranges allowed to connect to the database */
|
|
122
|
+
acl: ACL;
|
|
123
|
+
backupSchedule: string;
|
|
124
|
+
flavorId: string;
|
|
125
|
+
/** Labels field is not certain/clear */
|
|
126
|
+
labels?: CreateInstanceRequestLabelsMap;
|
|
127
|
+
name: string;
|
|
128
|
+
options: CreateInstanceRequestOptionsMap;
|
|
129
|
+
replicas: number;
|
|
130
|
+
storage: Storage;
|
|
131
|
+
version: string;
|
|
132
|
+
}
|
|
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
|
+
export interface CreateInstanceResponse {
|
|
157
|
+
id?: string;
|
|
158
|
+
}
|
|
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
|
+
export type CreateUserRequestRegion = "eu01" | "eu02";
|
|
166
|
+
export const CreateUserRequestRegion = S.String;
|
|
167
|
+
|
|
168
|
+
/** 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
|
+
export type CreateUserRequestRolesList = Array<string>;
|
|
170
|
+
export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
171
|
+
S.String,
|
|
172
|
+
) as any as S.Schema<CreateUserRequestRolesList>;
|
|
173
|
+
|
|
174
|
+
export interface CreateUserRequest {
|
|
175
|
+
/** project id */
|
|
176
|
+
projectId: string;
|
|
177
|
+
/** The region which should be addressed */
|
|
178
|
+
region: CreateUserRequestRegion | (string & {});
|
|
179
|
+
/** instance id */
|
|
180
|
+
instanceId: string;
|
|
181
|
+
database: string;
|
|
182
|
+
/** 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.** */
|
|
183
|
+
roles: CreateUserRequestRolesList;
|
|
184
|
+
username?: string;
|
|
185
|
+
}
|
|
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
|
+
/** 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
|
+
export type UserRolesList = Array<string>;
|
|
206
|
+
export const UserRolesList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<UserRolesList>;
|
|
207
|
+
|
|
208
|
+
export interface User {
|
|
209
|
+
database?: string;
|
|
210
|
+
host?: string;
|
|
211
|
+
id?: string;
|
|
212
|
+
password?: string | Redacted.Redacted<string>;
|
|
213
|
+
port?: number;
|
|
214
|
+
/** 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.** */
|
|
215
|
+
roles?: UserRolesList;
|
|
216
|
+
uri?: string;
|
|
217
|
+
username?: string;
|
|
218
|
+
}
|
|
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
|
+
export interface CreateUserResponse {
|
|
233
|
+
item?: User;
|
|
234
|
+
}
|
|
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
|
+
export type DeleteInstanceRequestRegion = "eu01" | "eu02";
|
|
242
|
+
export const DeleteInstanceRequestRegion = S.String;
|
|
243
|
+
|
|
244
|
+
export interface DeleteInstanceRequest {
|
|
245
|
+
/** project id */
|
|
246
|
+
projectId: string;
|
|
247
|
+
/** The region which should be addressed */
|
|
248
|
+
region: DeleteInstanceRequestRegion | (string & {});
|
|
249
|
+
/** instance id */
|
|
250
|
+
instanceId: string;
|
|
251
|
+
}
|
|
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
|
+
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
|
+
export type DeleteUserRequestRegion = "eu01" | "eu02";
|
|
273
|
+
export const DeleteUserRequestRegion = S.String;
|
|
274
|
+
|
|
275
|
+
export interface DeleteUserRequest {
|
|
276
|
+
/** project id */
|
|
277
|
+
projectId: string;
|
|
278
|
+
/** The region which should be addressed */
|
|
279
|
+
region: DeleteUserRequestRegion | (string & {});
|
|
280
|
+
/** instance id */
|
|
281
|
+
instanceId: string;
|
|
282
|
+
/** user id */
|
|
283
|
+
userId: string;
|
|
284
|
+
}
|
|
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
|
+
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
|
+
export type GetBackupRequestRegion = "eu01" | "eu02";
|
|
307
|
+
export const GetBackupRequestRegion = S.String;
|
|
308
|
+
|
|
309
|
+
export interface GetBackupRequest {
|
|
310
|
+
/** project id */
|
|
311
|
+
projectId: string;
|
|
312
|
+
/** The region which should be addressed */
|
|
313
|
+
region: GetBackupRequestRegion | (string & {});
|
|
314
|
+
/** instance id */
|
|
315
|
+
instanceId: string;
|
|
316
|
+
/** backup id */
|
|
317
|
+
backupId: string;
|
|
318
|
+
}
|
|
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
|
+
export type BackupLabelsList = Array<string>;
|
|
336
|
+
export const BackupLabelsList = /*@__PURE__*/ S.Array(
|
|
337
|
+
S.String,
|
|
338
|
+
) as any as S.Schema<BackupLabelsList>;
|
|
339
|
+
|
|
340
|
+
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
|
+
export interface Backup {
|
|
347
|
+
endTime?: string;
|
|
348
|
+
error?: string;
|
|
349
|
+
id?: string;
|
|
350
|
+
labels?: BackupLabelsList;
|
|
351
|
+
name?: string;
|
|
352
|
+
options?: BackupOptionsMap;
|
|
353
|
+
size?: number;
|
|
354
|
+
startTime?: string;
|
|
355
|
+
}
|
|
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
|
+
export interface GetBackupResponse {
|
|
370
|
+
item?: Backup;
|
|
371
|
+
}
|
|
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
|
+
export type GetInstanceRequestRegion = "eu01" | "eu02";
|
|
379
|
+
export const GetInstanceRequestRegion = S.String;
|
|
380
|
+
|
|
381
|
+
export interface GetInstanceRequest {
|
|
382
|
+
/** project id */
|
|
383
|
+
projectId: string;
|
|
384
|
+
/** The region which should be addressed */
|
|
385
|
+
region: GetInstanceRequestRegion | (string & {});
|
|
386
|
+
/** instance id */
|
|
387
|
+
instanceId: string;
|
|
388
|
+
}
|
|
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
|
+
export interface Flavor {
|
|
405
|
+
cpu?: number;
|
|
406
|
+
description?: string;
|
|
407
|
+
id?: string;
|
|
408
|
+
memory?: number;
|
|
409
|
+
}
|
|
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
|
+
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
|
+
/** The current status of the instance. */
|
|
426
|
+
export type InstanceStatus = "READY" | "PENDING" | "PROCESSING" | "FAILED" | "UNKNOWN";
|
|
427
|
+
export const InstanceStatus = S.String;
|
|
428
|
+
|
|
429
|
+
export interface Instance {
|
|
430
|
+
acl?: ACL;
|
|
431
|
+
backupSchedule?: string;
|
|
432
|
+
flavor?: Flavor;
|
|
433
|
+
id?: string;
|
|
434
|
+
name?: string;
|
|
435
|
+
options?: InstanceOptionsMap;
|
|
436
|
+
replicas?: number;
|
|
437
|
+
/** The current status of the instance. */
|
|
438
|
+
status?: InstanceStatus;
|
|
439
|
+
storage?: Storage;
|
|
440
|
+
version?: string;
|
|
441
|
+
}
|
|
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
|
+
export interface InstanceResponse {
|
|
458
|
+
item?: Instance;
|
|
459
|
+
}
|
|
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
|
+
export type GetUserRequestRegion = "eu01" | "eu02";
|
|
467
|
+
export const GetUserRequestRegion = S.String;
|
|
468
|
+
|
|
469
|
+
export interface GetUserRequest {
|
|
470
|
+
/** project id */
|
|
471
|
+
projectId: string;
|
|
472
|
+
/** The region which should be addressed */
|
|
473
|
+
region: GetUserRequestRegion | (string & {});
|
|
474
|
+
/** instance id */
|
|
475
|
+
instanceId: string;
|
|
476
|
+
/** user id */
|
|
477
|
+
userId: string;
|
|
478
|
+
}
|
|
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
|
+
/** 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
|
+
export type InstanceResponseUserRolesList = Array<string>;
|
|
497
|
+
export const InstanceResponseUserRolesList = /*@__PURE__*/ S.Array(
|
|
498
|
+
S.String,
|
|
499
|
+
) as any as S.Schema<InstanceResponseUserRolesList>;
|
|
500
|
+
|
|
501
|
+
export interface InstanceResponseUser {
|
|
502
|
+
database?: string;
|
|
503
|
+
host?: string;
|
|
504
|
+
id?: string;
|
|
505
|
+
port?: number;
|
|
506
|
+
/** 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.** */
|
|
507
|
+
roles?: InstanceResponseUserRolesList;
|
|
508
|
+
username?: string;
|
|
509
|
+
}
|
|
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
|
+
export interface GetUserResponse {
|
|
522
|
+
item?: InstanceResponseUser;
|
|
523
|
+
}
|
|
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
|
+
export type ListAdvisorSlowQueriesRequestRegion = "eu01" | "eu02";
|
|
531
|
+
export const ListAdvisorSlowQueriesRequestRegion = S.String;
|
|
532
|
+
|
|
533
|
+
export interface ListAdvisorSlowQueriesRequest {
|
|
534
|
+
/** project id */
|
|
535
|
+
projectId: string;
|
|
536
|
+
/** The region which should be addressed */
|
|
537
|
+
region: ListAdvisorSlowQueriesRequestRegion | (string & {});
|
|
538
|
+
/** instance id */
|
|
539
|
+
instanceId: string;
|
|
540
|
+
}
|
|
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
|
+
export interface SlowQuery {
|
|
559
|
+
/** The raw log line pertaining to the slow query. */
|
|
560
|
+
line?: string;
|
|
561
|
+
/** The namespace in which the slow query ran. */
|
|
562
|
+
namespace?: string;
|
|
563
|
+
}
|
|
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
|
+
/** A list of documents with information about slow queries as detected by the Performance Advisor. */
|
|
572
|
+
export type HandlersInstancesSlowQueriesResponseSlowQueriesList = Array<SlowQuery>;
|
|
573
|
+
export const HandlersInstancesSlowQueriesResponseSlowQueriesList = /*@__PURE__*/ S.Array(
|
|
574
|
+
SlowQuery,
|
|
575
|
+
) as any as S.Schema<HandlersInstancesSlowQueriesResponseSlowQueriesList>;
|
|
576
|
+
|
|
577
|
+
export interface HandlersInstancesSlowQueriesResponse {
|
|
578
|
+
/** A list of documents with information about slow queries as detected by the Performance Advisor. */
|
|
579
|
+
slowQueries?: HandlersInstancesSlowQueriesResponseSlowQueriesList;
|
|
580
|
+
}
|
|
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
|
+
export type ListBackupsRequestRegion = "eu01" | "eu02";
|
|
590
|
+
export const ListBackupsRequestRegion = S.String;
|
|
591
|
+
|
|
592
|
+
export interface ListBackupsRequest {
|
|
593
|
+
/** project id */
|
|
594
|
+
projectId: string;
|
|
595
|
+
/** The region which should be addressed */
|
|
596
|
+
region: ListBackupsRequestRegion | (string & {});
|
|
597
|
+
/** instance id */
|
|
598
|
+
instanceId: string;
|
|
599
|
+
}
|
|
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
|
+
export type ListBackupsResponseItemsList = Array<Backup>;
|
|
616
|
+
export const ListBackupsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
617
|
+
Backup,
|
|
618
|
+
) as any as S.Schema<ListBackupsResponseItemsList>;
|
|
619
|
+
|
|
620
|
+
export interface ListBackupsResponse {
|
|
621
|
+
count?: number;
|
|
622
|
+
items?: ListBackupsResponseItemsList;
|
|
623
|
+
}
|
|
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
|
+
export type ListFlavorsRequestRegion = "eu01" | "eu02";
|
|
632
|
+
export const ListFlavorsRequestRegion = S.String;
|
|
633
|
+
|
|
634
|
+
export interface ListFlavorsRequest {
|
|
635
|
+
/** project id */
|
|
636
|
+
projectId: string;
|
|
637
|
+
/** The region which should be addressed */
|
|
638
|
+
region: ListFlavorsRequestRegion | (string & {});
|
|
639
|
+
}
|
|
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
|
+
export type InstanceFlavorCategoriesList = Array<string>;
|
|
655
|
+
export const InstanceFlavorCategoriesList = /*@__PURE__*/ S.Array(
|
|
656
|
+
S.String,
|
|
657
|
+
) as any as S.Schema<InstanceFlavorCategoriesList>;
|
|
658
|
+
|
|
659
|
+
export interface InstanceFlavor {
|
|
660
|
+
categories?: InstanceFlavorCategoriesList;
|
|
661
|
+
cpu?: number;
|
|
662
|
+
description?: string;
|
|
663
|
+
id?: string;
|
|
664
|
+
memory?: number;
|
|
665
|
+
}
|
|
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
|
+
export type ListFlavorsResponseFlavorsList = Array<InstanceFlavor>;
|
|
677
|
+
export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(
|
|
678
|
+
InstanceFlavor,
|
|
679
|
+
) as any as S.Schema<ListFlavorsResponseFlavorsList>;
|
|
680
|
+
|
|
681
|
+
export interface ListFlavorsResponse {
|
|
682
|
+
flavors?: ListFlavorsResponseFlavorsList;
|
|
683
|
+
}
|
|
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
|
+
export type ListInstancesRequestRegion = "eu01" | "eu02";
|
|
691
|
+
export const ListInstancesRequestRegion = S.String;
|
|
692
|
+
|
|
693
|
+
export interface ListInstancesRequest {
|
|
694
|
+
/** project id */
|
|
695
|
+
projectId: string;
|
|
696
|
+
/** The region which should be addressed */
|
|
697
|
+
region: ListInstancesRequestRegion | (string & {});
|
|
698
|
+
/** instance tag */
|
|
699
|
+
tag: string;
|
|
700
|
+
}
|
|
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
|
+
/** The current status of the instance. */
|
|
717
|
+
export type InstanceListInstanceStatus = "READY" | "PENDING" | "PROCESSING" | "FAILED" | "UNKNOWN";
|
|
718
|
+
export const InstanceListInstanceStatus = S.String;
|
|
719
|
+
|
|
720
|
+
export interface InstanceListInstance {
|
|
721
|
+
id?: string;
|
|
722
|
+
name?: string;
|
|
723
|
+
/** The current status of the instance. */
|
|
724
|
+
status?: InstanceListInstanceStatus;
|
|
725
|
+
}
|
|
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
|
+
export type ListInstancesResponseItemsList = Array<InstanceListInstance>;
|
|
735
|
+
export const ListInstancesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
736
|
+
InstanceListInstance,
|
|
737
|
+
) as any as S.Schema<ListInstancesResponseItemsList>;
|
|
738
|
+
|
|
739
|
+
export interface ListInstancesResponse {
|
|
740
|
+
count?: number;
|
|
741
|
+
items?: ListInstancesResponseItemsList;
|
|
742
|
+
}
|
|
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
|
+
export type ListMetricsRequestRegion = "eu01" | "eu02";
|
|
751
|
+
export const ListMetricsRequestRegion = S.String;
|
|
752
|
+
|
|
753
|
+
export interface ListMetricsRequest {
|
|
754
|
+
/** project id */
|
|
755
|
+
projectId: string;
|
|
756
|
+
/** The region which should be addressed */
|
|
757
|
+
region: ListMetricsRequestRegion | (string & {});
|
|
758
|
+
/** instance id */
|
|
759
|
+
instanceId: string;
|
|
760
|
+
/** metric type */
|
|
761
|
+
metric: string;
|
|
762
|
+
/** granularity */
|
|
763
|
+
granularity: string;
|
|
764
|
+
/** period */
|
|
765
|
+
period?: string;
|
|
766
|
+
/** period start */
|
|
767
|
+
start?: string;
|
|
768
|
+
/** period end */
|
|
769
|
+
end?: string;
|
|
770
|
+
}
|
|
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
|
+
export interface DataPoint {
|
|
792
|
+
timestamp?: string;
|
|
793
|
+
value?: number;
|
|
794
|
+
}
|
|
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
|
+
export type HostMetricDatapointsList = Array<DataPoint>;
|
|
803
|
+
export const HostMetricDatapointsList = /*@__PURE__*/ S.Array(
|
|
804
|
+
DataPoint,
|
|
805
|
+
) as any as S.Schema<HostMetricDatapointsList>;
|
|
806
|
+
|
|
807
|
+
export interface HostMetric {
|
|
808
|
+
datapoints?: HostMetricDatapointsList;
|
|
809
|
+
name?: string;
|
|
810
|
+
units?: string;
|
|
811
|
+
}
|
|
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
|
+
export type HostHostMetricsList = Array<HostMetric>;
|
|
821
|
+
export const HostHostMetricsList = /*@__PURE__*/ S.Array(
|
|
822
|
+
HostMetric,
|
|
823
|
+
) as any as S.Schema<HostHostMetricsList>;
|
|
824
|
+
|
|
825
|
+
export interface Host {
|
|
826
|
+
hostMetrics?: HostHostMetricsList;
|
|
827
|
+
id?: string;
|
|
828
|
+
}
|
|
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
|
+
export type ListMetricsResponseHostsList = Array<Host>;
|
|
837
|
+
export const ListMetricsResponseHostsList = /*@__PURE__*/ S.Array(
|
|
838
|
+
Host,
|
|
839
|
+
) as any as S.Schema<ListMetricsResponseHostsList>;
|
|
840
|
+
|
|
841
|
+
export interface ListMetricsResponse {
|
|
842
|
+
hosts?: ListMetricsResponseHostsList;
|
|
843
|
+
}
|
|
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
|
+
export type ListRestoreJobsRequestRegion = "eu01" | "eu02";
|
|
851
|
+
export const ListRestoreJobsRequestRegion = S.String;
|
|
852
|
+
|
|
853
|
+
export interface ListRestoreJobsRequest {
|
|
854
|
+
/** project id */
|
|
855
|
+
projectId: string;
|
|
856
|
+
/** The region which should be addressed */
|
|
857
|
+
region: ListRestoreJobsRequestRegion | (string & {});
|
|
858
|
+
/** instance id */
|
|
859
|
+
instanceId: string;
|
|
860
|
+
}
|
|
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
|
+
export interface RestoreInstanceStatus {
|
|
877
|
+
backupID?: string;
|
|
878
|
+
date?: string;
|
|
879
|
+
id?: string;
|
|
880
|
+
instanceId?: string;
|
|
881
|
+
status?: string;
|
|
882
|
+
}
|
|
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
|
+
export type ListRestoreJobsResponseItemsList = Array<RestoreInstanceStatus>;
|
|
894
|
+
export const ListRestoreJobsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
895
|
+
RestoreInstanceStatus,
|
|
896
|
+
) as any as S.Schema<ListRestoreJobsResponseItemsList>;
|
|
897
|
+
|
|
898
|
+
export interface ListRestoreJobsResponse {
|
|
899
|
+
items?: ListRestoreJobsResponseItemsList;
|
|
900
|
+
}
|
|
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
|
+
export type ListStoragesRequestRegion = "eu01" | "eu02";
|
|
908
|
+
export const ListStoragesRequestRegion = S.String;
|
|
909
|
+
|
|
910
|
+
export interface ListStoragesRequest {
|
|
911
|
+
/** project id */
|
|
912
|
+
projectId: string;
|
|
913
|
+
/** The region which should be addressed */
|
|
914
|
+
region: ListStoragesRequestRegion | (string & {});
|
|
915
|
+
/** flavor id */
|
|
916
|
+
flavor: string;
|
|
917
|
+
}
|
|
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
|
+
export type ListStoragesResponseStorageClassesList = Array<string>;
|
|
934
|
+
export const ListStoragesResponseStorageClassesList = /*@__PURE__*/ S.Array(
|
|
935
|
+
S.String,
|
|
936
|
+
) as any as S.Schema<ListStoragesResponseStorageClassesList>;
|
|
937
|
+
|
|
938
|
+
export interface StorageRange {
|
|
939
|
+
max?: number;
|
|
940
|
+
min?: number;
|
|
941
|
+
}
|
|
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
|
+
export interface ListStoragesResponse {
|
|
950
|
+
storageClasses?: ListStoragesResponseStorageClassesList;
|
|
951
|
+
storageRange?: StorageRange;
|
|
952
|
+
}
|
|
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
|
+
export type ListSuggestedIndexesRequestRegion = "eu01" | "eu02";
|
|
961
|
+
export const ListSuggestedIndexesRequestRegion = S.String;
|
|
962
|
+
|
|
963
|
+
export interface ListSuggestedIndexesRequest {
|
|
964
|
+
/** project id */
|
|
965
|
+
projectId: string;
|
|
966
|
+
/** The region which should be addressed */
|
|
967
|
+
region: ListSuggestedIndexesRequestRegion | (string & {});
|
|
968
|
+
/** instance id */
|
|
969
|
+
instanceId: string;
|
|
970
|
+
}
|
|
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
|
+
/** Documents containing the search criteria used by the query. */
|
|
989
|
+
export type MongodbatlasOperationPredicatesList = Array<unknown>;
|
|
990
|
+
export const MongodbatlasOperationPredicatesList = /*@__PURE__*/ S.Array(
|
|
991
|
+
S.Unknown,
|
|
992
|
+
) as any as S.Schema<MongodbatlasOperationPredicatesList>;
|
|
993
|
+
|
|
994
|
+
export interface MongodbatlasStats {
|
|
995
|
+
/** Duration in milliseconds of the query. */
|
|
996
|
+
ms?: number;
|
|
997
|
+
/** Number of results returned by the query. */
|
|
998
|
+
nReturned?: number;
|
|
999
|
+
/** Number of documents read by the query. */
|
|
1000
|
+
nScanned?: number;
|
|
1001
|
+
/** Query timestamp, in seconds since epoch. */
|
|
1002
|
+
ts?: number;
|
|
1003
|
+
}
|
|
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
|
+
export interface MongodbatlasOperation {
|
|
1014
|
+
/** Documents containing the search criteria used by the query. */
|
|
1015
|
+
predicates?: MongodbatlasOperationPredicatesList;
|
|
1016
|
+
/** Raw log line produced by the query. */
|
|
1017
|
+
raw?: string;
|
|
1018
|
+
/** Query statistics. */
|
|
1019
|
+
stats?: MongodbatlasStats;
|
|
1020
|
+
}
|
|
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
|
+
/** It represents documents with specific information and log lines for individual queries. */
|
|
1030
|
+
export type ShapeOperationsList = Array<MongodbatlasOperation>;
|
|
1031
|
+
export const ShapeOperationsList = /*@__PURE__*/ S.Array(
|
|
1032
|
+
MongodbatlasOperation,
|
|
1033
|
+
) as any as S.Schema<ShapeOperationsList>;
|
|
1034
|
+
|
|
1035
|
+
export interface Shape {
|
|
1036
|
+
/** Average duration in milliseconds for the queries examined that match this shape. */
|
|
1037
|
+
avgMs?: number;
|
|
1038
|
+
/** Number of queries examined that match this shape. */
|
|
1039
|
+
count?: number;
|
|
1040
|
+
/** Unique id for this shape. Exists only for the duration of the API request. */
|
|
1041
|
+
id?: string;
|
|
1042
|
+
/** Average number of documents read for every document returned by the query. */
|
|
1043
|
+
inefficiencyScore?: number;
|
|
1044
|
+
/** The namespace in which the slow query ran. */
|
|
1045
|
+
namespace?: string;
|
|
1046
|
+
/** It represents documents with specific information and log lines for individual queries. */
|
|
1047
|
+
operations?: ShapeOperationsList;
|
|
1048
|
+
}
|
|
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
|
+
/** Documents with information about the query shapes that are served by the suggested indexes. */
|
|
1061
|
+
export type HandlersInstancesSuggestedIndexesResponseShapesList = Array<Shape>;
|
|
1062
|
+
export const HandlersInstancesSuggestedIndexesResponseShapesList = /*@__PURE__*/ S.Array(
|
|
1063
|
+
Shape,
|
|
1064
|
+
) as any as S.Schema<HandlersInstancesSuggestedIndexesResponseShapesList>;
|
|
1065
|
+
|
|
1066
|
+
/** List of unique identifiers which correspond the query shapes in this response which pertain to this suggested index. */
|
|
1067
|
+
export type SuggestedIndexImpactList = Array<string>;
|
|
1068
|
+
export const SuggestedIndexImpactList = /*@__PURE__*/ S.Array(
|
|
1069
|
+
S.String,
|
|
1070
|
+
) as any as S.Schema<SuggestedIndexImpactList>;
|
|
1071
|
+
|
|
1072
|
+
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
|
+
/** Array of documents that specifies a key in the index and its sort order, ascending or descending. */
|
|
1079
|
+
export type SuggestedIndexIndexList = Array<SuggestedIndexIndexItemMap>;
|
|
1080
|
+
export const SuggestedIndexIndexList = /*@__PURE__*/ S.Array(
|
|
1081
|
+
SuggestedIndexIndexItemMap,
|
|
1082
|
+
) as any as S.Schema<SuggestedIndexIndexList>;
|
|
1083
|
+
|
|
1084
|
+
export interface SuggestedIndex {
|
|
1085
|
+
/** Unique id for this suggested index. */
|
|
1086
|
+
id?: string;
|
|
1087
|
+
/** List of unique identifiers which correspond the query shapes in this response which pertain to this suggested index. */
|
|
1088
|
+
impact?: SuggestedIndexImpactList;
|
|
1089
|
+
/** Array of documents that specifies a key in the index and its sort order, ascending or descending. */
|
|
1090
|
+
index?: SuggestedIndexIndexList;
|
|
1091
|
+
/** Namespace of the suggested index. */
|
|
1092
|
+
namespace?: string;
|
|
1093
|
+
/** Estimated percentage performance improvement that the suggested index would provide. */
|
|
1094
|
+
weight?: number;
|
|
1095
|
+
}
|
|
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
|
+
/** Documents with information about the indexes suggested by the Performance Advisor. */
|
|
1107
|
+
export type HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList = Array<SuggestedIndex>;
|
|
1108
|
+
export const HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList = /*@__PURE__*/ S.Array(
|
|
1109
|
+
SuggestedIndex,
|
|
1110
|
+
) as any as S.Schema<HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList>;
|
|
1111
|
+
|
|
1112
|
+
export interface HandlersInstancesSuggestedIndexesResponse {
|
|
1113
|
+
/** Documents with information about the query shapes that are served by the suggested indexes. */
|
|
1114
|
+
shapes?: HandlersInstancesSuggestedIndexesResponseShapesList;
|
|
1115
|
+
/** Documents with information about the indexes suggested by the Performance Advisor. */
|
|
1116
|
+
suggestedIndexes?: HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList;
|
|
1117
|
+
}
|
|
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
|
+
export type ListUsersRequestRegion = "eu01" | "eu02";
|
|
1128
|
+
export const ListUsersRequestRegion = S.String;
|
|
1129
|
+
|
|
1130
|
+
export interface ListUsersRequest {
|
|
1131
|
+
/** project id */
|
|
1132
|
+
projectId: string;
|
|
1133
|
+
/** The region which should be addressed */
|
|
1134
|
+
region: ListUsersRequestRegion | (string & {});
|
|
1135
|
+
/** instance id */
|
|
1136
|
+
instanceId: string;
|
|
1137
|
+
}
|
|
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
|
+
export interface ListUser {
|
|
1154
|
+
id?: string;
|
|
1155
|
+
username?: string;
|
|
1156
|
+
}
|
|
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
|
+
export type ListUsersResponseItemsList = Array<ListUser>;
|
|
1165
|
+
export const ListUsersResponseItemsList = /*@__PURE__*/ S.Array(
|
|
1166
|
+
ListUser,
|
|
1167
|
+
) as any as S.Schema<ListUsersResponseItemsList>;
|
|
1168
|
+
|
|
1169
|
+
export interface ListUsersResponse {
|
|
1170
|
+
count?: number;
|
|
1171
|
+
items?: ListUsersResponseItemsList;
|
|
1172
|
+
}
|
|
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
|
+
export type ListVersionsRequestRegion = "eu01" | "eu02";
|
|
1181
|
+
export const ListVersionsRequestRegion = S.String;
|
|
1182
|
+
|
|
1183
|
+
export interface ListVersionsRequest {
|
|
1184
|
+
/** project id */
|
|
1185
|
+
projectId: string;
|
|
1186
|
+
/** The region which should be addressed */
|
|
1187
|
+
region: ListVersionsRequestRegion | (string & {});
|
|
1188
|
+
}
|
|
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
|
+
export type ListVersionsResponseVersionsList = Array<string>;
|
|
1204
|
+
export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(
|
|
1205
|
+
S.String,
|
|
1206
|
+
) as any as S.Schema<ListVersionsResponseVersionsList>;
|
|
1207
|
+
|
|
1208
|
+
export interface ListVersionsResponse {
|
|
1209
|
+
versions?: ListVersionsResponseVersionsList;
|
|
1210
|
+
}
|
|
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
|
+
export type PartialUpdateInstanceRequestRegion = "eu01" | "eu02";
|
|
1218
|
+
export const PartialUpdateInstanceRequestRegion = S.String;
|
|
1219
|
+
|
|
1220
|
+
/** Labels field is not certain/clear */
|
|
1221
|
+
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
|
+
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
|
+
export interface PartialUpdateInstanceRequest {
|
|
1234
|
+
/** project id */
|
|
1235
|
+
projectId: string;
|
|
1236
|
+
/** The region which should be addressed */
|
|
1237
|
+
region: PartialUpdateInstanceRequestRegion | (string & {});
|
|
1238
|
+
/** instance id */
|
|
1239
|
+
instanceId: string;
|
|
1240
|
+
acl?: ACL;
|
|
1241
|
+
backupSchedule?: string;
|
|
1242
|
+
flavorId?: string;
|
|
1243
|
+
/** Labels field is not certain/clear */
|
|
1244
|
+
labels?: PartialUpdateInstanceRequestLabelsMap;
|
|
1245
|
+
name?: string;
|
|
1246
|
+
options?: PartialUpdateInstanceRequestOptionsMap;
|
|
1247
|
+
replicas?: number;
|
|
1248
|
+
storage?: Storage;
|
|
1249
|
+
version?: string;
|
|
1250
|
+
}
|
|
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
|
+
export interface UpdateInstanceResponse {
|
|
1278
|
+
item?: Instance;
|
|
1279
|
+
}
|
|
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
|
+
export type PartialUpdateUserRequestRegion = "eu01" | "eu02";
|
|
1287
|
+
export const PartialUpdateUserRequestRegion = S.String;
|
|
1288
|
+
|
|
1289
|
+
/** 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
|
+
export type PartialUpdateUserRequestRolesList = Array<string>;
|
|
1291
|
+
export const PartialUpdateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
1292
|
+
S.String,
|
|
1293
|
+
) as any as S.Schema<PartialUpdateUserRequestRolesList>;
|
|
1294
|
+
|
|
1295
|
+
export interface PartialUpdateUserRequest {
|
|
1296
|
+
/** project id */
|
|
1297
|
+
projectId: string;
|
|
1298
|
+
/** The region which should be addressed */
|
|
1299
|
+
region: PartialUpdateUserRequestRegion | (string & {});
|
|
1300
|
+
/** instance id */
|
|
1301
|
+
instanceId: string;
|
|
1302
|
+
/** user id */
|
|
1303
|
+
userId: string;
|
|
1304
|
+
database?: string;
|
|
1305
|
+
/** 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
|
+
roles?: PartialUpdateUserRequestRolesList;
|
|
1307
|
+
}
|
|
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
|
+
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
|
+
export type ResetUserRequestRegion = "eu01" | "eu02";
|
|
1332
|
+
export const ResetUserRequestRegion = S.String;
|
|
1333
|
+
|
|
1334
|
+
export interface ResetUserRequest {
|
|
1335
|
+
/** project id */
|
|
1336
|
+
projectId: string;
|
|
1337
|
+
/** The region which should be addressed */
|
|
1338
|
+
region: ResetUserRequestRegion | (string & {});
|
|
1339
|
+
/** instance id */
|
|
1340
|
+
instanceId: string;
|
|
1341
|
+
/** user id */
|
|
1342
|
+
userId: string;
|
|
1343
|
+
}
|
|
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
|
+
export type RestoreInstanceRequestRegion = "eu01" | "eu02";
|
|
1361
|
+
export const RestoreInstanceRequestRegion = S.String;
|
|
1362
|
+
|
|
1363
|
+
export interface RestoreInstanceRequest {
|
|
1364
|
+
/** project id */
|
|
1365
|
+
projectId: string;
|
|
1366
|
+
/** The region which should be addressed */
|
|
1367
|
+
region: RestoreInstanceRequestRegion | (string & {});
|
|
1368
|
+
/** instance id */
|
|
1369
|
+
instanceId: string;
|
|
1370
|
+
backupId: string;
|
|
1371
|
+
}
|
|
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
|
+
export interface RestoreInstanceResponse {
|
|
1389
|
+
item?: RestoreInstanceStatus;
|
|
1390
|
+
}
|
|
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
|
+
export type UpdateBackupScheduleRequestRegion = "eu01" | "eu02";
|
|
1398
|
+
export const UpdateBackupScheduleRequestRegion = S.String;
|
|
1399
|
+
|
|
1400
|
+
export interface UpdateBackupScheduleRequest {
|
|
1401
|
+
/** project id */
|
|
1402
|
+
projectId: string;
|
|
1403
|
+
/** The region which should be addressed */
|
|
1404
|
+
region: UpdateBackupScheduleRequestRegion | (string & {});
|
|
1405
|
+
/** instance id */
|
|
1406
|
+
instanceId: string;
|
|
1407
|
+
backupSchedule?: string;
|
|
1408
|
+
dailySnapshotRetentionDays?: number;
|
|
1409
|
+
monthlySnapshotRetentionMonths?: number;
|
|
1410
|
+
pointInTimeWindowHours?: number;
|
|
1411
|
+
snapshotRetentionDays?: number;
|
|
1412
|
+
weeklySnapshotRetentionWeeks?: number;
|
|
1413
|
+
}
|
|
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
|
+
export interface BackupSchedule {
|
|
1438
|
+
backupSchedule?: string;
|
|
1439
|
+
dailySnapshotRetentionDays?: number;
|
|
1440
|
+
monthlySnapshotRetentionMonths?: number;
|
|
1441
|
+
pointInTimeWindowHours?: number;
|
|
1442
|
+
snapshotRetentionDays?: number;
|
|
1443
|
+
weeklySnapshotRetentionWeeks?: number;
|
|
1444
|
+
}
|
|
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
|
+
export type UpdateInstanceRequestRegion = "eu01" | "eu02";
|
|
1457
|
+
export const UpdateInstanceRequestRegion = S.String;
|
|
1458
|
+
|
|
1459
|
+
/** Labels field is not certain/clear */
|
|
1460
|
+
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
|
+
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
|
+
export interface UpdateInstanceRequest {
|
|
1473
|
+
/** project id */
|
|
1474
|
+
projectId: string;
|
|
1475
|
+
/** The region which should be addressed */
|
|
1476
|
+
region: UpdateInstanceRequestRegion | (string & {});
|
|
1477
|
+
/** instance id */
|
|
1478
|
+
instanceId: string;
|
|
1479
|
+
acl: ACL;
|
|
1480
|
+
backupSchedule: string;
|
|
1481
|
+
flavorId: string;
|
|
1482
|
+
/** Labels field is not certain/clear */
|
|
1483
|
+
labels?: UpdateInstanceRequestLabelsMap;
|
|
1484
|
+
name: string;
|
|
1485
|
+
options: UpdateInstanceRequestOptionsMap;
|
|
1486
|
+
replicas: number;
|
|
1487
|
+
storage: Storage;
|
|
1488
|
+
version: string;
|
|
1489
|
+
}
|
|
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
|
+
export type UpdateUserRequestRegion = "eu01" | "eu02";
|
|
1515
|
+
export const UpdateUserRequestRegion = S.String;
|
|
1516
|
+
|
|
1517
|
+
/** 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
|
+
export type UpdateUserRequestRolesList = Array<string>;
|
|
1519
|
+
export const UpdateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
1520
|
+
S.String,
|
|
1521
|
+
) as any as S.Schema<UpdateUserRequestRolesList>;
|
|
1522
|
+
|
|
1523
|
+
export interface UpdateUserRequest {
|
|
1524
|
+
/** project id */
|
|
1525
|
+
projectId: string;
|
|
1526
|
+
/** The region which should be addressed */
|
|
1527
|
+
region: UpdateUserRequestRegion | (string & {});
|
|
1528
|
+
/** instance id */
|
|
1529
|
+
instanceId: string;
|
|
1530
|
+
/** user id */
|
|
1531
|
+
userId: string;
|
|
1532
|
+
database: string;
|
|
1533
|
+
/** 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
|
+
roles: UpdateUserRequestRolesList;
|
|
1535
|
+
}
|
|
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
|
+
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
|
+
export type CloneInstanceError = BadRequest | NotFound | StackitOpError;
|
|
1560
|
+
/** 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
|
+
export const cloneInstance: API.OperationMethod<
|
|
1562
|
+
CloneInstanceRequest,
|
|
1563
|
+
CloneInstanceResponse,
|
|
1564
|
+
CloneInstanceError,
|
|
1565
|
+
StackitOpContext
|
|
1566
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1567
|
+
input: CloneInstanceRequest,
|
|
1568
|
+
output: CloneInstanceResponse,
|
|
1569
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1570
|
+
protocol: StackitProtocol,
|
|
1571
|
+
retry: Retry.Retry,
|
|
1572
|
+
}));
|
|
1573
|
+
|
|
1574
|
+
export type CreateInstanceError = BadRequest | NotFound | StackitOpError;
|
|
1575
|
+
/** Create instance Create and deploys an instance<br/> Note that the time format for the backupSchedule is in UTC */
|
|
1576
|
+
export const createInstance: API.OperationMethod<
|
|
1577
|
+
CreateInstanceRequest,
|
|
1578
|
+
CreateInstanceResponse,
|
|
1579
|
+
CreateInstanceError,
|
|
1580
|
+
StackitOpContext
|
|
1581
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1582
|
+
input: CreateInstanceRequest,
|
|
1583
|
+
output: CreateInstanceResponse,
|
|
1584
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1585
|
+
protocol: StackitProtocol,
|
|
1586
|
+
retry: Retry.Retry,
|
|
1587
|
+
}));
|
|
1588
|
+
|
|
1589
|
+
export type CreateUserError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1590
|
+
/** Create User create a new user for a mongodb instance */
|
|
1591
|
+
export const createUser: API.OperationMethod<
|
|
1592
|
+
CreateUserRequest,
|
|
1593
|
+
CreateUserResponse,
|
|
1594
|
+
CreateUserError,
|
|
1595
|
+
StackitOpContext
|
|
1596
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1597
|
+
input: CreateUserRequest,
|
|
1598
|
+
output: CreateUserResponse,
|
|
1599
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1600
|
+
protocol: StackitProtocol,
|
|
1601
|
+
retry: Retry.Retry,
|
|
1602
|
+
}));
|
|
1603
|
+
|
|
1604
|
+
export type DeleteInstanceError = BadRequest | NotFound | StackitOpError;
|
|
1605
|
+
/** Delete instance removes an instance */
|
|
1606
|
+
export const deleteInstance: API.OperationMethod<
|
|
1607
|
+
DeleteInstanceRequest,
|
|
1608
|
+
DeleteInstanceResponse,
|
|
1609
|
+
DeleteInstanceError,
|
|
1610
|
+
StackitOpContext
|
|
1611
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1612
|
+
input: DeleteInstanceRequest,
|
|
1613
|
+
output: DeleteInstanceResponse,
|
|
1614
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1615
|
+
protocol: StackitProtocol,
|
|
1616
|
+
retry: Retry.Retry,
|
|
1617
|
+
}));
|
|
1618
|
+
|
|
1619
|
+
export type DeleteUserError = BadRequest | NotFound | StackitOpError;
|
|
1620
|
+
/** Delete User delete mongodb user */
|
|
1621
|
+
export const deleteUser: API.OperationMethod<
|
|
1622
|
+
DeleteUserRequest,
|
|
1623
|
+
DeleteUserResponse,
|
|
1624
|
+
DeleteUserError,
|
|
1625
|
+
StackitOpContext
|
|
1626
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1627
|
+
input: DeleteUserRequest,
|
|
1628
|
+
output: DeleteUserResponse,
|
|
1629
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1630
|
+
protocol: StackitProtocol,
|
|
1631
|
+
retry: Retry.Retry,
|
|
1632
|
+
}));
|
|
1633
|
+
|
|
1634
|
+
export type GetBackupError = BadRequest | NotFound | StackitOpError;
|
|
1635
|
+
/** Get backup Get details about a specific backup */
|
|
1636
|
+
export const getBackup: API.OperationMethod<
|
|
1637
|
+
GetBackupRequest,
|
|
1638
|
+
GetBackupResponse,
|
|
1639
|
+
GetBackupError,
|
|
1640
|
+
StackitOpContext
|
|
1641
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1642
|
+
input: GetBackupRequest,
|
|
1643
|
+
output: GetBackupResponse,
|
|
1644
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1645
|
+
protocol: StackitProtocol,
|
|
1646
|
+
retry: Retry.Retry,
|
|
1647
|
+
}));
|
|
1648
|
+
|
|
1649
|
+
export type GetInstanceError = BadRequest | StackitOpError;
|
|
1650
|
+
/** Get instance gets information of an instance */
|
|
1651
|
+
export const getInstance: API.OperationMethod<
|
|
1652
|
+
GetInstanceRequest,
|
|
1653
|
+
InstanceResponse,
|
|
1654
|
+
GetInstanceError,
|
|
1655
|
+
StackitOpContext
|
|
1656
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1657
|
+
input: GetInstanceRequest,
|
|
1658
|
+
output: InstanceResponse,
|
|
1659
|
+
errors: [BadRequest, UnknownStackitError],
|
|
1660
|
+
protocol: StackitProtocol,
|
|
1661
|
+
retry: Retry.Retry,
|
|
1662
|
+
}));
|
|
1663
|
+
|
|
1664
|
+
export type GetUserError = BadRequest | NotFound | StackitOpError;
|
|
1665
|
+
/** Get User get detailed information of a user of a mongodb instance */
|
|
1666
|
+
export const getUser: API.OperationMethod<
|
|
1667
|
+
GetUserRequest,
|
|
1668
|
+
GetUserResponse,
|
|
1669
|
+
GetUserError,
|
|
1670
|
+
StackitOpContext
|
|
1671
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1672
|
+
input: GetUserRequest,
|
|
1673
|
+
output: GetUserResponse,
|
|
1674
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1675
|
+
protocol: StackitProtocol,
|
|
1676
|
+
retry: Retry.Retry,
|
|
1677
|
+
}));
|
|
1678
|
+
|
|
1679
|
+
export type ListAdvisorSlowQueriesError = BadRequest | NotFound | StackitOpError;
|
|
1680
|
+
/** Get slow queries gets slow queries from the Opsmanager performance advisor */
|
|
1681
|
+
export const listAdvisorSlowQueries: API.OperationMethod<
|
|
1682
|
+
ListAdvisorSlowQueriesRequest,
|
|
1683
|
+
HandlersInstancesSlowQueriesResponse,
|
|
1684
|
+
ListAdvisorSlowQueriesError,
|
|
1685
|
+
StackitOpContext
|
|
1686
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1687
|
+
input: ListAdvisorSlowQueriesRequest,
|
|
1688
|
+
output: HandlersInstancesSlowQueriesResponse,
|
|
1689
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1690
|
+
protocol: StackitProtocol,
|
|
1691
|
+
retry: Retry.Retry,
|
|
1692
|
+
}));
|
|
1693
|
+
|
|
1694
|
+
export type ListBackupsError = BadRequest | NotFound | StackitOpError;
|
|
1695
|
+
/** List backup List backups of an instance */
|
|
1696
|
+
export const listBackups: API.OperationMethod<
|
|
1697
|
+
ListBackupsRequest,
|
|
1698
|
+
ListBackupsResponse,
|
|
1699
|
+
ListBackupsError,
|
|
1700
|
+
StackitOpContext
|
|
1701
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1702
|
+
input: ListBackupsRequest,
|
|
1703
|
+
output: ListBackupsResponse,
|
|
1704
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1705
|
+
protocol: StackitProtocol,
|
|
1706
|
+
retry: Retry.Retry,
|
|
1707
|
+
}));
|
|
1708
|
+
|
|
1709
|
+
export type ListFlavorsError = BadRequest | StackitOpError;
|
|
1710
|
+
/** Flavors returns all possible flavors */
|
|
1711
|
+
export const listFlavors: API.OperationMethod<
|
|
1712
|
+
ListFlavorsRequest,
|
|
1713
|
+
ListFlavorsResponse,
|
|
1714
|
+
ListFlavorsError,
|
|
1715
|
+
StackitOpContext
|
|
1716
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1717
|
+
input: ListFlavorsRequest,
|
|
1718
|
+
output: ListFlavorsResponse,
|
|
1719
|
+
errors: [BadRequest, UnknownStackitError],
|
|
1720
|
+
protocol: StackitProtocol,
|
|
1721
|
+
retry: Retry.Retry,
|
|
1722
|
+
}));
|
|
1723
|
+
|
|
1724
|
+
export type ListInstancesError = BadRequest | StackitOpError;
|
|
1725
|
+
/** List Instances list all instances for a projectID */
|
|
1726
|
+
export const listInstances: API.OperationMethod<
|
|
1727
|
+
ListInstancesRequest,
|
|
1728
|
+
ListInstancesResponse,
|
|
1729
|
+
ListInstancesError,
|
|
1730
|
+
StackitOpContext
|
|
1731
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1732
|
+
input: ListInstancesRequest,
|
|
1733
|
+
output: ListInstancesResponse,
|
|
1734
|
+
errors: [BadRequest, UnknownStackitError],
|
|
1735
|
+
protocol: StackitProtocol,
|
|
1736
|
+
retry: Retry.Retry,
|
|
1737
|
+
}));
|
|
1738
|
+
|
|
1739
|
+
export type ListMetricsError = BadRequest | NotFound | StackitOpError;
|
|
1740
|
+
/** Metrics returns metrics for an instance */
|
|
1741
|
+
export const listMetrics: API.OperationMethod<
|
|
1742
|
+
ListMetricsRequest,
|
|
1743
|
+
ListMetricsResponse,
|
|
1744
|
+
ListMetricsError,
|
|
1745
|
+
StackitOpContext
|
|
1746
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1747
|
+
input: ListMetricsRequest,
|
|
1748
|
+
output: ListMetricsResponse,
|
|
1749
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1750
|
+
protocol: StackitProtocol,
|
|
1751
|
+
retry: Retry.Retry,
|
|
1752
|
+
}));
|
|
1753
|
+
|
|
1754
|
+
export type ListRestoreJobsError = BadRequest | NotFound | StackitOpError;
|
|
1755
|
+
/** List restore jobs List restore jobs of an instance */
|
|
1756
|
+
export const listRestoreJobs: API.OperationMethod<
|
|
1757
|
+
ListRestoreJobsRequest,
|
|
1758
|
+
ListRestoreJobsResponse,
|
|
1759
|
+
ListRestoreJobsError,
|
|
1760
|
+
StackitOpContext
|
|
1761
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1762
|
+
input: ListRestoreJobsRequest,
|
|
1763
|
+
output: ListRestoreJobsResponse,
|
|
1764
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1765
|
+
protocol: StackitProtocol,
|
|
1766
|
+
retry: Retry.Retry,
|
|
1767
|
+
}));
|
|
1768
|
+
|
|
1769
|
+
export type ListStoragesError = BadRequest | NotFound | StackitOpError;
|
|
1770
|
+
/** Get storage returns the storage for a certain flavor */
|
|
1771
|
+
export const listStorages: API.OperationMethod<
|
|
1772
|
+
ListStoragesRequest,
|
|
1773
|
+
ListStoragesResponse,
|
|
1774
|
+
ListStoragesError,
|
|
1775
|
+
StackitOpContext
|
|
1776
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1777
|
+
input: ListStoragesRequest,
|
|
1778
|
+
output: ListStoragesResponse,
|
|
1779
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1780
|
+
protocol: StackitProtocol,
|
|
1781
|
+
retry: Retry.Retry,
|
|
1782
|
+
}));
|
|
1783
|
+
|
|
1784
|
+
export type ListSuggestedIndexesError = BadRequest | NotFound | StackitOpError;
|
|
1785
|
+
/** Get suggested indexes gets suggested indexes from the Opsmanager performance advisor */
|
|
1786
|
+
export const listSuggestedIndexes: API.OperationMethod<
|
|
1787
|
+
ListSuggestedIndexesRequest,
|
|
1788
|
+
HandlersInstancesSuggestedIndexesResponse,
|
|
1789
|
+
ListSuggestedIndexesError,
|
|
1790
|
+
StackitOpContext
|
|
1791
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1792
|
+
input: ListSuggestedIndexesRequest,
|
|
1793
|
+
output: HandlersInstancesSuggestedIndexesResponse,
|
|
1794
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1795
|
+
protocol: StackitProtocol,
|
|
1796
|
+
retry: Retry.Retry,
|
|
1797
|
+
}));
|
|
1798
|
+
|
|
1799
|
+
export type ListUsersError = BadRequest | NotFound | StackitOpError;
|
|
1800
|
+
/** List Users list all users for a mongodb instance */
|
|
1801
|
+
export const listUsers: API.OperationMethod<
|
|
1802
|
+
ListUsersRequest,
|
|
1803
|
+
ListUsersResponse,
|
|
1804
|
+
ListUsersError,
|
|
1805
|
+
StackitOpContext
|
|
1806
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1807
|
+
input: ListUsersRequest,
|
|
1808
|
+
output: ListUsersResponse,
|
|
1809
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1810
|
+
protocol: StackitProtocol,
|
|
1811
|
+
retry: Retry.Retry,
|
|
1812
|
+
}));
|
|
1813
|
+
|
|
1814
|
+
export type ListVersionsError = BadRequest | StackitOpError;
|
|
1815
|
+
/** Get versions returns all available versions for creating endpoint */
|
|
1816
|
+
export const listVersions: API.OperationMethod<
|
|
1817
|
+
ListVersionsRequest,
|
|
1818
|
+
ListVersionsResponse,
|
|
1819
|
+
ListVersionsError,
|
|
1820
|
+
StackitOpContext
|
|
1821
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1822
|
+
input: ListVersionsRequest,
|
|
1823
|
+
output: ListVersionsResponse,
|
|
1824
|
+
errors: [BadRequest, UnknownStackitError],
|
|
1825
|
+
protocol: StackitProtocol,
|
|
1826
|
+
retry: Retry.Retry,
|
|
1827
|
+
}));
|
|
1828
|
+
|
|
1829
|
+
export type PartialUpdateInstanceError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1830
|
+
/** Patch endpoint Updates a deployment plan<br/> Note that the time format for the backupSchedule is in UTC */
|
|
1831
|
+
export const partialUpdateInstance: API.OperationMethod<
|
|
1832
|
+
PartialUpdateInstanceRequest,
|
|
1833
|
+
UpdateInstanceResponse,
|
|
1834
|
+
PartialUpdateInstanceError,
|
|
1835
|
+
StackitOpContext
|
|
1836
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1837
|
+
input: PartialUpdateInstanceRequest,
|
|
1838
|
+
output: UpdateInstanceResponse,
|
|
1839
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1840
|
+
protocol: StackitProtocol,
|
|
1841
|
+
retry: Retry.Retry,
|
|
1842
|
+
}));
|
|
1843
|
+
|
|
1844
|
+
export type PartialUpdateUserError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1845
|
+
/** Update User updates user for a mongodb instance */
|
|
1846
|
+
export const partialUpdateUser: API.OperationMethod<
|
|
1847
|
+
PartialUpdateUserRequest,
|
|
1848
|
+
PartialUpdateUserResponse,
|
|
1849
|
+
PartialUpdateUserError,
|
|
1850
|
+
StackitOpContext
|
|
1851
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1852
|
+
input: PartialUpdateUserRequest,
|
|
1853
|
+
output: PartialUpdateUserResponse,
|
|
1854
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1855
|
+
protocol: StackitProtocol,
|
|
1856
|
+
retry: Retry.Retry,
|
|
1857
|
+
}));
|
|
1858
|
+
|
|
1859
|
+
export type ResetUserError = BadRequest | NotFound | StackitOpError;
|
|
1860
|
+
/** Reset User resets mongodb user's password */
|
|
1861
|
+
export const resetUser: API.OperationMethod<
|
|
1862
|
+
ResetUserRequest,
|
|
1863
|
+
User,
|
|
1864
|
+
ResetUserError,
|
|
1865
|
+
StackitOpContext
|
|
1866
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1867
|
+
input: ResetUserRequest,
|
|
1868
|
+
output: User,
|
|
1869
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1870
|
+
protocol: StackitProtocol,
|
|
1871
|
+
retry: Retry.Retry,
|
|
1872
|
+
}));
|
|
1873
|
+
|
|
1874
|
+
export type RestoreInstanceError = BadRequest | NotFound | StackitOpError;
|
|
1875
|
+
/** Restore instance Restore an instance based on snapshot */
|
|
1876
|
+
export const restoreInstance: API.OperationMethod<
|
|
1877
|
+
RestoreInstanceRequest,
|
|
1878
|
+
RestoreInstanceResponse,
|
|
1879
|
+
RestoreInstanceError,
|
|
1880
|
+
StackitOpContext
|
|
1881
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1882
|
+
input: RestoreInstanceRequest,
|
|
1883
|
+
output: RestoreInstanceResponse,
|
|
1884
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1885
|
+
protocol: StackitProtocol,
|
|
1886
|
+
retry: Retry.Retry,
|
|
1887
|
+
}));
|
|
1888
|
+
|
|
1889
|
+
export type UpdateBackupScheduleError = BadRequest | NotFound | StackitOpError;
|
|
1890
|
+
/** Update schedule Updates a backup schedule<br/> Note that the time format is in UTC */
|
|
1891
|
+
export const updateBackupSchedule: API.OperationMethod<
|
|
1892
|
+
UpdateBackupScheduleRequest,
|
|
1893
|
+
BackupSchedule,
|
|
1894
|
+
UpdateBackupScheduleError,
|
|
1895
|
+
StackitOpContext
|
|
1896
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1897
|
+
input: UpdateBackupScheduleRequest,
|
|
1898
|
+
output: BackupSchedule,
|
|
1899
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1900
|
+
protocol: StackitProtocol,
|
|
1901
|
+
retry: Retry.Retry,
|
|
1902
|
+
}));
|
|
1903
|
+
|
|
1904
|
+
export type UpdateInstanceError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1905
|
+
/** Put endpoint Updates a deployment plan<br/> Note that the time format for the backupSchedule is in UTC */
|
|
1906
|
+
export const updateInstance: API.OperationMethod<
|
|
1907
|
+
UpdateInstanceRequest,
|
|
1908
|
+
UpdateInstanceResponse,
|
|
1909
|
+
UpdateInstanceError,
|
|
1910
|
+
StackitOpContext
|
|
1911
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1912
|
+
input: UpdateInstanceRequest,
|
|
1913
|
+
output: UpdateInstanceResponse,
|
|
1914
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1915
|
+
protocol: StackitProtocol,
|
|
1916
|
+
retry: Retry.Retry,
|
|
1917
|
+
}));
|
|
1918
|
+
|
|
1919
|
+
export type UpdateUserError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1920
|
+
/** Update User updates user for a mongodb instance */
|
|
1921
|
+
export const updateUser: API.OperationMethod<
|
|
1922
|
+
UpdateUserRequest,
|
|
1923
|
+
UpdateUserResponse,
|
|
1924
|
+
UpdateUserError,
|
|
1925
|
+
StackitOpContext
|
|
1926
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1927
|
+
input: UpdateUserRequest,
|
|
1928
|
+
output: UpdateUserResponse,
|
|
1929
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1930
|
+
protocol: StackitProtocol,
|
|
1931
|
+
retry: Retry.Retry,
|
|
1932
|
+
}));
|