@distilled.cloud/stackit 1.0.0-rc.14 → 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
|
|
|
@@ -45,32 +48,10 @@ export interface CreateBackupRequest {
|
|
|
45
48
|
/** Instance id */
|
|
46
49
|
instanceId: string;
|
|
47
50
|
}
|
|
48
|
-
export const CreateBackupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
49
|
-
S.Struct({
|
|
50
|
-
projectId: S.String.pipe(T.Label()),
|
|
51
|
-
regionId: S.String.pipe(T.Label()),
|
|
52
|
-
instanceId: S.String.pipe(T.Label()),
|
|
53
|
-
}).pipe(
|
|
54
|
-
T.Http({
|
|
55
|
-
method: "POST",
|
|
56
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
|
|
57
|
-
code: 200,
|
|
58
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
59
|
-
}),
|
|
60
|
-
),
|
|
61
|
-
).annotate({ identifier: "CreateBackupRequest" }) as any as S.Schema<CreateBackupRequest>;
|
|
62
|
-
|
|
63
51
|
export interface CreateBackupResponseItem {
|
|
64
52
|
id: number;
|
|
65
53
|
message: string;
|
|
66
54
|
}
|
|
67
|
-
export const CreateBackupResponseItem = /*@__PURE__*/ S.suspend(() =>
|
|
68
|
-
S.Struct({
|
|
69
|
-
id: S.Number,
|
|
70
|
-
message: S.String,
|
|
71
|
-
}),
|
|
72
|
-
).annotate({ identifier: "CreateBackupResponseItem" }) as any as S.Schema<CreateBackupResponseItem>;
|
|
73
|
-
|
|
74
55
|
export interface CreateCredentialsRequest {
|
|
75
56
|
/** Project id on which user has permissions */
|
|
76
57
|
projectId: string;
|
|
@@ -80,27 +61,7 @@ export interface CreateCredentialsRequest {
|
|
|
80
61
|
instanceId: string;
|
|
81
62
|
parameters?: unknown;
|
|
82
63
|
}
|
|
83
|
-
export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
84
|
-
S.Struct({
|
|
85
|
-
projectId: S.String.pipe(T.Label()),
|
|
86
|
-
regionId: S.String.pipe(T.Label()),
|
|
87
|
-
instanceId: S.String.pipe(T.Label()),
|
|
88
|
-
parameters: S.optional(S.Unknown),
|
|
89
|
-
}).pipe(
|
|
90
|
-
T.Http({
|
|
91
|
-
method: "POST",
|
|
92
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
|
|
93
|
-
code: 200,
|
|
94
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
95
|
-
}),
|
|
96
|
-
),
|
|
97
|
-
).annotate({ identifier: "CreateCredentialsRequest" }) as any as S.Schema<CreateCredentialsRequest>;
|
|
98
|
-
|
|
99
64
|
export type CredentialsHostsList = Array<string>;
|
|
100
|
-
export const CredentialsHostsList = /*@__PURE__*/ S.Array(
|
|
101
|
-
S.String,
|
|
102
|
-
) as any as S.Schema<CredentialsHostsList>;
|
|
103
|
-
|
|
104
65
|
export interface Credentials {
|
|
105
66
|
host: string;
|
|
106
67
|
hosts?: CredentialsHostsList;
|
|
@@ -110,81 +71,33 @@ export interface Credentials {
|
|
|
110
71
|
uri?: string;
|
|
111
72
|
username: string;
|
|
112
73
|
}
|
|
113
|
-
export const Credentials = /*@__PURE__*/ S.suspend(() =>
|
|
114
|
-
S.Struct({
|
|
115
|
-
host: S.String,
|
|
116
|
-
hosts: S.optional(CredentialsHostsList),
|
|
117
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
118
|
-
port: S.optional(S.Number),
|
|
119
|
-
scheme: S.optional(S.String),
|
|
120
|
-
uri: S.optional(S.String),
|
|
121
|
-
username: S.String,
|
|
122
|
-
}),
|
|
123
|
-
).annotate({ identifier: "Credentials" }) as any as S.Schema<Credentials>;
|
|
124
|
-
|
|
125
74
|
export interface RawCredentials {
|
|
126
75
|
credentials: Credentials;
|
|
127
76
|
}
|
|
128
|
-
export const RawCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
129
|
-
S.Struct({
|
|
130
|
-
credentials: Credentials,
|
|
131
|
-
}),
|
|
132
|
-
).annotate({ identifier: "RawCredentials" }) as any as S.Schema<RawCredentials>;
|
|
133
|
-
|
|
134
77
|
export interface CredentialsResponse {
|
|
135
78
|
id: string;
|
|
136
79
|
raw?: RawCredentials;
|
|
137
80
|
uri: string;
|
|
138
81
|
}
|
|
139
|
-
export const CredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
140
|
-
S.Struct({
|
|
141
|
-
id: S.String,
|
|
142
|
-
raw: S.optional(RawCredentials),
|
|
143
|
-
uri: S.String,
|
|
144
|
-
}),
|
|
145
|
-
).annotate({ identifier: "CredentialsResponse" }) as any as S.Schema<CredentialsResponse>;
|
|
146
|
-
|
|
147
82
|
export type InstanceParametersJavaGarbageCollector =
|
|
148
83
|
| "UseSerialGC"
|
|
149
84
|
| "UseParallelGC"
|
|
150
85
|
| "UseParallelOldGC"
|
|
151
86
|
| "UseG1GC";
|
|
152
|
-
export const InstanceParametersJavaGarbageCollector = S.String;
|
|
153
|
-
|
|
154
87
|
export type InstanceParametersPluginsItem =
|
|
155
88
|
| "repository-s3"
|
|
156
89
|
| "repository-azure"
|
|
157
90
|
| "analysis-phonetic";
|
|
158
|
-
export const InstanceParametersPluginsItem = S.String;
|
|
159
|
-
|
|
160
91
|
/** The plugins repository-s3 and repository-azure are enabled by default and cannot be disabled. */
|
|
161
92
|
export type InstanceParametersPluginsList = Array<InstanceParametersPluginsItem | (string & {})>;
|
|
162
|
-
export const InstanceParametersPluginsList = /*@__PURE__*/ S.Array(
|
|
163
|
-
InstanceParametersPluginsItem,
|
|
164
|
-
) as any as S.Schema<InstanceParametersPluginsList>;
|
|
165
|
-
|
|
166
93
|
export type InstanceParametersSyslogList = Array<string>;
|
|
167
|
-
export const InstanceParametersSyslogList = /*@__PURE__*/ S.Array(
|
|
168
|
-
S.String,
|
|
169
|
-
) as any as S.Schema<InstanceParametersSyslogList>;
|
|
170
|
-
|
|
171
94
|
/** This property is deprecated and will be removed in a future release. */
|
|
172
95
|
export type InstanceParametersTlsCiphersList = Array<string>;
|
|
173
|
-
export const InstanceParametersTlsCiphersList = /*@__PURE__*/ S.Array(
|
|
174
|
-
S.String,
|
|
175
|
-
) as any as S.Schema<InstanceParametersTlsCiphersList>;
|
|
176
|
-
|
|
177
96
|
export type InstanceParametersTlsProtocolsItem = "TLSv1.2" | "TLSv1.3";
|
|
178
|
-
export const InstanceParametersTlsProtocolsItem = S.String;
|
|
179
|
-
|
|
180
97
|
/** This property is deprecated and will be removed in a future release. */
|
|
181
98
|
export type InstanceParametersTlsProtocolsList = Array<
|
|
182
99
|
InstanceParametersTlsProtocolsItem | (string & {})
|
|
183
100
|
>;
|
|
184
|
-
export const InstanceParametersTlsProtocolsList = /*@__PURE__*/ S.Array(
|
|
185
|
-
InstanceParametersTlsProtocolsItem,
|
|
186
|
-
) as any as S.Schema<InstanceParametersTlsProtocolsList>;
|
|
187
|
-
|
|
188
101
|
export interface InstanceParameters {
|
|
189
102
|
enable_monitoring?: boolean;
|
|
190
103
|
/** If you want to monitor your service with Graphite, you can set the custom parameter graphite. It expects the host and port where the Graphite metrics should be sent to. */
|
|
@@ -211,25 +124,6 @@ export interface InstanceParameters {
|
|
|
211
124
|
/** This property is deprecated and will be removed in a future release. */
|
|
212
125
|
tls_protocols?: InstanceParametersTlsProtocolsList;
|
|
213
126
|
}
|
|
214
|
-
export const InstanceParameters = /*@__PURE__*/ S.suspend(() =>
|
|
215
|
-
S.Struct({
|
|
216
|
-
enable_monitoring: S.optional(S.Boolean),
|
|
217
|
-
graphite: S.optional(S.String),
|
|
218
|
-
java_garbage_collector: S.optional(InstanceParametersJavaGarbageCollector),
|
|
219
|
-
java_heapspace: S.optional(S.Number),
|
|
220
|
-
java_maxmetaspace: S.optional(S.Number),
|
|
221
|
-
max_disk_threshold: S.optional(S.Number),
|
|
222
|
-
metrics_frequency: S.optional(S.Number),
|
|
223
|
-
metrics_prefix: S.optional(S.String),
|
|
224
|
-
monitoring_instance_id: S.optional(S.String),
|
|
225
|
-
plugins: S.optional(InstanceParametersPluginsList),
|
|
226
|
-
sgw_acl: S.optional(S.String),
|
|
227
|
-
syslog: S.optional(InstanceParametersSyslogList),
|
|
228
|
-
tls_ciphers: S.optional(InstanceParametersTlsCiphersList.pipe(T.Body("tls-ciphers"))),
|
|
229
|
-
tls_protocols: S.optional(InstanceParametersTlsProtocolsList.pipe(T.Body("tls-protocols"))),
|
|
230
|
-
}),
|
|
231
|
-
).annotate({ identifier: "InstanceParameters" }) as any as S.Schema<InstanceParameters>;
|
|
232
|
-
|
|
233
127
|
export interface CreateInstanceRequest {
|
|
234
128
|
/** Project id on which user has permissions */
|
|
235
129
|
projectId: string;
|
|
@@ -239,32 +133,9 @@ export interface CreateInstanceRequest {
|
|
|
239
133
|
parameters?: InstanceParameters;
|
|
240
134
|
planId: string;
|
|
241
135
|
}
|
|
242
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
243
|
-
S.Struct({
|
|
244
|
-
projectId: S.String.pipe(T.Label()),
|
|
245
|
-
regionId: S.String.pipe(T.Label()),
|
|
246
|
-
instanceName: S.String,
|
|
247
|
-
parameters: S.optional(InstanceParameters),
|
|
248
|
-
planId: S.String,
|
|
249
|
-
}).pipe(
|
|
250
|
-
T.Http({
|
|
251
|
-
method: "POST",
|
|
252
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
|
|
253
|
-
code: 200,
|
|
254
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
255
|
-
}),
|
|
256
|
-
),
|
|
257
|
-
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
258
|
-
|
|
259
136
|
export interface CreateInstanceResponse {
|
|
260
137
|
instanceId: string;
|
|
261
138
|
}
|
|
262
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
263
|
-
S.Struct({
|
|
264
|
-
instanceId: S.String,
|
|
265
|
-
}),
|
|
266
|
-
).annotate({ identifier: "CreateInstanceResponse" }) as any as S.Schema<CreateInstanceResponse>;
|
|
267
|
-
|
|
268
139
|
export interface DeleteCredentialsRequest {
|
|
269
140
|
/** Project id on which user has permissions */
|
|
270
141
|
projectId: string;
|
|
@@ -275,27 +146,7 @@ export interface DeleteCredentialsRequest {
|
|
|
275
146
|
/** Id of the credentials being deleted */
|
|
276
147
|
credentialsId: string;
|
|
277
148
|
}
|
|
278
|
-
export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
279
|
-
S.Struct({
|
|
280
|
-
projectId: S.String.pipe(T.Label()),
|
|
281
|
-
regionId: S.String.pipe(T.Label()),
|
|
282
|
-
instanceId: S.String.pipe(T.Label()),
|
|
283
|
-
credentialsId: S.String.pipe(T.Label()),
|
|
284
|
-
}).pipe(
|
|
285
|
-
T.Http({
|
|
286
|
-
method: "DELETE",
|
|
287
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
|
|
288
|
-
code: 200,
|
|
289
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
290
|
-
}),
|
|
291
|
-
),
|
|
292
|
-
).annotate({ identifier: "DeleteCredentialsRequest" }) as any as S.Schema<DeleteCredentialsRequest>;
|
|
293
|
-
|
|
294
149
|
export interface DeleteCredentialsResponse {}
|
|
295
|
-
export const DeleteCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
296
|
-
identifier: "DeleteCredentialsResponse",
|
|
297
|
-
}) as any as S.Schema<DeleteCredentialsResponse>;
|
|
298
|
-
|
|
299
150
|
export interface DeleteInstanceRequest {
|
|
300
151
|
/** Project id on which user has permissions */
|
|
301
152
|
projectId: string;
|
|
@@ -304,26 +155,7 @@ export interface DeleteInstanceRequest {
|
|
|
304
155
|
/** Instance id */
|
|
305
156
|
instanceId: string;
|
|
306
157
|
}
|
|
307
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
308
|
-
S.Struct({
|
|
309
|
-
projectId: S.String.pipe(T.Label()),
|
|
310
|
-
regionId: S.String.pipe(T.Label()),
|
|
311
|
-
instanceId: S.String.pipe(T.Label()),
|
|
312
|
-
}).pipe(
|
|
313
|
-
T.Http({
|
|
314
|
-
method: "DELETE",
|
|
315
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
316
|
-
code: 200,
|
|
317
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
318
|
-
}),
|
|
319
|
-
),
|
|
320
|
-
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
321
|
-
|
|
322
158
|
export interface DeleteInstanceResponse {}
|
|
323
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
324
|
-
identifier: "DeleteInstanceResponse",
|
|
325
|
-
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
326
|
-
|
|
327
159
|
export interface DownloadBackupRequest {
|
|
328
160
|
/** Project id on which user has permissions */
|
|
329
161
|
projectId: string;
|
|
@@ -334,27 +166,7 @@ export interface DownloadBackupRequest {
|
|
|
334
166
|
/** Backup id */
|
|
335
167
|
backupId: number;
|
|
336
168
|
}
|
|
337
|
-
export const DownloadBackupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
338
|
-
S.Struct({
|
|
339
|
-
projectId: S.String.pipe(T.Label()),
|
|
340
|
-
regionId: S.String.pipe(T.Label()),
|
|
341
|
-
instanceId: S.String.pipe(T.Label()),
|
|
342
|
-
backupId: S.Number.pipe(T.Label()),
|
|
343
|
-
}).pipe(
|
|
344
|
-
T.Http({
|
|
345
|
-
method: "GET",
|
|
346
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
|
|
347
|
-
code: 200,
|
|
348
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
349
|
-
}),
|
|
350
|
-
),
|
|
351
|
-
).annotate({ identifier: "DownloadBackupRequest" }) as any as S.Schema<DownloadBackupRequest>;
|
|
352
|
-
|
|
353
169
|
export interface DownloadBackupResponse {}
|
|
354
|
-
export const DownloadBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
355
|
-
identifier: "DownloadBackupResponse",
|
|
356
|
-
}) as any as S.Schema<DownloadBackupResponse>;
|
|
357
|
-
|
|
358
170
|
export interface GetCredentialsRequest {
|
|
359
171
|
/** Project id on which user has permissions */
|
|
360
172
|
projectId: string;
|
|
@@ -365,22 +177,6 @@ export interface GetCredentialsRequest {
|
|
|
365
177
|
/** Credentials id of credentials to fetch */
|
|
366
178
|
credentialsId: string;
|
|
367
179
|
}
|
|
368
|
-
export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
369
|
-
S.Struct({
|
|
370
|
-
projectId: S.String.pipe(T.Label()),
|
|
371
|
-
regionId: S.String.pipe(T.Label()),
|
|
372
|
-
instanceId: S.String.pipe(T.Label()),
|
|
373
|
-
credentialsId: S.String.pipe(T.Label()),
|
|
374
|
-
}).pipe(
|
|
375
|
-
T.Http({
|
|
376
|
-
method: "GET",
|
|
377
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
|
|
378
|
-
code: 200,
|
|
379
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
380
|
-
}),
|
|
381
|
-
),
|
|
382
|
-
).annotate({ identifier: "GetCredentialsRequest" }) as any as S.Schema<GetCredentialsRequest>;
|
|
383
|
-
|
|
384
180
|
export interface GetInstanceRequest {
|
|
385
181
|
/** Project id on which user has permissions */
|
|
386
182
|
projectId: string;
|
|
@@ -389,43 +185,14 @@ export interface GetInstanceRequest {
|
|
|
389
185
|
/** Instance id */
|
|
390
186
|
instanceId: string;
|
|
391
187
|
}
|
|
392
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
393
|
-
S.Struct({
|
|
394
|
-
projectId: S.String.pipe(T.Label()),
|
|
395
|
-
regionId: S.String.pipe(T.Label()),
|
|
396
|
-
instanceId: S.String.pipe(T.Label()),
|
|
397
|
-
}).pipe(
|
|
398
|
-
T.Http({
|
|
399
|
-
method: "GET",
|
|
400
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
401
|
-
code: 200,
|
|
402
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
403
|
-
}),
|
|
404
|
-
),
|
|
405
|
-
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
406
|
-
|
|
407
188
|
export type InstanceLastOperationState = "in progress" | "succeeded" | "failed";
|
|
408
|
-
export const InstanceLastOperationState = S.String;
|
|
409
|
-
|
|
410
189
|
export type InstanceLastOperationType = "create" | "update" | "delete";
|
|
411
|
-
export const InstanceLastOperationType = S.String;
|
|
412
|
-
|
|
413
190
|
export interface InstanceLastOperation {
|
|
414
191
|
description: string;
|
|
415
192
|
state: InstanceLastOperationState;
|
|
416
193
|
type: InstanceLastOperationType;
|
|
417
194
|
}
|
|
418
|
-
export const InstanceLastOperation = /*@__PURE__*/ S.suspend(() =>
|
|
419
|
-
S.Struct({
|
|
420
|
-
description: S.String,
|
|
421
|
-
state: InstanceLastOperationState,
|
|
422
|
-
type: InstanceLastOperationType,
|
|
423
|
-
}),
|
|
424
|
-
).annotate({ identifier: "InstanceLastOperation" }) as any as S.Schema<InstanceLastOperation>;
|
|
425
|
-
|
|
426
195
|
export type InstanceStatus = "active" | "failed" | "stopped" | "creating" | "deleting" | "updating";
|
|
427
|
-
export const InstanceStatus = S.String;
|
|
428
|
-
|
|
429
196
|
export interface Instance {
|
|
430
197
|
cfGuid: string;
|
|
431
198
|
cfOrganizationGuid: string;
|
|
@@ -442,25 +209,6 @@ export interface Instance {
|
|
|
442
209
|
planName: string;
|
|
443
210
|
status?: InstanceStatus;
|
|
444
211
|
}
|
|
445
|
-
export const Instance = /*@__PURE__*/ S.suspend(() =>
|
|
446
|
-
S.Struct({
|
|
447
|
-
cfGuid: S.String,
|
|
448
|
-
cfOrganizationGuid: S.String,
|
|
449
|
-
cfSpaceGuid: S.String,
|
|
450
|
-
dashboardUrl: S.String,
|
|
451
|
-
imageUrl: S.String,
|
|
452
|
-
instanceId: S.optional(S.String),
|
|
453
|
-
lastOperation: InstanceLastOperation,
|
|
454
|
-
name: S.String,
|
|
455
|
-
offeringName: S.String,
|
|
456
|
-
offeringVersion: S.String,
|
|
457
|
-
parameters: S.Unknown,
|
|
458
|
-
planId: S.String,
|
|
459
|
-
planName: S.String,
|
|
460
|
-
status: S.optional(InstanceStatus),
|
|
461
|
-
}),
|
|
462
|
-
).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
|
|
463
|
-
|
|
464
212
|
export interface GetMetricsRequest {
|
|
465
213
|
/** Project id on which user has permissions */
|
|
466
214
|
projectId: string;
|
|
@@ -469,21 +217,6 @@ export interface GetMetricsRequest {
|
|
|
469
217
|
/** Instance id */
|
|
470
218
|
instanceId: string;
|
|
471
219
|
}
|
|
472
|
-
export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
473
|
-
S.Struct({
|
|
474
|
-
projectId: S.String.pipe(T.Label()),
|
|
475
|
-
regionId: S.String.pipe(T.Label()),
|
|
476
|
-
instanceId: S.String.pipe(T.Label()),
|
|
477
|
-
}).pipe(
|
|
478
|
-
T.Http({
|
|
479
|
-
method: "GET",
|
|
480
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
|
|
481
|
-
code: 200,
|
|
482
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
483
|
-
}),
|
|
484
|
-
),
|
|
485
|
-
).annotate({ identifier: "GetMetricsRequest" }) as any as S.Schema<GetMetricsRequest>;
|
|
486
|
-
|
|
487
220
|
export interface GetMetricsResponse {
|
|
488
221
|
cpuIdleTime?: number;
|
|
489
222
|
cpuLoadPercent: number;
|
|
@@ -509,34 +242,6 @@ export interface GetMetricsResponse {
|
|
|
509
242
|
parachuteDiskPersistentUsedPercent: number;
|
|
510
243
|
parachuteDiskPersistentUsedThreshold: number;
|
|
511
244
|
}
|
|
512
|
-
export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
513
|
-
S.Struct({
|
|
514
|
-
cpuIdleTime: S.optional(S.Number),
|
|
515
|
-
cpuLoadPercent: S.Number,
|
|
516
|
-
cpuSystemTime: S.optional(S.Number),
|
|
517
|
-
cpuUserTime: S.optional(S.Number),
|
|
518
|
-
diskEphemeralTotal: S.Number,
|
|
519
|
-
diskEphemeralUsed: S.Number,
|
|
520
|
-
diskPersistentTotal: S.Number,
|
|
521
|
-
diskPersistentUsed: S.Number,
|
|
522
|
-
load1: S.Number,
|
|
523
|
-
load15: S.Number,
|
|
524
|
-
load5: S.Number,
|
|
525
|
-
memoryTotal: S.Number,
|
|
526
|
-
memoryUsed: S.Number,
|
|
527
|
-
parachuteDiskEphemeralActivated: S.Boolean,
|
|
528
|
-
parachuteDiskEphemeralTotal: S.Number,
|
|
529
|
-
parachuteDiskEphemeralUsed: S.Number,
|
|
530
|
-
parachuteDiskEphemeralUsedPercent: S.Number,
|
|
531
|
-
parachuteDiskEphemeralUsedThreshold: S.Number,
|
|
532
|
-
parachuteDiskPersistentActivated: S.Boolean,
|
|
533
|
-
parachuteDiskPersistentTotal: S.Number,
|
|
534
|
-
parachuteDiskPersistentUsed: S.Number,
|
|
535
|
-
parachuteDiskPersistentUsedPercent: S.Number,
|
|
536
|
-
parachuteDiskPersistentUsedThreshold: S.Number,
|
|
537
|
-
}),
|
|
538
|
-
).annotate({ identifier: "GetMetricsResponse" }) as any as S.Schema<GetMetricsResponse>;
|
|
539
|
-
|
|
540
245
|
export interface ListBackupsRequest {
|
|
541
246
|
/** Project id on which user has permissions */
|
|
542
247
|
projectId: string;
|
|
@@ -545,21 +250,6 @@ export interface ListBackupsRequest {
|
|
|
545
250
|
/** Instance id */
|
|
546
251
|
instanceId: string;
|
|
547
252
|
}
|
|
548
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
549
|
-
S.Struct({
|
|
550
|
-
projectId: S.String.pipe(T.Label()),
|
|
551
|
-
regionId: S.String.pipe(T.Label()),
|
|
552
|
-
instanceId: S.String.pipe(T.Label()),
|
|
553
|
-
}).pipe(
|
|
554
|
-
T.Http({
|
|
555
|
-
method: "GET",
|
|
556
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
|
|
557
|
-
code: 200,
|
|
558
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
559
|
-
}),
|
|
560
|
-
),
|
|
561
|
-
).annotate({ identifier: "ListBackupsRequest" }) as any as S.Schema<ListBackupsRequest>;
|
|
562
|
-
|
|
563
253
|
export interface Backup {
|
|
564
254
|
downloadable?: boolean;
|
|
565
255
|
finished_at: string;
|
|
@@ -568,27 +258,8 @@ export interface Backup {
|
|
|
568
258
|
status: string;
|
|
569
259
|
triggered_at?: string;
|
|
570
260
|
}
|
|
571
|
-
export const Backup = /*@__PURE__*/ S.suspend(() =>
|
|
572
|
-
S.Struct({
|
|
573
|
-
downloadable: S.optional(S.Boolean),
|
|
574
|
-
finished_at: S.String,
|
|
575
|
-
id: S.Number,
|
|
576
|
-
size: S.optional(S.Number),
|
|
577
|
-
status: S.String,
|
|
578
|
-
triggered_at: S.optional(S.String),
|
|
579
|
-
}),
|
|
580
|
-
).annotate({ identifier: "Backup" }) as any as S.Schema<Backup>;
|
|
581
|
-
|
|
582
261
|
export type ListBackupsResponse = Array<Backup>;
|
|
583
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.Array(
|
|
584
|
-
Backup,
|
|
585
|
-
) as any as S.Schema<ListBackupsResponse>;
|
|
586
|
-
|
|
587
262
|
export type ListBackupsResponse2 = ListBackupsResponse;
|
|
588
|
-
export const ListBackupsResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
589
|
-
ListBackupsResponse.pipe(T.RawResponseRoot()),
|
|
590
|
-
).annotate({ identifier: "ListBackupsResponse2" }) as any as S.Schema<ListBackupsResponse2>;
|
|
591
|
-
|
|
592
263
|
export interface ListCredentialsRequest {
|
|
593
264
|
/** Project id on which user has permissions */
|
|
594
265
|
projectId: string;
|
|
@@ -597,98 +268,29 @@ export interface ListCredentialsRequest {
|
|
|
597
268
|
/** Instance id */
|
|
598
269
|
instanceId: string;
|
|
599
270
|
}
|
|
600
|
-
export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
601
|
-
S.Struct({
|
|
602
|
-
projectId: S.String.pipe(T.Label()),
|
|
603
|
-
regionId: S.String.pipe(T.Label()),
|
|
604
|
-
instanceId: S.String.pipe(T.Label()),
|
|
605
|
-
}).pipe(
|
|
606
|
-
T.Http({
|
|
607
|
-
method: "GET",
|
|
608
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
|
|
609
|
-
code: 200,
|
|
610
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
611
|
-
}),
|
|
612
|
-
),
|
|
613
|
-
).annotate({ identifier: "ListCredentialsRequest" }) as any as S.Schema<ListCredentialsRequest>;
|
|
614
|
-
|
|
615
271
|
export interface CredentialsListItem {
|
|
616
272
|
id: string;
|
|
617
273
|
}
|
|
618
|
-
export const CredentialsListItem = /*@__PURE__*/ S.suspend(() =>
|
|
619
|
-
S.Struct({
|
|
620
|
-
id: S.String,
|
|
621
|
-
}),
|
|
622
|
-
).annotate({ identifier: "CredentialsListItem" }) as any as S.Schema<CredentialsListItem>;
|
|
623
|
-
|
|
624
274
|
export type ListCredentialsResponseCredentialsListList = Array<CredentialsListItem>;
|
|
625
|
-
export const ListCredentialsResponseCredentialsListList = /*@__PURE__*/ S.Array(
|
|
626
|
-
CredentialsListItem,
|
|
627
|
-
) as any as S.Schema<ListCredentialsResponseCredentialsListList>;
|
|
628
|
-
|
|
629
275
|
export interface ListCredentialsResponse {
|
|
630
276
|
credentialsList: ListCredentialsResponseCredentialsListList;
|
|
631
277
|
}
|
|
632
|
-
export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
633
|
-
S.Struct({
|
|
634
|
-
credentialsList: ListCredentialsResponseCredentialsListList,
|
|
635
|
-
}),
|
|
636
|
-
).annotate({ identifier: "ListCredentialsResponse" }) as any as S.Schema<ListCredentialsResponse>;
|
|
637
|
-
|
|
638
278
|
export interface ListInstancesRequest {
|
|
639
279
|
/** Project id on which user has permissions */
|
|
640
280
|
projectId: string;
|
|
641
281
|
/** region in which the project resides */
|
|
642
282
|
regionId: string;
|
|
643
283
|
}
|
|
644
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
645
|
-
S.Struct({
|
|
646
|
-
projectId: S.String.pipe(T.Label()),
|
|
647
|
-
regionId: S.String.pipe(T.Label()),
|
|
648
|
-
}).pipe(
|
|
649
|
-
T.Http({
|
|
650
|
-
method: "GET",
|
|
651
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
|
|
652
|
-
code: 200,
|
|
653
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
654
|
-
}),
|
|
655
|
-
),
|
|
656
|
-
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
657
|
-
|
|
658
284
|
export type ListInstancesResponseInstancesList = Array<Instance>;
|
|
659
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
660
|
-
Instance,
|
|
661
|
-
) as any as S.Schema<ListInstancesResponseInstancesList>;
|
|
662
|
-
|
|
663
285
|
export interface ListInstancesResponse {
|
|
664
286
|
instances: ListInstancesResponseInstancesList;
|
|
665
287
|
}
|
|
666
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
667
|
-
S.Struct({
|
|
668
|
-
instances: ListInstancesResponseInstancesList,
|
|
669
|
-
}),
|
|
670
|
-
).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
|
|
671
|
-
|
|
672
288
|
export interface ListOfferingsRequest {
|
|
673
289
|
/** Project id on which user has permissions */
|
|
674
290
|
projectId: string;
|
|
675
291
|
/** region in which the project resides */
|
|
676
292
|
regionId: string;
|
|
677
293
|
}
|
|
678
|
-
export const ListOfferingsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
679
|
-
S.Struct({
|
|
680
|
-
projectId: S.String.pipe(T.Label()),
|
|
681
|
-
regionId: S.String.pipe(T.Label()),
|
|
682
|
-
}).pipe(
|
|
683
|
-
T.Http({
|
|
684
|
-
method: "GET",
|
|
685
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
|
|
686
|
-
code: 200,
|
|
687
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
688
|
-
}),
|
|
689
|
-
),
|
|
690
|
-
).annotate({ identifier: "ListOfferingsRequest" }) as any as S.Schema<ListOfferingsRequest>;
|
|
691
|
-
|
|
692
294
|
export interface Plan {
|
|
693
295
|
description: string;
|
|
694
296
|
free: boolean;
|
|
@@ -696,39 +298,14 @@ export interface Plan {
|
|
|
696
298
|
name: string;
|
|
697
299
|
skuName: string;
|
|
698
300
|
}
|
|
699
|
-
export const Plan = /*@__PURE__*/ S.suspend(() =>
|
|
700
|
-
S.Struct({
|
|
701
|
-
description: S.String,
|
|
702
|
-
free: S.Boolean,
|
|
703
|
-
id: S.String,
|
|
704
|
-
name: S.String,
|
|
705
|
-
skuName: S.String,
|
|
706
|
-
}),
|
|
707
|
-
).annotate({ identifier: "Plan" }) as any as S.Schema<Plan>;
|
|
708
|
-
|
|
709
301
|
export type OfferingPlansList = Array<Plan>;
|
|
710
|
-
export const OfferingPlansList = /*@__PURE__*/ S.Array(Plan) as any as S.Schema<OfferingPlansList>;
|
|
711
|
-
|
|
712
302
|
export interface Schema {
|
|
713
303
|
parameters: unknown;
|
|
714
304
|
}
|
|
715
|
-
export const Schema = /*@__PURE__*/ S.suspend(() =>
|
|
716
|
-
S.Struct({
|
|
717
|
-
parameters: S.Unknown,
|
|
718
|
-
}),
|
|
719
|
-
).annotate({ identifier: "Schema" }) as any as S.Schema<Schema>;
|
|
720
|
-
|
|
721
305
|
export interface InstanceSchema {
|
|
722
306
|
create: Schema;
|
|
723
307
|
update: Schema;
|
|
724
308
|
}
|
|
725
|
-
export const InstanceSchema = /*@__PURE__*/ S.suspend(() =>
|
|
726
|
-
S.Struct({
|
|
727
|
-
create: Schema,
|
|
728
|
-
update: Schema,
|
|
729
|
-
}),
|
|
730
|
-
).annotate({ identifier: "InstanceSchema" }) as any as S.Schema<InstanceSchema>;
|
|
731
|
-
|
|
732
309
|
export interface Offering {
|
|
733
310
|
description: string;
|
|
734
311
|
documentationUrl: string;
|
|
@@ -741,35 +318,10 @@ export interface Offering {
|
|
|
741
318
|
schema?: InstanceSchema;
|
|
742
319
|
version: string;
|
|
743
320
|
}
|
|
744
|
-
export const Offering = /*@__PURE__*/ S.suspend(() =>
|
|
745
|
-
S.Struct({
|
|
746
|
-
description: S.String,
|
|
747
|
-
documentationUrl: S.String,
|
|
748
|
-
imageUrl: S.String,
|
|
749
|
-
latest: S.Boolean,
|
|
750
|
-
lifecycle: S.optional(S.String),
|
|
751
|
-
name: S.String,
|
|
752
|
-
plans: OfferingPlansList,
|
|
753
|
-
quotaCount: S.Number,
|
|
754
|
-
schema: S.optional(InstanceSchema),
|
|
755
|
-
version: S.String,
|
|
756
|
-
}),
|
|
757
|
-
).annotate({ identifier: "Offering" }) as any as S.Schema<Offering>;
|
|
758
|
-
|
|
759
321
|
export type ListOfferingsResponseOfferingsList = Array<Offering>;
|
|
760
|
-
export const ListOfferingsResponseOfferingsList = /*@__PURE__*/ S.Array(
|
|
761
|
-
Offering,
|
|
762
|
-
) as any as S.Schema<ListOfferingsResponseOfferingsList>;
|
|
763
|
-
|
|
764
322
|
export interface ListOfferingsResponse {
|
|
765
323
|
offerings: ListOfferingsResponseOfferingsList;
|
|
766
324
|
}
|
|
767
|
-
export const ListOfferingsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
768
|
-
S.Struct({
|
|
769
|
-
offerings: ListOfferingsResponseOfferingsList,
|
|
770
|
-
}),
|
|
771
|
-
).annotate({ identifier: "ListOfferingsResponse" }) as any as S.Schema<ListOfferingsResponse>;
|
|
772
|
-
|
|
773
325
|
export interface ListRestoresRequest {
|
|
774
326
|
/** Project id on which user has permissions */
|
|
775
327
|
projectId: string;
|
|
@@ -778,21 +330,6 @@ export interface ListRestoresRequest {
|
|
|
778
330
|
/** Instance id */
|
|
779
331
|
instanceId: string;
|
|
780
332
|
}
|
|
781
|
-
export const ListRestoresRequest = /*@__PURE__*/ S.suspend(() =>
|
|
782
|
-
S.Struct({
|
|
783
|
-
projectId: S.String.pipe(T.Label()),
|
|
784
|
-
regionId: S.String.pipe(T.Label()),
|
|
785
|
-
instanceId: S.String.pipe(T.Label()),
|
|
786
|
-
}).pipe(
|
|
787
|
-
T.Http({
|
|
788
|
-
method: "GET",
|
|
789
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
|
|
790
|
-
code: 200,
|
|
791
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
792
|
-
}),
|
|
793
|
-
),
|
|
794
|
-
).annotate({ identifier: "ListRestoresRequest" }) as any as S.Schema<ListRestoresRequest>;
|
|
795
|
-
|
|
796
333
|
export interface Restore {
|
|
797
334
|
backup_id: number;
|
|
798
335
|
finished_at: string;
|
|
@@ -800,30 +337,10 @@ export interface Restore {
|
|
|
800
337
|
status: string;
|
|
801
338
|
triggered_at?: string;
|
|
802
339
|
}
|
|
803
|
-
export const Restore = /*@__PURE__*/ S.suspend(() =>
|
|
804
|
-
S.Struct({
|
|
805
|
-
backup_id: S.Number,
|
|
806
|
-
finished_at: S.String,
|
|
807
|
-
id: S.Number,
|
|
808
|
-
status: S.String,
|
|
809
|
-
triggered_at: S.optional(S.String),
|
|
810
|
-
}),
|
|
811
|
-
).annotate({ identifier: "Restore" }) as any as S.Schema<Restore>;
|
|
812
|
-
|
|
813
340
|
export type ListRestoresResponseInstanceRestoresList = Array<Restore>;
|
|
814
|
-
export const ListRestoresResponseInstanceRestoresList = /*@__PURE__*/ S.Array(
|
|
815
|
-
Restore,
|
|
816
|
-
) as any as S.Schema<ListRestoresResponseInstanceRestoresList>;
|
|
817
|
-
|
|
818
341
|
export interface ListRestoresResponse {
|
|
819
342
|
instanceRestores: ListRestoresResponseInstanceRestoresList;
|
|
820
343
|
}
|
|
821
|
-
export const ListRestoresResponse = /*@__PURE__*/ S.suspend(() =>
|
|
822
|
-
S.Struct({
|
|
823
|
-
instanceRestores: ListRestoresResponseInstanceRestoresList,
|
|
824
|
-
}),
|
|
825
|
-
).annotate({ identifier: "ListRestoresResponse" }) as any as S.Schema<ListRestoresResponse>;
|
|
826
|
-
|
|
827
344
|
export interface PartialUpdateInstanceRequest {
|
|
828
345
|
/** Project id on which user has permissions */
|
|
829
346
|
projectId: string;
|
|
@@ -835,31 +352,7 @@ export interface PartialUpdateInstanceRequest {
|
|
|
835
352
|
parameters?: InstanceParameters;
|
|
836
353
|
planId?: string;
|
|
837
354
|
}
|
|
838
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
839
|
-
S.Struct({
|
|
840
|
-
projectId: S.String.pipe(T.Label()),
|
|
841
|
-
regionId: S.String.pipe(T.Label()),
|
|
842
|
-
instanceId: S.String.pipe(T.Label()),
|
|
843
|
-
instanceName: S.optional(S.String),
|
|
844
|
-
parameters: S.optional(InstanceParameters),
|
|
845
|
-
planId: S.optional(S.String),
|
|
846
|
-
}).pipe(
|
|
847
|
-
T.Http({
|
|
848
|
-
method: "PATCH",
|
|
849
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
850
|
-
code: 200,
|
|
851
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
852
|
-
}),
|
|
853
|
-
),
|
|
854
|
-
).annotate({
|
|
855
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
856
|
-
}) as any as S.Schema<PartialUpdateInstanceRequest>;
|
|
857
|
-
|
|
858
355
|
export interface PartialUpdateInstanceResponse {}
|
|
859
|
-
export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
860
|
-
identifier: "PartialUpdateInstanceResponse",
|
|
861
|
-
}) as any as S.Schema<PartialUpdateInstanceResponse>;
|
|
862
|
-
|
|
863
356
|
export interface TriggerRecreateRequest {
|
|
864
357
|
/** Project id on which user has permissions */
|
|
865
358
|
projectId: string;
|
|
@@ -868,21 +361,6 @@ export interface TriggerRecreateRequest {
|
|
|
868
361
|
/** Instance id */
|
|
869
362
|
instanceId: string;
|
|
870
363
|
}
|
|
871
|
-
export const TriggerRecreateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
872
|
-
S.Struct({
|
|
873
|
-
projectId: S.String.pipe(T.Label()),
|
|
874
|
-
regionId: S.String.pipe(T.Label()),
|
|
875
|
-
instanceId: S.String.pipe(T.Label()),
|
|
876
|
-
}).pipe(
|
|
877
|
-
T.Http({
|
|
878
|
-
method: "PATCH",
|
|
879
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
|
|
880
|
-
code: 200,
|
|
881
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
882
|
-
}),
|
|
883
|
-
),
|
|
884
|
-
).annotate({ identifier: "TriggerRecreateRequest" }) as any as S.Schema<TriggerRecreateRequest>;
|
|
885
|
-
|
|
886
364
|
export interface TriggerRestartRequest {
|
|
887
365
|
/** Project id on which user has permissions */
|
|
888
366
|
projectId: string;
|
|
@@ -891,21 +369,6 @@ export interface TriggerRestartRequest {
|
|
|
891
369
|
/** Instance id */
|
|
892
370
|
instanceId: string;
|
|
893
371
|
}
|
|
894
|
-
export const TriggerRestartRequest = /*@__PURE__*/ S.suspend(() =>
|
|
895
|
-
S.Struct({
|
|
896
|
-
projectId: S.String.pipe(T.Label()),
|
|
897
|
-
regionId: S.String.pipe(T.Label()),
|
|
898
|
-
instanceId: S.String.pipe(T.Label()),
|
|
899
|
-
}).pipe(
|
|
900
|
-
T.Http({
|
|
901
|
-
method: "PATCH",
|
|
902
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
|
|
903
|
-
code: 200,
|
|
904
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
905
|
-
}),
|
|
906
|
-
),
|
|
907
|
-
).annotate({ identifier: "TriggerRestartRequest" }) as any as S.Schema<TriggerRestartRequest>;
|
|
908
|
-
|
|
909
372
|
export interface TriggerRestoreRequest {
|
|
910
373
|
/** Project id on which user has permissions */
|
|
911
374
|
projectId: string;
|
|
@@ -916,31 +379,9 @@ export interface TriggerRestoreRequest {
|
|
|
916
379
|
/** Backup id */
|
|
917
380
|
backupId: number;
|
|
918
381
|
}
|
|
919
|
-
export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
920
|
-
S.Struct({
|
|
921
|
-
projectId: S.String.pipe(T.Label()),
|
|
922
|
-
regionId: S.String.pipe(T.Label()),
|
|
923
|
-
instanceId: S.String.pipe(T.Label()),
|
|
924
|
-
backupId: S.Number.pipe(T.Label()),
|
|
925
|
-
}).pipe(
|
|
926
|
-
T.Http({
|
|
927
|
-
method: "POST",
|
|
928
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
|
|
929
|
-
code: 200,
|
|
930
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
931
|
-
}),
|
|
932
|
-
),
|
|
933
|
-
).annotate({ identifier: "TriggerRestoreRequest" }) as any as S.Schema<TriggerRestoreRequest>;
|
|
934
|
-
|
|
935
382
|
export interface TriggerRestoreResponse {
|
|
936
383
|
id: number;
|
|
937
384
|
}
|
|
938
|
-
export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
939
|
-
S.Struct({
|
|
940
|
-
id: S.Number,
|
|
941
|
-
}),
|
|
942
|
-
).annotate({ identifier: "TriggerRestoreResponse" }) as any as S.Schema<TriggerRestoreResponse>;
|
|
943
|
-
|
|
944
385
|
export interface UpdateBackupsConfigRequest {
|
|
945
386
|
/** Project id on which user has permissions */
|
|
946
387
|
projectId: string;
|
|
@@ -950,35 +391,9 @@ export interface UpdateBackupsConfigRequest {
|
|
|
950
391
|
instanceId: string;
|
|
951
392
|
encryption_key?: string;
|
|
952
393
|
}
|
|
953
|
-
export const UpdateBackupsConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
954
|
-
S.Struct({
|
|
955
|
-
projectId: S.String.pipe(T.Label()),
|
|
956
|
-
regionId: S.String.pipe(T.Label()),
|
|
957
|
-
instanceId: S.String.pipe(T.Label()),
|
|
958
|
-
encryption_key: S.optional(S.String),
|
|
959
|
-
}).pipe(
|
|
960
|
-
T.Http({
|
|
961
|
-
method: "PATCH",
|
|
962
|
-
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
|
|
963
|
-
code: 200,
|
|
964
|
-
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
965
|
-
}),
|
|
966
|
-
),
|
|
967
|
-
).annotate({
|
|
968
|
-
identifier: "UpdateBackupsConfigRequest",
|
|
969
|
-
}) as any as S.Schema<UpdateBackupsConfigRequest>;
|
|
970
|
-
|
|
971
394
|
export interface UpdateBackupsConfigResponse {
|
|
972
395
|
message: string;
|
|
973
396
|
}
|
|
974
|
-
export const UpdateBackupsConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
975
|
-
S.Struct({
|
|
976
|
-
message: S.String,
|
|
977
|
-
}),
|
|
978
|
-
).annotate({
|
|
979
|
-
identifier: "UpdateBackupsConfigResponse",
|
|
980
|
-
}) as any as S.Schema<UpdateBackupsConfigResponse>;
|
|
981
|
-
|
|
982
397
|
export type CreateBackupError = BadRequest | NotFound | StackitOpError;
|
|
983
398
|
/** create a backup */
|
|
984
399
|
export const createBackup: API.OperationMethod<
|
|
@@ -987,8 +402,8 @@ export const createBackup: API.OperationMethod<
|
|
|
987
402
|
CreateBackupError,
|
|
988
403
|
StackitOpContext
|
|
989
404
|
> = /*@__PURE__*/ API.make(() => ({
|
|
990
|
-
input: CreateBackupRequest
|
|
991
|
-
output: CreateBackupResponseItem
|
|
405
|
+
input: __S(104, __c13, 0) as any as S.Schema<CreateBackupRequest>,
|
|
406
|
+
output: __S(105, __c13, 1) as any as S.Schema<CreateBackupResponseItem>,
|
|
992
407
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
993
408
|
protocol: StackitProtocol,
|
|
994
409
|
retry: Retry.Retry,
|
|
@@ -1002,8 +417,8 @@ export const createCredentials: API.OperationMethod<
|
|
|
1002
417
|
CreateCredentialsError,
|
|
1003
418
|
StackitOpContext
|
|
1004
419
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1005
|
-
input: CreateCredentialsRequest
|
|
1006
|
-
output: CredentialsResponse
|
|
420
|
+
input: __S(112, __c14, 0) as any as S.Schema<CreateCredentialsRequest>,
|
|
421
|
+
output: __S(130, __c16, 2) as any as S.Schema<CredentialsResponse>,
|
|
1007
422
|
errors: [BadRequest, UnknownStackitError],
|
|
1008
423
|
protocol: StackitProtocol,
|
|
1009
424
|
retry: Retry.Retry,
|
|
@@ -1017,8 +432,8 @@ export const createInstance: API.OperationMethod<
|
|
|
1017
432
|
CreateInstanceError,
|
|
1018
433
|
StackitOpContext
|
|
1019
434
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1020
|
-
input: CreateInstanceRequest
|
|
1021
|
-
output: CreateInstanceResponse
|
|
435
|
+
input: __S(136, __c17, 0) as any as S.Schema<CreateInstanceRequest>,
|
|
436
|
+
output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
|
|
1022
437
|
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
1023
438
|
protocol: StackitProtocol,
|
|
1024
439
|
retry: Retry.Retry,
|
|
@@ -1032,8 +447,8 @@ export const deleteCredentials: API.OperationMethod<
|
|
|
1032
447
|
DeleteCredentialsError,
|
|
1033
448
|
StackitOpContext
|
|
1034
449
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1035
|
-
input: DeleteCredentialsRequest
|
|
1036
|
-
output: DeleteCredentialsResponse
|
|
450
|
+
input: __S(160, __c20, 0) as any as S.Schema<DeleteCredentialsRequest>,
|
|
451
|
+
output: __S(168, __c21, 0) as any as S.Schema<DeleteCredentialsResponse>,
|
|
1037
452
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1038
453
|
protocol: StackitProtocol,
|
|
1039
454
|
retry: Retry.Retry,
|
|
@@ -1047,8 +462,8 @@ export const deleteInstance: API.OperationMethod<
|
|
|
1047
462
|
DeleteInstanceError,
|
|
1048
463
|
StackitOpContext
|
|
1049
464
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1050
|
-
input: DeleteInstanceRequest
|
|
1051
|
-
output: DeleteInstanceResponse
|
|
465
|
+
input: __S(176, __c22, 0) as any as S.Schema<DeleteInstanceRequest>,
|
|
466
|
+
output: __S(168, __c21, 0) as any as S.Schema<DeleteInstanceResponse>,
|
|
1052
467
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1053
468
|
protocol: StackitProtocol,
|
|
1054
469
|
retry: Retry.Retry,
|
|
@@ -1062,8 +477,8 @@ export const downloadBackup: API.OperationMethod<
|
|
|
1062
477
|
DownloadBackupError,
|
|
1063
478
|
StackitOpContext
|
|
1064
479
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1065
|
-
input: DownloadBackupRequest
|
|
1066
|
-
output: DownloadBackupResponse
|
|
480
|
+
input: __S(184, __c23, 0) as any as S.Schema<DownloadBackupRequest>,
|
|
481
|
+
output: __S(168, __c21, 0) as any as S.Schema<DownloadBackupResponse>,
|
|
1067
482
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1068
483
|
protocol: StackitProtocol,
|
|
1069
484
|
retry: Retry.Retry,
|
|
@@ -1077,8 +492,8 @@ export const getCredentials: API.OperationMethod<
|
|
|
1077
492
|
GetCredentialsError,
|
|
1078
493
|
StackitOpContext
|
|
1079
494
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1080
|
-
input: GetCredentialsRequest
|
|
1081
|
-
output: CredentialsResponse
|
|
495
|
+
input: __S(192, __c24, 0) as any as S.Schema<GetCredentialsRequest>,
|
|
496
|
+
output: __S(130, __c16, 2) as any as S.Schema<CredentialsResponse>,
|
|
1082
497
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1083
498
|
protocol: StackitProtocol,
|
|
1084
499
|
retry: Retry.Retry,
|
|
@@ -1092,8 +507,8 @@ export const getInstance: API.OperationMethod<
|
|
|
1092
507
|
GetInstanceError,
|
|
1093
508
|
StackitOpContext
|
|
1094
509
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1095
|
-
input: GetInstanceRequest
|
|
1096
|
-
output: Instance
|
|
510
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetInstanceRequest>,
|
|
511
|
+
output: __S(9, __c1, 1) as any as S.Schema<Instance>,
|
|
1097
512
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1098
513
|
protocol: StackitProtocol,
|
|
1099
514
|
retry: Retry.Retry,
|
|
@@ -1107,8 +522,8 @@ export const getMetrics: API.OperationMethod<
|
|
|
1107
522
|
GetMetricsError,
|
|
1108
523
|
StackitOpContext
|
|
1109
524
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1110
|
-
input: GetMetricsRequest
|
|
1111
|
-
output: GetMetricsResponse
|
|
525
|
+
input: __S(16, __c2, 0) as any as S.Schema<GetMetricsRequest>,
|
|
526
|
+
output: __S(17, __c2, 1) as any as S.Schema<GetMetricsResponse>,
|
|
1112
527
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1113
528
|
protocol: StackitProtocol,
|
|
1114
529
|
retry: Retry.Retry,
|
|
@@ -1122,8 +537,8 @@ export const listBackups: API.OperationMethod<
|
|
|
1122
537
|
ListBackupsError,
|
|
1123
538
|
StackitOpContext
|
|
1124
539
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1125
|
-
input: ListBackupsRequest
|
|
1126
|
-
output: ListBackupsResponse2
|
|
540
|
+
input: __S(24, __c3, 0) as any as S.Schema<ListBackupsRequest>,
|
|
541
|
+
output: __S(27, __c3, 3) as any as S.Schema<ListBackupsResponse2>,
|
|
1127
542
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1128
543
|
protocol: StackitProtocol,
|
|
1129
544
|
retry: Retry.Retry,
|
|
@@ -1137,8 +552,8 @@ export const listCredentials: API.OperationMethod<
|
|
|
1137
552
|
ListCredentialsError,
|
|
1138
553
|
StackitOpContext
|
|
1139
554
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1140
|
-
input: ListCredentialsRequest
|
|
1141
|
-
output: ListCredentialsResponse
|
|
555
|
+
input: __S(32, __c4, 0) as any as S.Schema<ListCredentialsRequest>,
|
|
556
|
+
output: __S(35, __c4, 3) as any as S.Schema<ListCredentialsResponse>,
|
|
1142
557
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1143
558
|
protocol: StackitProtocol,
|
|
1144
559
|
retry: Retry.Retry,
|
|
@@ -1152,8 +567,8 @@ export const listInstances: API.OperationMethod<
|
|
|
1152
567
|
ListInstancesError,
|
|
1153
568
|
StackitOpContext
|
|
1154
569
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1155
|
-
input: ListInstancesRequest
|
|
1156
|
-
output: ListInstancesResponse
|
|
570
|
+
input: __S(40, __c5, 0) as any as S.Schema<ListInstancesRequest>,
|
|
571
|
+
output: __S(42, __c5, 2) as any as S.Schema<ListInstancesResponse>,
|
|
1157
572
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1158
573
|
protocol: StackitProtocol,
|
|
1159
574
|
retry: Retry.Retry,
|
|
@@ -1167,8 +582,8 @@ export const listOfferings: API.OperationMethod<
|
|
|
1167
582
|
ListOfferingsError,
|
|
1168
583
|
StackitOpContext
|
|
1169
584
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1170
|
-
input: ListOfferingsRequest
|
|
1171
|
-
output: ListOfferingsResponse
|
|
585
|
+
input: __S(48, __c6, 0) as any as S.Schema<ListOfferingsRequest>,
|
|
586
|
+
output: __S(55, __c6, 7) as any as S.Schema<ListOfferingsResponse>,
|
|
1172
587
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1173
588
|
protocol: StackitProtocol,
|
|
1174
589
|
retry: Retry.Retry,
|
|
@@ -1182,8 +597,8 @@ export const listRestores: API.OperationMethod<
|
|
|
1182
597
|
ListRestoresError,
|
|
1183
598
|
StackitOpContext
|
|
1184
599
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1185
|
-
input: ListRestoresRequest
|
|
1186
|
-
output: ListRestoresResponse
|
|
600
|
+
input: __S(56, __c7, 0) as any as S.Schema<ListRestoresRequest>,
|
|
601
|
+
output: __S(59, __c7, 3) as any as S.Schema<ListRestoresResponse>,
|
|
1187
602
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1188
603
|
protocol: StackitProtocol,
|
|
1189
604
|
retry: Retry.Retry,
|
|
@@ -1197,8 +612,8 @@ export const partialUpdateInstance: API.OperationMethod<
|
|
|
1197
612
|
PartialUpdateInstanceError,
|
|
1198
613
|
StackitOpContext
|
|
1199
614
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1200
|
-
input: PartialUpdateInstanceRequest
|
|
1201
|
-
output: PartialUpdateInstanceResponse
|
|
615
|
+
input: __S(64, __c8, 0) as any as S.Schema<PartialUpdateInstanceRequest>,
|
|
616
|
+
output: __S(168, __c21, 0) as any as S.Schema<PartialUpdateInstanceResponse>,
|
|
1202
617
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1203
618
|
protocol: StackitProtocol,
|
|
1204
619
|
retry: Retry.Retry,
|
|
@@ -1212,8 +627,8 @@ export const triggerRecreate: API.OperationMethod<
|
|
|
1212
627
|
TriggerRecreateError,
|
|
1213
628
|
StackitOpContext
|
|
1214
629
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1215
|
-
input: TriggerRecreateRequest
|
|
1216
|
-
output: CreateInstanceResponse
|
|
630
|
+
input: __S(72, __c9, 0) as any as S.Schema<TriggerRecreateRequest>,
|
|
631
|
+
output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
|
|
1217
632
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1218
633
|
protocol: StackitProtocol,
|
|
1219
634
|
retry: Retry.Retry,
|
|
@@ -1227,8 +642,8 @@ export const triggerRestart: API.OperationMethod<
|
|
|
1227
642
|
TriggerRestartError,
|
|
1228
643
|
StackitOpContext
|
|
1229
644
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1230
|
-
input: TriggerRestartRequest
|
|
1231
|
-
output: CreateInstanceResponse
|
|
645
|
+
input: __S(80, __c10, 0) as any as S.Schema<TriggerRestartRequest>,
|
|
646
|
+
output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
|
|
1232
647
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1233
648
|
protocol: StackitProtocol,
|
|
1234
649
|
retry: Retry.Retry,
|
|
@@ -1242,8 +657,8 @@ export const triggerRestore: API.OperationMethod<
|
|
|
1242
657
|
TriggerRestoreError,
|
|
1243
658
|
StackitOpContext
|
|
1244
659
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1245
|
-
input: TriggerRestoreRequest
|
|
1246
|
-
output: TriggerRestoreResponse
|
|
660
|
+
input: __S(88, __c11, 0) as any as S.Schema<TriggerRestoreRequest>,
|
|
661
|
+
output: __S(89, __c11, 1) as any as S.Schema<TriggerRestoreResponse>,
|
|
1247
662
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1248
663
|
protocol: StackitProtocol,
|
|
1249
664
|
retry: Retry.Retry,
|
|
@@ -1257,9 +672,645 @@ export const updateBackupsConfig: API.OperationMethod<
|
|
|
1257
672
|
UpdateBackupsConfigError,
|
|
1258
673
|
StackitOpContext
|
|
1259
674
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1260
|
-
input: UpdateBackupsConfigRequest
|
|
1261
|
-
output: UpdateBackupsConfigResponse
|
|
675
|
+
input: __S(96, __c12, 0) as any as S.Schema<UpdateBackupsConfigRequest>,
|
|
676
|
+
output: __S(97, __c12, 1) as any as S.Schema<UpdateBackupsConfigResponse>,
|
|
1262
677
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1263
678
|
protocol: StackitProtocol,
|
|
1264
679
|
retry: Retry.Retry,
|
|
1265
680
|
}));
|
|
681
|
+
|
|
682
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
683
|
+
function __c0(j: number): any {
|
|
684
|
+
switch (j) {
|
|
685
|
+
case 0:
|
|
686
|
+
return S.suspend(() =>
|
|
687
|
+
S.Struct({
|
|
688
|
+
projectId: S.String.pipe(T.Label()),
|
|
689
|
+
regionId: S.String.pipe(T.Label()),
|
|
690
|
+
instanceId: S.String.pipe(T.Label()),
|
|
691
|
+
}).pipe(
|
|
692
|
+
T.Http({
|
|
693
|
+
method: "GET",
|
|
694
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
695
|
+
code: 200,
|
|
696
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
697
|
+
}),
|
|
698
|
+
),
|
|
699
|
+
).annotate({ identifier: "GetInstanceRequest" });
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function __c1(j: number): any {
|
|
703
|
+
switch (j) {
|
|
704
|
+
case 0:
|
|
705
|
+
return S.suspend(() =>
|
|
706
|
+
S.Struct({
|
|
707
|
+
description: S.String,
|
|
708
|
+
state: S.String,
|
|
709
|
+
type: S.String,
|
|
710
|
+
}),
|
|
711
|
+
).annotate({ identifier: "InstanceLastOperation" });
|
|
712
|
+
case 1:
|
|
713
|
+
return S.suspend(() =>
|
|
714
|
+
S.Struct({
|
|
715
|
+
cfGuid: S.String,
|
|
716
|
+
cfOrganizationGuid: S.String,
|
|
717
|
+
cfSpaceGuid: S.String,
|
|
718
|
+
dashboardUrl: S.String,
|
|
719
|
+
imageUrl: S.String,
|
|
720
|
+
instanceId: S.optional(S.String),
|
|
721
|
+
lastOperation: __S(8, __c1, 0),
|
|
722
|
+
name: S.String,
|
|
723
|
+
offeringName: S.String,
|
|
724
|
+
offeringVersion: S.String,
|
|
725
|
+
parameters: S.Unknown,
|
|
726
|
+
planId: S.String,
|
|
727
|
+
planName: S.String,
|
|
728
|
+
status: S.optional(S.String),
|
|
729
|
+
}),
|
|
730
|
+
).annotate({ identifier: "Instance" });
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
function __c2(j: number): any {
|
|
734
|
+
switch (j) {
|
|
735
|
+
case 0:
|
|
736
|
+
return S.suspend(() =>
|
|
737
|
+
S.Struct({
|
|
738
|
+
projectId: S.String.pipe(T.Label()),
|
|
739
|
+
regionId: S.String.pipe(T.Label()),
|
|
740
|
+
instanceId: S.String.pipe(T.Label()),
|
|
741
|
+
}).pipe(
|
|
742
|
+
T.Http({
|
|
743
|
+
method: "GET",
|
|
744
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
|
|
745
|
+
code: 200,
|
|
746
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
747
|
+
}),
|
|
748
|
+
),
|
|
749
|
+
).annotate({ identifier: "GetMetricsRequest" });
|
|
750
|
+
case 1:
|
|
751
|
+
return S.suspend(() =>
|
|
752
|
+
S.Struct({
|
|
753
|
+
cpuIdleTime: S.optional(S.Number),
|
|
754
|
+
cpuLoadPercent: S.Number,
|
|
755
|
+
cpuSystemTime: S.optional(S.Number),
|
|
756
|
+
cpuUserTime: S.optional(S.Number),
|
|
757
|
+
diskEphemeralTotal: S.Number,
|
|
758
|
+
diskEphemeralUsed: S.Number,
|
|
759
|
+
diskPersistentTotal: S.Number,
|
|
760
|
+
diskPersistentUsed: S.Number,
|
|
761
|
+
load1: S.Number,
|
|
762
|
+
load15: S.Number,
|
|
763
|
+
load5: S.Number,
|
|
764
|
+
memoryTotal: S.Number,
|
|
765
|
+
memoryUsed: S.Number,
|
|
766
|
+
parachuteDiskEphemeralActivated: S.Boolean,
|
|
767
|
+
parachuteDiskEphemeralTotal: S.Number,
|
|
768
|
+
parachuteDiskEphemeralUsed: S.Number,
|
|
769
|
+
parachuteDiskEphemeralUsedPercent: S.Number,
|
|
770
|
+
parachuteDiskEphemeralUsedThreshold: S.Number,
|
|
771
|
+
parachuteDiskPersistentActivated: S.Boolean,
|
|
772
|
+
parachuteDiskPersistentTotal: S.Number,
|
|
773
|
+
parachuteDiskPersistentUsed: S.Number,
|
|
774
|
+
parachuteDiskPersistentUsedPercent: S.Number,
|
|
775
|
+
parachuteDiskPersistentUsedThreshold: S.Number,
|
|
776
|
+
}),
|
|
777
|
+
).annotate({ identifier: "GetMetricsResponse" });
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
function __c3(j: number): any {
|
|
781
|
+
switch (j) {
|
|
782
|
+
case 0:
|
|
783
|
+
return S.suspend(() =>
|
|
784
|
+
S.Struct({
|
|
785
|
+
projectId: S.String.pipe(T.Label()),
|
|
786
|
+
regionId: S.String.pipe(T.Label()),
|
|
787
|
+
instanceId: S.String.pipe(T.Label()),
|
|
788
|
+
}).pipe(
|
|
789
|
+
T.Http({
|
|
790
|
+
method: "GET",
|
|
791
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
|
|
792
|
+
code: 200,
|
|
793
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
794
|
+
}),
|
|
795
|
+
),
|
|
796
|
+
).annotate({ identifier: "ListBackupsRequest" });
|
|
797
|
+
case 1:
|
|
798
|
+
return S.suspend(() =>
|
|
799
|
+
S.Struct({
|
|
800
|
+
downloadable: S.optional(S.Boolean),
|
|
801
|
+
finished_at: S.String,
|
|
802
|
+
id: S.Number,
|
|
803
|
+
size: S.optional(S.Number),
|
|
804
|
+
status: S.String,
|
|
805
|
+
triggered_at: S.optional(S.String),
|
|
806
|
+
}),
|
|
807
|
+
).annotate({ identifier: "Backup" });
|
|
808
|
+
case 2:
|
|
809
|
+
return S.Array(__S(25, __c3, 1));
|
|
810
|
+
case 3:
|
|
811
|
+
return S.suspend(() => __S(26, __c3, 2).pipe(T.RawResponseRoot())).annotate({
|
|
812
|
+
identifier: "ListBackupsResponse2",
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
function __c4(j: number): any {
|
|
817
|
+
switch (j) {
|
|
818
|
+
case 0:
|
|
819
|
+
return S.suspend(() =>
|
|
820
|
+
S.Struct({
|
|
821
|
+
projectId: S.String.pipe(T.Label()),
|
|
822
|
+
regionId: S.String.pipe(T.Label()),
|
|
823
|
+
instanceId: S.String.pipe(T.Label()),
|
|
824
|
+
}).pipe(
|
|
825
|
+
T.Http({
|
|
826
|
+
method: "GET",
|
|
827
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
|
|
828
|
+
code: 200,
|
|
829
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
830
|
+
}),
|
|
831
|
+
),
|
|
832
|
+
).annotate({ identifier: "ListCredentialsRequest" });
|
|
833
|
+
case 1:
|
|
834
|
+
return S.suspend(() =>
|
|
835
|
+
S.Struct({
|
|
836
|
+
id: S.String,
|
|
837
|
+
}),
|
|
838
|
+
).annotate({ identifier: "CredentialsListItem" });
|
|
839
|
+
case 2:
|
|
840
|
+
return S.Array(__S(33, __c4, 1));
|
|
841
|
+
case 3:
|
|
842
|
+
return S.suspend(() =>
|
|
843
|
+
S.Struct({
|
|
844
|
+
credentialsList: __S(34, __c4, 2),
|
|
845
|
+
}),
|
|
846
|
+
).annotate({ identifier: "ListCredentialsResponse" });
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
function __c5(j: number): any {
|
|
850
|
+
switch (j) {
|
|
851
|
+
case 0:
|
|
852
|
+
return S.suspend(() =>
|
|
853
|
+
S.Struct({
|
|
854
|
+
projectId: S.String.pipe(T.Label()),
|
|
855
|
+
regionId: S.String.pipe(T.Label()),
|
|
856
|
+
}).pipe(
|
|
857
|
+
T.Http({
|
|
858
|
+
method: "GET",
|
|
859
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
|
|
860
|
+
code: 200,
|
|
861
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
862
|
+
}),
|
|
863
|
+
),
|
|
864
|
+
).annotate({ identifier: "ListInstancesRequest" });
|
|
865
|
+
case 1:
|
|
866
|
+
return S.Array(__S(9, __c1, 1));
|
|
867
|
+
case 2:
|
|
868
|
+
return S.suspend(() =>
|
|
869
|
+
S.Struct({
|
|
870
|
+
instances: __S(41, __c5, 1),
|
|
871
|
+
}),
|
|
872
|
+
).annotate({ identifier: "ListInstancesResponse" });
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function __c6(j: number): any {
|
|
876
|
+
switch (j) {
|
|
877
|
+
case 0:
|
|
878
|
+
return S.suspend(() =>
|
|
879
|
+
S.Struct({
|
|
880
|
+
projectId: S.String.pipe(T.Label()),
|
|
881
|
+
regionId: S.String.pipe(T.Label()),
|
|
882
|
+
}).pipe(
|
|
883
|
+
T.Http({
|
|
884
|
+
method: "GET",
|
|
885
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
|
|
886
|
+
code: 200,
|
|
887
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
888
|
+
}),
|
|
889
|
+
),
|
|
890
|
+
).annotate({ identifier: "ListOfferingsRequest" });
|
|
891
|
+
case 1:
|
|
892
|
+
return S.suspend(() =>
|
|
893
|
+
S.Struct({
|
|
894
|
+
description: S.String,
|
|
895
|
+
free: S.Boolean,
|
|
896
|
+
id: S.String,
|
|
897
|
+
name: S.String,
|
|
898
|
+
skuName: S.String,
|
|
899
|
+
}),
|
|
900
|
+
).annotate({ identifier: "Plan" });
|
|
901
|
+
case 2:
|
|
902
|
+
return S.Array(__S(49, __c6, 1));
|
|
903
|
+
case 3:
|
|
904
|
+
return S.suspend(() =>
|
|
905
|
+
S.Struct({
|
|
906
|
+
parameters: S.Unknown,
|
|
907
|
+
}),
|
|
908
|
+
).annotate({ identifier: "Schema" });
|
|
909
|
+
case 4:
|
|
910
|
+
return S.suspend(() =>
|
|
911
|
+
S.Struct({
|
|
912
|
+
create: __S(51, __c6, 3),
|
|
913
|
+
update: __S(51, __c6, 3),
|
|
914
|
+
}),
|
|
915
|
+
).annotate({ identifier: "InstanceSchema" });
|
|
916
|
+
case 5:
|
|
917
|
+
return S.suspend(() =>
|
|
918
|
+
S.Struct({
|
|
919
|
+
description: S.String,
|
|
920
|
+
documentationUrl: S.String,
|
|
921
|
+
imageUrl: S.String,
|
|
922
|
+
latest: S.Boolean,
|
|
923
|
+
lifecycle: S.optional(S.String),
|
|
924
|
+
name: S.String,
|
|
925
|
+
plans: __S(50, __c6, 2),
|
|
926
|
+
quotaCount: S.Number,
|
|
927
|
+
schema: S.optional(__S(52, __c6, 4)),
|
|
928
|
+
version: S.String,
|
|
929
|
+
}),
|
|
930
|
+
).annotate({ identifier: "Offering" });
|
|
931
|
+
case 6:
|
|
932
|
+
return S.Array(__S(53, __c6, 5));
|
|
933
|
+
case 7:
|
|
934
|
+
return S.suspend(() =>
|
|
935
|
+
S.Struct({
|
|
936
|
+
offerings: __S(54, __c6, 6),
|
|
937
|
+
}),
|
|
938
|
+
).annotate({ identifier: "ListOfferingsResponse" });
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
function __c7(j: number): any {
|
|
942
|
+
switch (j) {
|
|
943
|
+
case 0:
|
|
944
|
+
return S.suspend(() =>
|
|
945
|
+
S.Struct({
|
|
946
|
+
projectId: S.String.pipe(T.Label()),
|
|
947
|
+
regionId: S.String.pipe(T.Label()),
|
|
948
|
+
instanceId: S.String.pipe(T.Label()),
|
|
949
|
+
}).pipe(
|
|
950
|
+
T.Http({
|
|
951
|
+
method: "GET",
|
|
952
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
|
|
953
|
+
code: 200,
|
|
954
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
955
|
+
}),
|
|
956
|
+
),
|
|
957
|
+
).annotate({ identifier: "ListRestoresRequest" });
|
|
958
|
+
case 1:
|
|
959
|
+
return S.suspend(() =>
|
|
960
|
+
S.Struct({
|
|
961
|
+
backup_id: S.Number,
|
|
962
|
+
finished_at: S.String,
|
|
963
|
+
id: S.Number,
|
|
964
|
+
status: S.String,
|
|
965
|
+
triggered_at: S.optional(S.String),
|
|
966
|
+
}),
|
|
967
|
+
).annotate({ identifier: "Restore" });
|
|
968
|
+
case 2:
|
|
969
|
+
return S.Array(__S(57, __c7, 1));
|
|
970
|
+
case 3:
|
|
971
|
+
return S.suspend(() =>
|
|
972
|
+
S.Struct({
|
|
973
|
+
instanceRestores: __S(58, __c7, 2),
|
|
974
|
+
}),
|
|
975
|
+
).annotate({ identifier: "ListRestoresResponse" });
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function __c8(j: number): any {
|
|
979
|
+
switch (j) {
|
|
980
|
+
case 0:
|
|
981
|
+
return S.suspend(() =>
|
|
982
|
+
S.Struct({
|
|
983
|
+
projectId: S.String.pipe(T.Label()),
|
|
984
|
+
regionId: S.String.pipe(T.Label()),
|
|
985
|
+
instanceId: S.String.pipe(T.Label()),
|
|
986
|
+
instanceName: S.optional(S.String),
|
|
987
|
+
parameters: S.optional(__S(145, __c18, 1)),
|
|
988
|
+
planId: S.optional(S.String),
|
|
989
|
+
}).pipe(
|
|
990
|
+
T.Http({
|
|
991
|
+
method: "PATCH",
|
|
992
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
993
|
+
code: 200,
|
|
994
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
995
|
+
}),
|
|
996
|
+
),
|
|
997
|
+
).annotate({ identifier: "PartialUpdateInstanceRequest" });
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
function __c9(j: number): any {
|
|
1001
|
+
switch (j) {
|
|
1002
|
+
case 0:
|
|
1003
|
+
return S.suspend(() =>
|
|
1004
|
+
S.Struct({
|
|
1005
|
+
projectId: S.String.pipe(T.Label()),
|
|
1006
|
+
regionId: S.String.pipe(T.Label()),
|
|
1007
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1008
|
+
}).pipe(
|
|
1009
|
+
T.Http({
|
|
1010
|
+
method: "PATCH",
|
|
1011
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
|
|
1012
|
+
code: 200,
|
|
1013
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1014
|
+
}),
|
|
1015
|
+
),
|
|
1016
|
+
).annotate({ identifier: "TriggerRecreateRequest" });
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
function __c10(j: number): any {
|
|
1020
|
+
switch (j) {
|
|
1021
|
+
case 0:
|
|
1022
|
+
return S.suspend(() =>
|
|
1023
|
+
S.Struct({
|
|
1024
|
+
projectId: S.String.pipe(T.Label()),
|
|
1025
|
+
regionId: S.String.pipe(T.Label()),
|
|
1026
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1027
|
+
}).pipe(
|
|
1028
|
+
T.Http({
|
|
1029
|
+
method: "PATCH",
|
|
1030
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
|
|
1031
|
+
code: 200,
|
|
1032
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1033
|
+
}),
|
|
1034
|
+
),
|
|
1035
|
+
).annotate({ identifier: "TriggerRestartRequest" });
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
function __c11(j: number): any {
|
|
1039
|
+
switch (j) {
|
|
1040
|
+
case 0:
|
|
1041
|
+
return S.suspend(() =>
|
|
1042
|
+
S.Struct({
|
|
1043
|
+
projectId: S.String.pipe(T.Label()),
|
|
1044
|
+
regionId: S.String.pipe(T.Label()),
|
|
1045
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1046
|
+
backupId: S.Number.pipe(T.Label()),
|
|
1047
|
+
}).pipe(
|
|
1048
|
+
T.Http({
|
|
1049
|
+
method: "POST",
|
|
1050
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
|
|
1051
|
+
code: 200,
|
|
1052
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1053
|
+
}),
|
|
1054
|
+
),
|
|
1055
|
+
).annotate({ identifier: "TriggerRestoreRequest" });
|
|
1056
|
+
case 1:
|
|
1057
|
+
return S.suspend(() =>
|
|
1058
|
+
S.Struct({
|
|
1059
|
+
id: S.Number,
|
|
1060
|
+
}),
|
|
1061
|
+
).annotate({ identifier: "TriggerRestoreResponse" });
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
function __c12(j: number): any {
|
|
1065
|
+
switch (j) {
|
|
1066
|
+
case 0:
|
|
1067
|
+
return S.suspend(() =>
|
|
1068
|
+
S.Struct({
|
|
1069
|
+
projectId: S.String.pipe(T.Label()),
|
|
1070
|
+
regionId: S.String.pipe(T.Label()),
|
|
1071
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1072
|
+
encryption_key: S.optional(S.String),
|
|
1073
|
+
}).pipe(
|
|
1074
|
+
T.Http({
|
|
1075
|
+
method: "PATCH",
|
|
1076
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
|
|
1077
|
+
code: 200,
|
|
1078
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1079
|
+
}),
|
|
1080
|
+
),
|
|
1081
|
+
).annotate({ identifier: "UpdateBackupsConfigRequest" });
|
|
1082
|
+
case 1:
|
|
1083
|
+
return S.suspend(() =>
|
|
1084
|
+
S.Struct({
|
|
1085
|
+
message: S.String,
|
|
1086
|
+
}),
|
|
1087
|
+
).annotate({ identifier: "UpdateBackupsConfigResponse" });
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function __c13(j: number): any {
|
|
1091
|
+
switch (j) {
|
|
1092
|
+
case 0:
|
|
1093
|
+
return S.suspend(() =>
|
|
1094
|
+
S.Struct({
|
|
1095
|
+
projectId: S.String.pipe(T.Label()),
|
|
1096
|
+
regionId: S.String.pipe(T.Label()),
|
|
1097
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1098
|
+
}).pipe(
|
|
1099
|
+
T.Http({
|
|
1100
|
+
method: "POST",
|
|
1101
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
|
|
1102
|
+
code: 200,
|
|
1103
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1104
|
+
}),
|
|
1105
|
+
),
|
|
1106
|
+
).annotate({ identifier: "CreateBackupRequest" });
|
|
1107
|
+
case 1:
|
|
1108
|
+
return S.suspend(() =>
|
|
1109
|
+
S.Struct({
|
|
1110
|
+
id: S.Number,
|
|
1111
|
+
message: S.String,
|
|
1112
|
+
}),
|
|
1113
|
+
).annotate({ identifier: "CreateBackupResponseItem" });
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
function __c14(j: number): any {
|
|
1117
|
+
switch (j) {
|
|
1118
|
+
case 0:
|
|
1119
|
+
return S.suspend(() =>
|
|
1120
|
+
S.Struct({
|
|
1121
|
+
projectId: S.String.pipe(T.Label()),
|
|
1122
|
+
regionId: S.String.pipe(T.Label()),
|
|
1123
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1124
|
+
parameters: S.optional(S.Unknown),
|
|
1125
|
+
}).pipe(
|
|
1126
|
+
T.Http({
|
|
1127
|
+
method: "POST",
|
|
1128
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
|
|
1129
|
+
code: 200,
|
|
1130
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1131
|
+
}),
|
|
1132
|
+
),
|
|
1133
|
+
).annotate({ identifier: "CreateCredentialsRequest" });
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
function __c15(j: number): any {
|
|
1137
|
+
switch (j) {
|
|
1138
|
+
case 0:
|
|
1139
|
+
return S.Array(S.String);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
function __c16(j: number): any {
|
|
1143
|
+
switch (j) {
|
|
1144
|
+
case 0:
|
|
1145
|
+
return S.suspend(() =>
|
|
1146
|
+
S.Struct({
|
|
1147
|
+
host: S.String,
|
|
1148
|
+
hosts: S.optional(__S(120, __c15, 0)),
|
|
1149
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
1150
|
+
port: S.optional(S.Number),
|
|
1151
|
+
scheme: S.optional(S.String),
|
|
1152
|
+
uri: S.optional(S.String),
|
|
1153
|
+
username: S.String,
|
|
1154
|
+
}),
|
|
1155
|
+
).annotate({ identifier: "Credentials" });
|
|
1156
|
+
case 1:
|
|
1157
|
+
return S.suspend(() =>
|
|
1158
|
+
S.Struct({
|
|
1159
|
+
credentials: __S(128, __c16, 0),
|
|
1160
|
+
}),
|
|
1161
|
+
).annotate({ identifier: "RawCredentials" });
|
|
1162
|
+
case 2:
|
|
1163
|
+
return S.suspend(() =>
|
|
1164
|
+
S.Struct({
|
|
1165
|
+
id: S.String,
|
|
1166
|
+
raw: S.optional(__S(129, __c16, 1)),
|
|
1167
|
+
uri: S.String,
|
|
1168
|
+
}),
|
|
1169
|
+
).annotate({ identifier: "CredentialsResponse" });
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
function __c17(j: number): any {
|
|
1173
|
+
switch (j) {
|
|
1174
|
+
case 0:
|
|
1175
|
+
return S.suspend(() =>
|
|
1176
|
+
S.Struct({
|
|
1177
|
+
projectId: S.String.pipe(T.Label()),
|
|
1178
|
+
regionId: S.String.pipe(T.Label()),
|
|
1179
|
+
instanceName: S.String,
|
|
1180
|
+
parameters: S.optional(__S(145, __c18, 1)),
|
|
1181
|
+
planId: S.String,
|
|
1182
|
+
}).pipe(
|
|
1183
|
+
T.Http({
|
|
1184
|
+
method: "POST",
|
|
1185
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
|
|
1186
|
+
code: 200,
|
|
1187
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1188
|
+
}),
|
|
1189
|
+
),
|
|
1190
|
+
).annotate({ identifier: "CreateInstanceRequest" });
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
function __c18(j: number): any {
|
|
1194
|
+
switch (j) {
|
|
1195
|
+
case 0:
|
|
1196
|
+
return S.Array(S.String);
|
|
1197
|
+
case 1:
|
|
1198
|
+
return S.suspend(() =>
|
|
1199
|
+
S.Struct({
|
|
1200
|
+
enable_monitoring: S.optional(S.Boolean),
|
|
1201
|
+
graphite: S.optional(S.String),
|
|
1202
|
+
java_garbage_collector: S.optional(S.String),
|
|
1203
|
+
java_heapspace: S.optional(S.Number),
|
|
1204
|
+
java_maxmetaspace: S.optional(S.Number),
|
|
1205
|
+
max_disk_threshold: S.optional(S.Number),
|
|
1206
|
+
metrics_frequency: S.optional(S.Number),
|
|
1207
|
+
metrics_prefix: S.optional(S.String),
|
|
1208
|
+
monitoring_instance_id: S.optional(S.String),
|
|
1209
|
+
plugins: S.optional(__S(144, __c18, 0)),
|
|
1210
|
+
sgw_acl: S.optional(S.String),
|
|
1211
|
+
syslog: S.optional(__S(120, __c15, 0)),
|
|
1212
|
+
tls_ciphers: S.optional(__S(120, __c15, 0).pipe(T.Body("tls-ciphers"))),
|
|
1213
|
+
tls_protocols: S.optional(__S(144, __c18, 0).pipe(T.Body("tls-protocols"))),
|
|
1214
|
+
}),
|
|
1215
|
+
).annotate({ identifier: "InstanceParameters" });
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
function __c19(j: number): any {
|
|
1219
|
+
switch (j) {
|
|
1220
|
+
case 0:
|
|
1221
|
+
return S.suspend(() =>
|
|
1222
|
+
S.Struct({
|
|
1223
|
+
instanceId: S.String,
|
|
1224
|
+
}),
|
|
1225
|
+
).annotate({ identifier: "CreateInstanceResponse" });
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
function __c20(j: number): any {
|
|
1229
|
+
switch (j) {
|
|
1230
|
+
case 0:
|
|
1231
|
+
return S.suspend(() =>
|
|
1232
|
+
S.Struct({
|
|
1233
|
+
projectId: S.String.pipe(T.Label()),
|
|
1234
|
+
regionId: S.String.pipe(T.Label()),
|
|
1235
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1236
|
+
credentialsId: S.String.pipe(T.Label()),
|
|
1237
|
+
}).pipe(
|
|
1238
|
+
T.Http({
|
|
1239
|
+
method: "DELETE",
|
|
1240
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
|
|
1241
|
+
code: 200,
|
|
1242
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1243
|
+
}),
|
|
1244
|
+
),
|
|
1245
|
+
).annotate({ identifier: "DeleteCredentialsRequest" });
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
function __c21(j: number): any {
|
|
1249
|
+
switch (j) {
|
|
1250
|
+
case 0:
|
|
1251
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteCredentialsResponse" });
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
function __c22(j: number): any {
|
|
1255
|
+
switch (j) {
|
|
1256
|
+
case 0:
|
|
1257
|
+
return S.suspend(() =>
|
|
1258
|
+
S.Struct({
|
|
1259
|
+
projectId: S.String.pipe(T.Label()),
|
|
1260
|
+
regionId: S.String.pipe(T.Label()),
|
|
1261
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1262
|
+
}).pipe(
|
|
1263
|
+
T.Http({
|
|
1264
|
+
method: "DELETE",
|
|
1265
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
1266
|
+
code: 200,
|
|
1267
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1268
|
+
}),
|
|
1269
|
+
),
|
|
1270
|
+
).annotate({ identifier: "DeleteInstanceRequest" });
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
function __c23(j: number): any {
|
|
1274
|
+
switch (j) {
|
|
1275
|
+
case 0:
|
|
1276
|
+
return S.suspend(() =>
|
|
1277
|
+
S.Struct({
|
|
1278
|
+
projectId: S.String.pipe(T.Label()),
|
|
1279
|
+
regionId: S.String.pipe(T.Label()),
|
|
1280
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1281
|
+
backupId: S.Number.pipe(T.Label()),
|
|
1282
|
+
}).pipe(
|
|
1283
|
+
T.Http({
|
|
1284
|
+
method: "GET",
|
|
1285
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
|
|
1286
|
+
code: 200,
|
|
1287
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1288
|
+
}),
|
|
1289
|
+
),
|
|
1290
|
+
).annotate({ identifier: "DownloadBackupRequest" });
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
function __c24(j: number): any {
|
|
1294
|
+
switch (j) {
|
|
1295
|
+
case 0:
|
|
1296
|
+
return S.suspend(() =>
|
|
1297
|
+
S.Struct({
|
|
1298
|
+
projectId: S.String.pipe(T.Label()),
|
|
1299
|
+
regionId: S.String.pipe(T.Label()),
|
|
1300
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1301
|
+
credentialsId: S.String.pipe(T.Label()),
|
|
1302
|
+
}).pipe(
|
|
1303
|
+
T.Http({
|
|
1304
|
+
method: "GET",
|
|
1305
|
+
uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
|
|
1306
|
+
code: 200,
|
|
1307
|
+
baseUrl: "https://opensearch.api.stackit.cloud",
|
|
1308
|
+
}),
|
|
1309
|
+
),
|
|
1310
|
+
).annotate({ identifier: "GetCredentialsRequest" });
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1314
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1315
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1316
|
+
}
|