@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
package/lib/services/mariadb.js
CHANGED
|
@@ -1,551 +1,94 @@
|
|
|
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 CreateBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
29
|
-
projectId: S.String.pipe(T.Label()),
|
|
30
|
-
regionId: S.String.pipe(T.Label()),
|
|
31
|
-
instanceId: S.String.pipe(T.Label()),
|
|
32
|
-
}).pipe(T.Http({
|
|
33
|
-
method: "POST",
|
|
34
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
|
|
35
|
-
code: 200,
|
|
36
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
37
|
-
}))).annotate({ identifier: "CreateBackupRequest" });
|
|
38
|
-
export const CreateBackupResponseItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
39
|
-
id: S.Number,
|
|
40
|
-
message: S.String,
|
|
41
|
-
})).annotate({ identifier: "CreateBackupResponseItem" });
|
|
42
|
-
export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
43
|
-
projectId: S.String.pipe(T.Label()),
|
|
44
|
-
regionId: S.String.pipe(T.Label()),
|
|
45
|
-
instanceId: S.String.pipe(T.Label()),
|
|
46
|
-
parameters: S.optional(S.Unknown),
|
|
47
|
-
}).pipe(T.Http({
|
|
48
|
-
method: "POST",
|
|
49
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
|
|
50
|
-
code: 200,
|
|
51
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
52
|
-
}))).annotate({ identifier: "CreateCredentialsRequest" });
|
|
53
|
-
export const CredentialsHostsList = /*@__PURE__*/ S.Array(S.String);
|
|
54
|
-
export const Credentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
55
|
-
host: S.String,
|
|
56
|
-
hosts: S.optional(CredentialsHostsList),
|
|
57
|
-
name: S.optional(S.String),
|
|
58
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
59
|
-
port: S.optional(S.Number),
|
|
60
|
-
uri: S.optional(S.String),
|
|
61
|
-
username: S.String,
|
|
62
|
-
})).annotate({ identifier: "Credentials" });
|
|
63
|
-
export const RawCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
64
|
-
credentials: Credentials,
|
|
65
|
-
})).annotate({ identifier: "RawCredentials" });
|
|
66
|
-
export const CredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
|
-
id: S.String,
|
|
68
|
-
raw: S.optional(RawCredentials),
|
|
69
|
-
uri: S.String,
|
|
70
|
-
})).annotate({ identifier: "CredentialsResponse" });
|
|
71
|
-
export const InstanceParametersSyslogList = /*@__PURE__*/ S.Array(S.String);
|
|
72
|
-
export const InstanceParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
|
-
enable_monitoring: S.optional(S.Boolean),
|
|
74
|
-
graphite: S.optional(S.String),
|
|
75
|
-
max_disk_threshold: S.optional(S.Number),
|
|
76
|
-
metrics_frequency: S.optional(S.Number),
|
|
77
|
-
metrics_prefix: S.optional(S.String),
|
|
78
|
-
monitoring_instance_id: S.optional(S.String),
|
|
79
|
-
sgw_acl: S.optional(S.String),
|
|
80
|
-
syslog: S.optional(InstanceParametersSyslogList),
|
|
81
|
-
})).annotate({ identifier: "InstanceParameters" });
|
|
82
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
83
|
-
projectId: S.String.pipe(T.Label()),
|
|
84
|
-
regionId: S.String.pipe(T.Label()),
|
|
85
|
-
instanceName: S.String,
|
|
86
|
-
parameters: S.optional(InstanceParameters),
|
|
87
|
-
planId: S.String,
|
|
88
|
-
}).pipe(T.Http({
|
|
89
|
-
method: "POST",
|
|
90
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
|
|
91
|
-
code: 200,
|
|
92
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
93
|
-
}))).annotate({ identifier: "CreateInstanceRequest" });
|
|
94
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
95
|
-
instanceId: S.String,
|
|
96
|
-
})).annotate({ identifier: "CreateInstanceResponse" });
|
|
97
|
-
export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
-
projectId: S.String.pipe(T.Label()),
|
|
99
|
-
regionId: S.String.pipe(T.Label()),
|
|
100
|
-
instanceId: S.String.pipe(T.Label()),
|
|
101
|
-
credentialsId: S.String.pipe(T.Label()),
|
|
102
|
-
}).pipe(T.Http({
|
|
103
|
-
method: "DELETE",
|
|
104
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
|
|
105
|
-
code: 200,
|
|
106
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
107
|
-
}))).annotate({ identifier: "DeleteCredentialsRequest" });
|
|
108
|
-
export const DeleteCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
109
|
-
identifier: "DeleteCredentialsResponse",
|
|
110
|
-
});
|
|
111
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
112
|
-
projectId: S.String.pipe(T.Label()),
|
|
113
|
-
regionId: S.String.pipe(T.Label()),
|
|
114
|
-
instanceId: S.String.pipe(T.Label()),
|
|
115
|
-
}).pipe(T.Http({
|
|
116
|
-
method: "DELETE",
|
|
117
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
118
|
-
code: 200,
|
|
119
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
120
|
-
}))).annotate({ identifier: "DeleteInstanceRequest" });
|
|
121
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
122
|
-
identifier: "DeleteInstanceResponse",
|
|
123
|
-
});
|
|
124
|
-
export const DownloadBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
125
|
-
projectId: S.String.pipe(T.Label()),
|
|
126
|
-
regionId: S.String.pipe(T.Label()),
|
|
127
|
-
instanceId: S.String.pipe(T.Label()),
|
|
128
|
-
backupId: S.Number.pipe(T.Label()),
|
|
129
|
-
}).pipe(T.Http({
|
|
130
|
-
method: "GET",
|
|
131
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
|
|
132
|
-
code: 200,
|
|
133
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
134
|
-
}))).annotate({ identifier: "DownloadBackupRequest" });
|
|
135
|
-
export const DownloadBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
136
|
-
identifier: "DownloadBackupResponse",
|
|
137
|
-
});
|
|
138
|
-
export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
139
|
-
projectId: S.String.pipe(T.Label()),
|
|
140
|
-
regionId: S.String.pipe(T.Label()),
|
|
141
|
-
instanceId: S.String.pipe(T.Label()),
|
|
142
|
-
credentialsId: S.String.pipe(T.Label()),
|
|
143
|
-
}).pipe(T.Http({
|
|
144
|
-
method: "GET",
|
|
145
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
|
|
146
|
-
code: 200,
|
|
147
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
148
|
-
}))).annotate({ identifier: "GetCredentialsRequest" });
|
|
149
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
-
projectId: S.String.pipe(T.Label()),
|
|
151
|
-
regionId: S.String.pipe(T.Label()),
|
|
152
|
-
instanceId: S.String.pipe(T.Label()),
|
|
153
|
-
}).pipe(T.Http({
|
|
154
|
-
method: "GET",
|
|
155
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
156
|
-
code: 200,
|
|
157
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
158
|
-
}))).annotate({ identifier: "GetInstanceRequest" });
|
|
159
|
-
export const InstanceLastOperationState = S.String;
|
|
160
|
-
export const InstanceLastOperationType = S.String;
|
|
161
|
-
export const InstanceLastOperation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
162
|
-
description: S.String,
|
|
163
|
-
state: InstanceLastOperationState,
|
|
164
|
-
type: InstanceLastOperationType,
|
|
165
|
-
})).annotate({ identifier: "InstanceLastOperation" });
|
|
166
|
-
export const InstanceStatus = S.String;
|
|
167
|
-
export const Instance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
-
cfGuid: S.String,
|
|
169
|
-
cfOrganizationGuid: S.String,
|
|
170
|
-
cfSpaceGuid: S.String,
|
|
171
|
-
dashboardUrl: S.String,
|
|
172
|
-
imageUrl: S.String,
|
|
173
|
-
instanceId: S.optional(S.String),
|
|
174
|
-
lastOperation: InstanceLastOperation,
|
|
175
|
-
name: S.String,
|
|
176
|
-
offeringName: S.String,
|
|
177
|
-
offeringVersion: S.String,
|
|
178
|
-
parameters: S.Unknown,
|
|
179
|
-
planId: S.String,
|
|
180
|
-
planName: S.String,
|
|
181
|
-
status: S.optional(InstanceStatus),
|
|
182
|
-
})).annotate({ identifier: "Instance" });
|
|
183
|
-
export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
184
|
-
projectId: S.String.pipe(T.Label()),
|
|
185
|
-
regionId: S.String.pipe(T.Label()),
|
|
186
|
-
instanceId: S.String.pipe(T.Label()),
|
|
187
|
-
}).pipe(T.Http({
|
|
188
|
-
method: "GET",
|
|
189
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
|
|
190
|
-
code: 200,
|
|
191
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
192
|
-
}))).annotate({ identifier: "GetMetricsRequest" });
|
|
193
|
-
export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
194
|
-
cpuIdleTime: S.optional(S.Number),
|
|
195
|
-
cpuLoadPercent: S.Number,
|
|
196
|
-
cpuSystemTime: S.optional(S.Number),
|
|
197
|
-
cpuUserTime: S.optional(S.Number),
|
|
198
|
-
diskEphemeralTotal: S.Number,
|
|
199
|
-
diskEphemeralUsed: S.Number,
|
|
200
|
-
diskPersistentTotal: S.Number,
|
|
201
|
-
diskPersistentUsed: S.Number,
|
|
202
|
-
load1: S.Number,
|
|
203
|
-
load15: S.Number,
|
|
204
|
-
load5: S.Number,
|
|
205
|
-
memoryTotal: S.Number,
|
|
206
|
-
memoryUsed: S.Number,
|
|
207
|
-
parachuteDiskEphemeralActivated: S.Boolean,
|
|
208
|
-
parachuteDiskEphemeralTotal: S.Number,
|
|
209
|
-
parachuteDiskEphemeralUsed: S.Number,
|
|
210
|
-
parachuteDiskEphemeralUsedPercent: S.Number,
|
|
211
|
-
parachuteDiskEphemeralUsedThreshold: S.Number,
|
|
212
|
-
parachuteDiskPersistentActivated: S.Boolean,
|
|
213
|
-
parachuteDiskPersistentTotal: S.Number,
|
|
214
|
-
parachuteDiskPersistentUsed: S.Number,
|
|
215
|
-
parachuteDiskPersistentUsedPercent: S.Number,
|
|
216
|
-
parachuteDiskPersistentUsedThreshold: S.Number,
|
|
217
|
-
})).annotate({ identifier: "GetMetricsResponse" });
|
|
218
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
219
|
-
projectId: S.String.pipe(T.Label()),
|
|
220
|
-
regionId: S.String.pipe(T.Label()),
|
|
221
|
-
instanceId: S.String.pipe(T.Label()),
|
|
222
|
-
}).pipe(T.Http({
|
|
223
|
-
method: "GET",
|
|
224
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
|
|
225
|
-
code: 200,
|
|
226
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
227
|
-
}))).annotate({ identifier: "ListBackupsRequest" });
|
|
228
|
-
export const Backup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
229
|
-
downloadable: S.optional(S.Boolean),
|
|
230
|
-
finished_at: S.String,
|
|
231
|
-
id: S.Number,
|
|
232
|
-
size: S.optional(S.Number),
|
|
233
|
-
status: S.String,
|
|
234
|
-
triggered_at: S.optional(S.String),
|
|
235
|
-
})).annotate({ identifier: "Backup" });
|
|
236
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.Array(Backup);
|
|
237
|
-
export const ListBackupsResponse2 = /*@__PURE__*/ S.suspend(() => ListBackupsResponse.pipe(T.RawResponseRoot())).annotate({ identifier: "ListBackupsResponse2" });
|
|
238
|
-
export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
239
|
-
projectId: S.String.pipe(T.Label()),
|
|
240
|
-
regionId: S.String.pipe(T.Label()),
|
|
241
|
-
instanceId: S.String.pipe(T.Label()),
|
|
242
|
-
}).pipe(T.Http({
|
|
243
|
-
method: "GET",
|
|
244
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
|
|
245
|
-
code: 200,
|
|
246
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
247
|
-
}))).annotate({ identifier: "ListCredentialsRequest" });
|
|
248
|
-
export const CredentialsListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
-
id: S.String,
|
|
250
|
-
})).annotate({ identifier: "CredentialsListItem" });
|
|
251
|
-
export const ListCredentialsResponseCredentialsListList = /*@__PURE__*/ S.Array(CredentialsListItem);
|
|
252
|
-
export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
|
-
credentialsList: ListCredentialsResponseCredentialsListList,
|
|
254
|
-
})).annotate({ identifier: "ListCredentialsResponse" });
|
|
255
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
256
|
-
projectId: S.String.pipe(T.Label()),
|
|
257
|
-
regionId: S.String.pipe(T.Label()),
|
|
258
|
-
}).pipe(T.Http({
|
|
259
|
-
method: "GET",
|
|
260
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
|
|
261
|
-
code: 200,
|
|
262
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
263
|
-
}))).annotate({ identifier: "ListInstancesRequest" });
|
|
264
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(Instance);
|
|
265
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
266
|
-
instances: ListInstancesResponseInstancesList,
|
|
267
|
-
})).annotate({ identifier: "ListInstancesResponse" });
|
|
268
|
-
export const ListOfferingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
-
projectId: S.String.pipe(T.Label()),
|
|
270
|
-
regionId: S.String.pipe(T.Label()),
|
|
271
|
-
}).pipe(T.Http({
|
|
272
|
-
method: "GET",
|
|
273
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
|
|
274
|
-
code: 200,
|
|
275
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
276
|
-
}))).annotate({ identifier: "ListOfferingsRequest" });
|
|
277
|
-
export const Plan = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
278
|
-
description: S.String,
|
|
279
|
-
free: S.Boolean,
|
|
280
|
-
id: S.String,
|
|
281
|
-
name: S.String,
|
|
282
|
-
skuName: S.String,
|
|
283
|
-
})).annotate({ identifier: "Plan" });
|
|
284
|
-
export const OfferingPlansList = /*@__PURE__*/ S.Array(Plan);
|
|
285
|
-
export const Schema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
286
|
-
parameters: S.Unknown,
|
|
287
|
-
})).annotate({ identifier: "Schema" });
|
|
288
|
-
export const InstanceSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
289
|
-
create: Schema,
|
|
290
|
-
update: Schema,
|
|
291
|
-
})).annotate({ identifier: "InstanceSchema" });
|
|
292
|
-
export const Offering = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
293
|
-
description: S.String,
|
|
294
|
-
documentationUrl: S.String,
|
|
295
|
-
imageUrl: S.String,
|
|
296
|
-
latest: S.Boolean,
|
|
297
|
-
lifecycle: S.optional(S.String),
|
|
298
|
-
name: S.String,
|
|
299
|
-
plans: OfferingPlansList,
|
|
300
|
-
quotaCount: S.Number,
|
|
301
|
-
schema: S.optional(InstanceSchema),
|
|
302
|
-
version: S.String,
|
|
303
|
-
})).annotate({ identifier: "Offering" });
|
|
304
|
-
export const ListOfferingsResponseOfferingsList = /*@__PURE__*/ S.Array(Offering);
|
|
305
|
-
export const ListOfferingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
306
|
-
offerings: ListOfferingsResponseOfferingsList,
|
|
307
|
-
})).annotate({ identifier: "ListOfferingsResponse" });
|
|
308
|
-
export const ListRestoresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
309
|
-
projectId: S.String.pipe(T.Label()),
|
|
310
|
-
regionId: S.String.pipe(T.Label()),
|
|
311
|
-
instanceId: S.String.pipe(T.Label()),
|
|
312
|
-
}).pipe(T.Http({
|
|
313
|
-
method: "GET",
|
|
314
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
|
|
315
|
-
code: 200,
|
|
316
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
317
|
-
}))).annotate({ identifier: "ListRestoresRequest" });
|
|
318
|
-
export const Restore = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
319
|
-
backup_id: S.Number,
|
|
320
|
-
finished_at: S.String,
|
|
321
|
-
id: S.Number,
|
|
322
|
-
status: S.String,
|
|
323
|
-
triggered_at: S.optional(S.String),
|
|
324
|
-
})).annotate({ identifier: "Restore" });
|
|
325
|
-
export const ListRestoresResponseInstanceRestoresList = /*@__PURE__*/ S.Array(Restore);
|
|
326
|
-
export const ListRestoresResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
-
instanceRestores: ListRestoresResponseInstanceRestoresList,
|
|
328
|
-
})).annotate({ identifier: "ListRestoresResponse" });
|
|
329
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
330
|
-
projectId: S.String.pipe(T.Label()),
|
|
331
|
-
regionId: S.String.pipe(T.Label()),
|
|
332
|
-
instanceId: S.String.pipe(T.Label()),
|
|
333
|
-
instanceName: S.optional(S.String),
|
|
334
|
-
parameters: S.optional(InstanceParameters),
|
|
335
|
-
planId: S.optional(S.String),
|
|
336
|
-
}).pipe(T.Http({
|
|
337
|
-
method: "PATCH",
|
|
338
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
339
|
-
code: 200,
|
|
340
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
341
|
-
}))).annotate({
|
|
342
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
343
|
-
});
|
|
344
|
-
export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
345
|
-
identifier: "PartialUpdateInstanceResponse",
|
|
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.Unknown;
|
|
18
|
+
const __8 = S.Number;
|
|
19
|
+
const __9 = S.Boolean;
|
|
20
|
+
const __10 = S.Array;
|
|
21
|
+
const __11 = T.RawResponseRoot;
|
|
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, __8, __3, __13, __14]]);
|
|
346
27
|
});
|
|
347
|
-
export const
|
|
348
|
-
|
|
349
|
-
regionId: S.String.pipe(T.Label()),
|
|
350
|
-
instanceId: S.String.pipe(T.Label()),
|
|
351
|
-
}).pipe(T.Http({
|
|
352
|
-
method: "PATCH",
|
|
353
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
|
|
354
|
-
code: 200,
|
|
355
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
356
|
-
}))).annotate({ identifier: "TriggerRecreateRequest" });
|
|
357
|
-
export const TriggerRestartRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
358
|
-
projectId: S.String.pipe(T.Label()),
|
|
359
|
-
regionId: S.String.pipe(T.Label()),
|
|
360
|
-
instanceId: S.String.pipe(T.Label()),
|
|
361
|
-
}).pipe(T.Http({
|
|
362
|
-
method: "PATCH",
|
|
363
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
|
|
364
|
-
code: 200,
|
|
365
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
366
|
-
}))).annotate({ identifier: "TriggerRestartRequest" });
|
|
367
|
-
export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
-
projectId: S.String.pipe(T.Label()),
|
|
369
|
-
regionId: S.String.pipe(T.Label()),
|
|
370
|
-
instanceId: S.String.pipe(T.Label()),
|
|
371
|
-
backupId: S.Number.pipe(T.Label()),
|
|
372
|
-
}).pipe(T.Http({
|
|
373
|
-
method: "POST",
|
|
374
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
|
|
375
|
-
code: 200,
|
|
376
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
377
|
-
}))).annotate({ identifier: "TriggerRestoreRequest" });
|
|
378
|
-
export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
379
|
-
id: S.Number,
|
|
380
|
-
})).annotate({ identifier: "TriggerRestoreResponse" });
|
|
381
|
-
export const UpdateBackupsConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
382
|
-
projectId: S.String.pipe(T.Label()),
|
|
383
|
-
regionId: S.String.pipe(T.Label()),
|
|
384
|
-
instanceId: S.String.pipe(T.Label()),
|
|
385
|
-
encryption_key: S.optional(S.String),
|
|
386
|
-
}).pipe(T.Http({
|
|
387
|
-
method: "PATCH",
|
|
388
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
|
|
389
|
-
code: 200,
|
|
390
|
-
baseUrl: "https://mariadb.api.stackit.cloud",
|
|
391
|
-
}))).annotate({
|
|
392
|
-
identifier: "UpdateBackupsConfigRequest",
|
|
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, __8, __3, __13, __14]]);
|
|
393
30
|
});
|
|
394
|
-
export const
|
|
395
|
-
|
|
396
|
-
})).annotate({
|
|
397
|
-
identifier: "UpdateBackupsConfigResponse",
|
|
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, __8, __3, __13, __14]]);
|
|
398
33
|
});
|
|
399
|
-
|
|
400
|
-
export const createBackup = /*@__PURE__*/ API.
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}));
|
|
407
|
-
|
|
408
|
-
export const
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}));
|
|
415
|
-
|
|
416
|
-
export const
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}));
|
|
423
|
-
|
|
424
|
-
export const
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}));
|
|
431
|
-
|
|
432
|
-
export const
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
protocol: StackitProtocol,
|
|
461
|
-
retry: Retry.Retry,
|
|
462
|
-
}));
|
|
463
|
-
/** get latest metrics for cpu load, memory and disk usage */
|
|
464
|
-
export const getMetrics = /*@__PURE__*/ API.make(() => ({
|
|
465
|
-
input: GetMetricsRequest,
|
|
466
|
-
output: GetMetricsResponse,
|
|
467
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
468
|
-
protocol: StackitProtocol,
|
|
469
|
-
retry: Retry.Retry,
|
|
470
|
-
}));
|
|
471
|
-
/** get latest backup information for provided instanceId */
|
|
472
|
-
export const listBackups = /*@__PURE__*/ API.make(() => ({
|
|
473
|
-
input: ListBackupsRequest,
|
|
474
|
-
output: ListBackupsResponse2,
|
|
475
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
476
|
-
protocol: StackitProtocol,
|
|
477
|
-
retry: Retry.Retry,
|
|
478
|
-
}));
|
|
479
|
-
/** get list of credentials ids get list all credentials ids for instance */
|
|
480
|
-
export const listCredentials = /*@__PURE__*/ API.make(() => ({
|
|
481
|
-
input: ListCredentialsRequest,
|
|
482
|
-
output: ListCredentialsResponse,
|
|
483
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
484
|
-
protocol: StackitProtocol,
|
|
485
|
-
retry: Retry.Retry,
|
|
486
|
-
}));
|
|
487
|
-
/** get service instances list Get a list of available instances */
|
|
488
|
-
export const listInstances = /*@__PURE__*/ API.make(() => ({
|
|
489
|
-
input: ListInstancesRequest,
|
|
490
|
-
output: ListInstancesResponse,
|
|
491
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
492
|
-
protocol: StackitProtocol,
|
|
493
|
-
retry: Retry.Retry,
|
|
494
|
-
}));
|
|
495
|
-
/** get the service offerings Get the service offerings that the service broker offers. */
|
|
496
|
-
export const listOfferings = /*@__PURE__*/ API.make(() => ({
|
|
497
|
-
input: ListOfferingsRequest,
|
|
498
|
-
output: ListOfferingsResponse,
|
|
499
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
500
|
-
protocol: StackitProtocol,
|
|
501
|
-
retry: Retry.Retry,
|
|
502
|
-
}));
|
|
503
|
-
/** get latest restore information for provided instanceId */
|
|
504
|
-
export const listRestores = /*@__PURE__*/ API.make(() => ({
|
|
505
|
-
input: ListRestoresRequest,
|
|
506
|
-
output: ListRestoresResponse,
|
|
507
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
508
|
-
protocol: StackitProtocol,
|
|
509
|
-
retry: Retry.Retry,
|
|
510
|
-
}));
|
|
511
|
-
/** update a service instance Update a service instance. This could be a sgw acl update or a plan upgrade. */
|
|
512
|
-
export const partialUpdateInstance = /*@__PURE__*/ API.make(() => ({
|
|
513
|
-
input: PartialUpdateInstanceRequest,
|
|
514
|
-
output: PartialUpdateInstanceResponse,
|
|
515
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
516
|
-
protocol: StackitProtocol,
|
|
517
|
-
retry: Retry.Retry,
|
|
518
|
-
}));
|
|
519
|
-
/** trigger a recreate */
|
|
520
|
-
export const triggerRecreate = /*@__PURE__*/ API.make(() => ({
|
|
521
|
-
input: TriggerRecreateRequest,
|
|
522
|
-
output: CreateInstanceResponse,
|
|
523
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
524
|
-
protocol: StackitProtocol,
|
|
525
|
-
retry: Retry.Retry,
|
|
526
|
-
}));
|
|
527
|
-
/** trigger a restart */
|
|
528
|
-
export const triggerRestart = /*@__PURE__*/ API.make(() => ({
|
|
529
|
-
input: TriggerRestartRequest,
|
|
530
|
-
output: CreateInstanceResponse,
|
|
531
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
532
|
-
protocol: StackitProtocol,
|
|
533
|
-
retry: Retry.Retry,
|
|
534
|
-
}));
|
|
535
|
-
/** trigger a restore */
|
|
536
|
-
export const triggerRestore = /*@__PURE__*/ API.make(() => ({
|
|
537
|
-
input: TriggerRestoreRequest,
|
|
538
|
-
output: TriggerRestoreResponse,
|
|
539
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
540
|
-
protocol: StackitProtocol,
|
|
541
|
-
retry: Retry.Retry,
|
|
542
|
-
}));
|
|
543
|
-
/** backups configuration update Update the configuration for backups for your instance. */
|
|
544
|
-
export const updateBackupsConfig = /*@__PURE__*/ API.make(() => ({
|
|
545
|
-
input: UpdateBackupsConfigRequest,
|
|
546
|
-
output: UpdateBackupsConfigResponse,
|
|
547
|
-
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
548
|
-
protocol: StackitProtocol,
|
|
549
|
-
retry: Retry.Retry,
|
|
550
|
-
}));
|
|
551
|
-
//# sourceMappingURL=mariadb.js.map
|
|
34
|
+
|
|
35
|
+
export const createBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>3)@"CreateBackupRequest";$5(>4)@"CreateBackupResponseItem";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$4({id:$6,message:$3})', [__0, __1, __2, __3, __4, __5, __8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createBackup, i));
|
|
36
|
+
|
|
37
|
+
export const createCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:2,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"CreateCredentialsRequest";$6({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2()),parameters:$5($4)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __6, __4, __5, __d2, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createCredentials, i));
|
|
38
|
+
|
|
39
|
+
export const createInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateInstanceRequest";$6({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceName:$3,parameters:$5(#4:0),planId:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{regionId}/instances",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __d3, __6, __4, __5, __d4, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createInstance, i));
|
|
40
|
+
|
|
41
|
+
export const deleteCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteCredentialsRequest";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2()),credentialsId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteCredentials, i));
|
|
42
|
+
|
|
43
|
+
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()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteInstance, i));
|
|
44
|
+
|
|
45
|
+
export const downloadBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"DownloadBackupRequest";$5({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2()),backupId:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __8, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(downloadBackup, i));
|
|
46
|
+
|
|
47
|
+
export const getCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetCredentialsRequest";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2()),credentialsId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCredentials, i));
|
|
48
|
+
|
|
49
|
+
export const getInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetInstanceRequest";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getInstance, i));
|
|
50
|
+
|
|
51
|
+
export const getMetrics = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>3)@"GetMetricsRequest";$5(>4)@"GetMetricsResponse";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$4({cpuIdleTime:$7($6),cpuLoadPercent:$6,cpuSystemTime:$7($6),cpuUserTime:$7($6),diskEphemeralTotal:$6,diskEphemeralUsed:$6,diskPersistentTotal:$6,diskPersistentUsed:$6,load1:$6,load15:$6,load5:$6,memoryTotal:$6,memoryUsed:$6,parachuteDiskEphemeralActivated:$8,parachuteDiskEphemeralTotal:$6,parachuteDiskEphemeralUsed:$6,parachuteDiskEphemeralUsedPercent:$6,parachuteDiskEphemeralUsedThreshold:$6,parachuteDiskPersistentActivated:$8,parachuteDiskPersistentTotal:$6,parachuteDiskPersistentUsed:$6,parachuteDiskPersistentUsedPercent:$6,parachuteDiskPersistentUsedThreshold:$6})', [__0, __1, __2, __3, __4, __5, __8, __6, __9, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getMetrics, i));
|
|
52
|
+
|
|
53
|
+
export const listBackups = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Backup", '{input:#1,output:#4,errors:[$11,$12,$13],protocol:$14,retry:$15};$5(>5)@"List%sRequest";$5(>6)@"%";$9(#2);$5(>7)@"List%sResponse2";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$4({downloadable:$7($6),finished_at:$3,id:$8,size:$7($8),status:$3,triggered_at:$7($3)});#3.pipe($10())', [__0, __1, __2, __3, __4, __5, __9, __6, __8, __10, __11, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listBackups, i));
|
|
54
|
+
|
|
55
|
+
export const listCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>5)@"ListCredentialsRequest";$5(>6)@"CredentialsListItem";$6(#2);$5(>7)@"ListCredentialsResponse";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$4({id:$3});$4({credentialsList:#3})', [__0, __1, __2, __3, __4, __5, __10, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCredentials, i));
|
|
56
|
+
|
|
57
|
+
export const listInstances = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListInstancesRequest";$7(#6:1);$5(>5)@"ListInstancesResponse";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$4({instances:#2})', [__0, __1, __2, __3, __4, __5, __d0, __10, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listInstances, i));
|
|
58
|
+
|
|
59
|
+
export const listOfferings = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Offering", '{input:#1,output:#8,errors:[$11,$12,$13],protocol:$14,retry:$15};$5(>9)@"List%sRequest";$5(>10)@"Plan";$7(#2);$5(>11)@"Schema";$5(>12)@"InstanceSchema";$5(>13)@"%";$7(#6);$5(>14)@"List%sResponse";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/offerings",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$4({description:$3,free:$6,id:$3,name:$3,skuName:$3});$4({parameters:$8});$4({create:#4,update:#4});$4({description:$3,documentationUrl:$3,imageUrl:$3,latest:$6,lifecycle:$9($3),name:$3,plans:#3,quotaCount:$10,schema:$9(#5),version:$3});$4({offerings:#7})', [__0, __1, __2, __3, __4, __5, __9, __10, __7, __6, __8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listOfferings, i));
|
|
60
|
+
|
|
61
|
+
export const listRestores = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Restore", '{input:#1,output:#4,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"List%sRequest";$5(>6)@"%";$8(#2);$5(>7)@"List%sResponse";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$4({backup_id:$6,finished_at:$3,id:$6,status:$3,triggered_at:$7($3)});$4({instanceRestores:#3})', [__0, __1, __2, __3, __4, __5, __8, __6, __10, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listRestores, i));
|
|
62
|
+
|
|
63
|
+
export const partialUpdateInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"PartialUpdateInstanceRequest";$6({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2()),instanceName:$4($3),parameters:$4(#5:0),planId:$4($3)}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __d3, __4, __5, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateInstance, i));
|
|
64
|
+
|
|
65
|
+
export const triggerRecreate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"TriggerRecreateRequest";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(triggerRecreate, i));
|
|
66
|
+
|
|
67
|
+
export const triggerRestart = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"TriggerRestartRequest";$4({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(triggerRestart, i));
|
|
68
|
+
|
|
69
|
+
export const triggerRestore = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9],protocol:$10,retry:$11};$6(>3)@"TriggerRestoreRequest";$6(>4)@"TriggerRestoreResponse";$5({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2()),backupId:$4.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$5({id:$4})', [__0, __1, __2, __3, __8, __4, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(triggerRestore, i));
|
|
70
|
+
|
|
71
|
+
export const updateBackupsConfig = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9],protocol:$10,retry:$11};$6(>3)@"UpdateBackupsConfigRequest";$6(>4)@"UpdateBackupsConfigResponse";$5({projectId:$3.pipe($2()),regionId:$3.pipe($2()),instanceId:$3.pipe($2()),encryption_key:$4($3)}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",code:200,baseUrl:"https://mariadb.api.stackit.cloud"}));$5({message:$3})', [__0, __1, __2, __3, __6, __4, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateBackupsConfig, i));
|
|
72
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
73
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// Shared schema data (see `op` in core/api).
|
|
77
|
+
function __d0() {
|
|
78
|
+
return ['$3(>2)@"InstanceLastOperation";$3(>3)@"Instance";$2({description:$1,state:$1,type:$1});$2({cfGuid:$1,cfOrganizationGuid:$1,cfSpaceGuid:$1,dashboardUrl:$1,imageUrl:$1,instanceId:$4($1),lastOperation:#0,name:$1,offeringName:$1,offeringVersion:$1,parameters:$5,planId:$1,planName:$1,status:$4($1)})', [__0, __3, __4, __5, __6, __7]];
|
|
79
|
+
}
|
|
80
|
+
function __d1() {
|
|
81
|
+
return ['$2($1)', [__0, __3, __10]];
|
|
82
|
+
}
|
|
83
|
+
function __d2() {
|
|
84
|
+
return ['$7(>3)@"Credentials";$7(>4)@"RawCredentials";$7(>5)@"CredentialsResponse";$6({host:$1,hosts:$3(#2:0),name:$3($1),password:$1.pipe($4({})),port:$3($5),uri:$3($1),username:$1});$6({credentials:#0});$6({id:$1,raw:$3(#1),uri:$1})', [__0, __3, __d1, __6, __12, __8, __4, __5]];
|
|
85
|
+
}
|
|
86
|
+
function __d3() {
|
|
87
|
+
return ['$7(>1)@"InstanceParameters";$6({enable_monitoring:$2($1),graphite:$2($3),max_disk_threshold:$2($4),metrics_frequency:$2($4),metrics_prefix:$2($3),monitoring_instance_id:$2($3),sgw_acl:$2($3),syslog:$2(#5:0)})', [__0, __9, __6, __3, __8, __d1, __4, __5]];
|
|
88
|
+
}
|
|
89
|
+
function __d4() {
|
|
90
|
+
return ['$3(>1)@"CreateInstanceResponse";$2({instanceId:$1})', [__0, __3, __4, __5]];
|
|
91
|
+
}
|
|
92
|
+
function __d5() {
|
|
93
|
+
return ['$2(>1)@"DeleteCredentialsResponse";$1({})', [__0, __4, __5]];
|
|
94
|
+
}
|