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