@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -49
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -26
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -24
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +1 -45
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -147
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -31
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +28 -512
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +33 -520
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -322
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +1 -362
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +31 -905
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -178
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -176
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -725
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -316
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +1 -356
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -398
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +35 -519
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +181 -3542
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +29 -474
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +41 -662
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +1 -153
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +29 -496
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +33 -573
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -474
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +34 -550
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -335
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -286
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +42 -802
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +38 -539
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +159 -3157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +34 -562
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +31 -735
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +47 -852
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +37 -518
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +35 -573
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -197
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +36 -472
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -184
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +25 -444
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +40 -669
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +42 -612
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +29 -453
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -351
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +30 -505
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -156
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -789
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +26 -557
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +46 -935
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +26 -378
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -531
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +29 -483
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -278
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +34 -566
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +43 -930
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -507
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +4 -0
- package/lib/services.lazy/alb_waf.js +4 -0
- package/lib/services.lazy/authorization.js +1 -0
- package/lib/services.lazy/automation.js +1 -0
- package/lib/services.lazy/cdn.js +4 -0
- package/lib/services.lazy/certificates.js +1 -0
- package/lib/services.lazy/cost.js +1 -0
- package/lib/services.lazy/dns.js +4 -0
- package/lib/services.lazy/dremio.js +1 -0
- package/lib/services.lazy/edge.js +1 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/git.js +4 -0
- package/lib/services.lazy/iaas.js +4 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/intake.js +4 -0
- package/lib/services.lazy/kms.js +4 -0
- package/lib/services.lazy/lb_ip_lists.js +1 -0
- package/lib/services.lazy/load_balancer.js +4 -0
- package/lib/services.lazy/logme.js +4 -0
- package/lib/services.lazy/logs.js +4 -0
- package/lib/services.lazy/mariadb.js +4 -0
- package/lib/services.lazy/model_experiments.js +1 -0
- package/lib/services.lazy/model_serving.js +1 -0
- package/lib/services.lazy/mongodb_flex.js +4 -0
- package/lib/services.lazy/object_storage.js +4 -0
- package/lib/services.lazy/observability.js +4 -0
- package/lib/services.lazy/opensearch.js +4 -0
- package/lib/services.lazy/pim.js +4 -0
- package/lib/services.lazy/postgres_flex.js +4 -0
- package/lib/services.lazy/pubsub.js +4 -0
- package/lib/services.lazy/rabbitmq.js +4 -0
- package/lib/services.lazy/registry.js +1 -0
- package/lib/services.lazy/resource_manager.js +4 -0
- package/lib/services.lazy/run_command.js +1 -0
- package/lib/services.lazy/sca.js +4 -0
- package/lib/services.lazy/scf.js +4 -0
- package/lib/services.lazy/secrets_manager.js +4 -0
- package/lib/services.lazy/server_backup.js +4 -0
- package/lib/services.lazy/server_update.js +1 -0
- package/lib/services.lazy/service_account.js +4 -0
- package/lib/services.lazy/service_enablement.js +1 -0
- package/lib/services.lazy/sfs.js +4 -0
- package/lib/services.lazy/ske.js +4 -0
- package/lib/services.lazy/sqlserverflex.js +4 -0
- package/lib/services.lazy/stackit_marketplace.js +4 -0
- package/lib/services.lazy/telemetry_link.js +4 -0
- package/lib/services.lazy/telemetry_router.js +4 -0
- package/lib/services.lazy/ufw.js +1 -0
- package/lib/services.lazy/valkey.js +4 -0
- package/lib/services.lazy/vpn.js +4 -0
- package/lib/services.lazy/workflows.js +4 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +1 -15
- package/package.json +9 -7
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- package/src/protocol.test.ts +0 -304
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
|
@@ -1,936 +1,47 @@
|
|
|
1
|
-
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
48
|
-
}))).annotate({ identifier: "CreateDatabaseRequest" });
|
|
49
|
-
export const CreateDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
-
id: S.Number,
|
|
51
|
-
})).annotate({ identifier: "CreateDatabaseResponse" });
|
|
52
|
-
export const CreateInstanceRequestRegion = S.String;
|
|
53
|
-
export const InstanceEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
54
|
-
kekKeyId: S.String,
|
|
55
|
-
kekKeyRingId: S.String,
|
|
56
|
-
kekKeyVersion: S.String,
|
|
57
|
-
serviceAccount: S.String,
|
|
58
|
-
})).annotate({ identifier: "InstanceEncryption" });
|
|
59
|
-
export const Labels = /*@__PURE__*/ S.Record(S.String, S.NullOr(S.String));
|
|
60
|
-
export const InstanceNetworkAccessScope = S.String;
|
|
61
|
-
export const Acl = /*@__PURE__*/ S.Array(S.String);
|
|
62
|
-
export const CreateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
-
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
64
|
-
acl: Acl,
|
|
65
|
-
})).annotate({
|
|
66
|
-
identifier: "CreateInstanceRequestNetwork",
|
|
67
|
-
});
|
|
68
|
-
export const StorageCreate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
69
|
-
class: S.String,
|
|
70
|
-
size: S.Number,
|
|
71
|
-
})).annotate({ identifier: "StorageCreate" });
|
|
72
|
-
export const InstanceVersion = S.String;
|
|
73
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
74
|
-
projectId: S.String.pipe(T.Label()),
|
|
75
|
-
region: CreateInstanceRequestRegion.pipe(T.Label()),
|
|
76
|
-
backupSchedule: S.String,
|
|
77
|
-
encryption: S.optional(InstanceEncryption),
|
|
78
|
-
flavorId: S.String,
|
|
79
|
-
labels: S.optional(Labels),
|
|
80
|
-
name: S.String,
|
|
81
|
-
network: CreateInstanceRequestNetwork,
|
|
82
|
-
retentionDays: S.Number,
|
|
83
|
-
storage: StorageCreate,
|
|
84
|
-
version: InstanceVersion,
|
|
85
|
-
}).pipe(T.Http({
|
|
86
|
-
method: "POST",
|
|
87
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
88
|
-
code: 200,
|
|
89
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
90
|
-
}))).annotate({ identifier: "CreateInstanceRequest" });
|
|
91
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
id: S.String,
|
|
93
|
-
})).annotate({ identifier: "CreateInstanceResponse" });
|
|
94
|
-
export const CreateUserRequestRegion = S.String;
|
|
95
|
-
export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
96
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
97
|
-
projectId: S.String.pipe(T.Label()),
|
|
98
|
-
region: CreateUserRequestRegion.pipe(T.Label()),
|
|
99
|
-
instanceId: S.String.pipe(T.Label()),
|
|
100
|
-
default_database: S.optional(S.String),
|
|
101
|
-
roles: CreateUserRequestRolesList,
|
|
102
|
-
username: S.String,
|
|
103
|
-
}).pipe(T.Http({
|
|
104
|
-
method: "POST",
|
|
105
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
106
|
-
code: 200,
|
|
107
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
108
|
-
}))).annotate({ identifier: "CreateUserRequest" });
|
|
109
|
-
export const CreateUserResponseRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
110
|
-
export const CreateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
-
default_database: S.String,
|
|
112
|
-
host: S.String,
|
|
113
|
-
id: S.Number,
|
|
114
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
115
|
-
port: S.Number,
|
|
116
|
-
roles: CreateUserResponseRolesList,
|
|
117
|
-
status: S.String,
|
|
118
|
-
uri: S.String,
|
|
119
|
-
username: S.String,
|
|
120
|
-
})).annotate({ identifier: "CreateUserResponse" });
|
|
121
|
-
export const DeleteDatabaseRequestRegion = S.String;
|
|
122
|
-
export const DeleteDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
123
|
-
projectId: S.String.pipe(T.Label()),
|
|
124
|
-
region: DeleteDatabaseRequestRegion.pipe(T.Label()),
|
|
125
|
-
instanceId: S.String.pipe(T.Label()),
|
|
126
|
-
databaseName: S.String.pipe(T.Label()),
|
|
127
|
-
}).pipe(T.Http({
|
|
128
|
-
method: "DELETE",
|
|
129
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
|
|
130
|
-
code: 200,
|
|
131
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
132
|
-
}))).annotate({ identifier: "DeleteDatabaseRequest" });
|
|
133
|
-
export const DeleteDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
134
|
-
identifier: "DeleteDatabaseResponse",
|
|
135
|
-
});
|
|
136
|
-
export const DeleteInstanceRequestRegion = S.String;
|
|
137
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
138
|
-
projectId: S.String.pipe(T.Label()),
|
|
139
|
-
region: DeleteInstanceRequestRegion.pipe(T.Label()),
|
|
140
|
-
instanceId: S.String.pipe(T.Label()),
|
|
141
|
-
}).pipe(T.Http({
|
|
142
|
-
method: "DELETE",
|
|
143
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
144
|
-
code: 200,
|
|
145
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
146
|
-
}))).annotate({ identifier: "DeleteInstanceRequest" });
|
|
147
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
148
|
-
identifier: "DeleteInstanceResponse",
|
|
149
|
-
});
|
|
150
|
-
export const DeleteUserRequestRegion = S.String;
|
|
151
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
152
|
-
projectId: S.String.pipe(T.Label()),
|
|
153
|
-
region: DeleteUserRequestRegion.pipe(T.Label()),
|
|
154
|
-
instanceId: S.String.pipe(T.Label()),
|
|
155
|
-
userId: S.Number.pipe(T.Label()),
|
|
156
|
-
}).pipe(T.Http({
|
|
157
|
-
method: "DELETE",
|
|
158
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
159
|
-
code: 200,
|
|
160
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
161
|
-
}))).annotate({ identifier: "DeleteUserRequest" });
|
|
162
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
163
|
-
identifier: "DeleteUserResponse",
|
|
164
|
-
});
|
|
165
|
-
export const GetBackupRequestRegion = S.String;
|
|
166
|
-
export const GetBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
|
-
projectId: S.String.pipe(T.Label()),
|
|
168
|
-
region: GetBackupRequestRegion.pipe(T.Label()),
|
|
169
|
-
instanceId: S.String.pipe(T.Label()),
|
|
170
|
-
backupId: S.Number.pipe(T.Label()),
|
|
171
|
-
}).pipe(T.Http({
|
|
172
|
-
method: "GET",
|
|
173
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
174
|
-
code: 200,
|
|
175
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
176
|
-
}))).annotate({ identifier: "GetBackupRequest" });
|
|
177
|
-
export const GetBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
178
|
-
completionTime: S.String,
|
|
179
|
-
id: S.Number,
|
|
180
|
-
name: S.String,
|
|
181
|
-
retainedUntil: S.String,
|
|
182
|
-
size: S.Number,
|
|
183
|
-
type: S.String,
|
|
184
|
-
})).annotate({ identifier: "GetBackupResponse" });
|
|
185
|
-
export const GetDatabaseRequestRegion = S.String;
|
|
186
|
-
export const GetDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
187
|
-
projectId: S.String.pipe(T.Label()),
|
|
188
|
-
region: GetDatabaseRequestRegion.pipe(T.Label()),
|
|
189
|
-
instanceId: S.String.pipe(T.Label()),
|
|
190
|
-
databaseName: S.String.pipe(T.Label()),
|
|
191
|
-
}).pipe(T.Http({
|
|
192
|
-
method: "GET",
|
|
193
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
|
|
194
|
-
code: 200,
|
|
195
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
196
|
-
}))).annotate({ identifier: "GetDatabaseRequest" });
|
|
197
|
-
export const GetDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
-
collationName: S.String,
|
|
199
|
-
compatibilityLevel: S.Number,
|
|
200
|
-
id: S.Number,
|
|
201
|
-
name: S.String,
|
|
202
|
-
owner: S.String,
|
|
203
|
-
})).annotate({ identifier: "GetDatabaseResponse" });
|
|
204
|
-
export const GetInstanceRequestRegion = S.String;
|
|
205
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
206
|
-
projectId: S.String.pipe(T.Label()),
|
|
207
|
-
region: GetInstanceRequestRegion.pipe(T.Label()),
|
|
208
|
-
instanceId: S.String.pipe(T.Label()),
|
|
209
|
-
}).pipe(T.Http({
|
|
210
|
-
method: "GET",
|
|
211
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
212
|
-
code: 200,
|
|
213
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
214
|
-
}))).annotate({ identifier: "GetInstanceRequest" });
|
|
215
|
-
export const InstanceEdition = S.String;
|
|
216
|
-
export const InstanceNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
|
-
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
218
|
-
acl: S.optional(Acl),
|
|
219
|
-
instanceAddress: S.optional(S.String),
|
|
220
|
-
routerAddress: S.optional(S.String),
|
|
221
|
-
})).annotate({ identifier: "InstanceNetwork" });
|
|
222
|
-
export const Replicas = S.Number;
|
|
223
|
-
export const State = S.String;
|
|
224
|
-
export const Storage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
-
class: S.optional(S.String),
|
|
226
|
-
size: S.optional(S.Number),
|
|
227
|
-
})).annotate({ identifier: "Storage" });
|
|
228
|
-
export const GetInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
229
|
-
backupSchedule: S.String,
|
|
230
|
-
edition: InstanceEdition,
|
|
231
|
-
encryption: S.optional(InstanceEncryption),
|
|
232
|
-
flavorId: S.String,
|
|
233
|
-
id: S.String,
|
|
234
|
-
isDeletable: S.Boolean,
|
|
235
|
-
labels: S.optional(Labels),
|
|
236
|
-
name: S.String,
|
|
237
|
-
network: InstanceNetwork,
|
|
238
|
-
replicas: Replicas,
|
|
239
|
-
retentionDays: S.Number,
|
|
240
|
-
state: State,
|
|
241
|
-
storage: Storage,
|
|
242
|
-
version: InstanceVersion,
|
|
243
|
-
})).annotate({ identifier: "GetInstanceResponse" });
|
|
244
|
-
export const GetUserRequestRegion = S.String;
|
|
245
|
-
export const GetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
246
|
-
projectId: S.String.pipe(T.Label()),
|
|
247
|
-
region: GetUserRequestRegion.pipe(T.Label()),
|
|
248
|
-
instanceId: S.String.pipe(T.Label()),
|
|
249
|
-
userId: S.Number.pipe(T.Label()),
|
|
250
|
-
}).pipe(T.Http({
|
|
251
|
-
method: "GET",
|
|
252
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
253
|
-
code: 200,
|
|
254
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
255
|
-
}))).annotate({ identifier: "GetUserRequest" });
|
|
256
|
-
export const GetUserResponseRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
257
|
-
export const GetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
258
|
-
default_database: S.String,
|
|
259
|
-
host: S.String,
|
|
260
|
-
id: S.Number,
|
|
261
|
-
port: S.Number,
|
|
262
|
-
roles: GetUserResponseRolesList,
|
|
263
|
-
status: S.String,
|
|
264
|
-
username: S.String,
|
|
265
|
-
})).annotate({ identifier: "GetUserResponse" });
|
|
266
|
-
export const ListBackupsRequestRegion = S.String;
|
|
267
|
-
export const BackupSort = S.String;
|
|
268
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
-
projectId: S.String.pipe(T.Label()),
|
|
270
|
-
region: ListBackupsRequestRegion.pipe(T.Label()),
|
|
271
|
-
instanceId: S.String.pipe(T.Label()),
|
|
272
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
273
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
274
|
-
sort: S.optional(BackupSort.pipe(T.Query())),
|
|
275
|
-
}).pipe(T.Http({
|
|
276
|
-
method: "GET",
|
|
277
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
278
|
-
code: 200,
|
|
279
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
280
|
-
}))).annotate({ identifier: "ListBackupsRequest" });
|
|
281
|
-
export const ListBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
|
-
completionTime: S.String,
|
|
283
|
-
id: S.Number,
|
|
284
|
-
name: S.String,
|
|
285
|
-
retainedUntil: S.String,
|
|
286
|
-
size: S.Number,
|
|
287
|
-
type: S.String,
|
|
288
|
-
})).annotate({ identifier: "ListBackup" });
|
|
289
|
-
export const ListBackupsResponseBackupsList = /*@__PURE__*/ S.Array(ListBackup);
|
|
290
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
291
|
-
backups: ListBackupsResponseBackupsList,
|
|
292
|
-
databaseName: S.String,
|
|
293
|
-
})).annotate({ identifier: "ListBackupsResponse" });
|
|
294
|
-
export const ListBackupResponseBackupsList = /*@__PURE__*/ S.Array(ListBackupsResponse);
|
|
295
|
-
export const Pagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
296
|
-
page: S.Number,
|
|
297
|
-
size: S.Number,
|
|
298
|
-
sort: S.String,
|
|
299
|
-
totalPages: S.Number,
|
|
300
|
-
totalRows: S.Number,
|
|
301
|
-
})).annotate({ identifier: "Pagination" });
|
|
302
|
-
export const ListBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
303
|
-
backups: ListBackupResponseBackupsList,
|
|
304
|
-
pagination: Pagination,
|
|
305
|
-
})).annotate({ identifier: "ListBackupResponse" });
|
|
306
|
-
export const ListCollationsRequestRegion = S.String;
|
|
307
|
-
export const ListCollationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
308
|
-
projectId: S.String.pipe(T.Label()),
|
|
309
|
-
region: ListCollationsRequestRegion.pipe(T.Label()),
|
|
310
|
-
instanceId: S.String.pipe(T.Label()),
|
|
311
|
-
}).pipe(T.Http({
|
|
312
|
-
method: "GET",
|
|
313
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",
|
|
314
|
-
code: 200,
|
|
315
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
316
|
-
}))).annotate({ identifier: "ListCollationsRequest" });
|
|
317
|
-
export const DatabaseGetcollation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
318
|
-
collation_name: S.optional(S.String),
|
|
319
|
-
description: S.optional(S.String),
|
|
320
|
-
})).annotate({ identifier: "DatabaseGetcollation" });
|
|
321
|
-
export const ListCollationsResponseCollationsList = /*@__PURE__*/ S.Array(DatabaseGetcollation);
|
|
322
|
-
export const ListCollationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
-
collations: ListCollationsResponseCollationsList,
|
|
324
|
-
})).annotate({ identifier: "ListCollationsResponse" });
|
|
325
|
-
export const ListCompatibilitiesRequestRegion = S.String;
|
|
326
|
-
export const ListCompatibilitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
-
projectId: S.String.pipe(T.Label()),
|
|
328
|
-
region: ListCompatibilitiesRequestRegion.pipe(T.Label()),
|
|
329
|
-
instanceId: S.String.pipe(T.Label()),
|
|
330
|
-
}).pipe(T.Http({
|
|
331
|
-
method: "GET",
|
|
332
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/compatibility",
|
|
333
|
-
code: 200,
|
|
334
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
335
|
-
}))).annotate({
|
|
336
|
-
identifier: "ListCompatibilitiesRequest",
|
|
337
|
-
});
|
|
338
|
-
export const DatabaseGetcompatibility = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
339
|
-
compatibility_level: S.optional(S.Number),
|
|
340
|
-
description: S.optional(S.String),
|
|
341
|
-
})).annotate({ identifier: "DatabaseGetcompatibility" });
|
|
342
|
-
export const ListCompatibilityResponseCompatibilitiesList = /*@__PURE__*/ S.Array(DatabaseGetcompatibility);
|
|
343
|
-
export const ListCompatibilityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
344
|
-
compatibilities: ListCompatibilityResponseCompatibilitiesList,
|
|
345
|
-
})).annotate({
|
|
346
|
-
identifier: "ListCompatibilityResponse",
|
|
347
|
-
});
|
|
348
|
-
export const ListCurrentRunningRestoreJobsRequestRegion = S.String;
|
|
349
|
-
export const ListCurrentRunningRestoreJobsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
350
|
-
projectId: S.String.pipe(T.Label()),
|
|
351
|
-
region: ListCurrentRunningRestoreJobsRequestRegion.pipe(T.Label()),
|
|
352
|
-
instanceId: S.String.pipe(T.Label()),
|
|
353
|
-
}).pipe(T.Http({
|
|
354
|
-
method: "GET",
|
|
355
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restore-jobs",
|
|
356
|
-
code: 200,
|
|
357
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
358
|
-
}))).annotate({
|
|
359
|
-
identifier: "ListCurrentRunningRestoreJobsRequest",
|
|
360
|
-
});
|
|
361
|
-
export const BackupRunningRestore = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
362
|
-
command: S.String,
|
|
363
|
-
database_name: S.String,
|
|
364
|
-
estimated_completion_time: S.String,
|
|
365
|
-
percent_complete: S.Number,
|
|
366
|
-
start_time: S.String,
|
|
367
|
-
})).annotate({ identifier: "BackupRunningRestore" });
|
|
368
|
-
export const ListCurrentRunningRestoreJobsRunningRestoresList = /*@__PURE__*/ S.Array(BackupRunningRestore);
|
|
369
|
-
export const ListCurrentRunningRestoreJobs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
370
|
-
runningRestores: ListCurrentRunningRestoreJobsRunningRestoresList,
|
|
371
|
-
})).annotate({
|
|
372
|
-
identifier: "ListCurrentRunningRestoreJobs",
|
|
373
|
-
});
|
|
374
|
-
export const ListDatabasesRequestRegion = S.String;
|
|
375
|
-
export const DatabaseSort = S.String;
|
|
376
|
-
export const ListDatabasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
377
|
-
projectId: S.String.pipe(T.Label()),
|
|
378
|
-
region: ListDatabasesRequestRegion.pipe(T.Label()),
|
|
379
|
-
instanceId: S.String.pipe(T.Label()),
|
|
380
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
381
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
382
|
-
sort: S.optional(DatabaseSort.pipe(T.Query())),
|
|
383
|
-
}).pipe(T.Http({
|
|
384
|
-
method: "GET",
|
|
385
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
386
|
-
code: 200,
|
|
387
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
388
|
-
}))).annotate({ identifier: "ListDatabasesRequest" });
|
|
389
|
-
export const ListDatabase = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
390
|
-
created: S.String,
|
|
391
|
-
id: S.Number,
|
|
392
|
-
name: S.String,
|
|
393
|
-
owner: S.String,
|
|
394
|
-
})).annotate({ identifier: "ListDatabase" });
|
|
395
|
-
export const ListDatabasesResponseDatabasesList = /*@__PURE__*/ S.Array(ListDatabase);
|
|
396
|
-
export const ListDatabasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
397
|
-
databases: ListDatabasesResponseDatabasesList,
|
|
398
|
-
pagination: Pagination,
|
|
399
|
-
})).annotate({ identifier: "ListDatabasesResponse" });
|
|
400
|
-
export const ListFlavorsRequestRegion = S.String;
|
|
401
|
-
export const FlavorSort = S.String;
|
|
402
|
-
export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
403
|
-
projectId: S.String.pipe(T.Label()),
|
|
404
|
-
region: ListFlavorsRequestRegion.pipe(T.Label()),
|
|
405
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
406
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
407
|
-
sort: S.optional(FlavorSort.pipe(T.Query())),
|
|
408
|
-
}).pipe(T.Http({
|
|
409
|
-
method: "GET",
|
|
410
|
-
uri: "/v3/projects/{projectId}/regions/{region}/flavors",
|
|
411
|
-
code: 200,
|
|
412
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
413
|
-
}))).annotate({ identifier: "ListFlavorsRequest" });
|
|
414
|
-
export const FlavorStorageClassesStorageClass = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
415
|
-
class: S.String,
|
|
416
|
-
maxIoPerSec: S.Number,
|
|
417
|
-
maxThroughInMb: S.Number,
|
|
418
|
-
})).annotate({
|
|
419
|
-
identifier: "FlavorStorageClassesStorageClass",
|
|
420
|
-
});
|
|
421
|
-
export const FlavorStorageClasses = /*@__PURE__*/ S.Array(FlavorStorageClassesStorageClass);
|
|
422
|
-
export const ListFlavors = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
423
|
-
cpu: S.Number,
|
|
424
|
-
description: S.String,
|
|
425
|
-
id: S.String,
|
|
426
|
-
maxGB: S.Number,
|
|
427
|
-
memory: S.Number,
|
|
428
|
-
minGB: S.Number,
|
|
429
|
-
nodeType: S.String,
|
|
430
|
-
storageClasses: FlavorStorageClasses,
|
|
431
|
-
})).annotate({ identifier: "ListFlavors" });
|
|
432
|
-
export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(ListFlavors);
|
|
433
|
-
export const ListFlavorsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
434
|
-
flavors: ListFlavorsResponseFlavorsList,
|
|
435
|
-
pagination: Pagination,
|
|
436
|
-
})).annotate({ identifier: "ListFlavorsResponse" });
|
|
437
|
-
export const ListInstancesRequestRegion = S.String;
|
|
438
|
-
export const InstanceSort = S.String;
|
|
439
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
440
|
-
projectId: S.String.pipe(T.Label()),
|
|
441
|
-
region: ListInstancesRequestRegion.pipe(T.Label()),
|
|
442
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
443
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
444
|
-
sort: S.optional(InstanceSort.pipe(T.Query())),
|
|
445
|
-
}).pipe(T.Http({
|
|
446
|
-
method: "GET",
|
|
447
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
448
|
-
code: 200,
|
|
449
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
450
|
-
}))).annotate({ identifier: "ListInstancesRequest" });
|
|
451
|
-
export const ListInstance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
452
|
-
id: S.String,
|
|
453
|
-
isDeletable: S.Boolean,
|
|
454
|
-
name: S.String,
|
|
455
|
-
state: State,
|
|
456
|
-
})).annotate({ identifier: "ListInstance" });
|
|
457
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(ListInstance);
|
|
458
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
459
|
-
instances: ListInstancesResponseInstancesList,
|
|
460
|
-
pagination: Pagination,
|
|
461
|
-
})).annotate({ identifier: "ListInstancesResponse" });
|
|
462
|
-
export const ListRolesRequestRegion = S.String;
|
|
463
|
-
export const ListRolesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
464
|
-
projectId: S.String.pipe(T.Label()),
|
|
465
|
-
region: ListRolesRequestRegion.pipe(T.Label()),
|
|
466
|
-
instanceId: S.String.pipe(T.Label()),
|
|
467
|
-
}).pipe(T.Http({
|
|
468
|
-
method: "GET",
|
|
469
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",
|
|
470
|
-
code: 200,
|
|
471
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
472
|
-
}))).annotate({ identifier: "ListRolesRequest" });
|
|
473
|
-
export const ListRolesResponseRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
474
|
-
export const ListRolesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
475
|
-
roles: ListRolesResponseRolesList,
|
|
476
|
-
})).annotate({ identifier: "ListRolesResponse" });
|
|
477
|
-
export const ListStoragesRequestRegion = S.String;
|
|
478
|
-
export const ListStoragesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
479
|
-
projectId: S.String.pipe(T.Label()),
|
|
480
|
-
region: ListStoragesRequestRegion.pipe(T.Label()),
|
|
481
|
-
flavorId: S.String.pipe(T.Label()),
|
|
482
|
-
}).pipe(T.Http({
|
|
483
|
-
method: "GET",
|
|
484
|
-
uri: "/v3/projects/{projectId}/regions/{region}/storages/{flavorId}",
|
|
485
|
-
code: 200,
|
|
486
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
487
|
-
}))).annotate({ identifier: "ListStoragesRequest" });
|
|
488
|
-
export const FlavorStorageRange = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
489
|
-
max: S.Number,
|
|
490
|
-
min: S.Number,
|
|
491
|
-
})).annotate({ identifier: "FlavorStorageRange" });
|
|
492
|
-
export const ListStoragesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
493
|
-
storageClasses: FlavorStorageClasses,
|
|
494
|
-
storageRange: FlavorStorageRange,
|
|
495
|
-
})).annotate({ identifier: "ListStoragesResponse" });
|
|
496
|
-
export const ListUsersRequestRegion = S.String;
|
|
497
|
-
export const UserSort = S.String;
|
|
498
|
-
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
499
|
-
projectId: S.String.pipe(T.Label()),
|
|
500
|
-
region: ListUsersRequestRegion.pipe(T.Label()),
|
|
501
|
-
instanceId: S.String.pipe(T.Label()),
|
|
502
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
503
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
504
|
-
sort: S.optional(UserSort.pipe(T.Query())),
|
|
505
|
-
}).pipe(T.Http({
|
|
506
|
-
method: "GET",
|
|
507
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
508
|
-
code: 200,
|
|
509
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
510
|
-
}))).annotate({ identifier: "ListUsersRequest" });
|
|
511
|
-
export const ListUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
512
|
-
id: S.Number,
|
|
513
|
-
status: S.String,
|
|
514
|
-
username: S.String,
|
|
515
|
-
})).annotate({ identifier: "ListUser" });
|
|
516
|
-
export const ListUserResponseUsersList = /*@__PURE__*/ S.Array(ListUser);
|
|
517
|
-
export const ListUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
518
|
-
pagination: Pagination,
|
|
519
|
-
users: ListUserResponseUsersList,
|
|
520
|
-
})).annotate({ identifier: "ListUserResponse" });
|
|
521
|
-
export const ListVersionsRequestRegion = S.String;
|
|
522
|
-
export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
523
|
-
projectId: S.String.pipe(T.Label()),
|
|
524
|
-
region: ListVersionsRequestRegion.pipe(T.Label()),
|
|
525
|
-
}).pipe(T.Http({
|
|
526
|
-
method: "GET",
|
|
527
|
-
uri: "/v3/projects/{projectId}/regions/{region}/versions",
|
|
528
|
-
code: 200,
|
|
529
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
530
|
-
}))).annotate({ identifier: "ListVersionsRequest" });
|
|
531
|
-
export const Version = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
532
|
-
beta: S.Boolean,
|
|
533
|
-
deprecated: S.String,
|
|
534
|
-
recommend: S.Boolean,
|
|
535
|
-
version: S.String,
|
|
536
|
-
})).annotate({ identifier: "Version" });
|
|
537
|
-
export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(Version);
|
|
538
|
-
export const ListVersionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
539
|
-
versions: ListVersionsResponseVersionsList,
|
|
540
|
-
})).annotate({ identifier: "ListVersionsResponse" });
|
|
541
|
-
export const PartialUpdateInstanceRequestRegion = S.String;
|
|
542
|
-
export const PartialUpdateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
543
|
-
acl: S.optional(Acl),
|
|
544
|
-
})).annotate({
|
|
545
|
-
identifier: "PartialUpdateInstanceRequestNetwork",
|
|
546
|
-
});
|
|
547
|
-
export const StorageUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
548
|
-
size: S.optional(S.Number),
|
|
549
|
-
})).annotate({ identifier: "StorageUpdate" });
|
|
550
|
-
export const InstanceVersionOpt = S.String;
|
|
551
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
552
|
-
projectId: S.String.pipe(T.Label()),
|
|
553
|
-
region: PartialUpdateInstanceRequestRegion.pipe(T.Label()),
|
|
554
|
-
instanceId: S.String.pipe(T.Label()),
|
|
555
|
-
backupSchedule: S.optional(S.String),
|
|
556
|
-
flavorId: S.optional(S.String),
|
|
557
|
-
labels: S.optional(Labels),
|
|
558
|
-
name: S.optional(S.String),
|
|
559
|
-
network: S.optional(PartialUpdateInstanceRequestNetwork),
|
|
560
|
-
retentionDays: S.optional(S.Number),
|
|
561
|
-
storage: S.optional(StorageUpdate),
|
|
562
|
-
version: S.optional(InstanceVersionOpt),
|
|
563
|
-
}).pipe(T.Http({
|
|
564
|
-
method: "PATCH",
|
|
565
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
566
|
-
code: 200,
|
|
567
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
568
|
-
}))).annotate({
|
|
569
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
570
|
-
});
|
|
571
|
-
export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
572
|
-
identifier: "PartialUpdateInstanceResponse",
|
|
573
|
-
});
|
|
574
|
-
export const ResetUserRequestRegion = S.String;
|
|
575
|
-
export const ResetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
576
|
-
projectId: S.String.pipe(T.Label()),
|
|
577
|
-
region: ResetUserRequestRegion.pipe(T.Label()),
|
|
578
|
-
instanceId: S.String.pipe(T.Label()),
|
|
579
|
-
userId: S.Number.pipe(T.Label()),
|
|
580
|
-
}).pipe(T.Http({
|
|
581
|
-
method: "POST",
|
|
582
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
583
|
-
code: 200,
|
|
584
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
585
|
-
}))).annotate({ identifier: "ResetUserRequest" });
|
|
586
|
-
export const ResetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
587
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
588
|
-
status: S.String,
|
|
589
|
-
uri: S.String,
|
|
590
|
-
username: S.String,
|
|
591
|
-
})).annotate({ identifier: "ResetUserResponse" });
|
|
592
|
-
export const RestoreDatabaseFromBackupRequestRegion = S.String;
|
|
593
|
-
export const SourceBackupType = S.String;
|
|
594
|
-
export const SourceBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
595
|
-
type: SourceBackupType,
|
|
596
|
-
})).annotate({ identifier: "SourceBackup" });
|
|
597
|
-
export const S3fileInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
598
|
-
file_number: S.optional(S.Number),
|
|
599
|
-
file_path: S.optional(S.String),
|
|
600
|
-
})).annotate({ identifier: "S3fileInfo" });
|
|
601
|
-
export const ExternalS3S3FilesList = /*@__PURE__*/ S.Array(S3fileInfo);
|
|
602
|
-
export const ExternalS3 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
603
|
-
s3_access_key: S.String,
|
|
604
|
-
s3_access_secret: S.String.pipe(T.SensitiveValue({})),
|
|
605
|
-
s3_bucket: S.String,
|
|
606
|
-
s3_files: ExternalS3S3FilesList,
|
|
607
|
-
})).annotate({ identifier: "ExternalS3" });
|
|
608
|
-
export const SourceExternalS3Type = S.String;
|
|
609
|
-
export const SourceExternalS3 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
610
|
-
database_owner: S.String,
|
|
611
|
-
logging_guid: S.optional(S.String),
|
|
612
|
-
s3_details: ExternalS3,
|
|
613
|
-
type: SourceExternalS3Type,
|
|
614
|
-
})).annotate({ identifier: "SourceExternalS3" });
|
|
615
|
-
export const RestoreDatabaseFromBackupRequestSource =
|
|
616
|
-
/*@__PURE__*/ S.Unknown;
|
|
617
|
-
export const RestoreDatabaseFromBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
618
|
-
projectId: S.String.pipe(T.Label()),
|
|
619
|
-
region: RestoreDatabaseFromBackupRequestRegion.pipe(T.Label()),
|
|
620
|
-
instanceId: S.String.pipe(T.Label()),
|
|
621
|
-
database_name: S.String,
|
|
622
|
-
source: RestoreDatabaseFromBackupRequestSource,
|
|
623
|
-
}).pipe(T.Http({
|
|
624
|
-
method: "POST",
|
|
625
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
626
|
-
code: 200,
|
|
627
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
628
|
-
}))).annotate({
|
|
629
|
-
identifier: "RestoreDatabaseFromBackupRequest",
|
|
630
|
-
});
|
|
631
|
-
export const RestoreDatabaseFromBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
632
|
-
identifier: "RestoreDatabaseFromBackupResponse",
|
|
633
|
-
});
|
|
634
|
-
export const TriggerBackupRequestRegion = S.String;
|
|
635
|
-
export const TriggerBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
636
|
-
projectId: S.String.pipe(T.Label()),
|
|
637
|
-
region: TriggerBackupRequestRegion.pipe(T.Label()),
|
|
638
|
-
instanceId: S.String.pipe(T.Label()),
|
|
639
|
-
databaseName: S.String.pipe(T.Label()),
|
|
640
|
-
}).pipe(T.Http({
|
|
641
|
-
method: "POST",
|
|
642
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}",
|
|
643
|
-
code: 200,
|
|
644
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
645
|
-
}))).annotate({ identifier: "TriggerBackupRequest" });
|
|
646
|
-
export const TriggerBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
647
|
-
identifier: "TriggerBackupResponse",
|
|
648
|
-
});
|
|
649
|
-
export const TriggerRestoreRequestRegion = S.String;
|
|
650
|
-
export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
651
|
-
projectId: S.String.pipe(T.Label()),
|
|
652
|
-
region: TriggerRestoreRequestRegion.pipe(T.Label()),
|
|
653
|
-
instanceId: S.String.pipe(T.Label()),
|
|
654
|
-
databaseName: S.String.pipe(T.Label()),
|
|
655
|
-
name: S.String,
|
|
656
|
-
restoreDateTime: S.String,
|
|
657
|
-
}).pipe(T.Http({
|
|
658
|
-
method: "POST",
|
|
659
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}/restores",
|
|
660
|
-
code: 200,
|
|
661
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
662
|
-
}))).annotate({ identifier: "TriggerRestoreRequest" });
|
|
663
|
-
export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
664
|
-
identifier: "TriggerRestoreResponse",
|
|
665
|
-
});
|
|
666
|
-
export const UpdateInstanceRequestRegion = S.String;
|
|
667
|
-
export const UpdateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
668
|
-
acl: Acl,
|
|
669
|
-
})).annotate({
|
|
670
|
-
identifier: "UpdateInstanceRequestNetwork",
|
|
671
|
-
});
|
|
672
|
-
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
673
|
-
projectId: S.String.pipe(T.Label()),
|
|
674
|
-
region: UpdateInstanceRequestRegion.pipe(T.Label()),
|
|
675
|
-
instanceId: S.String.pipe(T.Label()),
|
|
676
|
-
backupSchedule: S.String,
|
|
677
|
-
flavorId: S.String,
|
|
678
|
-
labels: S.optional(Labels),
|
|
679
|
-
name: S.String,
|
|
680
|
-
network: UpdateInstanceRequestNetwork,
|
|
681
|
-
retentionDays: S.Number,
|
|
682
|
-
storage: StorageUpdate,
|
|
683
|
-
version: InstanceVersion,
|
|
684
|
-
}).pipe(T.Http({
|
|
685
|
-
method: "PUT",
|
|
686
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
687
|
-
code: 200,
|
|
688
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
689
|
-
}))).annotate({ identifier: "UpdateInstanceRequest" });
|
|
690
|
-
export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
691
|
-
identifier: "UpdateInstanceResponse",
|
|
692
|
-
});
|
|
693
|
-
export const UpdateInstanceProtectionRequestRegion = S.String;
|
|
694
|
-
export const UpdateInstanceProtectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
695
|
-
projectId: S.String.pipe(T.Label()),
|
|
696
|
-
region: UpdateInstanceProtectionRequestRegion.pipe(T.Label()),
|
|
697
|
-
instanceId: S.String.pipe(T.Label()),
|
|
698
|
-
isDeletable: S.Boolean,
|
|
699
|
-
}).pipe(T.Http({
|
|
700
|
-
method: "POST",
|
|
701
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",
|
|
702
|
-
code: 200,
|
|
703
|
-
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
704
|
-
}))).annotate({
|
|
705
|
-
identifier: "UpdateInstanceProtectionRequest",
|
|
706
|
-
});
|
|
707
|
-
export const UpdateInstanceProtectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
708
|
-
isDeletable: S.Boolean,
|
|
709
|
-
})).annotate({
|
|
710
|
-
identifier: "UpdateInstanceProtectionResponse",
|
|
711
|
-
});
|
|
712
|
-
/** Create Database Create database for a user. Note: The name of a valid user must be provided in the 'options' map field using the key 'owner' */
|
|
713
|
-
export const createDatabase = /*@__PURE__*/ API.make(() => ({
|
|
714
|
-
input: CreateDatabaseRequest,
|
|
715
|
-
output: CreateDatabaseResponse,
|
|
716
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
717
|
-
protocol: StackitProtocol,
|
|
718
|
-
retry: Retry.Retry,
|
|
719
|
-
}));
|
|
720
|
-
/** Create Instance Create a new instance of a sqlserver database instance. */
|
|
721
|
-
export const createInstance = /*@__PURE__*/ API.make(() => ({
|
|
722
|
-
input: CreateInstanceRequest,
|
|
723
|
-
output: CreateInstanceResponse,
|
|
724
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
725
|
-
protocol: StackitProtocol,
|
|
726
|
-
retry: Retry.Retry,
|
|
727
|
-
}));
|
|
728
|
-
/** Create User Create user for an instance. */
|
|
729
|
-
export const createUser = /*@__PURE__*/ API.make(() => ({
|
|
730
|
-
input: CreateUserRequest,
|
|
731
|
-
output: CreateUserResponse,
|
|
732
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
733
|
-
protocol: StackitProtocol,
|
|
734
|
-
retry: Retry.Retry,
|
|
735
|
-
}));
|
|
736
|
-
/** Delete Database Delete database for an instance. */
|
|
737
|
-
export const deleteDatabase = /*@__PURE__*/ API.make(() => ({
|
|
738
|
-
input: DeleteDatabaseRequest,
|
|
739
|
-
output: DeleteDatabaseResponse,
|
|
740
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
741
|
-
protocol: StackitProtocol,
|
|
742
|
-
retry: Retry.Retry,
|
|
743
|
-
}));
|
|
744
|
-
/** Delete Instance Delete an available sqlserver instance. */
|
|
745
|
-
export const deleteInstance = /*@__PURE__*/ API.make(() => ({
|
|
746
|
-
input: DeleteInstanceRequest,
|
|
747
|
-
output: DeleteInstanceResponse,
|
|
748
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
749
|
-
protocol: StackitProtocol,
|
|
750
|
-
retry: Retry.Retry,
|
|
751
|
-
}));
|
|
752
|
-
/** Delete User Delete an user from a specific instance. */
|
|
753
|
-
export const deleteUser = /*@__PURE__*/ API.make(() => ({
|
|
754
|
-
input: DeleteUserRequest,
|
|
755
|
-
output: DeleteUserResponse,
|
|
756
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
757
|
-
protocol: StackitProtocol,
|
|
758
|
-
retry: Retry.Retry,
|
|
759
|
-
}));
|
|
760
|
-
/** Get specific backup Get information about a specific backup for an instance. */
|
|
761
|
-
export const getBackup = /*@__PURE__*/ API.make(() => ({
|
|
762
|
-
input: GetBackupRequest,
|
|
763
|
-
output: GetBackupResponse,
|
|
764
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
765
|
-
protocol: StackitProtocol,
|
|
766
|
-
retry: Retry.Retry,
|
|
767
|
-
}));
|
|
768
|
-
/** Get Database Get specific available database */
|
|
769
|
-
export const getDatabase = /*@__PURE__*/ API.make(() => ({
|
|
770
|
-
input: GetDatabaseRequest,
|
|
771
|
-
output: GetDatabaseResponse,
|
|
772
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
773
|
-
protocol: StackitProtocol,
|
|
774
|
-
retry: Retry.Retry,
|
|
775
|
-
}));
|
|
776
|
-
/** Get Specific Instance Get information about a specific available instance */
|
|
777
|
-
export const getInstance = /*@__PURE__*/ API.make(() => ({
|
|
778
|
-
input: GetInstanceRequest,
|
|
779
|
-
output: GetInstanceResponse,
|
|
780
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
781
|
-
protocol: StackitProtocol,
|
|
782
|
-
retry: Retry.Retry,
|
|
783
|
-
}));
|
|
784
|
-
/** Get User Get a specific available user for an instance. */
|
|
785
|
-
export const getUser = /*@__PURE__*/ API.make(() => ({
|
|
786
|
-
input: GetUserRequest,
|
|
787
|
-
output: GetUserResponse,
|
|
788
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
789
|
-
protocol: StackitProtocol,
|
|
790
|
-
retry: Retry.Retry,
|
|
791
|
-
}));
|
|
792
|
-
/** List backups List all backups which are available for a specific instance. */
|
|
793
|
-
export const listBackups = /*@__PURE__*/ API.make(() => ({
|
|
794
|
-
input: ListBackupsRequest,
|
|
795
|
-
output: ListBackupResponse,
|
|
796
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
797
|
-
protocol: StackitProtocol,
|
|
798
|
-
retry: Retry.Retry,
|
|
799
|
-
}));
|
|
800
|
-
/** Get database collation list Returns a list of collations for an instance */
|
|
801
|
-
export const listCollations = /*@__PURE__*/ API.make(() => ({
|
|
802
|
-
input: ListCollationsRequest,
|
|
803
|
-
output: ListCollationsResponse,
|
|
804
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
805
|
-
protocol: StackitProtocol,
|
|
806
|
-
retry: Retry.Retry,
|
|
807
|
-
}));
|
|
808
|
-
/** Get database compatibility list Returns a list of compatibility levels for creating a new database */
|
|
809
|
-
export const listCompatibilities = /*@__PURE__*/ API.make(() => ({
|
|
810
|
-
input: ListCompatibilitiesRequest,
|
|
811
|
-
output: ListCompatibilityResponse,
|
|
812
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
813
|
-
protocol: StackitProtocol,
|
|
814
|
-
retry: Retry.Retry,
|
|
815
|
-
}));
|
|
816
|
-
/** List current running restore jobs List all currently running restore jobs which are available for a specific instance */
|
|
817
|
-
export const listCurrentRunningRestoreJobs2 = /*@__PURE__*/ API.make(() => ({
|
|
818
|
-
input: ListCurrentRunningRestoreJobsRequest,
|
|
819
|
-
output: ListCurrentRunningRestoreJobs,
|
|
820
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
821
|
-
protocol: StackitProtocol,
|
|
822
|
-
retry: Retry.Retry,
|
|
823
|
-
}));
|
|
824
|
-
/** List Databases List available databases for an instance. */
|
|
825
|
-
export const listDatabases = /*@__PURE__*/ API.make(() => ({
|
|
826
|
-
input: ListDatabasesRequest,
|
|
827
|
-
output: ListDatabasesResponse,
|
|
828
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
829
|
-
protocol: StackitProtocol,
|
|
830
|
-
retry: Retry.Retry,
|
|
831
|
-
}));
|
|
832
|
-
/** Get Flavors Get all available flavors for a project. */
|
|
833
|
-
export const listFlavors2 = /*@__PURE__*/ API.make(() => ({
|
|
834
|
-
input: ListFlavorsRequest,
|
|
835
|
-
output: ListFlavorsResponse,
|
|
836
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
837
|
-
protocol: StackitProtocol,
|
|
838
|
-
retry: Retry.Retry,
|
|
839
|
-
}));
|
|
840
|
-
/** List Instances List all available instances for your project. */
|
|
841
|
-
export const listInstances = /*@__PURE__*/ API.make(() => ({
|
|
842
|
-
input: ListInstancesRequest,
|
|
843
|
-
output: ListInstancesResponse,
|
|
844
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
845
|
-
protocol: StackitProtocol,
|
|
846
|
-
retry: Retry.Retry,
|
|
847
|
-
}));
|
|
848
|
-
/** List Roles List available roles for an instance that can be assigned to a user */
|
|
849
|
-
export const listRoles = /*@__PURE__*/ API.make(() => ({
|
|
850
|
-
input: ListRolesRequest,
|
|
851
|
-
output: ListRolesResponse,
|
|
852
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
853
|
-
protocol: StackitProtocol,
|
|
854
|
-
retry: Retry.Retry,
|
|
855
|
-
}));
|
|
856
|
-
/** Get Storages Get available storages for a specific flavor */
|
|
857
|
-
export const listStorages = /*@__PURE__*/ API.make(() => ({
|
|
858
|
-
input: ListStoragesRequest,
|
|
859
|
-
output: ListStoragesResponse,
|
|
860
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
861
|
-
protocol: StackitProtocol,
|
|
862
|
-
retry: Retry.Retry,
|
|
863
|
-
}));
|
|
864
|
-
/** List Users List available users for an instance. */
|
|
865
|
-
export const listUsers = /*@__PURE__*/ API.make(() => ({
|
|
866
|
-
input: ListUsersRequest,
|
|
867
|
-
output: ListUserResponse,
|
|
868
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
869
|
-
protocol: StackitProtocol,
|
|
870
|
-
retry: Retry.Retry,
|
|
871
|
-
}));
|
|
872
|
-
/** Get Versions Get the sqlserver available versions for the project. */
|
|
873
|
-
export const listVersions = /*@__PURE__*/ API.make(() => ({
|
|
874
|
-
input: ListVersionsRequest,
|
|
875
|
-
output: ListVersionsResponse,
|
|
876
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
877
|
-
protocol: StackitProtocol,
|
|
878
|
-
retry: Retry.Retry,
|
|
879
|
-
}));
|
|
880
|
-
/** Update Instance Partially Update an available instance of a mssql database. No fields are required. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.** */
|
|
881
|
-
export const partialUpdateInstance = /*@__PURE__*/ API.make(() => ({
|
|
882
|
-
input: PartialUpdateInstanceRequest,
|
|
883
|
-
output: PartialUpdateInstanceResponse,
|
|
884
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
885
|
-
protocol: StackitProtocol,
|
|
886
|
-
retry: Retry.Retry,
|
|
887
|
-
}));
|
|
888
|
-
/** Reset User Reset an user from an specific instance. */
|
|
889
|
-
export const resetUser = /*@__PURE__*/ API.make(() => ({
|
|
890
|
-
input: ResetUserRequest,
|
|
891
|
-
output: ResetUserResponse,
|
|
892
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
893
|
-
protocol: StackitProtocol,
|
|
894
|
-
retry: Retry.Retry,
|
|
895
|
-
}));
|
|
896
|
-
/** Create a Restore Operation Triggers a new restore operation for the specified instance. The request body defines the source (e.g., internal backup, external S3) and the target database. */
|
|
897
|
-
export const restoreDatabaseFromBackup = /*@__PURE__*/ API.make(() => ({
|
|
898
|
-
input: RestoreDatabaseFromBackupRequest,
|
|
899
|
-
output: RestoreDatabaseFromBackupResponse,
|
|
900
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
901
|
-
protocol: StackitProtocol,
|
|
902
|
-
retry: Retry.Retry,
|
|
903
|
-
}));
|
|
904
|
-
/** Trigger backup for a specific Database Trigger backup for a specific database */
|
|
905
|
-
export const triggerBackup = /*@__PURE__*/ API.make(() => ({
|
|
906
|
-
input: TriggerBackupRequest,
|
|
907
|
-
output: TriggerBackupResponse,
|
|
908
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
909
|
-
protocol: StackitProtocol,
|
|
910
|
-
retry: Retry.Retry,
|
|
911
|
-
}));
|
|
912
|
-
/** Trigger restore for a specific Database Trigger restore for a specific Database */
|
|
913
|
-
export const triggerRestore = /*@__PURE__*/ API.make(() => ({
|
|
914
|
-
input: TriggerRestoreRequest,
|
|
915
|
-
output: TriggerRestoreResponse,
|
|
916
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
917
|
-
protocol: StackitProtocol,
|
|
918
|
-
retry: Retry.Retry,
|
|
919
|
-
}));
|
|
920
|
-
/** Update Instance Updates an available instance of a sqlserver database **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.** */
|
|
921
|
-
export const updateInstance = /*@__PURE__*/ API.make(() => ({
|
|
922
|
-
input: UpdateInstanceRequest,
|
|
923
|
-
output: UpdateInstanceResponse,
|
|
924
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
925
|
-
protocol: StackitProtocol,
|
|
926
|
-
retry: Retry.Retry,
|
|
927
|
-
}));
|
|
928
|
-
/** Protect Instance Toggle the deletion protection for an instance. */
|
|
929
|
-
export const updateInstanceProtection = /*@__PURE__*/ API.make(() => ({
|
|
930
|
-
input: UpdateInstanceProtectionRequest,
|
|
931
|
-
output: UpdateInstanceProtectionResponse,
|
|
932
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
933
|
-
protocol: StackitProtocol,
|
|
934
|
-
retry: Retry.Retry,
|
|
935
|
-
}));
|
|
1
|
+
import{_ as e,a as t,b as ee,c as n,d as r,errors$UnknownStackitError as i,f as a,g as o,h as s,i as c,l as te,m as l,n as u,o as d,p as f,protocol$StackitProtocol as p,r as ne,retry$Retry as m,s as h,t as g,traits$Http as _,traits$Label as v,traits$Query as y,traits$SensitiveValue as b,traits$applyErrorMatchers as x,u as S,v as C,x as w}from"../_bundle/sdk.js";const T=/*@__PURE__*/ s(function BadRequest(t){return e(t,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[S,w,c,d,n,x]])});const E=/*@__PURE__*/ s(function Forbidden(t){return e(t,new.target,[`$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])`,[S,ee,c,d,n,x]])});const D=/*@__PURE__*/ s(function NotFound(t){return e(t,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[S,w,c,d,n,x]])});const O=/*@__PURE__*/ s(function UnprocessableEntity(t){return e(t,new.target,[`$5($4()("UnprocessableEntity",{code:$2,message:$3}).pipe($1),[{status:422}])`,[S,w,c,d,n,x]])});const k=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#2,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$7(>3)@"CreateDatabaseRequest";$7(>4)@"CreateDatabaseResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),collation:$4($3),compatibility:$4($5),name:$3,owner:$3}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$6({id:$5})`,[S,_,v,d,r,c,h,a,T,E,D,O,i,p,m]]:l(k,e));const A=/*@__PURE__*/ C(e=>e===f?o(`CreateInstanceRequest`,`{input:#3,output:#4,errors:[$11,$12,$13,$14,$15],protocol:$16,retry:$17};$5(>5)@"%Network";$5(>6)@"StorageCreate";$5(>7)@"%";$5(>8)@"CreateInstanceResponse";$4({accessScope:$2($1),acl:#3:0});$4({class:$1,size:$6});$4({projectId:$1.pipe($8()),region:$1.pipe($8()),backupSchedule:$1,encryption:$2(#9:0),flavorId:$1,labels:$2(#10:0),name:$1,network:#1,retentionDays:$6,storage:#2,version:$1}).pipe($7({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({id:$1})`,[S,d,r,__d6,h,a,c,_,v,__d4,__d5,T,E,D,O,i,p,m]):l(A,e));const j=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#2,errors:[$10,$11,$12,$13,$14],protocol:$15,retry:$16};$7(>3)@"CreateUserRequest";$7(>4)@"CreateUserResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),default_database:$4($3),roles:#5:0,username:$3}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$6({default_database:$3,host:$3,id:$8,password:$3.pipe($9({})),port:$8,roles:#5:0,status:$3,uri:$3,username:$3})`,[S,_,v,d,r,__d6,h,a,c,b,T,E,D,O,i,p,m]]:l(j,e));const M=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteDatabaseRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,_,v,d,h,a,__d7,T,E,D,i,p,m]]:l(M,e));const N=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteInstanceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,_,v,d,h,a,__d7,T,E,D,i,p,m]]:l(N,e));const P=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"DeleteUserRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2())}).pipe($1({method:"DELETE",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,_,v,d,c,h,a,__d7,T,E,D,i,p,m]]:l(P,e));const F=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"GetBackupRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),backupId:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,_,v,d,c,h,a,__d0,T,E,D,i,p,m]]:l(F,e));const I=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#2,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetDatabaseRequest";$5(>4)@"GetDatabaseResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({collationName:$3,compatibilityLevel:$6,id:$6,name:$3,owner:$3})`,[S,_,v,d,h,a,c,T,E,D,i,p,m]]:l(I,e));const L=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#4,errors:[$12,$13,$14,$15],protocol:$16,retry:$17};$5(>5)@"GetInstanceRequest";$5(>6)@"InstanceNetwork";$5(>7)@"Storage";$5(>8)@"GetInstanceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({accessScope:$6($3),acl:$6(#7:0),instanceAddress:$6($3),routerAddress:$6($3)});$4({class:$6($3),size:$6($8)});$4({backupSchedule:$3,edition:$3,encryption:$6(#9:0),flavorId:$3,id:$3,isDeletable:$10,labels:$6(#11:0),name:$3,network:#2,replicas:$8,retentionDays:$8,state:$3,storage:#3,version:$3})`,[S,_,v,d,h,a,r,__d6,c,__d4,u,__d5,T,E,D,i,p,m]]:l(L,e));const R=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#2,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>3)@"GetUserRequest";$6(>4)@"GetUserResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$5({default_database:$3,host:$3,id:$4,port:$4,roles:#7:0,status:$3,username:$3})`,[S,_,v,d,c,h,a,__d6,T,E,D,i,p,m]]:l(R,e));const z=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#5,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>6)@"ListBackupsRequest";$10(#9:0);$8(>7)@"ListBackupsResponse";$10(#3);$8(>8)@"ListBackupResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$7({backups:#2,databaseName:$3});$7({backups:#4,pagination:#4:0})`,[S,_,v,d,__d1,y,r,h,a,__d0,g,T,E,D,i,p,m]]:l(z,e));const B=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#4,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"ListCollationsRequest";$5(>6)@"DatabaseGetcollation";$7(#2);$5(>7)@"ListCollationsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({collation_name:$6($3),description:$6($3)});$4({collations:#3})`,[S,_,v,d,h,a,r,g,T,E,D,i,p,m]]:l(B,e));const V=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#4,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$5(>5)@"ListCompatibilitiesRequest";$5(>6)@"DatabaseGetcompatibility";$8(#2);$5(>7)@"ListCompatibilityResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/compatibility",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({compatibility_level:$7($6),description:$7($3)});$4({compatibilities:#3})`,[S,_,v,d,h,a,c,r,g,T,E,D,i,p,m]]:l(V,e));const H=/*@__PURE__*/ C(e=>e===f?o(`ListCurrentRunningRestoreJobs`,`{input:#1,output:#4,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"%Request";$5(>6)@"BackupRunningRestore";$7(#2);$5(>7)@"%";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restore-jobs",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({command:$3,database_name:$3,estimated_completion_time:$3,percent_complete:$6,start_time:$3});$4({runningRestores:#3})`,[S,_,v,d,h,a,c,g,T,E,D,i,p,m]):l(H,e));const U=/*@__PURE__*/ C(e=>e===f?o(`ListDatabase`,`{input:#1,output:#4,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>5)@"%sRequest";$8(>6)@"%";$10(#2);$8(>7)@"%sResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$7({created:$3,id:$9,name:$3,owner:$3});$7({databases:#3,pagination:#4:0})`,[S,_,v,d,__d1,y,r,h,a,c,g,T,E,D,i,p,m]):l(U,e));const W=/*@__PURE__*/ C(e=>e===f?o(`ListFlavors`,`{input:#1,output:#4,errors:[$12,$13,$14,$15],protocol:$16,retry:$17};$8(>5)@"%Request";$8(>6)@"%";$11(#2);$8(>7)@"%Response";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/flavors",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$7({cpu:$9,description:$3,id:$3,maxGB:$9,memory:$9,minGB:$9,nodeType:$3,storageClasses:#10:1});$7({flavors:#3,pagination:#4:0})`,[S,_,v,d,__d1,y,r,h,a,c,__d2,g,T,E,D,i,p,m]):l(W,e));const G=/*@__PURE__*/ C(e=>e===f?o(`ListInstance`,`{input:#1,output:#4,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>5)@"%sRequest";$8(>6)@"%";$10(#2);$8(>7)@"%sResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$7({id:$3,isDeletable:$9,name:$3,state:$3});$7({instances:#3,pagination:#4:0})`,[S,_,v,d,__d1,y,r,h,a,u,g,T,E,D,i,p,m]):l(G,e));const K=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#2,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"ListRolesRequest";$5(>4)@"ListRolesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({roles:#6:0})`,[S,_,v,d,h,a,__d6,T,E,D,i,p,m]]:l(K,e));const q=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#3,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListStoragesRequest";$5(>5)@"FlavorStorageRange";$5(>6)@"ListStoragesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),flavorId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/storages/{flavorId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({max:$6,min:$6});$4({storageClasses:#7:1,storageRange:#2})`,[S,_,v,d,h,a,c,__d2,T,E,D,i,p,m]]:l(q,e));const J=/*@__PURE__*/ C(e=>e===f?o(`ListUser`,`{input:#1,output:#4,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>5)@"%sRequest";$8(>6)@"%";$10(#2);$8(>7)@"%Response";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$7({id:$9,status:$3,username:$3});$7({pagination:#4:0,users:#3})`,[S,_,v,d,__d1,y,r,h,a,c,g,T,E,D,i,p,m]):l(J,e));const Y=/*@__PURE__*/ C(e=>e===f?o(`Version`,`{input:#1,output:#4,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"List%sRequest";$5(>6)@"%";$7(#2);$5(>7)@"List%sResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/versions",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$4({beta:$6,deprecated:$3,recommend:$6,version:$3});$4({versions:#3})`,[S,_,v,d,h,a,u,g,T,E,D,i,p,m]):l(Y,e));const X=/*@__PURE__*/ C(e=>e===f?o(`PartialUpdateInstanceRequest`,`{input:#2,output:#11:0,errors:[$12,$13,$14,$15,$16],protocol:$17,retry:$18};$4(>3)@"%Network";$4(>4)@"%";$3({acl:$2(#1:0)});$3({projectId:$7.pipe($6()),region:$7.pipe($6()),instanceId:$7.pipe($6()),backupSchedule:$2($7),flavorId:$2($7),labels:$2(#8:0),name:$2($7),network:$2(#1),retentionDays:$2($9),storage:$2(#10:0),version:$2($7)}).pipe($5({method:"PATCH",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,__d6,r,h,a,_,v,d,__d5,c,__d3,__d7,T,E,D,O,i,p,m]):l(X,e));const Z=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#2,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>3)@"ResetUserRequest";$6(>4)@"ResetUserResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2())}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$5({password:$3.pipe($7({})),status:$3,uri:$3,username:$3})`,[S,_,v,d,c,h,a,b,T,E,D,O,i,p,m]]:l(Z,e));const Q=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"RestoreDatabaseFromBackupRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),database_name:$3,source:$4}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,_,v,d,te,h,a,__d7,T,E,D,i,p,m]]:l(Q,e));const $=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$5(>2)@"TriggerBackupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseName:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,_,v,d,h,a,__d7,T,E,D,O,i,p,m]]:l($,e));const re=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$5(>2)@"TriggerRestoreRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseName:$3.pipe($2()),name:$3,restoreDateTime:$3}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}/restores",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,_,v,d,h,a,__d7,T,E,D,O,i,p,m]]:l(re,e));const ie=/*@__PURE__*/ C(e=>e===f?o(`UpdateInstanceRequest`,`{input:#2,output:#11:0,errors:[$12,$13,$14,$15,$16],protocol:$17,retry:$18};$3(>3)@"%Network";$3(>4)@"%";$2({acl:#1:0});$2({projectId:$6.pipe($5()),region:$6.pipe($5()),instanceId:$6.pipe($5()),backupSchedule:$6,flavorId:$6,labels:$8(#7:0),name:$6,network:#1,retentionDays:$9,storage:#10:0,version:$6}).pipe($4({method:"PUT",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}))`,[S,__d6,h,a,_,v,d,__d5,r,c,__d3,__d7,T,E,D,O,i,p,m]):l(ie,e));const ae=/*@__PURE__*/ C(e=>e===f?[`{input:#1,output:#2,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$6(>3)@"UpdateInstanceProtectionRequest";$6(>4)@"UpdateInstanceProtectionResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),isDeletable:$4}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",code:200,baseUrl:"https://mssql-flex-service.api.stackit.cloud"}));$5({isDeletable:$4})`,[S,_,v,d,u,h,a,T,E,D,O,i,p,m]]:l(ae,e));function __d0(){return[`$4(>1)@"GetBackupResponse";$3({completionTime:$1,id:$2,name:$1,retainedUntil:$1,size:$2,type:$1})`,[S,d,c,h,a]]}function __d1(){return[`$4(>2)@"Pagination";$6($1.pipe($5()));$3({page:$1,size:$1,sort:$2,totalPages:$1,totalRows:$1})`,[S,c,d,h,a,y,r]]}function __d2(){return[`$4(>2)@"FlavorStorageClassesStorageClass";$5(#0);$3({class:$1,maxIoPerSec:$2,maxThroughInMb:$2})`,[S,d,c,h,a,g]]}function __d3(){return[`$4(>1)@"StorageUpdate";$3({size:$2($1)})`,[S,c,r,h,a]]}function __d4(){return[`$3(>1)@"InstanceEncryption";$2({kekKeyId:$1,kekKeyRingId:$1,kekKeyVersion:$1,serviceAccount:$1})`,[S,d,h,a]]}function __d5(){return[`$3($1,$2($1))`,[S,d,ne,t]]}function __d6(){return[`$2($1)`,[S,d,g]]}function __d7(){return[`$2(>1)@"DeleteDatabaseResponse";$1({})`,[S,h,a]]}export{T as BadRequest,E as Forbidden,D as NotFound,O as UnprocessableEntity,k as createDatabase,A as createInstance,j as createUser,M as deleteDatabase,N as deleteInstance,P as deleteUser,F as getBackup,I as getDatabase,L as getInstance,R as getUser,z as listBackups,B as listCollations,V as listCompatibilities,H as listCurrentRunningRestoreJobs2,U as listDatabases,W as listFlavors2,G as listInstances,K as listRoles,q as listStorages,J as listUsers,Y as listVersions,X as partialUpdateInstance,Z as resetUser,Q as restoreDatabaseFromBackup,$ as triggerBackup,re as triggerRestore,ie as updateInstance,ae as updateInstanceProtection};
|
|
2
|
+
/*
|
|
3
|
+
28 40
|
|
4
|
+
e:0:_ t:0:a ee:0:b n:0:c r:0:d i:0:errors$UnknownStackitError a:0:f o:0:g s:0:h c:0:i te:0:l l:0:m u:0:n d:0:o f:0:p p:0:protocol$StackitProtocol ne:0:r m:0:retry$Retry h:0:s g:0:t _:0:traits$Http v:0:traits$Label y:0:traits$Query b:0:traits$SensitiveValue x:0:traits$applyErrorMatchers S:0:u C:0:v w:0:x
|
|
5
|
+
000000001i0003w0005l000710008h0009z000bh000cw000eo000g6000hv000jc000kv000n5000p5000r7000t7000un000w5000y1000zp0012d0013x0015f0016y0018i001b0001cj001dd001e7001f1001fv001gu001hx001iy001jx001ku001lr001mm001nh
|
|
6
|
+
2 sp 16k k|=;t0 15f;p,k,l,d,4,9,i,6,1k,1l,1m,1n,5,f,h
|
|
7
|
+
2 17a 1p3 A|=CreateInstanceRequest;18a 1nj;p,d,4,1u,i,6,9,k,l,1s,1t,1k,1l,1m,1n,5,f,h
|
|
8
|
+
2 1pt 266 j|=;1q4 24u;p,k,l,d,4,1u,i,6,9,n,1k,1l,1m,1n,5,f,h
|
|
9
|
+
2 26w 2j4 M|=;277 2i0;p,k,l,d,i,6,1v,1k,1l,1m,5,f,h
|
|
10
|
+
2 2ju 2um N|=;2k5 2ti;p,k,l,d,i,6,1v,1k,1l,1m,5,f,h
|
|
11
|
+
2 2vc 373 P|=;2vn 35x;p,k,l,d,9,i,6,1v,1k,1l,1m,5,f,h
|
|
12
|
+
2 37t 3jm F|=;384 3ig;p,k,l,d,9,i,6,1o,1k,1l,1m,5,f,h
|
|
13
|
+
2 3kc 3yy I|=;3kn 3xx;p,k,l,d,i,6,9,1k,1l,1m,5,f,h
|
|
14
|
+
2 3zo 4l0 L|=;3zz 4jg;p,k,l,d,i,6,4,1u,9,1s,c,1t,1k,1l,1m,5,f,h
|
|
15
|
+
2 4lq 507 R|=;4m1 4z1;p,k,l,d,9,i,6,1u,1k,1l,1m,5,f,h
|
|
16
|
+
2 50x 5h7 z|=;518 5fs;p,k,l,d,1p,m,4,i,6,1o,j,1k,1l,1m,5,f,h
|
|
17
|
+
2 5hx 5wn B|=;5i8 5vk;p,k,l,d,i,6,4,j,1k,1l,1m,5,f,h
|
|
18
|
+
2 5xd 6cv V|=;5xo 6bq;p,k,l,d,i,6,9,4,j,1k,1l,1m,5,f,h
|
|
19
|
+
2 6dl 6tv H|=ListCurrentRunningRestoreJobs;6et 6ss;p,k,l,d,i,6,9,j,1k,1l,1m,5,f,h
|
|
20
|
+
2 6ul 7aa U|=ListDatabase;6vc 78y;p,k,l,d,1p,m,4,i,6,9,j,1k,1l,1m,5,f,h
|
|
21
|
+
2 7b0 7qu W|=ListFlavors;7bq 7pd;p,k,l,d,1p,m,4,i,6,9,1q,j,1k,1l,1m,5,f,h
|
|
22
|
+
2 7rk 861 G|=ListInstance;7sb 84p;p,k,l,d,1p,m,4,i,6,c,j,1k,1l,1m,5,f,h
|
|
23
|
+
2 86r 8in K|=;872 8hj;p,k,l,d,i,6,1u,1k,1l,1m,5,f,h
|
|
24
|
+
2 8jd 8x8 q|=;8jo 8w2;p,k,l,d,i,6,9,1q,1k,1l,1m,5,f,h
|
|
25
|
+
2 8xy 9d4 J|=ListUser;8yl 9bs;p,k,l,d,1p,m,4,i,6,9,j,1k,1l,1m,5,f,h
|
|
26
|
+
2 9du 9ql Y|=Version;9eg 9pi;p,k,l,d,i,6,c,j,1k,1l,1m,5,f,h
|
|
27
|
+
2 9rb a7z X|=PartialUpdateInstanceRequest;9si a6a;p,1u,4,i,6,k,l,d,1t,9,1r,1v,1k,1l,1m,1n,5,f,h
|
|
28
|
+
2 a8p amz Z|=;a90 alu;p,k,l,d,9,i,6,n,1k,1l,1m,1n,5,f,h
|
|
29
|
+
2 anp azu Q|=;ao0 ayn;p,k,l,d,a,i,6,1v,1k,1l,1m,5,f,h
|
|
30
|
+
2 b0k bd3 $|=;b0v bbx;p,k,l,d,i,6,1v,1k,1l,1m,1n,5,f,h
|
|
31
|
+
2 bdu brf re|=;be5 bq8;p,k,l,d,i,6,1v,1k,1l,1m,1n,5,f,h
|
|
32
|
+
2 bs6 c7q ie|=UpdateInstanceRequest;bt6 c60;p,1u,i,6,k,l,d,1t,4,9,1r,1v,1k,1l,1m,1n,5,f,h
|
|
33
|
+
2 c8h cm1 ae|=;c8s ckx;p,k,l,d,c,i,6,1k,1l,1m,1n,5,f,h
|
|
34
|
+
3 as eg T|=;c3 dy;p,r,9,d,3,o
|
|
35
|
+
3 f6 it E|=;gg ia;p,2,9,d,3,o
|
|
36
|
+
3 jj n3 D|=;ks ml;p,r,9,d,3,o
|
|
37
|
+
3 nt rz O|=;pd rh;p,r,9,d,3,o
|
|
38
|
+
1 cm3 cpv __d0|=;cmr cpg;p,d,9,i,6
|
|
39
|
+
1 cpv cto __d1|=;cqj ct5;p,9,d,i,6,m,4
|
|
40
|
+
1 cto cxh __d2|=;cuc cx0;p,d,9,i,6,j
|
|
41
|
+
1 cxh czo __d3|=;cy5 cz9;p,9,4,i,6
|
|
42
|
+
1 czo d3d __d4|=;d0c d30;p,d,i,6
|
|
43
|
+
1 d3d d4s __d5|=;d41 d4e;p,d,g,1
|
|
44
|
+
1 d4s d5x __d6|=;d5g d5m;p,d,j
|
|
45
|
+
1 d5x d7y __d7|=;d6l d7n;p,i,6
|
|
46
|
+
*/
|
|
936
47
|
//# sourceMappingURL=sqlserverflex.js.map
|