@distilled.cloud/stackit 0.0.0-placeholder → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +34 -0
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +48 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +562 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +545 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +992 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +197 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +339 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +375 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +423 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +513 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +542 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +636 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +498 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +611 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +356 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +319 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3407 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +623 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +789 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +1018 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +614 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +636 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +221 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +503 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +718 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +659 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +474 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +364 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +523 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +159 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +1087 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +393 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +550 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +523 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +301 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +627 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +1013 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +556 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,2543 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.ts";
|
|
7
|
+
import {
|
|
8
|
+
StackitProtocol,
|
|
9
|
+
type StackitOpError,
|
|
10
|
+
type StackitOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
|
|
15
|
+
export type { StackitOpError, StackitOpContext };
|
|
16
|
+
|
|
17
|
+
export class BadRequest
|
|
18
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
19
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
20
|
+
code: S.Number,
|
|
21
|
+
message: S.String,
|
|
22
|
+
}).pipe(C.withBadRequestError),
|
|
23
|
+
[{ status: 400 }],
|
|
24
|
+
) {}
|
|
25
|
+
|
|
26
|
+
export class Forbidden
|
|
27
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
29
|
+
code: S.Number,
|
|
30
|
+
message: S.String,
|
|
31
|
+
}).pipe(C.withAuthError),
|
|
32
|
+
[{ status: 403 }],
|
|
33
|
+
) {}
|
|
34
|
+
|
|
35
|
+
export class NotFound
|
|
36
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
37
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
38
|
+
code: S.Number,
|
|
39
|
+
message: S.String,
|
|
40
|
+
}).pipe(C.withBadRequestError),
|
|
41
|
+
[{ status: 404 }],
|
|
42
|
+
) {}
|
|
43
|
+
|
|
44
|
+
export class UnprocessableEntity
|
|
45
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
46
|
+
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
47
|
+
code: S.Number,
|
|
48
|
+
message: S.String,
|
|
49
|
+
}).pipe(C.withBadRequestError),
|
|
50
|
+
[{ status: 422 }],
|
|
51
|
+
) {}
|
|
52
|
+
|
|
53
|
+
export type CreateDatabaseRequestRegion = "eu01";
|
|
54
|
+
export const CreateDatabaseRequestRegion = /*@__PURE__*/ S.String;
|
|
55
|
+
|
|
56
|
+
export interface CreateDatabaseRequest {
|
|
57
|
+
/** The STACKIT project ID. */
|
|
58
|
+
projectId: string;
|
|
59
|
+
/** The region which should be addressed */
|
|
60
|
+
region: CreateDatabaseRequestRegion | (string & {});
|
|
61
|
+
/** The ID of the instance. */
|
|
62
|
+
instanceId: string;
|
|
63
|
+
collation?: string;
|
|
64
|
+
compatibility?: number;
|
|
65
|
+
name: string;
|
|
66
|
+
owner: string;
|
|
67
|
+
}
|
|
68
|
+
export const CreateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
69
|
+
S.Struct({
|
|
70
|
+
projectId: S.String.pipe(T.Label()),
|
|
71
|
+
region: CreateDatabaseRequestRegion.pipe(T.Label()),
|
|
72
|
+
instanceId: S.String.pipe(T.Label()),
|
|
73
|
+
collation: S.optional(S.String),
|
|
74
|
+
compatibility: S.optional(S.Number),
|
|
75
|
+
name: S.String,
|
|
76
|
+
owner: S.String,
|
|
77
|
+
}).pipe(
|
|
78
|
+
T.Http({
|
|
79
|
+
method: "POST",
|
|
80
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
81
|
+
code: 200,
|
|
82
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
83
|
+
}),
|
|
84
|
+
),
|
|
85
|
+
).annotate({
|
|
86
|
+
identifier: "CreateDatabaseRequest",
|
|
87
|
+
}) as any as S.Schema<CreateDatabaseRequest>;
|
|
88
|
+
|
|
89
|
+
export interface CreateDatabaseResponse {
|
|
90
|
+
id: number;
|
|
91
|
+
}
|
|
92
|
+
export const CreateDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
93
|
+
S.Struct({
|
|
94
|
+
id: S.Number,
|
|
95
|
+
}),
|
|
96
|
+
).annotate({
|
|
97
|
+
identifier: "CreateDatabaseResponse",
|
|
98
|
+
}) as any as S.Schema<CreateDatabaseResponse>;
|
|
99
|
+
|
|
100
|
+
export type CreateInstanceRequestRegion = "eu01";
|
|
101
|
+
export const CreateInstanceRequestRegion = /*@__PURE__*/ S.String;
|
|
102
|
+
|
|
103
|
+
/** this defines which key to use for storage encryption */
|
|
104
|
+
export interface InstanceEncryption {
|
|
105
|
+
/** The key identifier */
|
|
106
|
+
kekKeyId: string;
|
|
107
|
+
/** The keyring identifier */
|
|
108
|
+
kekKeyRingId: string;
|
|
109
|
+
/** The key version */
|
|
110
|
+
kekKeyVersion: string;
|
|
111
|
+
serviceAccount: string;
|
|
112
|
+
}
|
|
113
|
+
export const InstanceEncryption = /*@__PURE__*/ S.suspend(() =>
|
|
114
|
+
S.Struct({
|
|
115
|
+
kekKeyId: S.String,
|
|
116
|
+
kekKeyRingId: S.String,
|
|
117
|
+
kekKeyVersion: S.String,
|
|
118
|
+
serviceAccount: S.String,
|
|
119
|
+
}),
|
|
120
|
+
).annotate({
|
|
121
|
+
identifier: "InstanceEncryption",
|
|
122
|
+
}) as any as S.Schema<InstanceEncryption>;
|
|
123
|
+
|
|
124
|
+
/** A dictionary of user-defined key-value pairs used to categorize or organize the resource. **Rules for Keys:** * Must be between 1 and 63 characters long. * Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` * **Restriction:** The prefix `stackit-` is strictly reserved and cannot be used. **Rules for Values:** * Must be between 0 (empty string) and 63 characters long. * If not empty, must begin and end with an alphanumeric character. * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$` */
|
|
125
|
+
export type Labels = { [key: string]: string | undefined };
|
|
126
|
+
export const Labels = /*@__PURE__*/ S.Record(
|
|
127
|
+
S.String,
|
|
128
|
+
S.String,
|
|
129
|
+
) as any as S.Schema<Labels>;
|
|
130
|
+
|
|
131
|
+
/** The network access scope of the instance ⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. */
|
|
132
|
+
export type InstanceNetworkAccessScope = "PUBLIC" | "SNA";
|
|
133
|
+
export const InstanceNetworkAccessScope = /*@__PURE__*/ S.String;
|
|
134
|
+
|
|
135
|
+
/** List of IPV4 cidr. */
|
|
136
|
+
export type Acl = Array<string>;
|
|
137
|
+
export const Acl = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<Acl>;
|
|
138
|
+
|
|
139
|
+
/** the network configuration of the instance. */
|
|
140
|
+
export interface CreateInstanceRequestNetwork {
|
|
141
|
+
accessScope?: InstanceNetworkAccessScope | (string & {});
|
|
142
|
+
acl: Acl;
|
|
143
|
+
}
|
|
144
|
+
export const CreateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() =>
|
|
145
|
+
S.Struct({
|
|
146
|
+
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
147
|
+
acl: Acl,
|
|
148
|
+
}),
|
|
149
|
+
).annotate({
|
|
150
|
+
identifier: "CreateInstanceRequestNetwork",
|
|
151
|
+
}) as any as S.Schema<CreateInstanceRequestNetwork>;
|
|
152
|
+
|
|
153
|
+
/** The object containing information about the storage size and class. */
|
|
154
|
+
export interface StorageCreate {
|
|
155
|
+
class: string;
|
|
156
|
+
size: number;
|
|
157
|
+
}
|
|
158
|
+
export const StorageCreate = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
+
S.Struct({
|
|
160
|
+
class: S.String,
|
|
161
|
+
size: S.Number,
|
|
162
|
+
}),
|
|
163
|
+
).annotate({ identifier: "StorageCreate" }) as any as S.Schema<StorageCreate>;
|
|
164
|
+
|
|
165
|
+
/** The sqlserver version used for the instance. */
|
|
166
|
+
export type InstanceVersion = "2022";
|
|
167
|
+
export const InstanceVersion = /*@__PURE__*/ S.String;
|
|
168
|
+
|
|
169
|
+
export interface CreateInstanceRequest {
|
|
170
|
+
/** The STACKIT project ID. */
|
|
171
|
+
projectId: string;
|
|
172
|
+
/** The region which should be addressed */
|
|
173
|
+
region: CreateInstanceRequestRegion | (string & {});
|
|
174
|
+
backupSchedule: string;
|
|
175
|
+
encryption?: InstanceEncryption;
|
|
176
|
+
flavorId: string;
|
|
177
|
+
labels?: Labels;
|
|
178
|
+
name: string;
|
|
179
|
+
/** the network configuration of the instance. */
|
|
180
|
+
network: CreateInstanceRequestNetwork;
|
|
181
|
+
retentionDays: number;
|
|
182
|
+
storage: StorageCreate;
|
|
183
|
+
version: InstanceVersion | (string & {});
|
|
184
|
+
}
|
|
185
|
+
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
186
|
+
S.Struct({
|
|
187
|
+
projectId: S.String.pipe(T.Label()),
|
|
188
|
+
region: CreateInstanceRequestRegion.pipe(T.Label()),
|
|
189
|
+
backupSchedule: S.String,
|
|
190
|
+
encryption: S.optional(InstanceEncryption),
|
|
191
|
+
flavorId: S.String,
|
|
192
|
+
labels: S.optional(Labels),
|
|
193
|
+
name: S.String,
|
|
194
|
+
network: CreateInstanceRequestNetwork,
|
|
195
|
+
retentionDays: S.Number,
|
|
196
|
+
storage: StorageCreate,
|
|
197
|
+
version: InstanceVersion,
|
|
198
|
+
}).pipe(
|
|
199
|
+
T.Http({
|
|
200
|
+
method: "POST",
|
|
201
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
202
|
+
code: 200,
|
|
203
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
204
|
+
}),
|
|
205
|
+
),
|
|
206
|
+
).annotate({
|
|
207
|
+
identifier: "CreateInstanceRequest",
|
|
208
|
+
}) as any as S.Schema<CreateInstanceRequest>;
|
|
209
|
+
|
|
210
|
+
export interface CreateInstanceResponse {
|
|
211
|
+
id: string;
|
|
212
|
+
}
|
|
213
|
+
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
214
|
+
S.Struct({
|
|
215
|
+
id: S.String,
|
|
216
|
+
}),
|
|
217
|
+
).annotate({
|
|
218
|
+
identifier: "CreateInstanceResponse",
|
|
219
|
+
}) as any as S.Schema<CreateInstanceResponse>;
|
|
220
|
+
|
|
221
|
+
export type CreateUserRequestRegion = "eu01";
|
|
222
|
+
export const CreateUserRequestRegion = /*@__PURE__*/ S.String;
|
|
223
|
+
|
|
224
|
+
/** A list containing the user roles for the instance. A list with the valid user roles can be retrieved using the List Roles endpoint. */
|
|
225
|
+
export type CreateUserRequestRolesList = Array<string>;
|
|
226
|
+
export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(
|
|
227
|
+
S.String,
|
|
228
|
+
) as any as S.Schema<CreateUserRequestRolesList>;
|
|
229
|
+
|
|
230
|
+
export interface CreateUserRequest {
|
|
231
|
+
/** The STACKIT project ID. */
|
|
232
|
+
projectId: string;
|
|
233
|
+
/** The region which should be addressed */
|
|
234
|
+
region: CreateUserRequestRegion | (string & {});
|
|
235
|
+
/** The ID of the instance. */
|
|
236
|
+
instanceId: string;
|
|
237
|
+
default_database?: string;
|
|
238
|
+
/** A list containing the user roles for the instance. A list with the valid user roles can be retrieved using the List Roles endpoint. */
|
|
239
|
+
roles: CreateUserRequestRolesList;
|
|
240
|
+
username: string;
|
|
241
|
+
}
|
|
242
|
+
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
243
|
+
S.Struct({
|
|
244
|
+
projectId: S.String.pipe(T.Label()),
|
|
245
|
+
region: CreateUserRequestRegion.pipe(T.Label()),
|
|
246
|
+
instanceId: S.String.pipe(T.Label()),
|
|
247
|
+
default_database: S.optional(S.String),
|
|
248
|
+
roles: CreateUserRequestRolesList,
|
|
249
|
+
username: S.String,
|
|
250
|
+
}).pipe(
|
|
251
|
+
T.Http({
|
|
252
|
+
method: "POST",
|
|
253
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
254
|
+
code: 200,
|
|
255
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
256
|
+
}),
|
|
257
|
+
),
|
|
258
|
+
).annotate({
|
|
259
|
+
identifier: "CreateUserRequest",
|
|
260
|
+
}) as any as S.Schema<CreateUserRequest>;
|
|
261
|
+
|
|
262
|
+
export type CreateUserResponseRolesList = Array<string>;
|
|
263
|
+
export const CreateUserResponseRolesList = /*@__PURE__*/ S.Array(
|
|
264
|
+
S.String,
|
|
265
|
+
) as any as S.Schema<CreateUserResponseRolesList>;
|
|
266
|
+
|
|
267
|
+
export interface CreateUserResponse {
|
|
268
|
+
default_database: string;
|
|
269
|
+
host: string;
|
|
270
|
+
id: number;
|
|
271
|
+
password: string | Redacted.Redacted<string>;
|
|
272
|
+
port: number;
|
|
273
|
+
roles: CreateUserResponseRolesList;
|
|
274
|
+
status: string;
|
|
275
|
+
uri: string;
|
|
276
|
+
username: string;
|
|
277
|
+
}
|
|
278
|
+
export const CreateUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
279
|
+
S.Struct({
|
|
280
|
+
default_database: S.String,
|
|
281
|
+
host: S.String,
|
|
282
|
+
id: S.Number,
|
|
283
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
284
|
+
port: S.Number,
|
|
285
|
+
roles: CreateUserResponseRolesList,
|
|
286
|
+
status: S.String,
|
|
287
|
+
uri: S.String,
|
|
288
|
+
username: S.String,
|
|
289
|
+
}),
|
|
290
|
+
).annotate({
|
|
291
|
+
identifier: "CreateUserResponse",
|
|
292
|
+
}) as any as S.Schema<CreateUserResponse>;
|
|
293
|
+
|
|
294
|
+
export type DeleteDatabaseRequestRegion = "eu01";
|
|
295
|
+
export const DeleteDatabaseRequestRegion = /*@__PURE__*/ S.String;
|
|
296
|
+
|
|
297
|
+
export interface DeleteDatabaseRequest {
|
|
298
|
+
/** The STACKIT project ID. */
|
|
299
|
+
projectId: string;
|
|
300
|
+
/** The region which should be addressed */
|
|
301
|
+
region: DeleteDatabaseRequestRegion | (string & {});
|
|
302
|
+
/** The ID of the instance. */
|
|
303
|
+
instanceId: string;
|
|
304
|
+
/** The name of the database. */
|
|
305
|
+
databaseName: string;
|
|
306
|
+
}
|
|
307
|
+
export const DeleteDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
308
|
+
S.Struct({
|
|
309
|
+
projectId: S.String.pipe(T.Label()),
|
|
310
|
+
region: DeleteDatabaseRequestRegion.pipe(T.Label()),
|
|
311
|
+
instanceId: S.String.pipe(T.Label()),
|
|
312
|
+
databaseName: S.String.pipe(T.Label()),
|
|
313
|
+
}).pipe(
|
|
314
|
+
T.Http({
|
|
315
|
+
method: "DELETE",
|
|
316
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
|
|
317
|
+
code: 200,
|
|
318
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
319
|
+
}),
|
|
320
|
+
),
|
|
321
|
+
).annotate({
|
|
322
|
+
identifier: "DeleteDatabaseRequest",
|
|
323
|
+
}) as any as S.Schema<DeleteDatabaseRequest>;
|
|
324
|
+
|
|
325
|
+
export interface DeleteDatabaseResponse {}
|
|
326
|
+
export const DeleteDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
327
|
+
S.Struct({}),
|
|
328
|
+
).annotate({
|
|
329
|
+
identifier: "DeleteDatabaseResponse",
|
|
330
|
+
}) as any as S.Schema<DeleteDatabaseResponse>;
|
|
331
|
+
|
|
332
|
+
export type DeleteInstanceRequestRegion = "eu01";
|
|
333
|
+
export const DeleteInstanceRequestRegion = /*@__PURE__*/ S.String;
|
|
334
|
+
|
|
335
|
+
export interface DeleteInstanceRequest {
|
|
336
|
+
/** The STACKIT project ID. */
|
|
337
|
+
projectId: string;
|
|
338
|
+
/** The region which should be addressed */
|
|
339
|
+
region: DeleteInstanceRequestRegion | (string & {});
|
|
340
|
+
/** The ID of the instance. */
|
|
341
|
+
instanceId: string;
|
|
342
|
+
}
|
|
343
|
+
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
344
|
+
S.Struct({
|
|
345
|
+
projectId: S.String.pipe(T.Label()),
|
|
346
|
+
region: DeleteInstanceRequestRegion.pipe(T.Label()),
|
|
347
|
+
instanceId: S.String.pipe(T.Label()),
|
|
348
|
+
}).pipe(
|
|
349
|
+
T.Http({
|
|
350
|
+
method: "DELETE",
|
|
351
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
352
|
+
code: 200,
|
|
353
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
354
|
+
}),
|
|
355
|
+
),
|
|
356
|
+
).annotate({
|
|
357
|
+
identifier: "DeleteInstanceRequest",
|
|
358
|
+
}) as any as S.Schema<DeleteInstanceRequest>;
|
|
359
|
+
|
|
360
|
+
export interface DeleteInstanceResponse {}
|
|
361
|
+
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
362
|
+
S.Struct({}),
|
|
363
|
+
).annotate({
|
|
364
|
+
identifier: "DeleteInstanceResponse",
|
|
365
|
+
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
366
|
+
|
|
367
|
+
export type DeleteUserRequestRegion = "eu01";
|
|
368
|
+
export const DeleteUserRequestRegion = /*@__PURE__*/ S.String;
|
|
369
|
+
|
|
370
|
+
export interface DeleteUserRequest {
|
|
371
|
+
/** The STACKIT project ID. */
|
|
372
|
+
projectId: string;
|
|
373
|
+
/** The region which should be addressed */
|
|
374
|
+
region: DeleteUserRequestRegion | (string & {});
|
|
375
|
+
/** The ID of the instance. */
|
|
376
|
+
instanceId: string;
|
|
377
|
+
/** The ID of the user. */
|
|
378
|
+
userId: number;
|
|
379
|
+
}
|
|
380
|
+
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
381
|
+
S.Struct({
|
|
382
|
+
projectId: S.String.pipe(T.Label()),
|
|
383
|
+
region: DeleteUserRequestRegion.pipe(T.Label()),
|
|
384
|
+
instanceId: S.String.pipe(T.Label()),
|
|
385
|
+
userId: S.Number.pipe(T.Label()),
|
|
386
|
+
}).pipe(
|
|
387
|
+
T.Http({
|
|
388
|
+
method: "DELETE",
|
|
389
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
390
|
+
code: 200,
|
|
391
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
392
|
+
}),
|
|
393
|
+
),
|
|
394
|
+
).annotate({
|
|
395
|
+
identifier: "DeleteUserRequest",
|
|
396
|
+
}) as any as S.Schema<DeleteUserRequest>;
|
|
397
|
+
|
|
398
|
+
export interface DeleteUserResponse {}
|
|
399
|
+
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
400
|
+
S.Struct({}),
|
|
401
|
+
).annotate({
|
|
402
|
+
identifier: "DeleteUserResponse",
|
|
403
|
+
}) as any as S.Schema<DeleteUserResponse>;
|
|
404
|
+
|
|
405
|
+
export type GetBackupRequestRegion = "eu01";
|
|
406
|
+
export const GetBackupRequestRegion = /*@__PURE__*/ S.String;
|
|
407
|
+
|
|
408
|
+
export interface GetBackupRequest {
|
|
409
|
+
/** The STACKIT project ID. */
|
|
410
|
+
projectId: string;
|
|
411
|
+
/** The region which should be addressed */
|
|
412
|
+
region: GetBackupRequestRegion | (string & {});
|
|
413
|
+
/** The ID of the instance. */
|
|
414
|
+
instanceId: string;
|
|
415
|
+
/** The ID of the backup. */
|
|
416
|
+
backupId: number;
|
|
417
|
+
}
|
|
418
|
+
export const GetBackupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
419
|
+
S.Struct({
|
|
420
|
+
projectId: S.String.pipe(T.Label()),
|
|
421
|
+
region: GetBackupRequestRegion.pipe(T.Label()),
|
|
422
|
+
instanceId: S.String.pipe(T.Label()),
|
|
423
|
+
backupId: S.Number.pipe(T.Label()),
|
|
424
|
+
}).pipe(
|
|
425
|
+
T.Http({
|
|
426
|
+
method: "GET",
|
|
427
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
428
|
+
code: 200,
|
|
429
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
430
|
+
}),
|
|
431
|
+
),
|
|
432
|
+
).annotate({
|
|
433
|
+
identifier: "GetBackupRequest",
|
|
434
|
+
}) as any as S.Schema<GetBackupRequest>;
|
|
435
|
+
|
|
436
|
+
export interface GetBackupResponse {
|
|
437
|
+
completionTime: string;
|
|
438
|
+
id: number;
|
|
439
|
+
name: string;
|
|
440
|
+
retainedUntil: string;
|
|
441
|
+
size: number;
|
|
442
|
+
type: string;
|
|
443
|
+
}
|
|
444
|
+
export const GetBackupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
445
|
+
S.Struct({
|
|
446
|
+
completionTime: S.String,
|
|
447
|
+
id: S.Number,
|
|
448
|
+
name: S.String,
|
|
449
|
+
retainedUntil: S.String,
|
|
450
|
+
size: S.Number,
|
|
451
|
+
type: S.String,
|
|
452
|
+
}),
|
|
453
|
+
).annotate({
|
|
454
|
+
identifier: "GetBackupResponse",
|
|
455
|
+
}) as any as S.Schema<GetBackupResponse>;
|
|
456
|
+
|
|
457
|
+
export type GetDatabaseRequestRegion = "eu01";
|
|
458
|
+
export const GetDatabaseRequestRegion = /*@__PURE__*/ S.String;
|
|
459
|
+
|
|
460
|
+
export interface GetDatabaseRequest {
|
|
461
|
+
/** The STACKIT project ID. */
|
|
462
|
+
projectId: string;
|
|
463
|
+
/** The region which should be addressed */
|
|
464
|
+
region: GetDatabaseRequestRegion | (string & {});
|
|
465
|
+
/** The ID of the instance. */
|
|
466
|
+
instanceId: string;
|
|
467
|
+
/** The name of the database. */
|
|
468
|
+
databaseName: string;
|
|
469
|
+
}
|
|
470
|
+
export const GetDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
471
|
+
S.Struct({
|
|
472
|
+
projectId: S.String.pipe(T.Label()),
|
|
473
|
+
region: GetDatabaseRequestRegion.pipe(T.Label()),
|
|
474
|
+
instanceId: S.String.pipe(T.Label()),
|
|
475
|
+
databaseName: S.String.pipe(T.Label()),
|
|
476
|
+
}).pipe(
|
|
477
|
+
T.Http({
|
|
478
|
+
method: "GET",
|
|
479
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
|
|
480
|
+
code: 200,
|
|
481
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
482
|
+
}),
|
|
483
|
+
),
|
|
484
|
+
).annotate({
|
|
485
|
+
identifier: "GetDatabaseRequest",
|
|
486
|
+
}) as any as S.Schema<GetDatabaseRequest>;
|
|
487
|
+
|
|
488
|
+
export interface GetDatabaseResponse {
|
|
489
|
+
collationName: string;
|
|
490
|
+
compatibilityLevel: number;
|
|
491
|
+
id: number;
|
|
492
|
+
name: string;
|
|
493
|
+
owner: string;
|
|
494
|
+
}
|
|
495
|
+
export const GetDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
496
|
+
S.Struct({
|
|
497
|
+
collationName: S.String,
|
|
498
|
+
compatibilityLevel: S.Number,
|
|
499
|
+
id: S.Number,
|
|
500
|
+
name: S.String,
|
|
501
|
+
owner: S.String,
|
|
502
|
+
}),
|
|
503
|
+
).annotate({
|
|
504
|
+
identifier: "GetDatabaseResponse",
|
|
505
|
+
}) as any as S.Schema<GetDatabaseResponse>;
|
|
506
|
+
|
|
507
|
+
export type GetInstanceRequestRegion = "eu01";
|
|
508
|
+
export const GetInstanceRequestRegion = /*@__PURE__*/ S.String;
|
|
509
|
+
|
|
510
|
+
export interface GetInstanceRequest {
|
|
511
|
+
/** The STACKIT project ID. */
|
|
512
|
+
projectId: string;
|
|
513
|
+
/** The region which should be addressed */
|
|
514
|
+
region: GetInstanceRequestRegion | (string & {});
|
|
515
|
+
/** The ID of the instance. */
|
|
516
|
+
instanceId: string;
|
|
517
|
+
}
|
|
518
|
+
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
519
|
+
S.Struct({
|
|
520
|
+
projectId: S.String.pipe(T.Label()),
|
|
521
|
+
region: GetInstanceRequestRegion.pipe(T.Label()),
|
|
522
|
+
instanceId: S.String.pipe(T.Label()),
|
|
523
|
+
}).pipe(
|
|
524
|
+
T.Http({
|
|
525
|
+
method: "GET",
|
|
526
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
527
|
+
code: 200,
|
|
528
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
529
|
+
}),
|
|
530
|
+
),
|
|
531
|
+
).annotate({
|
|
532
|
+
identifier: "GetInstanceRequest",
|
|
533
|
+
}) as any as S.Schema<GetInstanceRequest>;
|
|
534
|
+
|
|
535
|
+
/** Edition of the MSSQL server instance */
|
|
536
|
+
export type InstanceEdition = "Standard" | "EnterpriseCore" | "developer";
|
|
537
|
+
export const InstanceEdition = /*@__PURE__*/ S.String;
|
|
538
|
+
|
|
539
|
+
/** The access configuration of the instance */
|
|
540
|
+
export interface InstanceNetwork {
|
|
541
|
+
accessScope?: InstanceNetworkAccessScope;
|
|
542
|
+
acl?: Acl;
|
|
543
|
+
instanceAddress?: string;
|
|
544
|
+
routerAddress?: string;
|
|
545
|
+
}
|
|
546
|
+
export const InstanceNetwork = /*@__PURE__*/ S.suspend(() =>
|
|
547
|
+
S.Struct({
|
|
548
|
+
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
549
|
+
acl: S.optional(Acl),
|
|
550
|
+
instanceAddress: S.optional(S.String),
|
|
551
|
+
routerAddress: S.optional(S.String),
|
|
552
|
+
}),
|
|
553
|
+
).annotate({
|
|
554
|
+
identifier: "InstanceNetwork",
|
|
555
|
+
}) as any as S.Schema<InstanceNetwork>;
|
|
556
|
+
|
|
557
|
+
/** How many replicas the instance should have. */
|
|
558
|
+
export type Replicas = 1 | 3;
|
|
559
|
+
export const Replicas = /*@__PURE__*/ S.Number;
|
|
560
|
+
|
|
561
|
+
export type State =
|
|
562
|
+
| "READY"
|
|
563
|
+
| "PENDING"
|
|
564
|
+
| "PROGRESSING"
|
|
565
|
+
| "FAILURE"
|
|
566
|
+
| "UNKNOWN"
|
|
567
|
+
| "TERMINATING";
|
|
568
|
+
export const State = /*@__PURE__*/ S.String;
|
|
569
|
+
|
|
570
|
+
/** The object containing information about the storage size and class. */
|
|
571
|
+
export interface Storage {
|
|
572
|
+
class?: string;
|
|
573
|
+
size?: number;
|
|
574
|
+
}
|
|
575
|
+
export const Storage = /*@__PURE__*/ S.suspend(() =>
|
|
576
|
+
S.Struct({
|
|
577
|
+
class: S.optional(S.String),
|
|
578
|
+
size: S.optional(S.Number),
|
|
579
|
+
}),
|
|
580
|
+
).annotate({ identifier: "Storage" }) as any as S.Schema<Storage>;
|
|
581
|
+
|
|
582
|
+
export interface GetInstanceResponse {
|
|
583
|
+
backupSchedule: string;
|
|
584
|
+
edition: InstanceEdition;
|
|
585
|
+
encryption?: InstanceEncryption;
|
|
586
|
+
flavorId: string;
|
|
587
|
+
id: string;
|
|
588
|
+
isDeletable: boolean;
|
|
589
|
+
labels?: Labels;
|
|
590
|
+
name: string;
|
|
591
|
+
network: InstanceNetwork;
|
|
592
|
+
replicas: Replicas;
|
|
593
|
+
retentionDays: number;
|
|
594
|
+
state: State;
|
|
595
|
+
storage: Storage;
|
|
596
|
+
version: InstanceVersion;
|
|
597
|
+
}
|
|
598
|
+
export const GetInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
599
|
+
S.Struct({
|
|
600
|
+
backupSchedule: S.String,
|
|
601
|
+
edition: InstanceEdition,
|
|
602
|
+
encryption: S.optional(InstanceEncryption),
|
|
603
|
+
flavorId: S.String,
|
|
604
|
+
id: S.String,
|
|
605
|
+
isDeletable: S.Boolean,
|
|
606
|
+
labels: S.optional(Labels),
|
|
607
|
+
name: S.String,
|
|
608
|
+
network: InstanceNetwork,
|
|
609
|
+
replicas: Replicas,
|
|
610
|
+
retentionDays: S.Number,
|
|
611
|
+
state: State,
|
|
612
|
+
storage: Storage,
|
|
613
|
+
version: InstanceVersion,
|
|
614
|
+
}),
|
|
615
|
+
).annotate({
|
|
616
|
+
identifier: "GetInstanceResponse",
|
|
617
|
+
}) as any as S.Schema<GetInstanceResponse>;
|
|
618
|
+
|
|
619
|
+
export type GetUserRequestRegion = "eu01";
|
|
620
|
+
export const GetUserRequestRegion = /*@__PURE__*/ S.String;
|
|
621
|
+
|
|
622
|
+
export interface GetUserRequest {
|
|
623
|
+
/** The STACKIT project ID. */
|
|
624
|
+
projectId: string;
|
|
625
|
+
/** The region which should be addressed */
|
|
626
|
+
region: GetUserRequestRegion | (string & {});
|
|
627
|
+
/** The ID of the instance. */
|
|
628
|
+
instanceId: string;
|
|
629
|
+
/** The ID of the user. */
|
|
630
|
+
userId: number;
|
|
631
|
+
}
|
|
632
|
+
export const GetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
633
|
+
S.Struct({
|
|
634
|
+
projectId: S.String.pipe(T.Label()),
|
|
635
|
+
region: GetUserRequestRegion.pipe(T.Label()),
|
|
636
|
+
instanceId: S.String.pipe(T.Label()),
|
|
637
|
+
userId: S.Number.pipe(T.Label()),
|
|
638
|
+
}).pipe(
|
|
639
|
+
T.Http({
|
|
640
|
+
method: "GET",
|
|
641
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
642
|
+
code: 200,
|
|
643
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
644
|
+
}),
|
|
645
|
+
),
|
|
646
|
+
).annotate({ identifier: "GetUserRequest" }) as any as S.Schema<GetUserRequest>;
|
|
647
|
+
|
|
648
|
+
/** A list of user roles. */
|
|
649
|
+
export type GetUserResponseRolesList = Array<string>;
|
|
650
|
+
export const GetUserResponseRolesList = /*@__PURE__*/ S.Array(
|
|
651
|
+
S.String,
|
|
652
|
+
) as any as S.Schema<GetUserResponseRolesList>;
|
|
653
|
+
|
|
654
|
+
export interface GetUserResponse {
|
|
655
|
+
default_database: string;
|
|
656
|
+
host: string;
|
|
657
|
+
id: number;
|
|
658
|
+
port: number;
|
|
659
|
+
/** A list of user roles. */
|
|
660
|
+
roles: GetUserResponseRolesList;
|
|
661
|
+
status: string;
|
|
662
|
+
username: string;
|
|
663
|
+
}
|
|
664
|
+
export const GetUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
665
|
+
S.Struct({
|
|
666
|
+
default_database: S.String,
|
|
667
|
+
host: S.String,
|
|
668
|
+
id: S.Number,
|
|
669
|
+
port: S.Number,
|
|
670
|
+
roles: GetUserResponseRolesList,
|
|
671
|
+
status: S.String,
|
|
672
|
+
username: S.String,
|
|
673
|
+
}),
|
|
674
|
+
).annotate({
|
|
675
|
+
identifier: "GetUserResponse",
|
|
676
|
+
}) as any as S.Schema<GetUserResponse>;
|
|
677
|
+
|
|
678
|
+
export type ListBackupsRequestRegion = "eu01";
|
|
679
|
+
export const ListBackupsRequestRegion = /*@__PURE__*/ S.String;
|
|
680
|
+
|
|
681
|
+
export type BackupSort =
|
|
682
|
+
| "end_time.desc"
|
|
683
|
+
| "end_time.asc"
|
|
684
|
+
| "index.desc"
|
|
685
|
+
| "index.asc"
|
|
686
|
+
| "name.desc"
|
|
687
|
+
| "name.asc"
|
|
688
|
+
| "retained_until.desc"
|
|
689
|
+
| "retained_until.asc"
|
|
690
|
+
| "size.desc"
|
|
691
|
+
| "size.asc"
|
|
692
|
+
| "type.desc"
|
|
693
|
+
| "type.asc";
|
|
694
|
+
export const BackupSort = /*@__PURE__*/ S.String;
|
|
695
|
+
|
|
696
|
+
export interface ListBackupsRequest {
|
|
697
|
+
/** The STACKIT project ID. */
|
|
698
|
+
projectId: string;
|
|
699
|
+
/** The region which should be addressed */
|
|
700
|
+
region: ListBackupsRequestRegion | (string & {});
|
|
701
|
+
/** The ID of the instance. */
|
|
702
|
+
instanceId: string;
|
|
703
|
+
/** Number of the page of items list to be returned. */
|
|
704
|
+
page?: number;
|
|
705
|
+
/** Number of items to be returned on each page. */
|
|
706
|
+
size?: number;
|
|
707
|
+
/** Sorting of the backups to be returned on each page. */
|
|
708
|
+
sort?: BackupSort | (string & {});
|
|
709
|
+
}
|
|
710
|
+
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
711
|
+
S.Struct({
|
|
712
|
+
projectId: S.String.pipe(T.Label()),
|
|
713
|
+
region: ListBackupsRequestRegion.pipe(T.Label()),
|
|
714
|
+
instanceId: S.String.pipe(T.Label()),
|
|
715
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
716
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
717
|
+
sort: S.optional(BackupSort.pipe(T.Query())),
|
|
718
|
+
}).pipe(
|
|
719
|
+
T.Http({
|
|
720
|
+
method: "GET",
|
|
721
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
722
|
+
code: 200,
|
|
723
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
724
|
+
}),
|
|
725
|
+
),
|
|
726
|
+
).annotate({
|
|
727
|
+
identifier: "ListBackupsRequest",
|
|
728
|
+
}) as any as S.Schema<ListBackupsRequest>;
|
|
729
|
+
|
|
730
|
+
export interface ListBackup {
|
|
731
|
+
completionTime: string;
|
|
732
|
+
id: number;
|
|
733
|
+
name: string;
|
|
734
|
+
retainedUntil: string;
|
|
735
|
+
size: number;
|
|
736
|
+
type: string;
|
|
737
|
+
}
|
|
738
|
+
export const ListBackup = /*@__PURE__*/ S.suspend(() =>
|
|
739
|
+
S.Struct({
|
|
740
|
+
completionTime: S.String,
|
|
741
|
+
id: S.Number,
|
|
742
|
+
name: S.String,
|
|
743
|
+
retainedUntil: S.String,
|
|
744
|
+
size: S.Number,
|
|
745
|
+
type: S.String,
|
|
746
|
+
}),
|
|
747
|
+
).annotate({ identifier: "ListBackup" }) as any as S.Schema<ListBackup>;
|
|
748
|
+
|
|
749
|
+
/** List of the backups beloning to that database */
|
|
750
|
+
export type ListBackupsResponseBackupsList = Array<ListBackup>;
|
|
751
|
+
export const ListBackupsResponseBackupsList = /*@__PURE__*/ S.Array(
|
|
752
|
+
ListBackup,
|
|
753
|
+
) as any as S.Schema<ListBackupsResponseBackupsList>;
|
|
754
|
+
|
|
755
|
+
export interface ListBackupsResponse {
|
|
756
|
+
/** List of the backups beloning to that database */
|
|
757
|
+
backups: ListBackupsResponseBackupsList;
|
|
758
|
+
/** Name of the database the backups belong to */
|
|
759
|
+
databaseName: string;
|
|
760
|
+
}
|
|
761
|
+
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
762
|
+
S.Struct({
|
|
763
|
+
backups: ListBackupsResponseBackupsList,
|
|
764
|
+
databaseName: S.String,
|
|
765
|
+
}),
|
|
766
|
+
).annotate({
|
|
767
|
+
identifier: "ListBackupsResponse",
|
|
768
|
+
}) as any as S.Schema<ListBackupsResponse>;
|
|
769
|
+
|
|
770
|
+
/** The list containing the information about the backups. */
|
|
771
|
+
export type ListBackupResponseBackupsList = Array<ListBackupsResponse>;
|
|
772
|
+
export const ListBackupResponseBackupsList = /*@__PURE__*/ S.Array(
|
|
773
|
+
ListBackupsResponse,
|
|
774
|
+
) as any as S.Schema<ListBackupResponseBackupsList>;
|
|
775
|
+
|
|
776
|
+
export interface Pagination {
|
|
777
|
+
page: number;
|
|
778
|
+
size: number;
|
|
779
|
+
sort: string;
|
|
780
|
+
totalPages: number;
|
|
781
|
+
totalRows: number;
|
|
782
|
+
}
|
|
783
|
+
export const Pagination = /*@__PURE__*/ S.suspend(() =>
|
|
784
|
+
S.Struct({
|
|
785
|
+
page: S.Number,
|
|
786
|
+
size: S.Number,
|
|
787
|
+
sort: S.String,
|
|
788
|
+
totalPages: S.Number,
|
|
789
|
+
totalRows: S.Number,
|
|
790
|
+
}),
|
|
791
|
+
).annotate({ identifier: "Pagination" }) as any as S.Schema<Pagination>;
|
|
792
|
+
|
|
793
|
+
export interface ListBackupResponse {
|
|
794
|
+
/** The list containing the information about the backups. */
|
|
795
|
+
backups: ListBackupResponseBackupsList;
|
|
796
|
+
pagination: Pagination;
|
|
797
|
+
}
|
|
798
|
+
export const ListBackupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
799
|
+
S.Struct({
|
|
800
|
+
backups: ListBackupResponseBackupsList,
|
|
801
|
+
pagination: Pagination,
|
|
802
|
+
}),
|
|
803
|
+
).annotate({
|
|
804
|
+
identifier: "ListBackupResponse",
|
|
805
|
+
}) as any as S.Schema<ListBackupResponse>;
|
|
806
|
+
|
|
807
|
+
export type ListCollationsRequestRegion = "eu01";
|
|
808
|
+
export const ListCollationsRequestRegion = /*@__PURE__*/ S.String;
|
|
809
|
+
|
|
810
|
+
export interface ListCollationsRequest {
|
|
811
|
+
/** The STACKIT project ID. */
|
|
812
|
+
projectId: string;
|
|
813
|
+
/** The region which should be addressed */
|
|
814
|
+
region: ListCollationsRequestRegion | (string & {});
|
|
815
|
+
/** The ID of the instance. */
|
|
816
|
+
instanceId: string;
|
|
817
|
+
}
|
|
818
|
+
export const ListCollationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
819
|
+
S.Struct({
|
|
820
|
+
projectId: S.String.pipe(T.Label()),
|
|
821
|
+
region: ListCollationsRequestRegion.pipe(T.Label()),
|
|
822
|
+
instanceId: S.String.pipe(T.Label()),
|
|
823
|
+
}).pipe(
|
|
824
|
+
T.Http({
|
|
825
|
+
method: "GET",
|
|
826
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",
|
|
827
|
+
code: 200,
|
|
828
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
829
|
+
}),
|
|
830
|
+
),
|
|
831
|
+
).annotate({
|
|
832
|
+
identifier: "ListCollationsRequest",
|
|
833
|
+
}) as any as S.Schema<ListCollationsRequest>;
|
|
834
|
+
|
|
835
|
+
export interface DatabaseGetcollation {
|
|
836
|
+
collation_name?: string;
|
|
837
|
+
description?: string;
|
|
838
|
+
}
|
|
839
|
+
export const DatabaseGetcollation = /*@__PURE__*/ S.suspend(() =>
|
|
840
|
+
S.Struct({
|
|
841
|
+
collation_name: S.optional(S.String),
|
|
842
|
+
description: S.optional(S.String),
|
|
843
|
+
}),
|
|
844
|
+
).annotate({
|
|
845
|
+
identifier: "DatabaseGetcollation",
|
|
846
|
+
}) as any as S.Schema<DatabaseGetcollation>;
|
|
847
|
+
|
|
848
|
+
/** List of collations available for the instance. */
|
|
849
|
+
export type ListCollationsResponseCollationsList = Array<DatabaseGetcollation>;
|
|
850
|
+
export const ListCollationsResponseCollationsList = /*@__PURE__*/ S.Array(
|
|
851
|
+
DatabaseGetcollation,
|
|
852
|
+
) as any as S.Schema<ListCollationsResponseCollationsList>;
|
|
853
|
+
|
|
854
|
+
export interface ListCollationsResponse {
|
|
855
|
+
/** List of collations available for the instance. */
|
|
856
|
+
collations: ListCollationsResponseCollationsList;
|
|
857
|
+
}
|
|
858
|
+
export const ListCollationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
859
|
+
S.Struct({
|
|
860
|
+
collations: ListCollationsResponseCollationsList,
|
|
861
|
+
}),
|
|
862
|
+
).annotate({
|
|
863
|
+
identifier: "ListCollationsResponse",
|
|
864
|
+
}) as any as S.Schema<ListCollationsResponse>;
|
|
865
|
+
|
|
866
|
+
export type ListCompatibilitiesRequestRegion = "eu01";
|
|
867
|
+
export const ListCompatibilitiesRequestRegion = /*@__PURE__*/ S.String;
|
|
868
|
+
|
|
869
|
+
export interface ListCompatibilitiesRequest {
|
|
870
|
+
/** The STACKIT project ID. */
|
|
871
|
+
projectId: string;
|
|
872
|
+
/** The region which should be addressed */
|
|
873
|
+
region: ListCompatibilitiesRequestRegion | (string & {});
|
|
874
|
+
/** The ID of the instance. */
|
|
875
|
+
instanceId: string;
|
|
876
|
+
}
|
|
877
|
+
export const ListCompatibilitiesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
878
|
+
S.Struct({
|
|
879
|
+
projectId: S.String.pipe(T.Label()),
|
|
880
|
+
region: ListCompatibilitiesRequestRegion.pipe(T.Label()),
|
|
881
|
+
instanceId: S.String.pipe(T.Label()),
|
|
882
|
+
}).pipe(
|
|
883
|
+
T.Http({
|
|
884
|
+
method: "GET",
|
|
885
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/compatibility",
|
|
886
|
+
code: 200,
|
|
887
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
888
|
+
}),
|
|
889
|
+
),
|
|
890
|
+
).annotate({
|
|
891
|
+
identifier: "ListCompatibilitiesRequest",
|
|
892
|
+
}) as any as S.Schema<ListCompatibilitiesRequest>;
|
|
893
|
+
|
|
894
|
+
export interface DatabaseGetcompatibility {
|
|
895
|
+
compatibility_level?: number;
|
|
896
|
+
description?: string;
|
|
897
|
+
}
|
|
898
|
+
export const DatabaseGetcompatibility = /*@__PURE__*/ S.suspend(() =>
|
|
899
|
+
S.Struct({
|
|
900
|
+
compatibility_level: S.optional(S.Number),
|
|
901
|
+
description: S.optional(S.String),
|
|
902
|
+
}),
|
|
903
|
+
).annotate({
|
|
904
|
+
identifier: "DatabaseGetcompatibility",
|
|
905
|
+
}) as any as S.Schema<DatabaseGetcompatibility>;
|
|
906
|
+
|
|
907
|
+
/** List of compatibilities available for a d */
|
|
908
|
+
export type ListCompatibilityResponseCompatibilitiesList =
|
|
909
|
+
Array<DatabaseGetcompatibility>;
|
|
910
|
+
export const ListCompatibilityResponseCompatibilitiesList =
|
|
911
|
+
/*@__PURE__*/ S.Array(
|
|
912
|
+
DatabaseGetcompatibility,
|
|
913
|
+
) as any as S.Schema<ListCompatibilityResponseCompatibilitiesList>;
|
|
914
|
+
|
|
915
|
+
export interface ListCompatibilityResponse {
|
|
916
|
+
/** List of compatibilities available for a d */
|
|
917
|
+
compatibilities: ListCompatibilityResponseCompatibilitiesList;
|
|
918
|
+
}
|
|
919
|
+
export const ListCompatibilityResponse = /*@__PURE__*/ S.suspend(() =>
|
|
920
|
+
S.Struct({
|
|
921
|
+
compatibilities: ListCompatibilityResponseCompatibilitiesList,
|
|
922
|
+
}),
|
|
923
|
+
).annotate({
|
|
924
|
+
identifier: "ListCompatibilityResponse",
|
|
925
|
+
}) as any as S.Schema<ListCompatibilityResponse>;
|
|
926
|
+
|
|
927
|
+
export type ListCurrentRunningRestoreJobsRequestRegion = "eu01";
|
|
928
|
+
export const ListCurrentRunningRestoreJobsRequestRegion =
|
|
929
|
+
/*@__PURE__*/ S.String;
|
|
930
|
+
|
|
931
|
+
export interface ListCurrentRunningRestoreJobsRequest {
|
|
932
|
+
/** The STACKIT project ID. */
|
|
933
|
+
projectId: string;
|
|
934
|
+
/** The region which should be addressed */
|
|
935
|
+
region: ListCurrentRunningRestoreJobsRequestRegion | (string & {});
|
|
936
|
+
/** The ID of the instance. */
|
|
937
|
+
instanceId: string;
|
|
938
|
+
}
|
|
939
|
+
export const ListCurrentRunningRestoreJobsRequest = /*@__PURE__*/ S.suspend(
|
|
940
|
+
() =>
|
|
941
|
+
S.Struct({
|
|
942
|
+
projectId: S.String.pipe(T.Label()),
|
|
943
|
+
region: ListCurrentRunningRestoreJobsRequestRegion.pipe(T.Label()),
|
|
944
|
+
instanceId: S.String.pipe(T.Label()),
|
|
945
|
+
}).pipe(
|
|
946
|
+
T.Http({
|
|
947
|
+
method: "GET",
|
|
948
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restore-jobs",
|
|
949
|
+
code: 200,
|
|
950
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
951
|
+
}),
|
|
952
|
+
),
|
|
953
|
+
).annotate({
|
|
954
|
+
identifier: "ListCurrentRunningRestoreJobsRequest",
|
|
955
|
+
}) as any as S.Schema<ListCurrentRunningRestoreJobsRequest>;
|
|
956
|
+
|
|
957
|
+
export interface BackupRunningRestore {
|
|
958
|
+
/** the command that was executed */
|
|
959
|
+
command: string;
|
|
960
|
+
/** the name of the database that is being restored */
|
|
961
|
+
database_name: string;
|
|
962
|
+
/** the projected time when the restore should be completed */
|
|
963
|
+
estimated_completion_time: string;
|
|
964
|
+
/** the percentage of the current running restore job */
|
|
965
|
+
percent_complete: number;
|
|
966
|
+
/** the start time of the current running restore job */
|
|
967
|
+
start_time: string;
|
|
968
|
+
}
|
|
969
|
+
export const BackupRunningRestore = /*@__PURE__*/ S.suspend(() =>
|
|
970
|
+
S.Struct({
|
|
971
|
+
command: S.String,
|
|
972
|
+
database_name: S.String,
|
|
973
|
+
estimated_completion_time: S.String,
|
|
974
|
+
percent_complete: S.Number,
|
|
975
|
+
start_time: S.String,
|
|
976
|
+
}),
|
|
977
|
+
).annotate({
|
|
978
|
+
identifier: "BackupRunningRestore",
|
|
979
|
+
}) as any as S.Schema<BackupRunningRestore>;
|
|
980
|
+
|
|
981
|
+
/** List of the currently running Restore jobs */
|
|
982
|
+
export type ListCurrentRunningRestoreJobsRunningRestoresList =
|
|
983
|
+
Array<BackupRunningRestore>;
|
|
984
|
+
export const ListCurrentRunningRestoreJobsRunningRestoresList =
|
|
985
|
+
/*@__PURE__*/ S.Array(
|
|
986
|
+
BackupRunningRestore,
|
|
987
|
+
) as any as S.Schema<ListCurrentRunningRestoreJobsRunningRestoresList>;
|
|
988
|
+
|
|
989
|
+
export interface ListCurrentRunningRestoreJobs {
|
|
990
|
+
/** List of the currently running Restore jobs */
|
|
991
|
+
runningRestores: ListCurrentRunningRestoreJobsRunningRestoresList;
|
|
992
|
+
}
|
|
993
|
+
export const ListCurrentRunningRestoreJobs = /*@__PURE__*/ S.suspend(() =>
|
|
994
|
+
S.Struct({
|
|
995
|
+
runningRestores: ListCurrentRunningRestoreJobsRunningRestoresList,
|
|
996
|
+
}),
|
|
997
|
+
).annotate({
|
|
998
|
+
identifier: "ListCurrentRunningRestoreJobs",
|
|
999
|
+
}) as any as S.Schema<ListCurrentRunningRestoreJobs>;
|
|
1000
|
+
|
|
1001
|
+
export type ListDatabasesRequestRegion = "eu01";
|
|
1002
|
+
export const ListDatabasesRequestRegion = /*@__PURE__*/ S.String;
|
|
1003
|
+
|
|
1004
|
+
export type DatabaseSort =
|
|
1005
|
+
| "created_at.desc"
|
|
1006
|
+
| "created_at.asc"
|
|
1007
|
+
| "database_id.desc"
|
|
1008
|
+
| "database_id.asc"
|
|
1009
|
+
| "database_name.desc"
|
|
1010
|
+
| "database_name.asc"
|
|
1011
|
+
| "database_owner.desc"
|
|
1012
|
+
| "database_owner.asc"
|
|
1013
|
+
| "index.asc"
|
|
1014
|
+
| "index.desc";
|
|
1015
|
+
export const DatabaseSort = /*@__PURE__*/ S.String;
|
|
1016
|
+
|
|
1017
|
+
export interface ListDatabasesRequest {
|
|
1018
|
+
/** The STACKIT project ID. */
|
|
1019
|
+
projectId: string;
|
|
1020
|
+
/** The region which should be addressed */
|
|
1021
|
+
region: ListDatabasesRequestRegion | (string & {});
|
|
1022
|
+
/** The ID of the instance. */
|
|
1023
|
+
instanceId: string;
|
|
1024
|
+
/** Number of the page of items list to be returned. */
|
|
1025
|
+
page?: number;
|
|
1026
|
+
/** Number of items to be returned on each page. */
|
|
1027
|
+
size?: number;
|
|
1028
|
+
/** Sorting of the databases to be returned on each page. */
|
|
1029
|
+
sort?: DatabaseSort | (string & {});
|
|
1030
|
+
}
|
|
1031
|
+
export const ListDatabasesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1032
|
+
S.Struct({
|
|
1033
|
+
projectId: S.String.pipe(T.Label()),
|
|
1034
|
+
region: ListDatabasesRequestRegion.pipe(T.Label()),
|
|
1035
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1036
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1037
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1038
|
+
sort: S.optional(DatabaseSort.pipe(T.Query())),
|
|
1039
|
+
}).pipe(
|
|
1040
|
+
T.Http({
|
|
1041
|
+
method: "GET",
|
|
1042
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
1043
|
+
code: 200,
|
|
1044
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1045
|
+
}),
|
|
1046
|
+
),
|
|
1047
|
+
).annotate({
|
|
1048
|
+
identifier: "ListDatabasesRequest",
|
|
1049
|
+
}) as any as S.Schema<ListDatabasesRequest>;
|
|
1050
|
+
|
|
1051
|
+
export interface ListDatabase {
|
|
1052
|
+
created: string;
|
|
1053
|
+
id: number;
|
|
1054
|
+
name: string;
|
|
1055
|
+
owner: string;
|
|
1056
|
+
}
|
|
1057
|
+
export const ListDatabase = /*@__PURE__*/ S.suspend(() =>
|
|
1058
|
+
S.Struct({
|
|
1059
|
+
created: S.String,
|
|
1060
|
+
id: S.Number,
|
|
1061
|
+
name: S.String,
|
|
1062
|
+
owner: S.String,
|
|
1063
|
+
}),
|
|
1064
|
+
).annotate({ identifier: "ListDatabase" }) as any as S.Schema<ListDatabase>;
|
|
1065
|
+
|
|
1066
|
+
/** A list containing all databases for the instance. */
|
|
1067
|
+
export type ListDatabasesResponseDatabasesList = Array<ListDatabase>;
|
|
1068
|
+
export const ListDatabasesResponseDatabasesList = /*@__PURE__*/ S.Array(
|
|
1069
|
+
ListDatabase,
|
|
1070
|
+
) as any as S.Schema<ListDatabasesResponseDatabasesList>;
|
|
1071
|
+
|
|
1072
|
+
export interface ListDatabasesResponse {
|
|
1073
|
+
/** A list containing all databases for the instance. */
|
|
1074
|
+
databases: ListDatabasesResponseDatabasesList;
|
|
1075
|
+
pagination: Pagination;
|
|
1076
|
+
}
|
|
1077
|
+
export const ListDatabasesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1078
|
+
S.Struct({
|
|
1079
|
+
databases: ListDatabasesResponseDatabasesList,
|
|
1080
|
+
pagination: Pagination,
|
|
1081
|
+
}),
|
|
1082
|
+
).annotate({
|
|
1083
|
+
identifier: "ListDatabasesResponse",
|
|
1084
|
+
}) as any as S.Schema<ListDatabasesResponse>;
|
|
1085
|
+
|
|
1086
|
+
export type ListFlavorsRequestRegion = "eu01";
|
|
1087
|
+
export const ListFlavorsRequestRegion = /*@__PURE__*/ S.String;
|
|
1088
|
+
|
|
1089
|
+
export type FlavorSort =
|
|
1090
|
+
| "index.desc"
|
|
1091
|
+
| "index.asc"
|
|
1092
|
+
| "cpu.desc"
|
|
1093
|
+
| "cpu.asc"
|
|
1094
|
+
| "flavor_description.asc"
|
|
1095
|
+
| "flavor_description.desc"
|
|
1096
|
+
| "id.desc"
|
|
1097
|
+
| "id.asc"
|
|
1098
|
+
| "size_max.desc"
|
|
1099
|
+
| "size_max.asc"
|
|
1100
|
+
| "ram.desc"
|
|
1101
|
+
| "ram.asc"
|
|
1102
|
+
| "size_min.desc"
|
|
1103
|
+
| "size_min.asc"
|
|
1104
|
+
| "storage_class.asc"
|
|
1105
|
+
| "storage_class.desc"
|
|
1106
|
+
| "node_type.asc"
|
|
1107
|
+
| "node_type.desc";
|
|
1108
|
+
export const FlavorSort = /*@__PURE__*/ S.String;
|
|
1109
|
+
|
|
1110
|
+
export interface ListFlavorsRequest {
|
|
1111
|
+
/** The STACKIT project ID. */
|
|
1112
|
+
projectId: string;
|
|
1113
|
+
/** The region which should be addressed */
|
|
1114
|
+
region: ListFlavorsRequestRegion | (string & {});
|
|
1115
|
+
/** Number of the page of items list to be returned. */
|
|
1116
|
+
page?: number;
|
|
1117
|
+
/** Number of items to be returned on each page. */
|
|
1118
|
+
size?: number;
|
|
1119
|
+
/** Sorting of the flavors to be returned on each page. */
|
|
1120
|
+
sort?: FlavorSort | (string & {});
|
|
1121
|
+
}
|
|
1122
|
+
export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1123
|
+
S.Struct({
|
|
1124
|
+
projectId: S.String.pipe(T.Label()),
|
|
1125
|
+
region: ListFlavorsRequestRegion.pipe(T.Label()),
|
|
1126
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1127
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1128
|
+
sort: S.optional(FlavorSort.pipe(T.Query())),
|
|
1129
|
+
}).pipe(
|
|
1130
|
+
T.Http({
|
|
1131
|
+
method: "GET",
|
|
1132
|
+
uri: "/v3/projects/{projectId}/regions/{region}/flavors",
|
|
1133
|
+
code: 200,
|
|
1134
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1135
|
+
}),
|
|
1136
|
+
),
|
|
1137
|
+
).annotate({
|
|
1138
|
+
identifier: "ListFlavorsRequest",
|
|
1139
|
+
}) as any as S.Schema<ListFlavorsRequest>;
|
|
1140
|
+
|
|
1141
|
+
/** a storageClass defines how efficient the storage can work */
|
|
1142
|
+
export interface FlavorStorageClassesStorageClass {
|
|
1143
|
+
class: string;
|
|
1144
|
+
maxIoPerSec: number;
|
|
1145
|
+
maxThroughInMb: number;
|
|
1146
|
+
}
|
|
1147
|
+
export const FlavorStorageClassesStorageClass = /*@__PURE__*/ S.suspend(() =>
|
|
1148
|
+
S.Struct({
|
|
1149
|
+
class: S.String,
|
|
1150
|
+
maxIoPerSec: S.Number,
|
|
1151
|
+
maxThroughInMb: S.Number,
|
|
1152
|
+
}),
|
|
1153
|
+
).annotate({
|
|
1154
|
+
identifier: "FlavorStorageClassesStorageClass",
|
|
1155
|
+
}) as any as S.Schema<FlavorStorageClassesStorageClass>;
|
|
1156
|
+
|
|
1157
|
+
/** maximum storage which can be ordered for the flavor in Gigabyte. */
|
|
1158
|
+
export type FlavorStorageClasses = Array<FlavorStorageClassesStorageClass>;
|
|
1159
|
+
export const FlavorStorageClasses = /*@__PURE__*/ S.Array(
|
|
1160
|
+
FlavorStorageClassesStorageClass,
|
|
1161
|
+
) as any as S.Schema<FlavorStorageClasses>;
|
|
1162
|
+
|
|
1163
|
+
/** The flavor of the instance containing the technical features. */
|
|
1164
|
+
export interface ListFlavors {
|
|
1165
|
+
cpu: number;
|
|
1166
|
+
description: string;
|
|
1167
|
+
id: string;
|
|
1168
|
+
maxGB: number;
|
|
1169
|
+
memory: number;
|
|
1170
|
+
minGB: number;
|
|
1171
|
+
nodeType: string;
|
|
1172
|
+
storageClasses: FlavorStorageClasses;
|
|
1173
|
+
}
|
|
1174
|
+
export const ListFlavors = /*@__PURE__*/ S.suspend(() =>
|
|
1175
|
+
S.Struct({
|
|
1176
|
+
cpu: S.Number,
|
|
1177
|
+
description: S.String,
|
|
1178
|
+
id: S.String,
|
|
1179
|
+
maxGB: S.Number,
|
|
1180
|
+
memory: S.Number,
|
|
1181
|
+
minGB: S.Number,
|
|
1182
|
+
nodeType: S.String,
|
|
1183
|
+
storageClasses: FlavorStorageClasses,
|
|
1184
|
+
}),
|
|
1185
|
+
).annotate({ identifier: "ListFlavors" }) as any as S.Schema<ListFlavors>;
|
|
1186
|
+
|
|
1187
|
+
/** List of flavors available for the project. */
|
|
1188
|
+
export type ListFlavorsResponseFlavorsList = Array<ListFlavors>;
|
|
1189
|
+
export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(
|
|
1190
|
+
ListFlavors,
|
|
1191
|
+
) as any as S.Schema<ListFlavorsResponseFlavorsList>;
|
|
1192
|
+
|
|
1193
|
+
export interface ListFlavorsResponse {
|
|
1194
|
+
/** List of flavors available for the project. */
|
|
1195
|
+
flavors: ListFlavorsResponseFlavorsList;
|
|
1196
|
+
pagination: Pagination;
|
|
1197
|
+
}
|
|
1198
|
+
export const ListFlavorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1199
|
+
S.Struct({
|
|
1200
|
+
flavors: ListFlavorsResponseFlavorsList,
|
|
1201
|
+
pagination: Pagination,
|
|
1202
|
+
}),
|
|
1203
|
+
).annotate({
|
|
1204
|
+
identifier: "ListFlavorsResponse",
|
|
1205
|
+
}) as any as S.Schema<ListFlavorsResponse>;
|
|
1206
|
+
|
|
1207
|
+
export type ListInstancesRequestRegion = "eu01";
|
|
1208
|
+
export const ListInstancesRequestRegion = /*@__PURE__*/ S.String;
|
|
1209
|
+
|
|
1210
|
+
export type InstanceSort =
|
|
1211
|
+
| "index.desc"
|
|
1212
|
+
| "index.asc"
|
|
1213
|
+
| "id.desc"
|
|
1214
|
+
| "id.asc"
|
|
1215
|
+
| "is_deletable.desc"
|
|
1216
|
+
| "is_deletable.asc"
|
|
1217
|
+
| "name.asc"
|
|
1218
|
+
| "name.desc"
|
|
1219
|
+
| "state.asc"
|
|
1220
|
+
| "state.desc";
|
|
1221
|
+
export const InstanceSort = /*@__PURE__*/ S.String;
|
|
1222
|
+
|
|
1223
|
+
export interface ListInstancesRequest {
|
|
1224
|
+
/** The STACKIT project ID. */
|
|
1225
|
+
projectId: string;
|
|
1226
|
+
/** The region which should be addressed */
|
|
1227
|
+
region: ListInstancesRequestRegion | (string & {});
|
|
1228
|
+
/** Number of the page of items list to be returned. */
|
|
1229
|
+
page?: number;
|
|
1230
|
+
/** Number of items to be returned on each page. */
|
|
1231
|
+
size?: number;
|
|
1232
|
+
/** Sorting of the items to be returned on each page. */
|
|
1233
|
+
sort?: InstanceSort | (string & {});
|
|
1234
|
+
}
|
|
1235
|
+
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1236
|
+
S.Struct({
|
|
1237
|
+
projectId: S.String.pipe(T.Label()),
|
|
1238
|
+
region: ListInstancesRequestRegion.pipe(T.Label()),
|
|
1239
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1240
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1241
|
+
sort: S.optional(InstanceSort.pipe(T.Query())),
|
|
1242
|
+
}).pipe(
|
|
1243
|
+
T.Http({
|
|
1244
|
+
method: "GET",
|
|
1245
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
1246
|
+
code: 200,
|
|
1247
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1248
|
+
}),
|
|
1249
|
+
),
|
|
1250
|
+
).annotate({
|
|
1251
|
+
identifier: "ListInstancesRequest",
|
|
1252
|
+
}) as any as S.Schema<ListInstancesRequest>;
|
|
1253
|
+
|
|
1254
|
+
export interface ListInstance {
|
|
1255
|
+
id: string;
|
|
1256
|
+
isDeletable: boolean;
|
|
1257
|
+
name: string;
|
|
1258
|
+
state: State;
|
|
1259
|
+
}
|
|
1260
|
+
export const ListInstance = /*@__PURE__*/ S.suspend(() =>
|
|
1261
|
+
S.Struct({
|
|
1262
|
+
id: S.String,
|
|
1263
|
+
isDeletable: S.Boolean,
|
|
1264
|
+
name: S.String,
|
|
1265
|
+
state: State,
|
|
1266
|
+
}),
|
|
1267
|
+
).annotate({ identifier: "ListInstance" }) as any as S.Schema<ListInstance>;
|
|
1268
|
+
|
|
1269
|
+
/** List of owned instances and their current status. */
|
|
1270
|
+
export type ListInstancesResponseInstancesList = Array<ListInstance>;
|
|
1271
|
+
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
1272
|
+
ListInstance,
|
|
1273
|
+
) as any as S.Schema<ListInstancesResponseInstancesList>;
|
|
1274
|
+
|
|
1275
|
+
export interface ListInstancesResponse {
|
|
1276
|
+
/** List of owned instances and their current status. */
|
|
1277
|
+
instances: ListInstancesResponseInstancesList;
|
|
1278
|
+
pagination: Pagination;
|
|
1279
|
+
}
|
|
1280
|
+
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1281
|
+
S.Struct({
|
|
1282
|
+
instances: ListInstancesResponseInstancesList,
|
|
1283
|
+
pagination: Pagination,
|
|
1284
|
+
}),
|
|
1285
|
+
).annotate({
|
|
1286
|
+
identifier: "ListInstancesResponse",
|
|
1287
|
+
}) as any as S.Schema<ListInstancesResponse>;
|
|
1288
|
+
|
|
1289
|
+
export type ListRolesRequestRegion = "eu01";
|
|
1290
|
+
export const ListRolesRequestRegion = /*@__PURE__*/ S.String;
|
|
1291
|
+
|
|
1292
|
+
export interface ListRolesRequest {
|
|
1293
|
+
/** The STACKIT project ID. */
|
|
1294
|
+
projectId: string;
|
|
1295
|
+
/** The region which should be addressed */
|
|
1296
|
+
region: ListRolesRequestRegion | (string & {});
|
|
1297
|
+
/** The ID of the instance. */
|
|
1298
|
+
instanceId: string;
|
|
1299
|
+
}
|
|
1300
|
+
export const ListRolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1301
|
+
S.Struct({
|
|
1302
|
+
projectId: S.String.pipe(T.Label()),
|
|
1303
|
+
region: ListRolesRequestRegion.pipe(T.Label()),
|
|
1304
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1305
|
+
}).pipe(
|
|
1306
|
+
T.Http({
|
|
1307
|
+
method: "GET",
|
|
1308
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",
|
|
1309
|
+
code: 200,
|
|
1310
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1311
|
+
}),
|
|
1312
|
+
),
|
|
1313
|
+
).annotate({
|
|
1314
|
+
identifier: "ListRolesRequest",
|
|
1315
|
+
}) as any as S.Schema<ListRolesRequest>;
|
|
1316
|
+
|
|
1317
|
+
/** List of roles available for an instance. */
|
|
1318
|
+
export type ListRolesResponseRolesList = Array<string>;
|
|
1319
|
+
export const ListRolesResponseRolesList = /*@__PURE__*/ S.Array(
|
|
1320
|
+
S.String,
|
|
1321
|
+
) as any as S.Schema<ListRolesResponseRolesList>;
|
|
1322
|
+
|
|
1323
|
+
export interface ListRolesResponse {
|
|
1324
|
+
/** List of roles available for an instance. */
|
|
1325
|
+
roles: ListRolesResponseRolesList;
|
|
1326
|
+
}
|
|
1327
|
+
export const ListRolesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1328
|
+
S.Struct({
|
|
1329
|
+
roles: ListRolesResponseRolesList,
|
|
1330
|
+
}),
|
|
1331
|
+
).annotate({
|
|
1332
|
+
identifier: "ListRolesResponse",
|
|
1333
|
+
}) as any as S.Schema<ListRolesResponse>;
|
|
1334
|
+
|
|
1335
|
+
export type ListStoragesRequestRegion = "eu01";
|
|
1336
|
+
export const ListStoragesRequestRegion = /*@__PURE__*/ S.String;
|
|
1337
|
+
|
|
1338
|
+
export interface ListStoragesRequest {
|
|
1339
|
+
/** The STACKIT project ID. */
|
|
1340
|
+
projectId: string;
|
|
1341
|
+
/** The region which should be addressed */
|
|
1342
|
+
region: ListStoragesRequestRegion | (string & {});
|
|
1343
|
+
/** The id of an instance flavor. */
|
|
1344
|
+
flavorId: string;
|
|
1345
|
+
}
|
|
1346
|
+
export const ListStoragesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1347
|
+
S.Struct({
|
|
1348
|
+
projectId: S.String.pipe(T.Label()),
|
|
1349
|
+
region: ListStoragesRequestRegion.pipe(T.Label()),
|
|
1350
|
+
flavorId: S.String.pipe(T.Label()),
|
|
1351
|
+
}).pipe(
|
|
1352
|
+
T.Http({
|
|
1353
|
+
method: "GET",
|
|
1354
|
+
uri: "/v3/projects/{projectId}/regions/{region}/storages/{flavorId}",
|
|
1355
|
+
code: 200,
|
|
1356
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1357
|
+
}),
|
|
1358
|
+
),
|
|
1359
|
+
).annotate({
|
|
1360
|
+
identifier: "ListStoragesRequest",
|
|
1361
|
+
}) as any as S.Schema<ListStoragesRequest>;
|
|
1362
|
+
|
|
1363
|
+
/** range of maximum and minimum storage which can be ordered for the flavor in Gigabyte. */
|
|
1364
|
+
export interface FlavorStorageRange {
|
|
1365
|
+
max: number;
|
|
1366
|
+
min: number;
|
|
1367
|
+
}
|
|
1368
|
+
export const FlavorStorageRange = /*@__PURE__*/ S.suspend(() =>
|
|
1369
|
+
S.Struct({
|
|
1370
|
+
max: S.Number,
|
|
1371
|
+
min: S.Number,
|
|
1372
|
+
}),
|
|
1373
|
+
).annotate({
|
|
1374
|
+
identifier: "FlavorStorageRange",
|
|
1375
|
+
}) as any as S.Schema<FlavorStorageRange>;
|
|
1376
|
+
|
|
1377
|
+
export interface ListStoragesResponse {
|
|
1378
|
+
storageClasses: FlavorStorageClasses;
|
|
1379
|
+
storageRange: FlavorStorageRange;
|
|
1380
|
+
}
|
|
1381
|
+
export const ListStoragesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1382
|
+
S.Struct({
|
|
1383
|
+
storageClasses: FlavorStorageClasses,
|
|
1384
|
+
storageRange: FlavorStorageRange,
|
|
1385
|
+
}),
|
|
1386
|
+
).annotate({
|
|
1387
|
+
identifier: "ListStoragesResponse",
|
|
1388
|
+
}) as any as S.Schema<ListStoragesResponse>;
|
|
1389
|
+
|
|
1390
|
+
export type ListUsersRequestRegion = "eu01";
|
|
1391
|
+
export const ListUsersRequestRegion = /*@__PURE__*/ S.String;
|
|
1392
|
+
|
|
1393
|
+
export type UserSort =
|
|
1394
|
+
| "id.asc"
|
|
1395
|
+
| "id.desc"
|
|
1396
|
+
| "index.desc"
|
|
1397
|
+
| "index.asc"
|
|
1398
|
+
| "name.desc"
|
|
1399
|
+
| "name.asc"
|
|
1400
|
+
| "status.desc"
|
|
1401
|
+
| "status.asc";
|
|
1402
|
+
export const UserSort = /*@__PURE__*/ S.String;
|
|
1403
|
+
|
|
1404
|
+
export interface ListUsersRequest {
|
|
1405
|
+
/** The STACKIT project ID. */
|
|
1406
|
+
projectId: string;
|
|
1407
|
+
/** The region which should be addressed */
|
|
1408
|
+
region: ListUsersRequestRegion | (string & {});
|
|
1409
|
+
/** The ID of the instance. */
|
|
1410
|
+
instanceId: string;
|
|
1411
|
+
/** Number of the page of items list to be returned. */
|
|
1412
|
+
page?: number;
|
|
1413
|
+
/** Number of items to be returned on each page. */
|
|
1414
|
+
size?: number;
|
|
1415
|
+
/** Sorting of the users to be returned on each page. */
|
|
1416
|
+
sort?: UserSort | (string & {});
|
|
1417
|
+
}
|
|
1418
|
+
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1419
|
+
S.Struct({
|
|
1420
|
+
projectId: S.String.pipe(T.Label()),
|
|
1421
|
+
region: ListUsersRequestRegion.pipe(T.Label()),
|
|
1422
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1423
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1424
|
+
size: S.optional(S.Number.pipe(T.Query())),
|
|
1425
|
+
sort: S.optional(UserSort.pipe(T.Query())),
|
|
1426
|
+
}).pipe(
|
|
1427
|
+
T.Http({
|
|
1428
|
+
method: "GET",
|
|
1429
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
1430
|
+
code: 200,
|
|
1431
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1432
|
+
}),
|
|
1433
|
+
),
|
|
1434
|
+
).annotate({
|
|
1435
|
+
identifier: "ListUsersRequest",
|
|
1436
|
+
}) as any as S.Schema<ListUsersRequest>;
|
|
1437
|
+
|
|
1438
|
+
export interface ListUser {
|
|
1439
|
+
id: number;
|
|
1440
|
+
status: string;
|
|
1441
|
+
username: string;
|
|
1442
|
+
}
|
|
1443
|
+
export const ListUser = /*@__PURE__*/ S.suspend(() =>
|
|
1444
|
+
S.Struct({
|
|
1445
|
+
id: S.Number,
|
|
1446
|
+
status: S.String,
|
|
1447
|
+
username: S.String,
|
|
1448
|
+
}),
|
|
1449
|
+
).annotate({ identifier: "ListUser" }) as any as S.Schema<ListUser>;
|
|
1450
|
+
|
|
1451
|
+
/** List of all users inside an instance */
|
|
1452
|
+
export type ListUserResponseUsersList = Array<ListUser>;
|
|
1453
|
+
export const ListUserResponseUsersList = /*@__PURE__*/ S.Array(
|
|
1454
|
+
ListUser,
|
|
1455
|
+
) as any as S.Schema<ListUserResponseUsersList>;
|
|
1456
|
+
|
|
1457
|
+
export interface ListUserResponse {
|
|
1458
|
+
pagination: Pagination;
|
|
1459
|
+
/** List of all users inside an instance */
|
|
1460
|
+
users: ListUserResponseUsersList;
|
|
1461
|
+
}
|
|
1462
|
+
export const ListUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1463
|
+
S.Struct({
|
|
1464
|
+
pagination: Pagination,
|
|
1465
|
+
users: ListUserResponseUsersList,
|
|
1466
|
+
}),
|
|
1467
|
+
).annotate({
|
|
1468
|
+
identifier: "ListUserResponse",
|
|
1469
|
+
}) as any as S.Schema<ListUserResponse>;
|
|
1470
|
+
|
|
1471
|
+
export type ListVersionsRequestRegion = "eu01";
|
|
1472
|
+
export const ListVersionsRequestRegion = /*@__PURE__*/ S.String;
|
|
1473
|
+
|
|
1474
|
+
export interface ListVersionsRequest {
|
|
1475
|
+
/** The STACKIT project ID. */
|
|
1476
|
+
projectId: string;
|
|
1477
|
+
/** The region which should be addressed */
|
|
1478
|
+
region: ListVersionsRequestRegion | (string & {});
|
|
1479
|
+
}
|
|
1480
|
+
export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1481
|
+
S.Struct({
|
|
1482
|
+
projectId: S.String.pipe(T.Label()),
|
|
1483
|
+
region: ListVersionsRequestRegion.pipe(T.Label()),
|
|
1484
|
+
}).pipe(
|
|
1485
|
+
T.Http({
|
|
1486
|
+
method: "GET",
|
|
1487
|
+
uri: "/v3/projects/{projectId}/regions/{region}/versions",
|
|
1488
|
+
code: 200,
|
|
1489
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1490
|
+
}),
|
|
1491
|
+
),
|
|
1492
|
+
).annotate({
|
|
1493
|
+
identifier: "ListVersionsRequest",
|
|
1494
|
+
}) as any as S.Schema<ListVersionsRequest>;
|
|
1495
|
+
|
|
1496
|
+
/** The version of the sqlserver instance and more details. */
|
|
1497
|
+
export interface Version {
|
|
1498
|
+
/** Flag if the version is a beta version. If set the version may contain bugs and is not fully tested. */
|
|
1499
|
+
beta: boolean;
|
|
1500
|
+
/** Timestamp in RFC3339 format which says when the version will no longer be supported by STACKIT. */
|
|
1501
|
+
deprecated: string;
|
|
1502
|
+
/** Flag if the version is recommend by the STACKIT Team. */
|
|
1503
|
+
recommend: boolean;
|
|
1504
|
+
/** The sqlserver version used for the instance. */
|
|
1505
|
+
version: string;
|
|
1506
|
+
}
|
|
1507
|
+
export const Version = /*@__PURE__*/ S.suspend(() =>
|
|
1508
|
+
S.Struct({
|
|
1509
|
+
beta: S.Boolean,
|
|
1510
|
+
deprecated: S.String,
|
|
1511
|
+
recommend: S.Boolean,
|
|
1512
|
+
version: S.String,
|
|
1513
|
+
}),
|
|
1514
|
+
).annotate({ identifier: "Version" }) as any as S.Schema<Version>;
|
|
1515
|
+
|
|
1516
|
+
/** A list containing available sqlserver versions. */
|
|
1517
|
+
export type ListVersionsResponseVersionsList = Array<Version>;
|
|
1518
|
+
export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(
|
|
1519
|
+
Version,
|
|
1520
|
+
) as any as S.Schema<ListVersionsResponseVersionsList>;
|
|
1521
|
+
|
|
1522
|
+
export interface ListVersionsResponse {
|
|
1523
|
+
/** A list containing available sqlserver versions. */
|
|
1524
|
+
versions: ListVersionsResponseVersionsList;
|
|
1525
|
+
}
|
|
1526
|
+
export const ListVersionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1527
|
+
S.Struct({
|
|
1528
|
+
versions: ListVersionsResponseVersionsList,
|
|
1529
|
+
}),
|
|
1530
|
+
).annotate({
|
|
1531
|
+
identifier: "ListVersionsResponse",
|
|
1532
|
+
}) as any as S.Schema<ListVersionsResponse>;
|
|
1533
|
+
|
|
1534
|
+
export type PartialUpdateInstanceRequestRegion = "eu01";
|
|
1535
|
+
export const PartialUpdateInstanceRequestRegion = /*@__PURE__*/ S.String;
|
|
1536
|
+
|
|
1537
|
+
/** the network configuration of the instance. */
|
|
1538
|
+
export interface PartialUpdateInstanceRequestNetwork {
|
|
1539
|
+
acl?: Acl;
|
|
1540
|
+
}
|
|
1541
|
+
export const PartialUpdateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() =>
|
|
1542
|
+
S.Struct({
|
|
1543
|
+
acl: S.optional(Acl),
|
|
1544
|
+
}),
|
|
1545
|
+
).annotate({
|
|
1546
|
+
identifier: "PartialUpdateInstanceRequestNetwork",
|
|
1547
|
+
}) as any as S.Schema<PartialUpdateInstanceRequestNetwork>;
|
|
1548
|
+
|
|
1549
|
+
/** The object containing information about the storage size and class. */
|
|
1550
|
+
export interface StorageUpdate {
|
|
1551
|
+
size?: number;
|
|
1552
|
+
}
|
|
1553
|
+
export const StorageUpdate = /*@__PURE__*/ S.suspend(() =>
|
|
1554
|
+
S.Struct({
|
|
1555
|
+
size: S.optional(S.Number),
|
|
1556
|
+
}),
|
|
1557
|
+
).annotate({ identifier: "StorageUpdate" }) as any as S.Schema<StorageUpdate>;
|
|
1558
|
+
|
|
1559
|
+
export type InstanceVersionOpt = "2022";
|
|
1560
|
+
export const InstanceVersionOpt = /*@__PURE__*/ S.String;
|
|
1561
|
+
|
|
1562
|
+
export interface PartialUpdateInstanceRequest {
|
|
1563
|
+
/** The STACKIT project ID. */
|
|
1564
|
+
projectId: string;
|
|
1565
|
+
/** The region which should be addressed */
|
|
1566
|
+
region: PartialUpdateInstanceRequestRegion | (string & {});
|
|
1567
|
+
/** The ID of the instance. */
|
|
1568
|
+
instanceId: string;
|
|
1569
|
+
backupSchedule?: string;
|
|
1570
|
+
flavorId?: string;
|
|
1571
|
+
labels?: Labels;
|
|
1572
|
+
name?: string;
|
|
1573
|
+
/** the network configuration of the instance. */
|
|
1574
|
+
network?: PartialUpdateInstanceRequestNetwork;
|
|
1575
|
+
retentionDays?: number;
|
|
1576
|
+
storage?: StorageUpdate;
|
|
1577
|
+
version?: InstanceVersionOpt | (string & {});
|
|
1578
|
+
}
|
|
1579
|
+
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1580
|
+
S.Struct({
|
|
1581
|
+
projectId: S.String.pipe(T.Label()),
|
|
1582
|
+
region: PartialUpdateInstanceRequestRegion.pipe(T.Label()),
|
|
1583
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1584
|
+
backupSchedule: S.optional(S.String),
|
|
1585
|
+
flavorId: S.optional(S.String),
|
|
1586
|
+
labels: S.optional(Labels),
|
|
1587
|
+
name: S.optional(S.String),
|
|
1588
|
+
network: S.optional(PartialUpdateInstanceRequestNetwork),
|
|
1589
|
+
retentionDays: S.optional(S.Number),
|
|
1590
|
+
storage: S.optional(StorageUpdate),
|
|
1591
|
+
version: S.optional(InstanceVersionOpt),
|
|
1592
|
+
}).pipe(
|
|
1593
|
+
T.Http({
|
|
1594
|
+
method: "PATCH",
|
|
1595
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1596
|
+
code: 200,
|
|
1597
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1598
|
+
}),
|
|
1599
|
+
),
|
|
1600
|
+
).annotate({
|
|
1601
|
+
identifier: "PartialUpdateInstanceRequest",
|
|
1602
|
+
}) as any as S.Schema<PartialUpdateInstanceRequest>;
|
|
1603
|
+
|
|
1604
|
+
export interface PartialUpdateInstanceResponse {}
|
|
1605
|
+
export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1606
|
+
S.Struct({}),
|
|
1607
|
+
).annotate({
|
|
1608
|
+
identifier: "PartialUpdateInstanceResponse",
|
|
1609
|
+
}) as any as S.Schema<PartialUpdateInstanceResponse>;
|
|
1610
|
+
|
|
1611
|
+
export type ResetUserRequestRegion = "eu01";
|
|
1612
|
+
export const ResetUserRequestRegion = /*@__PURE__*/ S.String;
|
|
1613
|
+
|
|
1614
|
+
export interface ResetUserRequest {
|
|
1615
|
+
/** The STACKIT project ID. */
|
|
1616
|
+
projectId: string;
|
|
1617
|
+
/** The region which should be addressed */
|
|
1618
|
+
region: ResetUserRequestRegion | (string & {});
|
|
1619
|
+
/** The ID of the instance. */
|
|
1620
|
+
instanceId: string;
|
|
1621
|
+
/** The ID of the user. */
|
|
1622
|
+
userId: number;
|
|
1623
|
+
}
|
|
1624
|
+
export const ResetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1625
|
+
S.Struct({
|
|
1626
|
+
projectId: S.String.pipe(T.Label()),
|
|
1627
|
+
region: ResetUserRequestRegion.pipe(T.Label()),
|
|
1628
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1629
|
+
userId: S.Number.pipe(T.Label()),
|
|
1630
|
+
}).pipe(
|
|
1631
|
+
T.Http({
|
|
1632
|
+
method: "POST",
|
|
1633
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
1634
|
+
code: 200,
|
|
1635
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1636
|
+
}),
|
|
1637
|
+
),
|
|
1638
|
+
).annotate({
|
|
1639
|
+
identifier: "ResetUserRequest",
|
|
1640
|
+
}) as any as S.Schema<ResetUserRequest>;
|
|
1641
|
+
|
|
1642
|
+
export interface ResetUserResponse {
|
|
1643
|
+
password: string | Redacted.Redacted<string>;
|
|
1644
|
+
status: string;
|
|
1645
|
+
uri: string;
|
|
1646
|
+
username: string;
|
|
1647
|
+
}
|
|
1648
|
+
export const ResetUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1649
|
+
S.Struct({
|
|
1650
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
1651
|
+
status: S.String,
|
|
1652
|
+
uri: S.String,
|
|
1653
|
+
username: S.String,
|
|
1654
|
+
}),
|
|
1655
|
+
).annotate({
|
|
1656
|
+
identifier: "ResetUserResponse",
|
|
1657
|
+
}) as any as S.Schema<ResetUserResponse>;
|
|
1658
|
+
|
|
1659
|
+
export type RestoreDatabaseFromBackupRequestRegion = "eu01";
|
|
1660
|
+
export const RestoreDatabaseFromBackupRequestRegion = /*@__PURE__*/ S.String;
|
|
1661
|
+
|
|
1662
|
+
export type SourceBackupType = "BACKUP";
|
|
1663
|
+
export const SourceBackupType = /*@__PURE__*/ S.String;
|
|
1664
|
+
|
|
1665
|
+
/** Restore from an existing managed backup. */
|
|
1666
|
+
export interface SourceBackup {
|
|
1667
|
+
type: SourceBackupType;
|
|
1668
|
+
}
|
|
1669
|
+
export const SourceBackup = /*@__PURE__*/ S.suspend(() =>
|
|
1670
|
+
S.Struct({
|
|
1671
|
+
type: SourceBackupType,
|
|
1672
|
+
}),
|
|
1673
|
+
).annotate({ identifier: "SourceBackup" }) as any as S.Schema<SourceBackup>;
|
|
1674
|
+
|
|
1675
|
+
export interface S3fileInfo {
|
|
1676
|
+
/** The sequence number of the file */
|
|
1677
|
+
file_number?: number;
|
|
1678
|
+
/** The path to the file on the S3 bucket */
|
|
1679
|
+
file_path?: string;
|
|
1680
|
+
}
|
|
1681
|
+
export const S3fileInfo = /*@__PURE__*/ S.suspend(() =>
|
|
1682
|
+
S.Struct({
|
|
1683
|
+
file_number: S.optional(S.Number),
|
|
1684
|
+
file_path: S.optional(S.String),
|
|
1685
|
+
}),
|
|
1686
|
+
).annotate({ identifier: "S3fileInfo" }) as any as S.Schema<S3fileInfo>;
|
|
1687
|
+
|
|
1688
|
+
/** The backup files from which the database should be restored */
|
|
1689
|
+
export type ExternalS3S3FilesList = Array<S3fileInfo>;
|
|
1690
|
+
export const ExternalS3S3FilesList = /*@__PURE__*/ S.Array(
|
|
1691
|
+
S3fileInfo,
|
|
1692
|
+
) as any as S.Schema<ExternalS3S3FilesList>;
|
|
1693
|
+
|
|
1694
|
+
/** The external S3 information */
|
|
1695
|
+
export interface ExternalS3 {
|
|
1696
|
+
/** The s3 access key id */
|
|
1697
|
+
s3_access_key: string;
|
|
1698
|
+
/** The s3 access secret */
|
|
1699
|
+
s3_access_secret: string | Redacted.Redacted<string>;
|
|
1700
|
+
/** The s3 bucket address */
|
|
1701
|
+
s3_bucket: string;
|
|
1702
|
+
/** The backup files from which the database should be restored */
|
|
1703
|
+
s3_files: ExternalS3S3FilesList;
|
|
1704
|
+
}
|
|
1705
|
+
export const ExternalS3 = /*@__PURE__*/ S.suspend(() =>
|
|
1706
|
+
S.Struct({
|
|
1707
|
+
s3_access_key: S.String,
|
|
1708
|
+
s3_access_secret: S.String.pipe(T.SensitiveValue({})),
|
|
1709
|
+
s3_bucket: S.String,
|
|
1710
|
+
s3_files: ExternalS3S3FilesList,
|
|
1711
|
+
}),
|
|
1712
|
+
).annotate({ identifier: "ExternalS3" }) as any as S.Schema<ExternalS3>;
|
|
1713
|
+
|
|
1714
|
+
export type SourceExternalS3Type = "EXTERNAL_S3";
|
|
1715
|
+
export const SourceExternalS3Type = /*@__PURE__*/ S.String;
|
|
1716
|
+
|
|
1717
|
+
/** Restore from an external S3 backup file. */
|
|
1718
|
+
export interface SourceExternalS3 {
|
|
1719
|
+
database_owner: string;
|
|
1720
|
+
/** Logging guid to have a complete activity log over all sub stored procedures. */
|
|
1721
|
+
logging_guid?: string;
|
|
1722
|
+
s3_details: ExternalS3;
|
|
1723
|
+
type: SourceExternalS3Type;
|
|
1724
|
+
}
|
|
1725
|
+
export const SourceExternalS3 = /*@__PURE__*/ S.suspend(() =>
|
|
1726
|
+
S.Struct({
|
|
1727
|
+
database_owner: S.String,
|
|
1728
|
+
logging_guid: S.optional(S.String),
|
|
1729
|
+
s3_details: ExternalS3,
|
|
1730
|
+
type: SourceExternalS3Type,
|
|
1731
|
+
}),
|
|
1732
|
+
).annotate({
|
|
1733
|
+
identifier: "SourceExternalS3",
|
|
1734
|
+
}) as any as S.Schema<SourceExternalS3>;
|
|
1735
|
+
|
|
1736
|
+
/** The source of the restore. */
|
|
1737
|
+
export type RestoreDatabaseFromBackupRequestSource =
|
|
1738
|
+
| SourceBackup
|
|
1739
|
+
| SourceExternalS3;
|
|
1740
|
+
export const RestoreDatabaseFromBackupRequestSource =
|
|
1741
|
+
/*@__PURE__*/ S.Unknown as any as S.Schema<RestoreDatabaseFromBackupRequestSource>;
|
|
1742
|
+
|
|
1743
|
+
export interface RestoreDatabaseFromBackupRequest {
|
|
1744
|
+
/** The STACKIT project ID. */
|
|
1745
|
+
projectId: string;
|
|
1746
|
+
/** The region which should be addressed */
|
|
1747
|
+
region: RestoreDatabaseFromBackupRequestRegion | (string & {});
|
|
1748
|
+
/** The ID of the instance. */
|
|
1749
|
+
instanceId: string;
|
|
1750
|
+
/** The name of the database on the instance to be restore. */
|
|
1751
|
+
database_name: string;
|
|
1752
|
+
/** The source of the restore. */
|
|
1753
|
+
source: RestoreDatabaseFromBackupRequestSource;
|
|
1754
|
+
}
|
|
1755
|
+
export const RestoreDatabaseFromBackupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1756
|
+
S.Struct({
|
|
1757
|
+
projectId: S.String.pipe(T.Label()),
|
|
1758
|
+
region: RestoreDatabaseFromBackupRequestRegion.pipe(T.Label()),
|
|
1759
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1760
|
+
database_name: S.String,
|
|
1761
|
+
source: RestoreDatabaseFromBackupRequestSource,
|
|
1762
|
+
}).pipe(
|
|
1763
|
+
T.Http({
|
|
1764
|
+
method: "POST",
|
|
1765
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
|
|
1766
|
+
code: 200,
|
|
1767
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1768
|
+
}),
|
|
1769
|
+
),
|
|
1770
|
+
).annotate({
|
|
1771
|
+
identifier: "RestoreDatabaseFromBackupRequest",
|
|
1772
|
+
}) as any as S.Schema<RestoreDatabaseFromBackupRequest>;
|
|
1773
|
+
|
|
1774
|
+
export interface RestoreDatabaseFromBackupResponse {}
|
|
1775
|
+
export const RestoreDatabaseFromBackupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1776
|
+
S.Struct({}),
|
|
1777
|
+
).annotate({
|
|
1778
|
+
identifier: "RestoreDatabaseFromBackupResponse",
|
|
1779
|
+
}) as any as S.Schema<RestoreDatabaseFromBackupResponse>;
|
|
1780
|
+
|
|
1781
|
+
export type TriggerBackupRequestRegion = "eu01";
|
|
1782
|
+
export const TriggerBackupRequestRegion = /*@__PURE__*/ S.String;
|
|
1783
|
+
|
|
1784
|
+
export interface TriggerBackupRequest {
|
|
1785
|
+
/** The STACKIT project ID. */
|
|
1786
|
+
projectId: string;
|
|
1787
|
+
/** The region which should be addressed */
|
|
1788
|
+
region: TriggerBackupRequestRegion | (string & {});
|
|
1789
|
+
/** The ID of the instance. */
|
|
1790
|
+
instanceId: string;
|
|
1791
|
+
/** The name of the database. */
|
|
1792
|
+
databaseName: string;
|
|
1793
|
+
}
|
|
1794
|
+
export const TriggerBackupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1795
|
+
S.Struct({
|
|
1796
|
+
projectId: S.String.pipe(T.Label()),
|
|
1797
|
+
region: TriggerBackupRequestRegion.pipe(T.Label()),
|
|
1798
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1799
|
+
databaseName: S.String.pipe(T.Label()),
|
|
1800
|
+
}).pipe(
|
|
1801
|
+
T.Http({
|
|
1802
|
+
method: "POST",
|
|
1803
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}",
|
|
1804
|
+
code: 200,
|
|
1805
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1806
|
+
}),
|
|
1807
|
+
),
|
|
1808
|
+
).annotate({
|
|
1809
|
+
identifier: "TriggerBackupRequest",
|
|
1810
|
+
}) as any as S.Schema<TriggerBackupRequest>;
|
|
1811
|
+
|
|
1812
|
+
export interface TriggerBackupResponse {}
|
|
1813
|
+
export const TriggerBackupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1814
|
+
S.Struct({}),
|
|
1815
|
+
).annotate({
|
|
1816
|
+
identifier: "TriggerBackupResponse",
|
|
1817
|
+
}) as any as S.Schema<TriggerBackupResponse>;
|
|
1818
|
+
|
|
1819
|
+
export type TriggerRestoreRequestRegion = "eu01";
|
|
1820
|
+
export const TriggerRestoreRequestRegion = /*@__PURE__*/ S.String;
|
|
1821
|
+
|
|
1822
|
+
export interface TriggerRestoreRequest {
|
|
1823
|
+
/** The STACKIT project ID. */
|
|
1824
|
+
projectId: string;
|
|
1825
|
+
/** The region which should be addressed */
|
|
1826
|
+
region: TriggerRestoreRequestRegion | (string & {});
|
|
1827
|
+
/** The ID of the instance. */
|
|
1828
|
+
instanceId: string;
|
|
1829
|
+
/** The name of the database. */
|
|
1830
|
+
databaseName: string;
|
|
1831
|
+
name: string;
|
|
1832
|
+
restoreDateTime: string;
|
|
1833
|
+
}
|
|
1834
|
+
export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1835
|
+
S.Struct({
|
|
1836
|
+
projectId: S.String.pipe(T.Label()),
|
|
1837
|
+
region: TriggerRestoreRequestRegion.pipe(T.Label()),
|
|
1838
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1839
|
+
databaseName: S.String.pipe(T.Label()),
|
|
1840
|
+
name: S.String,
|
|
1841
|
+
restoreDateTime: S.String,
|
|
1842
|
+
}).pipe(
|
|
1843
|
+
T.Http({
|
|
1844
|
+
method: "POST",
|
|
1845
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}/restores",
|
|
1846
|
+
code: 200,
|
|
1847
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1848
|
+
}),
|
|
1849
|
+
),
|
|
1850
|
+
).annotate({
|
|
1851
|
+
identifier: "TriggerRestoreRequest",
|
|
1852
|
+
}) as any as S.Schema<TriggerRestoreRequest>;
|
|
1853
|
+
|
|
1854
|
+
export interface TriggerRestoreResponse {}
|
|
1855
|
+
export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1856
|
+
S.Struct({}),
|
|
1857
|
+
).annotate({
|
|
1858
|
+
identifier: "TriggerRestoreResponse",
|
|
1859
|
+
}) as any as S.Schema<TriggerRestoreResponse>;
|
|
1860
|
+
|
|
1861
|
+
export type UpdateInstanceRequestRegion = "eu01";
|
|
1862
|
+
export const UpdateInstanceRequestRegion = /*@__PURE__*/ S.String;
|
|
1863
|
+
|
|
1864
|
+
/** the network configuration of the instance. */
|
|
1865
|
+
export interface UpdateInstanceRequestNetwork {
|
|
1866
|
+
acl: Acl;
|
|
1867
|
+
}
|
|
1868
|
+
export const UpdateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() =>
|
|
1869
|
+
S.Struct({
|
|
1870
|
+
acl: Acl,
|
|
1871
|
+
}),
|
|
1872
|
+
).annotate({
|
|
1873
|
+
identifier: "UpdateInstanceRequestNetwork",
|
|
1874
|
+
}) as any as S.Schema<UpdateInstanceRequestNetwork>;
|
|
1875
|
+
|
|
1876
|
+
export interface UpdateInstanceRequest {
|
|
1877
|
+
/** The STACKIT project ID. */
|
|
1878
|
+
projectId: string;
|
|
1879
|
+
/** The region which should be addressed */
|
|
1880
|
+
region: UpdateInstanceRequestRegion | (string & {});
|
|
1881
|
+
/** The ID of the instance. */
|
|
1882
|
+
instanceId: string;
|
|
1883
|
+
backupSchedule: string;
|
|
1884
|
+
flavorId: string;
|
|
1885
|
+
labels?: Labels;
|
|
1886
|
+
name: string;
|
|
1887
|
+
/** the network configuration of the instance. */
|
|
1888
|
+
network: UpdateInstanceRequestNetwork;
|
|
1889
|
+
retentionDays: number;
|
|
1890
|
+
storage: StorageUpdate;
|
|
1891
|
+
version: InstanceVersion | (string & {});
|
|
1892
|
+
}
|
|
1893
|
+
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1894
|
+
S.Struct({
|
|
1895
|
+
projectId: S.String.pipe(T.Label()),
|
|
1896
|
+
region: UpdateInstanceRequestRegion.pipe(T.Label()),
|
|
1897
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1898
|
+
backupSchedule: S.String,
|
|
1899
|
+
flavorId: S.String,
|
|
1900
|
+
labels: S.optional(Labels),
|
|
1901
|
+
name: S.String,
|
|
1902
|
+
network: UpdateInstanceRequestNetwork,
|
|
1903
|
+
retentionDays: S.Number,
|
|
1904
|
+
storage: StorageUpdate,
|
|
1905
|
+
version: InstanceVersion,
|
|
1906
|
+
}).pipe(
|
|
1907
|
+
T.Http({
|
|
1908
|
+
method: "PUT",
|
|
1909
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
1910
|
+
code: 200,
|
|
1911
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1912
|
+
}),
|
|
1913
|
+
),
|
|
1914
|
+
).annotate({
|
|
1915
|
+
identifier: "UpdateInstanceRequest",
|
|
1916
|
+
}) as any as S.Schema<UpdateInstanceRequest>;
|
|
1917
|
+
|
|
1918
|
+
export interface UpdateInstanceResponse {}
|
|
1919
|
+
export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1920
|
+
S.Struct({}),
|
|
1921
|
+
).annotate({
|
|
1922
|
+
identifier: "UpdateInstanceResponse",
|
|
1923
|
+
}) as any as S.Schema<UpdateInstanceResponse>;
|
|
1924
|
+
|
|
1925
|
+
export type UpdateInstanceProtectionRequestRegion = "eu01";
|
|
1926
|
+
export const UpdateInstanceProtectionRequestRegion = /*@__PURE__*/ S.String;
|
|
1927
|
+
|
|
1928
|
+
export interface UpdateInstanceProtectionRequest {
|
|
1929
|
+
/** The STACKIT project ID. */
|
|
1930
|
+
projectId: string;
|
|
1931
|
+
/** The region which should be addressed */
|
|
1932
|
+
region: UpdateInstanceProtectionRequestRegion | (string & {});
|
|
1933
|
+
/** The ID of the instance. */
|
|
1934
|
+
instanceId: string;
|
|
1935
|
+
isDeletable: boolean;
|
|
1936
|
+
}
|
|
1937
|
+
export const UpdateInstanceProtectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1938
|
+
S.Struct({
|
|
1939
|
+
projectId: S.String.pipe(T.Label()),
|
|
1940
|
+
region: UpdateInstanceProtectionRequestRegion.pipe(T.Label()),
|
|
1941
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1942
|
+
isDeletable: S.Boolean,
|
|
1943
|
+
}).pipe(
|
|
1944
|
+
T.Http({
|
|
1945
|
+
method: "POST",
|
|
1946
|
+
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",
|
|
1947
|
+
code: 200,
|
|
1948
|
+
baseUrl: "https://mssql-flex-service.api.stackit.cloud",
|
|
1949
|
+
}),
|
|
1950
|
+
),
|
|
1951
|
+
).annotate({
|
|
1952
|
+
identifier: "UpdateInstanceProtectionRequest",
|
|
1953
|
+
}) as any as S.Schema<UpdateInstanceProtectionRequest>;
|
|
1954
|
+
|
|
1955
|
+
export interface UpdateInstanceProtectionResponse {
|
|
1956
|
+
isDeletable: boolean;
|
|
1957
|
+
}
|
|
1958
|
+
export const UpdateInstanceProtectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1959
|
+
S.Struct({
|
|
1960
|
+
isDeletable: S.Boolean,
|
|
1961
|
+
}),
|
|
1962
|
+
).annotate({
|
|
1963
|
+
identifier: "UpdateInstanceProtectionResponse",
|
|
1964
|
+
}) as any as S.Schema<UpdateInstanceProtectionResponse>;
|
|
1965
|
+
|
|
1966
|
+
export type CreateDatabaseError =
|
|
1967
|
+
| BadRequest
|
|
1968
|
+
| Forbidden
|
|
1969
|
+
| NotFound
|
|
1970
|
+
| UnprocessableEntity
|
|
1971
|
+
| StackitOpError;
|
|
1972
|
+
/** 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' */
|
|
1973
|
+
export const createDatabase: API.OperationMethod<
|
|
1974
|
+
CreateDatabaseRequest,
|
|
1975
|
+
CreateDatabaseResponse,
|
|
1976
|
+
CreateDatabaseError,
|
|
1977
|
+
StackitOpContext
|
|
1978
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1979
|
+
input: CreateDatabaseRequest,
|
|
1980
|
+
output: CreateDatabaseResponse,
|
|
1981
|
+
errors: [
|
|
1982
|
+
BadRequest,
|
|
1983
|
+
Forbidden,
|
|
1984
|
+
NotFound,
|
|
1985
|
+
UnprocessableEntity,
|
|
1986
|
+
UnknownStackitError,
|
|
1987
|
+
],
|
|
1988
|
+
protocol: StackitProtocol,
|
|
1989
|
+
retry: Retry.Retry,
|
|
1990
|
+
}));
|
|
1991
|
+
|
|
1992
|
+
export type CreateInstanceError =
|
|
1993
|
+
| BadRequest
|
|
1994
|
+
| Forbidden
|
|
1995
|
+
| NotFound
|
|
1996
|
+
| UnprocessableEntity
|
|
1997
|
+
| StackitOpError;
|
|
1998
|
+
/** Create Instance Create a new instance of a sqlserver database instance. */
|
|
1999
|
+
export const createInstance: API.OperationMethod<
|
|
2000
|
+
CreateInstanceRequest,
|
|
2001
|
+
CreateInstanceResponse,
|
|
2002
|
+
CreateInstanceError,
|
|
2003
|
+
StackitOpContext
|
|
2004
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2005
|
+
input: CreateInstanceRequest,
|
|
2006
|
+
output: CreateInstanceResponse,
|
|
2007
|
+
errors: [
|
|
2008
|
+
BadRequest,
|
|
2009
|
+
Forbidden,
|
|
2010
|
+
NotFound,
|
|
2011
|
+
UnprocessableEntity,
|
|
2012
|
+
UnknownStackitError,
|
|
2013
|
+
],
|
|
2014
|
+
protocol: StackitProtocol,
|
|
2015
|
+
retry: Retry.Retry,
|
|
2016
|
+
}));
|
|
2017
|
+
|
|
2018
|
+
export type CreateUserError =
|
|
2019
|
+
| BadRequest
|
|
2020
|
+
| Forbidden
|
|
2021
|
+
| NotFound
|
|
2022
|
+
| UnprocessableEntity
|
|
2023
|
+
| StackitOpError;
|
|
2024
|
+
/** Create User Create user for an instance. */
|
|
2025
|
+
export const createUser: API.OperationMethod<
|
|
2026
|
+
CreateUserRequest,
|
|
2027
|
+
CreateUserResponse,
|
|
2028
|
+
CreateUserError,
|
|
2029
|
+
StackitOpContext
|
|
2030
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2031
|
+
input: CreateUserRequest,
|
|
2032
|
+
output: CreateUserResponse,
|
|
2033
|
+
errors: [
|
|
2034
|
+
BadRequest,
|
|
2035
|
+
Forbidden,
|
|
2036
|
+
NotFound,
|
|
2037
|
+
UnprocessableEntity,
|
|
2038
|
+
UnknownStackitError,
|
|
2039
|
+
],
|
|
2040
|
+
protocol: StackitProtocol,
|
|
2041
|
+
retry: Retry.Retry,
|
|
2042
|
+
}));
|
|
2043
|
+
|
|
2044
|
+
export type DeleteDatabaseError =
|
|
2045
|
+
| BadRequest
|
|
2046
|
+
| Forbidden
|
|
2047
|
+
| NotFound
|
|
2048
|
+
| StackitOpError;
|
|
2049
|
+
/** Delete Database Delete database for an instance. */
|
|
2050
|
+
export const deleteDatabase: API.OperationMethod<
|
|
2051
|
+
DeleteDatabaseRequest,
|
|
2052
|
+
DeleteDatabaseResponse,
|
|
2053
|
+
DeleteDatabaseError,
|
|
2054
|
+
StackitOpContext
|
|
2055
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2056
|
+
input: DeleteDatabaseRequest,
|
|
2057
|
+
output: DeleteDatabaseResponse,
|
|
2058
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2059
|
+
protocol: StackitProtocol,
|
|
2060
|
+
retry: Retry.Retry,
|
|
2061
|
+
}));
|
|
2062
|
+
|
|
2063
|
+
export type DeleteInstanceError =
|
|
2064
|
+
| BadRequest
|
|
2065
|
+
| Forbidden
|
|
2066
|
+
| NotFound
|
|
2067
|
+
| StackitOpError;
|
|
2068
|
+
/** Delete Instance Delete an available sqlserver instance. */
|
|
2069
|
+
export const deleteInstance: API.OperationMethod<
|
|
2070
|
+
DeleteInstanceRequest,
|
|
2071
|
+
DeleteInstanceResponse,
|
|
2072
|
+
DeleteInstanceError,
|
|
2073
|
+
StackitOpContext
|
|
2074
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2075
|
+
input: DeleteInstanceRequest,
|
|
2076
|
+
output: DeleteInstanceResponse,
|
|
2077
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2078
|
+
protocol: StackitProtocol,
|
|
2079
|
+
retry: Retry.Retry,
|
|
2080
|
+
}));
|
|
2081
|
+
|
|
2082
|
+
export type DeleteUserError =
|
|
2083
|
+
| BadRequest
|
|
2084
|
+
| Forbidden
|
|
2085
|
+
| NotFound
|
|
2086
|
+
| StackitOpError;
|
|
2087
|
+
/** Delete User Delete an user from a specific instance. */
|
|
2088
|
+
export const deleteUser: API.OperationMethod<
|
|
2089
|
+
DeleteUserRequest,
|
|
2090
|
+
DeleteUserResponse,
|
|
2091
|
+
DeleteUserError,
|
|
2092
|
+
StackitOpContext
|
|
2093
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2094
|
+
input: DeleteUserRequest,
|
|
2095
|
+
output: DeleteUserResponse,
|
|
2096
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2097
|
+
protocol: StackitProtocol,
|
|
2098
|
+
retry: Retry.Retry,
|
|
2099
|
+
}));
|
|
2100
|
+
|
|
2101
|
+
export type GetBackupError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
2102
|
+
/** Get specific backup Get information about a specific backup for an instance. */
|
|
2103
|
+
export const getBackup: API.OperationMethod<
|
|
2104
|
+
GetBackupRequest,
|
|
2105
|
+
GetBackupResponse,
|
|
2106
|
+
GetBackupError,
|
|
2107
|
+
StackitOpContext
|
|
2108
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2109
|
+
input: GetBackupRequest,
|
|
2110
|
+
output: GetBackupResponse,
|
|
2111
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2112
|
+
protocol: StackitProtocol,
|
|
2113
|
+
retry: Retry.Retry,
|
|
2114
|
+
}));
|
|
2115
|
+
|
|
2116
|
+
export type GetDatabaseError =
|
|
2117
|
+
| BadRequest
|
|
2118
|
+
| Forbidden
|
|
2119
|
+
| NotFound
|
|
2120
|
+
| StackitOpError;
|
|
2121
|
+
/** Get Database Get specific available database */
|
|
2122
|
+
export const getDatabase: API.OperationMethod<
|
|
2123
|
+
GetDatabaseRequest,
|
|
2124
|
+
GetDatabaseResponse,
|
|
2125
|
+
GetDatabaseError,
|
|
2126
|
+
StackitOpContext
|
|
2127
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2128
|
+
input: GetDatabaseRequest,
|
|
2129
|
+
output: GetDatabaseResponse,
|
|
2130
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2131
|
+
protocol: StackitProtocol,
|
|
2132
|
+
retry: Retry.Retry,
|
|
2133
|
+
}));
|
|
2134
|
+
|
|
2135
|
+
export type GetInstanceError =
|
|
2136
|
+
| BadRequest
|
|
2137
|
+
| Forbidden
|
|
2138
|
+
| NotFound
|
|
2139
|
+
| StackitOpError;
|
|
2140
|
+
/** Get Specific Instance Get information about a specific available instance */
|
|
2141
|
+
export const getInstance: API.OperationMethod<
|
|
2142
|
+
GetInstanceRequest,
|
|
2143
|
+
GetInstanceResponse,
|
|
2144
|
+
GetInstanceError,
|
|
2145
|
+
StackitOpContext
|
|
2146
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2147
|
+
input: GetInstanceRequest,
|
|
2148
|
+
output: GetInstanceResponse,
|
|
2149
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2150
|
+
protocol: StackitProtocol,
|
|
2151
|
+
retry: Retry.Retry,
|
|
2152
|
+
}));
|
|
2153
|
+
|
|
2154
|
+
export type GetUserError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
2155
|
+
/** Get User Get a specific available user for an instance. */
|
|
2156
|
+
export const getUser: API.OperationMethod<
|
|
2157
|
+
GetUserRequest,
|
|
2158
|
+
GetUserResponse,
|
|
2159
|
+
GetUserError,
|
|
2160
|
+
StackitOpContext
|
|
2161
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2162
|
+
input: GetUserRequest,
|
|
2163
|
+
output: GetUserResponse,
|
|
2164
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2165
|
+
protocol: StackitProtocol,
|
|
2166
|
+
retry: Retry.Retry,
|
|
2167
|
+
}));
|
|
2168
|
+
|
|
2169
|
+
export type ListBackupsError =
|
|
2170
|
+
| BadRequest
|
|
2171
|
+
| Forbidden
|
|
2172
|
+
| NotFound
|
|
2173
|
+
| StackitOpError;
|
|
2174
|
+
/** List backups List all backups which are available for a specific instance. */
|
|
2175
|
+
export const listBackups: API.OperationMethod<
|
|
2176
|
+
ListBackupsRequest,
|
|
2177
|
+
ListBackupResponse,
|
|
2178
|
+
ListBackupsError,
|
|
2179
|
+
StackitOpContext
|
|
2180
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2181
|
+
input: ListBackupsRequest,
|
|
2182
|
+
output: ListBackupResponse,
|
|
2183
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2184
|
+
protocol: StackitProtocol,
|
|
2185
|
+
retry: Retry.Retry,
|
|
2186
|
+
}));
|
|
2187
|
+
|
|
2188
|
+
export type ListCollationsError =
|
|
2189
|
+
| BadRequest
|
|
2190
|
+
| Forbidden
|
|
2191
|
+
| NotFound
|
|
2192
|
+
| StackitOpError;
|
|
2193
|
+
/** Get database collation list Returns a list of collations for an instance */
|
|
2194
|
+
export const listCollations: API.OperationMethod<
|
|
2195
|
+
ListCollationsRequest,
|
|
2196
|
+
ListCollationsResponse,
|
|
2197
|
+
ListCollationsError,
|
|
2198
|
+
StackitOpContext
|
|
2199
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2200
|
+
input: ListCollationsRequest,
|
|
2201
|
+
output: ListCollationsResponse,
|
|
2202
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2203
|
+
protocol: StackitProtocol,
|
|
2204
|
+
retry: Retry.Retry,
|
|
2205
|
+
}));
|
|
2206
|
+
|
|
2207
|
+
export type ListCompatibilitiesError =
|
|
2208
|
+
| BadRequest
|
|
2209
|
+
| Forbidden
|
|
2210
|
+
| NotFound
|
|
2211
|
+
| StackitOpError;
|
|
2212
|
+
/** Get database compatibility list Returns a list of compatibility levels for creating a new database */
|
|
2213
|
+
export const listCompatibilities: API.OperationMethod<
|
|
2214
|
+
ListCompatibilitiesRequest,
|
|
2215
|
+
ListCompatibilityResponse,
|
|
2216
|
+
ListCompatibilitiesError,
|
|
2217
|
+
StackitOpContext
|
|
2218
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2219
|
+
input: ListCompatibilitiesRequest,
|
|
2220
|
+
output: ListCompatibilityResponse,
|
|
2221
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2222
|
+
protocol: StackitProtocol,
|
|
2223
|
+
retry: Retry.Retry,
|
|
2224
|
+
}));
|
|
2225
|
+
|
|
2226
|
+
export type ListCurrentRunningRestoreJobs2Error =
|
|
2227
|
+
| BadRequest
|
|
2228
|
+
| Forbidden
|
|
2229
|
+
| NotFound
|
|
2230
|
+
| StackitOpError;
|
|
2231
|
+
/** List current running restore jobs List all currently running restore jobs which are available for a specific instance */
|
|
2232
|
+
export const listCurrentRunningRestoreJobs2: API.OperationMethod<
|
|
2233
|
+
ListCurrentRunningRestoreJobsRequest,
|
|
2234
|
+
ListCurrentRunningRestoreJobs,
|
|
2235
|
+
ListCurrentRunningRestoreJobs2Error,
|
|
2236
|
+
StackitOpContext
|
|
2237
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2238
|
+
input: ListCurrentRunningRestoreJobsRequest,
|
|
2239
|
+
output: ListCurrentRunningRestoreJobs,
|
|
2240
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2241
|
+
protocol: StackitProtocol,
|
|
2242
|
+
retry: Retry.Retry,
|
|
2243
|
+
}));
|
|
2244
|
+
|
|
2245
|
+
export type ListDatabasesError =
|
|
2246
|
+
| BadRequest
|
|
2247
|
+
| Forbidden
|
|
2248
|
+
| NotFound
|
|
2249
|
+
| StackitOpError;
|
|
2250
|
+
/** List Databases List available databases for an instance. */
|
|
2251
|
+
export const listDatabases: API.OperationMethod<
|
|
2252
|
+
ListDatabasesRequest,
|
|
2253
|
+
ListDatabasesResponse,
|
|
2254
|
+
ListDatabasesError,
|
|
2255
|
+
StackitOpContext
|
|
2256
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2257
|
+
input: ListDatabasesRequest,
|
|
2258
|
+
output: ListDatabasesResponse,
|
|
2259
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2260
|
+
protocol: StackitProtocol,
|
|
2261
|
+
retry: Retry.Retry,
|
|
2262
|
+
}));
|
|
2263
|
+
|
|
2264
|
+
export type ListFlavors2Error =
|
|
2265
|
+
| BadRequest
|
|
2266
|
+
| Forbidden
|
|
2267
|
+
| NotFound
|
|
2268
|
+
| StackitOpError;
|
|
2269
|
+
/** Get Flavors Get all available flavors for a project. */
|
|
2270
|
+
export const listFlavors2: API.OperationMethod<
|
|
2271
|
+
ListFlavorsRequest,
|
|
2272
|
+
ListFlavorsResponse,
|
|
2273
|
+
ListFlavors2Error,
|
|
2274
|
+
StackitOpContext
|
|
2275
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2276
|
+
input: ListFlavorsRequest,
|
|
2277
|
+
output: ListFlavorsResponse,
|
|
2278
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2279
|
+
protocol: StackitProtocol,
|
|
2280
|
+
retry: Retry.Retry,
|
|
2281
|
+
}));
|
|
2282
|
+
|
|
2283
|
+
export type ListInstancesError =
|
|
2284
|
+
| BadRequest
|
|
2285
|
+
| Forbidden
|
|
2286
|
+
| NotFound
|
|
2287
|
+
| StackitOpError;
|
|
2288
|
+
/** List Instances List all available instances for your project. */
|
|
2289
|
+
export const listInstances: API.OperationMethod<
|
|
2290
|
+
ListInstancesRequest,
|
|
2291
|
+
ListInstancesResponse,
|
|
2292
|
+
ListInstancesError,
|
|
2293
|
+
StackitOpContext
|
|
2294
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2295
|
+
input: ListInstancesRequest,
|
|
2296
|
+
output: ListInstancesResponse,
|
|
2297
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2298
|
+
protocol: StackitProtocol,
|
|
2299
|
+
retry: Retry.Retry,
|
|
2300
|
+
}));
|
|
2301
|
+
|
|
2302
|
+
export type ListRolesError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
2303
|
+
/** List Roles List available roles for an instance that can be assigned to a user */
|
|
2304
|
+
export const listRoles: API.OperationMethod<
|
|
2305
|
+
ListRolesRequest,
|
|
2306
|
+
ListRolesResponse,
|
|
2307
|
+
ListRolesError,
|
|
2308
|
+
StackitOpContext
|
|
2309
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2310
|
+
input: ListRolesRequest,
|
|
2311
|
+
output: ListRolesResponse,
|
|
2312
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2313
|
+
protocol: StackitProtocol,
|
|
2314
|
+
retry: Retry.Retry,
|
|
2315
|
+
}));
|
|
2316
|
+
|
|
2317
|
+
export type ListStoragesError =
|
|
2318
|
+
| BadRequest
|
|
2319
|
+
| Forbidden
|
|
2320
|
+
| NotFound
|
|
2321
|
+
| StackitOpError;
|
|
2322
|
+
/** Get Storages Get available storages for a specific flavor */
|
|
2323
|
+
export const listStorages: API.OperationMethod<
|
|
2324
|
+
ListStoragesRequest,
|
|
2325
|
+
ListStoragesResponse,
|
|
2326
|
+
ListStoragesError,
|
|
2327
|
+
StackitOpContext
|
|
2328
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2329
|
+
input: ListStoragesRequest,
|
|
2330
|
+
output: ListStoragesResponse,
|
|
2331
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2332
|
+
protocol: StackitProtocol,
|
|
2333
|
+
retry: Retry.Retry,
|
|
2334
|
+
}));
|
|
2335
|
+
|
|
2336
|
+
export type ListUsersError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
2337
|
+
/** List Users List available users for an instance. */
|
|
2338
|
+
export const listUsers: API.OperationMethod<
|
|
2339
|
+
ListUsersRequest,
|
|
2340
|
+
ListUserResponse,
|
|
2341
|
+
ListUsersError,
|
|
2342
|
+
StackitOpContext
|
|
2343
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2344
|
+
input: ListUsersRequest,
|
|
2345
|
+
output: ListUserResponse,
|
|
2346
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2347
|
+
protocol: StackitProtocol,
|
|
2348
|
+
retry: Retry.Retry,
|
|
2349
|
+
}));
|
|
2350
|
+
|
|
2351
|
+
export type ListVersionsError =
|
|
2352
|
+
| BadRequest
|
|
2353
|
+
| Forbidden
|
|
2354
|
+
| NotFound
|
|
2355
|
+
| StackitOpError;
|
|
2356
|
+
/** Get Versions Get the sqlserver available versions for the project. */
|
|
2357
|
+
export const listVersions: API.OperationMethod<
|
|
2358
|
+
ListVersionsRequest,
|
|
2359
|
+
ListVersionsResponse,
|
|
2360
|
+
ListVersionsError,
|
|
2361
|
+
StackitOpContext
|
|
2362
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2363
|
+
input: ListVersionsRequest,
|
|
2364
|
+
output: ListVersionsResponse,
|
|
2365
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2366
|
+
protocol: StackitProtocol,
|
|
2367
|
+
retry: Retry.Retry,
|
|
2368
|
+
}));
|
|
2369
|
+
|
|
2370
|
+
export type PartialUpdateInstanceError =
|
|
2371
|
+
| BadRequest
|
|
2372
|
+
| Forbidden
|
|
2373
|
+
| NotFound
|
|
2374
|
+
| UnprocessableEntity
|
|
2375
|
+
| StackitOpError;
|
|
2376
|
+
/** 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.** */
|
|
2377
|
+
export const partialUpdateInstance: API.OperationMethod<
|
|
2378
|
+
PartialUpdateInstanceRequest,
|
|
2379
|
+
PartialUpdateInstanceResponse,
|
|
2380
|
+
PartialUpdateInstanceError,
|
|
2381
|
+
StackitOpContext
|
|
2382
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2383
|
+
input: PartialUpdateInstanceRequest,
|
|
2384
|
+
output: PartialUpdateInstanceResponse,
|
|
2385
|
+
errors: [
|
|
2386
|
+
BadRequest,
|
|
2387
|
+
Forbidden,
|
|
2388
|
+
NotFound,
|
|
2389
|
+
UnprocessableEntity,
|
|
2390
|
+
UnknownStackitError,
|
|
2391
|
+
],
|
|
2392
|
+
protocol: StackitProtocol,
|
|
2393
|
+
retry: Retry.Retry,
|
|
2394
|
+
}));
|
|
2395
|
+
|
|
2396
|
+
export type ResetUserError =
|
|
2397
|
+
| BadRequest
|
|
2398
|
+
| Forbidden
|
|
2399
|
+
| NotFound
|
|
2400
|
+
| UnprocessableEntity
|
|
2401
|
+
| StackitOpError;
|
|
2402
|
+
/** Reset User Reset an user from an specific instance. */
|
|
2403
|
+
export const resetUser: API.OperationMethod<
|
|
2404
|
+
ResetUserRequest,
|
|
2405
|
+
ResetUserResponse,
|
|
2406
|
+
ResetUserError,
|
|
2407
|
+
StackitOpContext
|
|
2408
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2409
|
+
input: ResetUserRequest,
|
|
2410
|
+
output: ResetUserResponse,
|
|
2411
|
+
errors: [
|
|
2412
|
+
BadRequest,
|
|
2413
|
+
Forbidden,
|
|
2414
|
+
NotFound,
|
|
2415
|
+
UnprocessableEntity,
|
|
2416
|
+
UnknownStackitError,
|
|
2417
|
+
],
|
|
2418
|
+
protocol: StackitProtocol,
|
|
2419
|
+
retry: Retry.Retry,
|
|
2420
|
+
}));
|
|
2421
|
+
|
|
2422
|
+
export type RestoreDatabaseFromBackupError =
|
|
2423
|
+
| BadRequest
|
|
2424
|
+
| Forbidden
|
|
2425
|
+
| NotFound
|
|
2426
|
+
| StackitOpError;
|
|
2427
|
+
/** 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. */
|
|
2428
|
+
export const restoreDatabaseFromBackup: API.OperationMethod<
|
|
2429
|
+
RestoreDatabaseFromBackupRequest,
|
|
2430
|
+
RestoreDatabaseFromBackupResponse,
|
|
2431
|
+
RestoreDatabaseFromBackupError,
|
|
2432
|
+
StackitOpContext
|
|
2433
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2434
|
+
input: RestoreDatabaseFromBackupRequest,
|
|
2435
|
+
output: RestoreDatabaseFromBackupResponse,
|
|
2436
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
2437
|
+
protocol: StackitProtocol,
|
|
2438
|
+
retry: Retry.Retry,
|
|
2439
|
+
}));
|
|
2440
|
+
|
|
2441
|
+
export type TriggerBackupError =
|
|
2442
|
+
| BadRequest
|
|
2443
|
+
| Forbidden
|
|
2444
|
+
| NotFound
|
|
2445
|
+
| UnprocessableEntity
|
|
2446
|
+
| StackitOpError;
|
|
2447
|
+
/** Trigger backup for a specific Database Trigger backup for a specific database */
|
|
2448
|
+
export const triggerBackup: API.OperationMethod<
|
|
2449
|
+
TriggerBackupRequest,
|
|
2450
|
+
TriggerBackupResponse,
|
|
2451
|
+
TriggerBackupError,
|
|
2452
|
+
StackitOpContext
|
|
2453
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2454
|
+
input: TriggerBackupRequest,
|
|
2455
|
+
output: TriggerBackupResponse,
|
|
2456
|
+
errors: [
|
|
2457
|
+
BadRequest,
|
|
2458
|
+
Forbidden,
|
|
2459
|
+
NotFound,
|
|
2460
|
+
UnprocessableEntity,
|
|
2461
|
+
UnknownStackitError,
|
|
2462
|
+
],
|
|
2463
|
+
protocol: StackitProtocol,
|
|
2464
|
+
retry: Retry.Retry,
|
|
2465
|
+
}));
|
|
2466
|
+
|
|
2467
|
+
export type TriggerRestoreError =
|
|
2468
|
+
| BadRequest
|
|
2469
|
+
| Forbidden
|
|
2470
|
+
| NotFound
|
|
2471
|
+
| UnprocessableEntity
|
|
2472
|
+
| StackitOpError;
|
|
2473
|
+
/** Trigger restore for a specific Database Trigger restore for a specific Database */
|
|
2474
|
+
export const triggerRestore: API.OperationMethod<
|
|
2475
|
+
TriggerRestoreRequest,
|
|
2476
|
+
TriggerRestoreResponse,
|
|
2477
|
+
TriggerRestoreError,
|
|
2478
|
+
StackitOpContext
|
|
2479
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2480
|
+
input: TriggerRestoreRequest,
|
|
2481
|
+
output: TriggerRestoreResponse,
|
|
2482
|
+
errors: [
|
|
2483
|
+
BadRequest,
|
|
2484
|
+
Forbidden,
|
|
2485
|
+
NotFound,
|
|
2486
|
+
UnprocessableEntity,
|
|
2487
|
+
UnknownStackitError,
|
|
2488
|
+
],
|
|
2489
|
+
protocol: StackitProtocol,
|
|
2490
|
+
retry: Retry.Retry,
|
|
2491
|
+
}));
|
|
2492
|
+
|
|
2493
|
+
export type UpdateInstanceError =
|
|
2494
|
+
| BadRequest
|
|
2495
|
+
| Forbidden
|
|
2496
|
+
| NotFound
|
|
2497
|
+
| UnprocessableEntity
|
|
2498
|
+
| StackitOpError;
|
|
2499
|
+
/** 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.** */
|
|
2500
|
+
export const updateInstance: API.OperationMethod<
|
|
2501
|
+
UpdateInstanceRequest,
|
|
2502
|
+
UpdateInstanceResponse,
|
|
2503
|
+
UpdateInstanceError,
|
|
2504
|
+
StackitOpContext
|
|
2505
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2506
|
+
input: UpdateInstanceRequest,
|
|
2507
|
+
output: UpdateInstanceResponse,
|
|
2508
|
+
errors: [
|
|
2509
|
+
BadRequest,
|
|
2510
|
+
Forbidden,
|
|
2511
|
+
NotFound,
|
|
2512
|
+
UnprocessableEntity,
|
|
2513
|
+
UnknownStackitError,
|
|
2514
|
+
],
|
|
2515
|
+
protocol: StackitProtocol,
|
|
2516
|
+
retry: Retry.Retry,
|
|
2517
|
+
}));
|
|
2518
|
+
|
|
2519
|
+
export type UpdateInstanceProtectionError =
|
|
2520
|
+
| BadRequest
|
|
2521
|
+
| Forbidden
|
|
2522
|
+
| NotFound
|
|
2523
|
+
| UnprocessableEntity
|
|
2524
|
+
| StackitOpError;
|
|
2525
|
+
/** Protect Instance Toggle the deletion protection for an instance. */
|
|
2526
|
+
export const updateInstanceProtection: API.OperationMethod<
|
|
2527
|
+
UpdateInstanceProtectionRequest,
|
|
2528
|
+
UpdateInstanceProtectionResponse,
|
|
2529
|
+
UpdateInstanceProtectionError,
|
|
2530
|
+
StackitOpContext
|
|
2531
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2532
|
+
input: UpdateInstanceProtectionRequest,
|
|
2533
|
+
output: UpdateInstanceProtectionResponse,
|
|
2534
|
+
errors: [
|
|
2535
|
+
BadRequest,
|
|
2536
|
+
Forbidden,
|
|
2537
|
+
NotFound,
|
|
2538
|
+
UnprocessableEntity,
|
|
2539
|
+
UnknownStackitError,
|
|
2540
|
+
],
|
|
2541
|
+
protocol: StackitProtocol,
|
|
2542
|
+
retry: Retry.Retry,
|
|
2543
|
+
}));
|