@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,803 +1,112 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
6
|
import { UnknownStackitError } from "../errors.js";
|
|
7
7
|
import { StackitProtocol } from "../protocol.js";
|
|
8
8
|
import * as Retry from "../retry.js";
|
|
9
9
|
import * as T from "../traits.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}).pipe(
|
|
27
|
-
}
|
|
28
|
-
export const CloneInstanceRequestRegion = S.String;
|
|
29
|
-
export const CloneInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
-
projectId: S.String.pipe(T.Label()),
|
|
31
|
-
region: CloneInstanceRequestRegion.pipe(T.Label()),
|
|
32
|
-
instanceId: S.String.pipe(T.Label()),
|
|
33
|
-
timestamp: S.optional(S.String),
|
|
34
|
-
}).pipe(T.Http({
|
|
35
|
-
method: "POST",
|
|
36
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",
|
|
37
|
-
code: 200,
|
|
38
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
39
|
-
}))).annotate({ identifier: "CloneInstanceRequest" });
|
|
40
|
-
export const CloneInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
-
instanceId: S.optional(S.String),
|
|
42
|
-
})).annotate({ identifier: "CloneInstanceResponse" });
|
|
43
|
-
export const CreateInstanceRequestRegion = S.String;
|
|
44
|
-
export const ACLItemsList = /*@__PURE__*/ S.Array(S.String);
|
|
45
|
-
export const ACL = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
46
|
-
items: S.optional(ACLItemsList),
|
|
47
|
-
})).annotate({ identifier: "ACL" });
|
|
48
|
-
export const CreateInstanceRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
49
|
-
export const CreateInstanceRequestOptionsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
50
|
-
export const Storage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
-
class: S.optional(S.String),
|
|
52
|
-
size: S.optional(S.Number),
|
|
53
|
-
})).annotate({ identifier: "Storage" });
|
|
54
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
55
|
-
projectId: S.String.pipe(T.Label()),
|
|
56
|
-
region: CreateInstanceRequestRegion.pipe(T.Label()),
|
|
57
|
-
acl: ACL,
|
|
58
|
-
backupSchedule: S.String,
|
|
59
|
-
flavorId: S.String,
|
|
60
|
-
labels: S.optional(CreateInstanceRequestLabelsMap),
|
|
61
|
-
name: S.String,
|
|
62
|
-
options: CreateInstanceRequestOptionsMap,
|
|
63
|
-
replicas: S.Number,
|
|
64
|
-
storage: Storage,
|
|
65
|
-
version: S.String,
|
|
66
|
-
}).pipe(T.Http({
|
|
67
|
-
method: "POST",
|
|
68
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances",
|
|
69
|
-
code: 200,
|
|
70
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
71
|
-
}))).annotate({ identifier: "CreateInstanceRequest" });
|
|
72
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
|
-
id: S.optional(S.String),
|
|
74
|
-
})).annotate({ identifier: "CreateInstanceResponse" });
|
|
75
|
-
export const CreateUserRequestRegion = S.String;
|
|
76
|
-
export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
77
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
78
|
-
projectId: S.String.pipe(T.Label()),
|
|
79
|
-
region: CreateUserRequestRegion.pipe(T.Label()),
|
|
80
|
-
instanceId: S.String.pipe(T.Label()),
|
|
81
|
-
database: S.String,
|
|
82
|
-
roles: CreateUserRequestRolesList,
|
|
83
|
-
username: S.optional(S.String),
|
|
84
|
-
}).pipe(T.Http({
|
|
85
|
-
method: "POST",
|
|
86
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
87
|
-
code: 200,
|
|
88
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
89
|
-
}))).annotate({ identifier: "CreateUserRequest" });
|
|
90
|
-
export const UserRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
91
|
-
export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
database: S.optional(S.String),
|
|
93
|
-
host: S.optional(S.String),
|
|
94
|
-
id: S.optional(S.String),
|
|
95
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
96
|
-
port: S.optional(S.Number),
|
|
97
|
-
roles: S.optional(UserRolesList),
|
|
98
|
-
uri: S.optional(S.String),
|
|
99
|
-
username: S.optional(S.String),
|
|
100
|
-
})).annotate({ identifier: "User" });
|
|
101
|
-
export const CreateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
102
|
-
item: S.optional(User),
|
|
103
|
-
})).annotate({ identifier: "CreateUserResponse" });
|
|
104
|
-
export const DeleteInstanceRequestRegion = S.String;
|
|
105
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
106
|
-
projectId: S.String.pipe(T.Label()),
|
|
107
|
-
region: DeleteInstanceRequestRegion.pipe(T.Label()),
|
|
108
|
-
instanceId: S.String.pipe(T.Label()),
|
|
109
|
-
}).pipe(T.Http({
|
|
110
|
-
method: "DELETE",
|
|
111
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
112
|
-
code: 200,
|
|
113
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
114
|
-
}))).annotate({ identifier: "DeleteInstanceRequest" });
|
|
115
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
116
|
-
identifier: "DeleteInstanceResponse",
|
|
117
|
-
});
|
|
118
|
-
export const DeleteUserRequestRegion = S.String;
|
|
119
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
projectId: S.String.pipe(T.Label()),
|
|
121
|
-
region: DeleteUserRequestRegion.pipe(T.Label()),
|
|
122
|
-
instanceId: S.String.pipe(T.Label()),
|
|
123
|
-
userId: S.String.pipe(T.Label()),
|
|
124
|
-
}).pipe(T.Http({
|
|
125
|
-
method: "DELETE",
|
|
126
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
127
|
-
code: 200,
|
|
128
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
129
|
-
}))).annotate({ identifier: "DeleteUserRequest" });
|
|
130
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
131
|
-
identifier: "DeleteUserResponse",
|
|
132
|
-
});
|
|
133
|
-
export const GetBackupRequestRegion = S.String;
|
|
134
|
-
export const GetBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
135
|
-
projectId: S.String.pipe(T.Label()),
|
|
136
|
-
region: GetBackupRequestRegion.pipe(T.Label()),
|
|
137
|
-
instanceId: S.String.pipe(T.Label()),
|
|
138
|
-
backupId: S.String.pipe(T.Label()),
|
|
139
|
-
}).pipe(T.Http({
|
|
140
|
-
method: "GET",
|
|
141
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
142
|
-
code: 200,
|
|
143
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
144
|
-
}))).annotate({ identifier: "GetBackupRequest" });
|
|
145
|
-
export const BackupLabelsList = /*@__PURE__*/ S.Array(S.String);
|
|
146
|
-
export const BackupOptionsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
147
|
-
export const Backup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
148
|
-
endTime: S.optional(S.String),
|
|
149
|
-
error: S.optional(S.String),
|
|
150
|
-
id: S.optional(S.String),
|
|
151
|
-
labels: S.optional(BackupLabelsList),
|
|
152
|
-
name: S.optional(S.String),
|
|
153
|
-
options: S.optional(BackupOptionsMap),
|
|
154
|
-
size: S.optional(S.Number),
|
|
155
|
-
startTime: S.optional(S.String),
|
|
156
|
-
})).annotate({ identifier: "Backup" });
|
|
157
|
-
export const GetBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
158
|
-
item: S.optional(Backup),
|
|
159
|
-
})).annotate({ identifier: "GetBackupResponse" });
|
|
160
|
-
export const GetInstanceRequestRegion = S.String;
|
|
161
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
162
|
-
projectId: S.String.pipe(T.Label()),
|
|
163
|
-
region: GetInstanceRequestRegion.pipe(T.Label()),
|
|
164
|
-
instanceId: S.String.pipe(T.Label()),
|
|
165
|
-
}).pipe(T.Http({
|
|
166
|
-
method: "GET",
|
|
167
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
168
|
-
code: 200,
|
|
169
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
170
|
-
}))).annotate({ identifier: "GetInstanceRequest" });
|
|
171
|
-
export const Flavor = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
172
|
-
cpu: S.optional(S.Number),
|
|
173
|
-
description: S.optional(S.String),
|
|
174
|
-
id: S.optional(S.String),
|
|
175
|
-
memory: S.optional(S.Number),
|
|
176
|
-
})).annotate({ identifier: "Flavor" });
|
|
177
|
-
export const InstanceOptionsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
178
|
-
export const InstanceStatus = S.String;
|
|
179
|
-
export const Instance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
-
acl: S.optional(ACL),
|
|
181
|
-
backupSchedule: S.optional(S.String),
|
|
182
|
-
flavor: S.optional(Flavor),
|
|
183
|
-
id: S.optional(S.String),
|
|
184
|
-
name: S.optional(S.String),
|
|
185
|
-
options: S.optional(InstanceOptionsMap),
|
|
186
|
-
replicas: S.optional(S.Number),
|
|
187
|
-
status: S.optional(InstanceStatus),
|
|
188
|
-
storage: S.optional(Storage),
|
|
189
|
-
version: S.optional(S.String),
|
|
190
|
-
})).annotate({ identifier: "Instance" });
|
|
191
|
-
export const InstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
192
|
-
item: S.optional(Instance),
|
|
193
|
-
})).annotate({ identifier: "InstanceResponse" });
|
|
194
|
-
export const GetUserRequestRegion = S.String;
|
|
195
|
-
export const GetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
196
|
-
projectId: S.String.pipe(T.Label()),
|
|
197
|
-
region: GetUserRequestRegion.pipe(T.Label()),
|
|
198
|
-
instanceId: S.String.pipe(T.Label()),
|
|
199
|
-
userId: S.String.pipe(T.Label()),
|
|
200
|
-
}).pipe(T.Http({
|
|
201
|
-
method: "GET",
|
|
202
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
203
|
-
code: 200,
|
|
204
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
205
|
-
}))).annotate({ identifier: "GetUserRequest" });
|
|
206
|
-
export const InstanceResponseUserRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
207
|
-
export const InstanceResponseUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
-
database: S.optional(S.String),
|
|
209
|
-
host: S.optional(S.String),
|
|
210
|
-
id: S.optional(S.String),
|
|
211
|
-
port: S.optional(S.Number),
|
|
212
|
-
roles: S.optional(InstanceResponseUserRolesList),
|
|
213
|
-
username: S.optional(S.String),
|
|
214
|
-
})).annotate({ identifier: "InstanceResponseUser" });
|
|
215
|
-
export const GetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
216
|
-
item: S.optional(InstanceResponseUser),
|
|
217
|
-
})).annotate({ identifier: "GetUserResponse" });
|
|
218
|
-
export const ListAdvisorSlowQueriesRequestRegion = S.String;
|
|
219
|
-
export const ListAdvisorSlowQueriesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
220
|
-
projectId: S.String.pipe(T.Label()),
|
|
221
|
-
region: ListAdvisorSlowQueriesRequestRegion.pipe(T.Label()),
|
|
222
|
-
instanceId: S.String.pipe(T.Label()),
|
|
223
|
-
}).pipe(T.Http({
|
|
224
|
-
method: "GET",
|
|
225
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/slow-queries",
|
|
226
|
-
code: 200,
|
|
227
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
228
|
-
}))).annotate({
|
|
229
|
-
identifier: "ListAdvisorSlowQueriesRequest",
|
|
230
|
-
});
|
|
231
|
-
export const SlowQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
-
line: S.optional(S.String),
|
|
233
|
-
namespace: S.optional(S.String),
|
|
234
|
-
})).annotate({ identifier: "SlowQuery" });
|
|
235
|
-
export const HandlersInstancesSlowQueriesResponseSlowQueriesList = /*@__PURE__*/ S.Array(SlowQuery);
|
|
236
|
-
export const HandlersInstancesSlowQueriesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
237
|
-
slowQueries: S.optional(HandlersInstancesSlowQueriesResponseSlowQueriesList),
|
|
238
|
-
})).annotate({
|
|
239
|
-
identifier: "HandlersInstancesSlowQueriesResponse",
|
|
240
|
-
});
|
|
241
|
-
export const ListBackupsRequestRegion = S.String;
|
|
242
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
|
-
projectId: S.String.pipe(T.Label()),
|
|
244
|
-
region: ListBackupsRequestRegion.pipe(T.Label()),
|
|
245
|
-
instanceId: S.String.pipe(T.Label()),
|
|
246
|
-
}).pipe(T.Http({
|
|
247
|
-
method: "GET",
|
|
248
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
249
|
-
code: 200,
|
|
250
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
251
|
-
}))).annotate({ identifier: "ListBackupsRequest" });
|
|
252
|
-
export const ListBackupsResponseItemsList = /*@__PURE__*/ S.Array(Backup);
|
|
253
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
-
count: S.optional(S.Number),
|
|
255
|
-
items: S.optional(ListBackupsResponseItemsList),
|
|
256
|
-
})).annotate({ identifier: "ListBackupsResponse" });
|
|
257
|
-
export const ListFlavorsRequestRegion = S.String;
|
|
258
|
-
export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
259
|
-
projectId: S.String.pipe(T.Label()),
|
|
260
|
-
region: ListFlavorsRequestRegion.pipe(T.Label()),
|
|
261
|
-
}).pipe(T.Http({
|
|
262
|
-
method: "GET",
|
|
263
|
-
uri: "/v2/projects/{projectId}/regions/{region}/flavors",
|
|
264
|
-
code: 200,
|
|
265
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
266
|
-
}))).annotate({ identifier: "ListFlavorsRequest" });
|
|
267
|
-
export const InstanceFlavorCategoriesList = /*@__PURE__*/ S.Array(S.String);
|
|
268
|
-
export const InstanceFlavor = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
-
categories: S.optional(InstanceFlavorCategoriesList),
|
|
270
|
-
cpu: S.optional(S.Number),
|
|
271
|
-
description: S.optional(S.String),
|
|
272
|
-
id: S.optional(S.String),
|
|
273
|
-
memory: S.optional(S.Number),
|
|
274
|
-
})).annotate({ identifier: "InstanceFlavor" });
|
|
275
|
-
export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(InstanceFlavor);
|
|
276
|
-
export const ListFlavorsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
277
|
-
flavors: S.optional(ListFlavorsResponseFlavorsList),
|
|
278
|
-
})).annotate({ identifier: "ListFlavorsResponse" });
|
|
279
|
-
export const ListInstancesRequestRegion = S.String;
|
|
280
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
281
|
-
projectId: S.String.pipe(T.Label()),
|
|
282
|
-
region: ListInstancesRequestRegion.pipe(T.Label()),
|
|
283
|
-
tag: S.String.pipe(T.Query()),
|
|
284
|
-
}).pipe(T.Http({
|
|
285
|
-
method: "GET",
|
|
286
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances",
|
|
287
|
-
code: 200,
|
|
288
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
289
|
-
}))).annotate({ identifier: "ListInstancesRequest" });
|
|
290
|
-
export const InstanceListInstanceStatus = S.String;
|
|
291
|
-
export const InstanceListInstance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
292
|
-
id: S.optional(S.String),
|
|
293
|
-
name: S.optional(S.String),
|
|
294
|
-
status: S.optional(InstanceListInstanceStatus),
|
|
295
|
-
})).annotate({ identifier: "InstanceListInstance" });
|
|
296
|
-
export const ListInstancesResponseItemsList = /*@__PURE__*/ S.Array(InstanceListInstance);
|
|
297
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
298
|
-
count: S.optional(S.Number),
|
|
299
|
-
items: S.optional(ListInstancesResponseItemsList),
|
|
300
|
-
})).annotate({ identifier: "ListInstancesResponse" });
|
|
301
|
-
export const ListMetricsRequestRegion = S.String;
|
|
302
|
-
export const ListMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
303
|
-
projectId: S.String.pipe(T.Label()),
|
|
304
|
-
region: ListMetricsRequestRegion.pipe(T.Label()),
|
|
305
|
-
instanceId: S.String.pipe(T.Label()),
|
|
306
|
-
metric: S.String.pipe(T.Label()),
|
|
307
|
-
granularity: S.String.pipe(T.Query()),
|
|
308
|
-
period: S.optional(S.String.pipe(T.Query())),
|
|
309
|
-
start: S.optional(S.String.pipe(T.Query())),
|
|
310
|
-
end: S.optional(S.String.pipe(T.Query())),
|
|
311
|
-
}).pipe(T.Http({
|
|
312
|
-
method: "GET",
|
|
313
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}",
|
|
314
|
-
code: 200,
|
|
315
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
316
|
-
}))).annotate({ identifier: "ListMetricsRequest" });
|
|
317
|
-
export const DataPoint = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
318
|
-
timestamp: S.optional(S.String),
|
|
319
|
-
value: S.optional(S.Number),
|
|
320
|
-
})).annotate({ identifier: "DataPoint" });
|
|
321
|
-
export const HostMetricDatapointsList = /*@__PURE__*/ S.Array(DataPoint);
|
|
322
|
-
export const HostMetric = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
-
datapoints: S.optional(HostMetricDatapointsList),
|
|
324
|
-
name: S.optional(S.String),
|
|
325
|
-
units: S.optional(S.String),
|
|
326
|
-
})).annotate({ identifier: "HostMetric" });
|
|
327
|
-
export const HostHostMetricsList = /*@__PURE__*/ S.Array(HostMetric);
|
|
328
|
-
export const Host = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
329
|
-
hostMetrics: S.optional(HostHostMetricsList),
|
|
330
|
-
id: S.optional(S.String),
|
|
331
|
-
})).annotate({ identifier: "Host" });
|
|
332
|
-
export const ListMetricsResponseHostsList = /*@__PURE__*/ S.Array(Host);
|
|
333
|
-
export const ListMetricsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
-
hosts: S.optional(ListMetricsResponseHostsList),
|
|
335
|
-
})).annotate({ identifier: "ListMetricsResponse" });
|
|
336
|
-
export const ListRestoreJobsRequestRegion = S.String;
|
|
337
|
-
export const ListRestoreJobsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
338
|
-
projectId: S.String.pipe(T.Label()),
|
|
339
|
-
region: ListRestoreJobsRequestRegion.pipe(T.Label()),
|
|
340
|
-
instanceId: S.String.pipe(T.Label()),
|
|
341
|
-
}).pipe(T.Http({
|
|
342
|
-
method: "GET",
|
|
343
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
344
|
-
code: 200,
|
|
345
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
346
|
-
}))).annotate({ identifier: "ListRestoreJobsRequest" });
|
|
347
|
-
export const RestoreInstanceStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
348
|
-
backupID: S.optional(S.String),
|
|
349
|
-
date: S.optional(S.String),
|
|
350
|
-
id: S.optional(S.String),
|
|
351
|
-
instanceId: S.optional(S.String),
|
|
352
|
-
status: S.optional(S.String),
|
|
353
|
-
})).annotate({ identifier: "RestoreInstanceStatus" });
|
|
354
|
-
export const ListRestoreJobsResponseItemsList = /*@__PURE__*/ S.Array(RestoreInstanceStatus);
|
|
355
|
-
export const ListRestoreJobsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
356
|
-
items: S.optional(ListRestoreJobsResponseItemsList),
|
|
357
|
-
})).annotate({ identifier: "ListRestoreJobsResponse" });
|
|
358
|
-
export const ListStoragesRequestRegion = S.String;
|
|
359
|
-
export const ListStoragesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
360
|
-
projectId: S.String.pipe(T.Label()),
|
|
361
|
-
region: ListStoragesRequestRegion.pipe(T.Label()),
|
|
362
|
-
flavor: S.String.pipe(T.Label()),
|
|
363
|
-
}).pipe(T.Http({
|
|
364
|
-
method: "GET",
|
|
365
|
-
uri: "/v2/projects/{projectId}/regions/{region}/storages/{flavor}",
|
|
366
|
-
code: 200,
|
|
367
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
368
|
-
}))).annotate({ identifier: "ListStoragesRequest" });
|
|
369
|
-
export const ListStoragesResponseStorageClassesList = /*@__PURE__*/ S.Array(S.String);
|
|
370
|
-
export const StorageRange = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
371
|
-
max: S.optional(S.Number),
|
|
372
|
-
min: S.optional(S.Number),
|
|
373
|
-
})).annotate({ identifier: "StorageRange" });
|
|
374
|
-
export const ListStoragesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
375
|
-
storageClasses: S.optional(ListStoragesResponseStorageClassesList),
|
|
376
|
-
storageRange: S.optional(StorageRange),
|
|
377
|
-
})).annotate({ identifier: "ListStoragesResponse" });
|
|
378
|
-
export const ListSuggestedIndexesRequestRegion = S.String;
|
|
379
|
-
export const ListSuggestedIndexesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
380
|
-
projectId: S.String.pipe(T.Label()),
|
|
381
|
-
region: ListSuggestedIndexesRequestRegion.pipe(T.Label()),
|
|
382
|
-
instanceId: S.String.pipe(T.Label()),
|
|
383
|
-
}).pipe(T.Http({
|
|
384
|
-
method: "GET",
|
|
385
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/suggested-indexes",
|
|
386
|
-
code: 200,
|
|
387
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
388
|
-
}))).annotate({
|
|
389
|
-
identifier: "ListSuggestedIndexesRequest",
|
|
390
|
-
});
|
|
391
|
-
export const MongodbatlasOperationPredicatesList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
392
|
-
export const MongodbatlasStats = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
393
|
-
ms: S.optional(S.Number),
|
|
394
|
-
nReturned: S.optional(S.Number),
|
|
395
|
-
nScanned: S.optional(S.Number),
|
|
396
|
-
ts: S.optional(S.Number),
|
|
397
|
-
})).annotate({ identifier: "MongodbatlasStats" });
|
|
398
|
-
export const MongodbatlasOperation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
399
|
-
predicates: S.optional(MongodbatlasOperationPredicatesList),
|
|
400
|
-
raw: S.optional(S.String),
|
|
401
|
-
stats: S.optional(MongodbatlasStats),
|
|
402
|
-
})).annotate({ identifier: "MongodbatlasOperation" });
|
|
403
|
-
export const ShapeOperationsList = /*@__PURE__*/ S.Array(MongodbatlasOperation);
|
|
404
|
-
export const Shape = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
405
|
-
avgMs: S.optional(S.Number),
|
|
406
|
-
count: S.optional(S.Number),
|
|
407
|
-
id: S.optional(S.String),
|
|
408
|
-
inefficiencyScore: S.optional(S.Number),
|
|
409
|
-
namespace: S.optional(S.String),
|
|
410
|
-
operations: S.optional(ShapeOperationsList),
|
|
411
|
-
})).annotate({ identifier: "Shape" });
|
|
412
|
-
export const HandlersInstancesSuggestedIndexesResponseShapesList = /*@__PURE__*/ S.Array(Shape);
|
|
413
|
-
export const SuggestedIndexImpactList = /*@__PURE__*/ S.Array(S.String);
|
|
414
|
-
export const SuggestedIndexIndexItemMap = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
415
|
-
export const SuggestedIndexIndexList = /*@__PURE__*/ S.Array(SuggestedIndexIndexItemMap);
|
|
416
|
-
export const SuggestedIndex = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
417
|
-
id: S.optional(S.String),
|
|
418
|
-
impact: S.optional(SuggestedIndexImpactList),
|
|
419
|
-
index: S.optional(SuggestedIndexIndexList),
|
|
420
|
-
namespace: S.optional(S.String),
|
|
421
|
-
weight: S.optional(S.Number),
|
|
422
|
-
})).annotate({ identifier: "SuggestedIndex" });
|
|
423
|
-
export const HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList = /*@__PURE__*/ S.Array(SuggestedIndex);
|
|
424
|
-
export const HandlersInstancesSuggestedIndexesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
425
|
-
shapes: S.optional(HandlersInstancesSuggestedIndexesResponseShapesList),
|
|
426
|
-
suggestedIndexes: S.optional(HandlersInstancesSuggestedIndexesResponseSuggestedIndexesList),
|
|
427
|
-
})).annotate({
|
|
428
|
-
identifier: "HandlersInstancesSuggestedIndexesResponse",
|
|
429
|
-
});
|
|
430
|
-
export const ListUsersRequestRegion = S.String;
|
|
431
|
-
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
432
|
-
projectId: S.String.pipe(T.Label()),
|
|
433
|
-
region: ListUsersRequestRegion.pipe(T.Label()),
|
|
434
|
-
instanceId: S.String.pipe(T.Label()),
|
|
435
|
-
}).pipe(T.Http({
|
|
436
|
-
method: "GET",
|
|
437
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
438
|
-
code: 200,
|
|
439
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
440
|
-
}))).annotate({ identifier: "ListUsersRequest" });
|
|
441
|
-
export const ListUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
442
|
-
id: S.optional(S.String),
|
|
443
|
-
username: S.optional(S.String),
|
|
444
|
-
})).annotate({ identifier: "ListUser" });
|
|
445
|
-
export const ListUsersResponseItemsList = /*@__PURE__*/ S.Array(ListUser);
|
|
446
|
-
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
447
|
-
count: S.optional(S.Number),
|
|
448
|
-
items: S.optional(ListUsersResponseItemsList),
|
|
449
|
-
})).annotate({ identifier: "ListUsersResponse" });
|
|
450
|
-
export const ListVersionsRequestRegion = S.String;
|
|
451
|
-
export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
452
|
-
projectId: S.String.pipe(T.Label()),
|
|
453
|
-
region: ListVersionsRequestRegion.pipe(T.Label()),
|
|
454
|
-
}).pipe(T.Http({
|
|
455
|
-
method: "GET",
|
|
456
|
-
uri: "/v2/projects/{projectId}/regions/{region}/versions",
|
|
457
|
-
code: 200,
|
|
458
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
459
|
-
}))).annotate({ identifier: "ListVersionsRequest" });
|
|
460
|
-
export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(S.String);
|
|
461
|
-
export const ListVersionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
462
|
-
versions: S.optional(ListVersionsResponseVersionsList),
|
|
463
|
-
})).annotate({ identifier: "ListVersionsResponse" });
|
|
464
|
-
export const PartialUpdateInstanceRequestRegion = S.String;
|
|
465
|
-
export const PartialUpdateInstanceRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
466
|
-
export const PartialUpdateInstanceRequestOptionsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
467
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
468
|
-
projectId: S.String.pipe(T.Label()),
|
|
469
|
-
region: PartialUpdateInstanceRequestRegion.pipe(T.Label()),
|
|
470
|
-
instanceId: S.String.pipe(T.Label()),
|
|
471
|
-
acl: S.optional(ACL),
|
|
472
|
-
backupSchedule: S.optional(S.String),
|
|
473
|
-
flavorId: S.optional(S.String),
|
|
474
|
-
labels: S.optional(PartialUpdateInstanceRequestLabelsMap),
|
|
475
|
-
name: S.optional(S.String),
|
|
476
|
-
options: S.optional(PartialUpdateInstanceRequestOptionsMap),
|
|
477
|
-
replicas: S.optional(S.Number),
|
|
478
|
-
storage: S.optional(Storage),
|
|
479
|
-
version: S.optional(S.String),
|
|
480
|
-
}).pipe(T.Http({
|
|
481
|
-
method: "PATCH",
|
|
482
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
483
|
-
code: 200,
|
|
484
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
485
|
-
}))).annotate({
|
|
486
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Struct;
|
|
15
|
+
const __5 = S.suspend;
|
|
16
|
+
const __6 = S.optional;
|
|
17
|
+
const __7 = S.Number;
|
|
18
|
+
const __8 = S.Array;
|
|
19
|
+
const __9 = T.Query;
|
|
20
|
+
const __10 = S.Unknown;
|
|
21
|
+
const __11 = S.Record;
|
|
22
|
+
const __12 = T.SensitiveValue;
|
|
23
|
+
const __13 = S.TaggedError;
|
|
24
|
+
const __14 = T.applyErrorMatchers;
|
|
25
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
26
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __7, __3, __13, __14]]);
|
|
487
27
|
});
|
|
488
|
-
export const
|
|
489
|
-
|
|
490
|
-
})).annotate({ identifier: "UpdateInstanceResponse" });
|
|
491
|
-
export const PartialUpdateUserRequestRegion = S.String;
|
|
492
|
-
export const PartialUpdateUserRequestRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
493
|
-
export const PartialUpdateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
494
|
-
projectId: S.String.pipe(T.Label()),
|
|
495
|
-
region: PartialUpdateUserRequestRegion.pipe(T.Label()),
|
|
496
|
-
instanceId: S.String.pipe(T.Label()),
|
|
497
|
-
userId: S.String.pipe(T.Label()),
|
|
498
|
-
database: S.optional(S.String),
|
|
499
|
-
roles: S.optional(PartialUpdateUserRequestRolesList),
|
|
500
|
-
}).pipe(T.Http({
|
|
501
|
-
method: "PATCH",
|
|
502
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
503
|
-
code: 200,
|
|
504
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
505
|
-
}))).annotate({ identifier: "PartialUpdateUserRequest" });
|
|
506
|
-
export const PartialUpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
507
|
-
identifier: "PartialUpdateUserResponse",
|
|
28
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
29
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __7, __3, __13, __14]]);
|
|
508
30
|
});
|
|
509
|
-
export const
|
|
510
|
-
|
|
511
|
-
projectId: S.String.pipe(T.Label()),
|
|
512
|
-
region: ResetUserRequestRegion.pipe(T.Label()),
|
|
513
|
-
instanceId: S.String.pipe(T.Label()),
|
|
514
|
-
userId: S.String.pipe(T.Label()),
|
|
515
|
-
}).pipe(T.Http({
|
|
516
|
-
method: "POST",
|
|
517
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
518
|
-
code: 200,
|
|
519
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
520
|
-
}))).annotate({ identifier: "ResetUserRequest" });
|
|
521
|
-
export const RestoreInstanceRequestRegion = S.String;
|
|
522
|
-
export const RestoreInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
523
|
-
projectId: S.String.pipe(T.Label()),
|
|
524
|
-
region: RestoreInstanceRequestRegion.pipe(T.Label()),
|
|
525
|
-
instanceId: S.String.pipe(T.Label()),
|
|
526
|
-
backupId: S.String,
|
|
527
|
-
}).pipe(T.Http({
|
|
528
|
-
method: "POST",
|
|
529
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
530
|
-
code: 200,
|
|
531
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
532
|
-
}))).annotate({ identifier: "RestoreInstanceRequest" });
|
|
533
|
-
export const RestoreInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
534
|
-
item: S.optional(RestoreInstanceStatus),
|
|
535
|
-
})).annotate({ identifier: "RestoreInstanceResponse" });
|
|
536
|
-
export const UpdateBackupScheduleRequestRegion = S.String;
|
|
537
|
-
export const UpdateBackupScheduleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
538
|
-
projectId: S.String.pipe(T.Label()),
|
|
539
|
-
region: UpdateBackupScheduleRequestRegion.pipe(T.Label()),
|
|
540
|
-
instanceId: S.String.pipe(T.Label()),
|
|
541
|
-
backupSchedule: S.optional(S.String),
|
|
542
|
-
dailySnapshotRetentionDays: S.optional(S.Number),
|
|
543
|
-
monthlySnapshotRetentionMonths: S.optional(S.Number),
|
|
544
|
-
pointInTimeWindowHours: S.optional(S.Number),
|
|
545
|
-
snapshotRetentionDays: S.optional(S.Number),
|
|
546
|
-
weeklySnapshotRetentionWeeks: S.optional(S.Number),
|
|
547
|
-
}).pipe(T.Http({
|
|
548
|
-
method: "PUT",
|
|
549
|
-
uri: "/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
550
|
-
code: 200,
|
|
551
|
-
baseUrl: "https://mongodb-flex-service.api.stackit.cloud",
|
|
552
|
-
}))).annotate({
|
|
553
|
-
identifier: "UpdateBackupScheduleRequest",
|
|
31
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
32
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __7, __3, __13, __14]]);
|
|
554
33
|
});
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
})).
|
|
563
|
-
|
|
564
|
-
export const
|
|
565
|
-
|
|
566
|
-
export const
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}))).
|
|
585
|
-
|
|
586
|
-
export const
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}).pipe(
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
export const
|
|
601
|
-
|
|
602
|
-
});
|
|
603
|
-
|
|
604
|
-
export const
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
})
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
}));
|
|
635
|
-
/** Delete User delete mongodb user */
|
|
636
|
-
export const deleteUser = /*@__PURE__*/ API.make(() => ({
|
|
637
|
-
input: DeleteUserRequest,
|
|
638
|
-
output: DeleteUserResponse,
|
|
639
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
640
|
-
protocol: StackitProtocol,
|
|
641
|
-
retry: Retry.Retry,
|
|
642
|
-
}));
|
|
643
|
-
/** Get backup Get details about a specific backup */
|
|
644
|
-
export const getBackup = /*@__PURE__*/ API.make(() => ({
|
|
645
|
-
input: GetBackupRequest,
|
|
646
|
-
output: GetBackupResponse,
|
|
647
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
648
|
-
protocol: StackitProtocol,
|
|
649
|
-
retry: Retry.Retry,
|
|
650
|
-
}));
|
|
651
|
-
/** Get instance gets information of an instance */
|
|
652
|
-
export const getInstance = /*@__PURE__*/ API.make(() => ({
|
|
653
|
-
input: GetInstanceRequest,
|
|
654
|
-
output: InstanceResponse,
|
|
655
|
-
errors: [BadRequest, UnknownStackitError],
|
|
656
|
-
protocol: StackitProtocol,
|
|
657
|
-
retry: Retry.Retry,
|
|
658
|
-
}));
|
|
659
|
-
/** Get User get detailed information of a user of a mongodb instance */
|
|
660
|
-
export const getUser = /*@__PURE__*/ API.make(() => ({
|
|
661
|
-
input: GetUserRequest,
|
|
662
|
-
output: GetUserResponse,
|
|
663
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
664
|
-
protocol: StackitProtocol,
|
|
665
|
-
retry: Retry.Retry,
|
|
666
|
-
}));
|
|
667
|
-
/** Get slow queries gets slow queries from the Opsmanager performance advisor */
|
|
668
|
-
export const listAdvisorSlowQueries = /*@__PURE__*/ API.make(() => ({
|
|
669
|
-
input: ListAdvisorSlowQueriesRequest,
|
|
670
|
-
output: HandlersInstancesSlowQueriesResponse,
|
|
671
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
672
|
-
protocol: StackitProtocol,
|
|
673
|
-
retry: Retry.Retry,
|
|
674
|
-
}));
|
|
675
|
-
/** List backup List backups of an instance */
|
|
676
|
-
export const listBackups = /*@__PURE__*/ API.make(() => ({
|
|
677
|
-
input: ListBackupsRequest,
|
|
678
|
-
output: ListBackupsResponse,
|
|
679
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
680
|
-
protocol: StackitProtocol,
|
|
681
|
-
retry: Retry.Retry,
|
|
682
|
-
}));
|
|
683
|
-
/** Flavors returns all possible flavors */
|
|
684
|
-
export const listFlavors = /*@__PURE__*/ API.make(() => ({
|
|
685
|
-
input: ListFlavorsRequest,
|
|
686
|
-
output: ListFlavorsResponse,
|
|
687
|
-
errors: [BadRequest, UnknownStackitError],
|
|
688
|
-
protocol: StackitProtocol,
|
|
689
|
-
retry: Retry.Retry,
|
|
690
|
-
}));
|
|
691
|
-
/** List Instances list all instances for a projectID */
|
|
692
|
-
export const listInstances = /*@__PURE__*/ API.make(() => ({
|
|
693
|
-
input: ListInstancesRequest,
|
|
694
|
-
output: ListInstancesResponse,
|
|
695
|
-
errors: [BadRequest, UnknownStackitError],
|
|
696
|
-
protocol: StackitProtocol,
|
|
697
|
-
retry: Retry.Retry,
|
|
698
|
-
}));
|
|
699
|
-
/** Metrics returns metrics for an instance */
|
|
700
|
-
export const listMetrics = /*@__PURE__*/ API.make(() => ({
|
|
701
|
-
input: ListMetricsRequest,
|
|
702
|
-
output: ListMetricsResponse,
|
|
703
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
704
|
-
protocol: StackitProtocol,
|
|
705
|
-
retry: Retry.Retry,
|
|
706
|
-
}));
|
|
707
|
-
/** List restore jobs List restore jobs of an instance */
|
|
708
|
-
export const listRestoreJobs = /*@__PURE__*/ API.make(() => ({
|
|
709
|
-
input: ListRestoreJobsRequest,
|
|
710
|
-
output: ListRestoreJobsResponse,
|
|
711
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
712
|
-
protocol: StackitProtocol,
|
|
713
|
-
retry: Retry.Retry,
|
|
714
|
-
}));
|
|
715
|
-
/** Get storage returns the storage for a certain flavor */
|
|
716
|
-
export const listStorages = /*@__PURE__*/ API.make(() => ({
|
|
717
|
-
input: ListStoragesRequest,
|
|
718
|
-
output: ListStoragesResponse,
|
|
719
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
720
|
-
protocol: StackitProtocol,
|
|
721
|
-
retry: Retry.Retry,
|
|
722
|
-
}));
|
|
723
|
-
/** Get suggested indexes gets suggested indexes from the Opsmanager performance advisor */
|
|
724
|
-
export const listSuggestedIndexes = /*@__PURE__*/ API.make(() => ({
|
|
725
|
-
input: ListSuggestedIndexesRequest,
|
|
726
|
-
output: HandlersInstancesSuggestedIndexesResponse,
|
|
727
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
728
|
-
protocol: StackitProtocol,
|
|
729
|
-
retry: Retry.Retry,
|
|
730
|
-
}));
|
|
731
|
-
/** List Users list all users for a mongodb instance */
|
|
732
|
-
export const listUsers = /*@__PURE__*/ API.make(() => ({
|
|
733
|
-
input: ListUsersRequest,
|
|
734
|
-
output: ListUsersResponse,
|
|
735
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
736
|
-
protocol: StackitProtocol,
|
|
737
|
-
retry: Retry.Retry,
|
|
738
|
-
}));
|
|
739
|
-
/** Get versions returns all available versions for creating endpoint */
|
|
740
|
-
export const listVersions = /*@__PURE__*/ API.make(() => ({
|
|
741
|
-
input: ListVersionsRequest,
|
|
742
|
-
output: ListVersionsResponse,
|
|
743
|
-
errors: [BadRequest, UnknownStackitError],
|
|
744
|
-
protocol: StackitProtocol,
|
|
745
|
-
retry: Retry.Retry,
|
|
746
|
-
}));
|
|
747
|
-
/** Patch endpoint Updates a deployment plan<br/> Note that the time format for the backupSchedule is in UTC */
|
|
748
|
-
export const partialUpdateInstance = /*@__PURE__*/ API.make(() => ({
|
|
749
|
-
input: PartialUpdateInstanceRequest,
|
|
750
|
-
output: UpdateInstanceResponse,
|
|
751
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
752
|
-
protocol: StackitProtocol,
|
|
753
|
-
retry: Retry.Retry,
|
|
754
|
-
}));
|
|
755
|
-
/** Update User updates user for a mongodb instance */
|
|
756
|
-
export const partialUpdateUser = /*@__PURE__*/ API.make(() => ({
|
|
757
|
-
input: PartialUpdateUserRequest,
|
|
758
|
-
output: PartialUpdateUserResponse,
|
|
759
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
760
|
-
protocol: StackitProtocol,
|
|
761
|
-
retry: Retry.Retry,
|
|
762
|
-
}));
|
|
763
|
-
/** Reset User resets mongodb user's password */
|
|
764
|
-
export const resetUser = /*@__PURE__*/ API.make(() => ({
|
|
765
|
-
input: ResetUserRequest,
|
|
766
|
-
output: User,
|
|
767
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
768
|
-
protocol: StackitProtocol,
|
|
769
|
-
retry: Retry.Retry,
|
|
770
|
-
}));
|
|
771
|
-
/** Restore instance Restore an instance based on snapshot */
|
|
772
|
-
export const restoreInstance = /*@__PURE__*/ API.make(() => ({
|
|
773
|
-
input: RestoreInstanceRequest,
|
|
774
|
-
output: RestoreInstanceResponse,
|
|
775
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
776
|
-
protocol: StackitProtocol,
|
|
777
|
-
retry: Retry.Retry,
|
|
778
|
-
}));
|
|
779
|
-
/** Update schedule Updates a backup schedule<br/> Note that the time format is in UTC */
|
|
780
|
-
export const updateBackupSchedule = /*@__PURE__*/ API.make(() => ({
|
|
781
|
-
input: UpdateBackupScheduleRequest,
|
|
782
|
-
output: BackupSchedule,
|
|
783
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
784
|
-
protocol: StackitProtocol,
|
|
785
|
-
retry: Retry.Retry,
|
|
786
|
-
}));
|
|
787
|
-
/** Put endpoint Updates a deployment plan<br/> Note that the time format for the backupSchedule is in UTC */
|
|
788
|
-
export const updateInstance = /*@__PURE__*/ API.make(() => ({
|
|
789
|
-
input: UpdateInstanceRequest,
|
|
790
|
-
output: UpdateInstanceResponse,
|
|
791
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
792
|
-
protocol: StackitProtocol,
|
|
793
|
-
retry: Retry.Retry,
|
|
794
|
-
}));
|
|
795
|
-
/** Update User updates user for a mongodb instance */
|
|
796
|
-
export const updateUser = /*@__PURE__*/ API.make(() => ({
|
|
797
|
-
input: UpdateUserRequest,
|
|
798
|
-
output: UpdateUserResponse,
|
|
799
|
-
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
800
|
-
protocol: StackitProtocol,
|
|
801
|
-
retry: Retry.Retry,
|
|
802
|
-
}));
|
|
803
|
-
//# sourceMappingURL=mongodb_flex.js.map
|
|
34
|
+
|
|
35
|
+
export const cloneInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9],protocol:$10,retry:$11};$6(>3)@"CloneInstanceRequest";$6(>4)@"CloneInstanceResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),timestamp:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$5({instanceId:$4($3)})', [__0, __1, __2, __3, __6, __4, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(cloneInstance, i));
|
|
36
|
+
|
|
37
|
+
export const createInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11,$12],protocol:$13,retry:$14};$9(>3)@"CreateInstanceRequest";$9(>4)@"CreateInstanceResponse";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),acl:#4:0,backupSchedule:$3,flavorId:$3,labels:$6(#5:0),name:$3,options:#5:0,replicas:$7,storage:#4:1,version:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/instances",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$8({id:$6($3)})', [__0, __1, __2, __3, __d3, __d2, __6, __7, __4, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createInstance, i));
|
|
38
|
+
|
|
39
|
+
export const createUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>3)@"CreateUserRequest";$7(>4)@"CreateUserResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),database:$3,roles:#4:0,username:$5($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$6({item:$5(#8:0)})', [__0, __1, __2, __3, __d1, __6, __4, __5, __d4, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createUser, i));
|
|
40
|
+
|
|
41
|
+
export const deleteInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteInstanceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteInstance, i));
|
|
42
|
+
|
|
43
|
+
export const deleteUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteUserRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteUser, i));
|
|
44
|
+
|
|
45
|
+
export const getBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetBackupRequest";$5(>4)@"GetBackupResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),backupId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({item:$7(#6:0)})', [__0, __1, __2, __3, __4, __5, __d6, __6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getBackup, i));
|
|
46
|
+
|
|
47
|
+
export const getInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetInstanceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d7, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getInstance, i));
|
|
48
|
+
|
|
49
|
+
export const getUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"GetUserRequest";$5(>5)@"InstanceResponseUser";$5(>6)@"GetUserResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({database:$6($3),host:$6($3),id:$6($3),port:$6($7),roles:$6(#8:0),username:$6($3)});$4({item:$6(#2)})', [__0, __1, __2, __3, __4, __5, __6, __7, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUser, i));
|
|
50
|
+
|
|
51
|
+
export const listAdvisorSlowQueries = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>5)@"ListAdvisorSlowQueriesRequest";$5(>6)@"SlowQuery";$7(#2);$5(>7)@"HandlersInstancesSlowQueriesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/slow-queries",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({line:$6($3),namespace:$6($3)});$4({slowQueries:$6(#3)})', [__0, __1, __2, __3, __4, __5, __6, __8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listAdvisorSlowQueries, i));
|
|
52
|
+
|
|
53
|
+
export const listBackups = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>4)@"ListBackupsRequest";$7(#6:0);$5(>5)@"ListBackupsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({count:$9($8),items:$9(#2)})', [__0, __1, __2, __3, __4, __5, __d6, __8, __7, __6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listBackups, i));
|
|
54
|
+
|
|
55
|
+
export const listFlavors = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$5(>5)@"ListFlavorsRequest";$5(>6)@"InstanceFlavor";$9(#2);$5(>7)@"ListFlavorsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/flavors",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({categories:$7(#6:0),cpu:$7($8),description:$7($3),id:$7($3),memory:$7($8)});$4({flavors:$7(#3)})', [__0, __1, __2, __3, __4, __5, __d1, __6, __7, __8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listFlavors, i));
|
|
56
|
+
|
|
57
|
+
export const listInstances = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$6(>5)@"ListInstancesRequest";$6(>6)@"InstanceListInstance";$8(#2);$6(>7)@"ListInstancesResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),tag:$3.pipe($4())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$5({id:$7($3),name:$7($3),status:$7($3)});$5({count:$7($9),items:$7(#3)})', [__0, __1, __2, __3, __9, __4, __5, __6, __8, __7, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listInstances, i));
|
|
58
|
+
|
|
59
|
+
export const listMetrics = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>9)@"ListMetricsRequest";$7(>10)@"DataPoint";$9(#2);$7(>11)@"HostMetric";$9(#4);$7(>12)@"Host";$9(#6);$7(>13)@"ListMetricsResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),metric:$3.pipe($2()),granularity:$3.pipe($4()),period:$5($3.pipe($4())),start:$5($3.pipe($4())),end:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$6({timestamp:$5($3),value:$5($8)});$6({datapoints:$5(#3),name:$5($3),units:$5($3)});$6({hostMetrics:$5(#5),id:$5($3)});$6({hosts:$5(#7)})', [__0, __1, __2, __3, __9, __6, __4, __5, __7, __8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listMetrics, i));
|
|
60
|
+
|
|
61
|
+
export const listRestoreJobs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListRestoreJobsRequest";$7(#6:0);$5(>5)@"ListRestoreJobsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d0, __8, __6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listRestoreJobs, i));
|
|
62
|
+
|
|
63
|
+
export const listStorages = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListStoragesRequest";$5(>5)@"StorageRange";$5(>6)@"ListStoragesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),flavor:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/storages/{flavor}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({max:$7($6),min:$7($6)});$4({storageClasses:$7(#8:0),storageRange:$7(#2)})', [__0, __1, __2, __3, __4, __5, __7, __6, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listStorages, i));
|
|
64
|
+
|
|
65
|
+
export const listSuggestedIndexes = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("SuggestedIndex", '{input:#1,output:#12,errors:[$12,$13,$14],protocol:$15,retry:$16};$5(>13)@"List%esRequest";$7($6);$5(>14)@"MongodbatlasStats";$5(>15)@"MongodbatlasOperation";$7(#4);$5(>16)@"Shape";$7(#6);$10($3,$8);$7(#8);$5(>17)@"%";$7(#10);$5(>18)@"HandlersInstances%esResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/suggested-indexes",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({ms:$9($8),nReturned:$9($8),nScanned:$9($8),ts:$9($8)});$4({predicates:$9(#2),raw:$9($3),stats:$9(#3)});$4({avgMs:$9($8),count:$9($8),id:$9($3),inefficiencyScore:$9($8),namespace:$9($3),operations:$9(#5)});$4({id:$9($3),impact:$9(#11:0),index:$9(#9),namespace:$9($3),weight:$9($8)});$4({shapes:$9(#7),suggestedIndexes:$9(#11)})', [__0, __1, __2, __3, __4, __5, __10, __8, __7, __6, __11, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listSuggestedIndexes, i));
|
|
66
|
+
|
|
67
|
+
export const listUsers = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListUser", '{input:#1,output:#4,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"%sRequest";$5(>6)@"%";$7(#2);$5(>7)@"%sResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({id:$6($3),username:$6($3)});$4({count:$6($8),items:$6(#3)})', [__0, __1, __2, __3, __4, __5, __6, __8, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listUsers, i));
|
|
68
|
+
|
|
69
|
+
export const listVersions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$5(>3)@"ListVersionsRequest";$5(>4)@"ListVersionsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/versions",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({versions:$7(#6:0)})', [__0, __1, __2, __3, __4, __5, __d1, __6, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listVersions, i));
|
|
70
|
+
|
|
71
|
+
export const partialUpdateInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:2,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$9(>2)@"PartialUpdateInstanceRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),acl:$5(#4:0),backupSchedule:$5($3),flavorId:$5($3),labels:$5(#6:0),name:$5($3),options:$5(#6:0),replicas:$5($7),storage:$5(#4:1),version:$5($3)}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __d3, __6, __d2, __7, __4, __5, __d7, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateInstance, i));
|
|
72
|
+
|
|
73
|
+
export const partialUpdateUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"PartialUpdateUserRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2()),database:$4($3),roles:$4(#5:0)}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __d1, __4, __5, __d5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateUser, i));
|
|
74
|
+
|
|
75
|
+
export const resetUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"ResetUserRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(resetUser, i));
|
|
76
|
+
|
|
77
|
+
export const restoreInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"RestoreInstanceRequest";$5(>4)@"RestoreInstanceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),backupId:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$4({item:$7(#6:0)})', [__0, __1, __2, __3, __4, __5, __d0, __6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(restoreInstance, i));
|
|
78
|
+
|
|
79
|
+
export const updateBackupSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("BackupSchedule", '{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$7(>3)@"Update%Request";$7(>4)@"%";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),backupSchedule:$4($3),dailySnapshotRetentionDays:$4($5),monthlySnapshotRetentionMonths:$4($5),pointInTimeWindowHours:$4($5),snapshotRetentionDays:$4($5),weeklySnapshotRetentionWeeks:$4($5)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}));$6({backupSchedule:$4($3),dailySnapshotRetentionDays:$4($5),monthlySnapshotRetentionMonths:$4($5),pointInTimeWindowHours:$4($5),snapshotRetentionDays:$4($5),weeklySnapshotRetentionWeeks:$4($5)})', [__0, __1, __2, __3, __6, __7, __4, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(updateBackupSchedule, i));
|
|
80
|
+
|
|
81
|
+
export const updateInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:2,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$9(>2)@"UpdateInstanceRequest";$8({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),acl:#4:0,backupSchedule:$3,flavorId:$3,labels:$6(#5:0),name:$3,options:#5:0,replicas:$7,storage:#4:1,version:$3}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __d3, __d2, __6, __7, __4, __5, __d7, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateInstance, i));
|
|
82
|
+
|
|
83
|
+
export const updateUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"UpdateUserRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2()),database:$3,roles:#4:0}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://mongodb-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __d1, __4, __5, __d5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateUser, i));
|
|
84
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
85
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
// Shared schema data (see `op` in core/api).
|
|
89
|
+
function __d0() {
|
|
90
|
+
return ['$4(>1)@"RestoreInstanceStatus";$3({backupID:$2($1),date:$2($1),id:$2($1),instanceId:$2($1),status:$2($1)})', [__0, __3, __6, __4, __5]];
|
|
91
|
+
}
|
|
92
|
+
function __d1() {
|
|
93
|
+
return ['$2($1)', [__0, __3, __8]];
|
|
94
|
+
}
|
|
95
|
+
function __d2() {
|
|
96
|
+
return ['$2($1,$1)', [__0, __3, __11]];
|
|
97
|
+
}
|
|
98
|
+
function __d3() {
|
|
99
|
+
return ['$4(>2)@"ACL";$4(>3)@"Storage";$3({items:$2(#1:0)});$3({class:$2($5),size:$2($6)})', [__0, __d1, __6, __4, __5, __3, __7]];
|
|
100
|
+
}
|
|
101
|
+
function __d4() {
|
|
102
|
+
return ['$7(>1)@"User";$6({database:$2($1),host:$2($1),id:$2($1),password:$2($1.pipe($3({}))),port:$2($4),roles:$2(#5:0),uri:$2($1),username:$2($1)})', [__0, __3, __6, __12, __7, __d1, __4, __5]];
|
|
103
|
+
}
|
|
104
|
+
function __d5() {
|
|
105
|
+
return ['$2(>1)@"DeleteInstanceResponse";$1({})', [__0, __4, __5]];
|
|
106
|
+
}
|
|
107
|
+
function __d6() {
|
|
108
|
+
return ['$7(>1)@"Backup";$6({endTime:$2($1),error:$2($1),id:$2($1),labels:$2(#3:0),name:$2($1),options:$2(#4:0),size:$2($5),startTime:$2($1)})', [__0, __3, __6, __d1, __d2, __7, __4, __5]];
|
|
109
|
+
}
|
|
110
|
+
function __d7() {
|
|
111
|
+
return ['$5(>3)@"Flavor";$5(>4)@"Instance";$5(>5)@"InstanceResponse";$4({cpu:$2($1),description:$2($3),id:$2($3),memory:$2($1)});$4({acl:$2(#6:0),backupSchedule:$2($3),flavor:$2(#0),id:$2($3),name:$2($3),options:$2(#7:0),replicas:$2($1),status:$2($3),storage:$2(#6:1),version:$2($3)});$4({item:$2(#1)})', [__0, __7, __6, __3, __4, __5, __d3, __d2]];
|
|
112
|
+
}
|