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