@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,11 +1,14 @@
|
|
|
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";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
6
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { StackitOpError, StackitOpContext };
|
|
11
14
|
|
|
@@ -47,23 +50,6 @@ export interface CreateUpdateRequest {
|
|
|
47
50
|
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
48
51
|
maintenanceWindow: number;
|
|
49
52
|
}
|
|
50
|
-
export const CreateUpdateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
51
|
-
S.Struct({
|
|
52
|
-
projectId: S.String.pipe(T.Label()),
|
|
53
|
-
region: S.String.pipe(T.Label()),
|
|
54
|
-
serverId: S.String.pipe(T.Label()),
|
|
55
|
-
backupBeforeUpdate: S.optional(S.Boolean),
|
|
56
|
-
maintenanceWindow: S.Number,
|
|
57
|
-
}).pipe(
|
|
58
|
-
T.Http({
|
|
59
|
-
method: "POST",
|
|
60
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
|
|
61
|
-
code: 200,
|
|
62
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
63
|
-
}),
|
|
64
|
-
),
|
|
65
|
-
).annotate({ identifier: "CreateUpdateRequest" }) as any as S.Schema<CreateUpdateRequest>;
|
|
66
|
-
|
|
67
53
|
export interface Update {
|
|
68
54
|
endDate?: string;
|
|
69
55
|
failReason?: string;
|
|
@@ -73,18 +59,6 @@ export interface Update {
|
|
|
73
59
|
startDate: string;
|
|
74
60
|
status: string;
|
|
75
61
|
}
|
|
76
|
-
export const Update = /*@__PURE__*/ S.suspend(() =>
|
|
77
|
-
S.Struct({
|
|
78
|
-
endDate: S.optional(S.String),
|
|
79
|
-
failReason: S.optional(S.String),
|
|
80
|
-
failedUpdates: S.optional(S.Number),
|
|
81
|
-
id: S.Number,
|
|
82
|
-
installedUpdates: S.optional(S.Number),
|
|
83
|
-
startDate: S.String,
|
|
84
|
-
status: S.String,
|
|
85
|
-
}),
|
|
86
|
-
).annotate({ identifier: "Update" }) as any as S.Schema<Update>;
|
|
87
|
-
|
|
88
62
|
export interface CreateUpdateScheduleRequest {
|
|
89
63
|
/** project id */
|
|
90
64
|
projectId: string;
|
|
@@ -99,27 +73,6 @@ export interface CreateUpdateScheduleRequest {
|
|
|
99
73
|
/** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
|
|
100
74
|
rrule: string;
|
|
101
75
|
}
|
|
102
|
-
export const CreateUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
103
|
-
S.Struct({
|
|
104
|
-
projectId: S.String.pipe(T.Label()),
|
|
105
|
-
region: S.String.pipe(T.Label()),
|
|
106
|
-
serverId: S.String.pipe(T.Label()),
|
|
107
|
-
enabled: S.Boolean,
|
|
108
|
-
maintenanceWindow: S.Number,
|
|
109
|
-
name: S.String,
|
|
110
|
-
rrule: S.String,
|
|
111
|
-
}).pipe(
|
|
112
|
-
T.Http({
|
|
113
|
-
method: "POST",
|
|
114
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
|
|
115
|
-
code: 200,
|
|
116
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
117
|
-
}),
|
|
118
|
-
),
|
|
119
|
-
).annotate({
|
|
120
|
-
identifier: "CreateUpdateScheduleRequest",
|
|
121
|
-
}) as any as S.Schema<CreateUpdateScheduleRequest>;
|
|
122
|
-
|
|
123
76
|
export interface CreateUpdateScheduleResponse {
|
|
124
77
|
enabled: boolean;
|
|
125
78
|
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
@@ -129,18 +82,6 @@ export interface CreateUpdateScheduleResponse {
|
|
|
129
82
|
rrule: string;
|
|
130
83
|
id: number;
|
|
131
84
|
}
|
|
132
|
-
export const CreateUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
133
|
-
S.Struct({
|
|
134
|
-
enabled: S.Boolean,
|
|
135
|
-
maintenanceWindow: S.Number,
|
|
136
|
-
name: S.String,
|
|
137
|
-
rrule: S.String,
|
|
138
|
-
id: S.Number,
|
|
139
|
-
}),
|
|
140
|
-
).annotate({
|
|
141
|
-
identifier: "CreateUpdateScheduleResponse",
|
|
142
|
-
}) as any as S.Schema<CreateUpdateScheduleResponse>;
|
|
143
|
-
|
|
144
85
|
export interface DeleteUpdateScheduleRequest {
|
|
145
86
|
/** project id */
|
|
146
87
|
projectId: string;
|
|
@@ -151,29 +92,7 @@ export interface DeleteUpdateScheduleRequest {
|
|
|
151
92
|
/** update schedule id */
|
|
152
93
|
scheduleId: string;
|
|
153
94
|
}
|
|
154
|
-
export const DeleteUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
155
|
-
S.Struct({
|
|
156
|
-
projectId: S.String.pipe(T.Label()),
|
|
157
|
-
region: S.String.pipe(T.Label()),
|
|
158
|
-
serverId: S.String.pipe(T.Label()),
|
|
159
|
-
scheduleId: S.String.pipe(T.Label()),
|
|
160
|
-
}).pipe(
|
|
161
|
-
T.Http({
|
|
162
|
-
method: "DELETE",
|
|
163
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
164
|
-
code: 200,
|
|
165
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
166
|
-
}),
|
|
167
|
-
),
|
|
168
|
-
).annotate({
|
|
169
|
-
identifier: "DeleteUpdateScheduleRequest",
|
|
170
|
-
}) as any as S.Schema<DeleteUpdateScheduleRequest>;
|
|
171
|
-
|
|
172
95
|
export interface DeleteUpdateScheduleResponse {}
|
|
173
|
-
export const DeleteUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
174
|
-
identifier: "DeleteUpdateScheduleResponse",
|
|
175
|
-
}) as any as S.Schema<DeleteUpdateScheduleResponse>;
|
|
176
|
-
|
|
177
96
|
export interface DisableServiceResourceRequest {
|
|
178
97
|
/** project id */
|
|
179
98
|
projectId: string;
|
|
@@ -182,28 +101,7 @@ export interface DisableServiceResourceRequest {
|
|
|
182
101
|
/** server id */
|
|
183
102
|
serverId: string;
|
|
184
103
|
}
|
|
185
|
-
export const DisableServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
186
|
-
S.Struct({
|
|
187
|
-
projectId: S.String.pipe(T.Label()),
|
|
188
|
-
region: S.String.pipe(T.Label()),
|
|
189
|
-
serverId: S.String.pipe(T.Label()),
|
|
190
|
-
}).pipe(
|
|
191
|
-
T.Http({
|
|
192
|
-
method: "DELETE",
|
|
193
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
194
|
-
code: 200,
|
|
195
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
196
|
-
}),
|
|
197
|
-
),
|
|
198
|
-
).annotate({
|
|
199
|
-
identifier: "DisableServiceResourceRequest",
|
|
200
|
-
}) as any as S.Schema<DisableServiceResourceRequest>;
|
|
201
|
-
|
|
202
104
|
export interface DisableServiceResourceResponse {}
|
|
203
|
-
export const DisableServiceResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
204
|
-
identifier: "DisableServiceResourceResponse",
|
|
205
|
-
}) as any as S.Schema<DisableServiceResourceResponse>;
|
|
206
|
-
|
|
207
105
|
export interface EnableServiceResourceRequest {
|
|
208
106
|
/** project id */
|
|
209
107
|
projectId: string;
|
|
@@ -213,29 +111,7 @@ export interface EnableServiceResourceRequest {
|
|
|
213
111
|
serverId: string;
|
|
214
112
|
updatePolicyId?: string;
|
|
215
113
|
}
|
|
216
|
-
export const EnableServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
217
|
-
S.Struct({
|
|
218
|
-
projectId: S.String.pipe(T.Label()),
|
|
219
|
-
region: S.String.pipe(T.Label()),
|
|
220
|
-
serverId: S.String.pipe(T.Label()),
|
|
221
|
-
updatePolicyId: S.optional(S.String),
|
|
222
|
-
}).pipe(
|
|
223
|
-
T.Http({
|
|
224
|
-
method: "POST",
|
|
225
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
226
|
-
code: 200,
|
|
227
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
228
|
-
}),
|
|
229
|
-
),
|
|
230
|
-
).annotate({
|
|
231
|
-
identifier: "EnableServiceResourceRequest",
|
|
232
|
-
}) as any as S.Schema<EnableServiceResourceRequest>;
|
|
233
|
-
|
|
234
114
|
export interface EnableServiceResourceResponse {}
|
|
235
|
-
export const EnableServiceResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
236
|
-
identifier: "EnableServiceResourceResponse",
|
|
237
|
-
}) as any as S.Schema<EnableServiceResourceResponse>;
|
|
238
|
-
|
|
239
115
|
export interface GetServiceResourceRequest {
|
|
240
116
|
/** project id */
|
|
241
117
|
projectId: string;
|
|
@@ -244,32 +120,9 @@ export interface GetServiceResourceRequest {
|
|
|
244
120
|
/** server id */
|
|
245
121
|
serverId: string;
|
|
246
122
|
}
|
|
247
|
-
export const GetServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
248
|
-
S.Struct({
|
|
249
|
-
projectId: S.String.pipe(T.Label()),
|
|
250
|
-
region: S.String.pipe(T.Label()),
|
|
251
|
-
serverId: S.String.pipe(T.Label()),
|
|
252
|
-
}).pipe(
|
|
253
|
-
T.Http({
|
|
254
|
-
method: "GET",
|
|
255
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
256
|
-
code: 200,
|
|
257
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
258
|
-
}),
|
|
259
|
-
),
|
|
260
|
-
).annotate({
|
|
261
|
-
identifier: "GetServiceResourceRequest",
|
|
262
|
-
}) as any as S.Schema<GetServiceResourceRequest>;
|
|
263
|
-
|
|
264
123
|
export interface GetUpdateServiceResponse {
|
|
265
124
|
enabled?: boolean;
|
|
266
125
|
}
|
|
267
|
-
export const GetUpdateServiceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
268
|
-
S.Struct({
|
|
269
|
-
enabled: S.optional(S.Boolean),
|
|
270
|
-
}),
|
|
271
|
-
).annotate({ identifier: "GetUpdateServiceResponse" }) as any as S.Schema<GetUpdateServiceResponse>;
|
|
272
|
-
|
|
273
126
|
export interface GetUpdateRequest {
|
|
274
127
|
/** project id */
|
|
275
128
|
projectId: string;
|
|
@@ -280,22 +133,6 @@ export interface GetUpdateRequest {
|
|
|
280
133
|
/** id of the update */
|
|
281
134
|
updateId: string;
|
|
282
135
|
}
|
|
283
|
-
export const GetUpdateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
284
|
-
S.Struct({
|
|
285
|
-
projectId: S.String.pipe(T.Label()),
|
|
286
|
-
region: S.String.pipe(T.Label()),
|
|
287
|
-
serverId: S.String.pipe(T.Label()),
|
|
288
|
-
updateId: S.String.pipe(T.Label()),
|
|
289
|
-
}).pipe(
|
|
290
|
-
T.Http({
|
|
291
|
-
method: "GET",
|
|
292
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates/{updateId}",
|
|
293
|
-
code: 200,
|
|
294
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
295
|
-
}),
|
|
296
|
-
),
|
|
297
|
-
).annotate({ identifier: "GetUpdateRequest" }) as any as S.Schema<GetUpdateRequest>;
|
|
298
|
-
|
|
299
136
|
export interface GetUpdateScheduleRequest {
|
|
300
137
|
/** project id */
|
|
301
138
|
projectId: string;
|
|
@@ -306,22 +143,6 @@ export interface GetUpdateScheduleRequest {
|
|
|
306
143
|
/** update schedule id */
|
|
307
144
|
scheduleId: string;
|
|
308
145
|
}
|
|
309
|
-
export const GetUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
310
|
-
S.Struct({
|
|
311
|
-
projectId: S.String.pipe(T.Label()),
|
|
312
|
-
region: S.String.pipe(T.Label()),
|
|
313
|
-
serverId: S.String.pipe(T.Label()),
|
|
314
|
-
scheduleId: S.String.pipe(T.Label()),
|
|
315
|
-
}).pipe(
|
|
316
|
-
T.Http({
|
|
317
|
-
method: "GET",
|
|
318
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
319
|
-
code: 200,
|
|
320
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
321
|
-
}),
|
|
322
|
-
),
|
|
323
|
-
).annotate({ identifier: "GetUpdateScheduleRequest" }) as any as S.Schema<GetUpdateScheduleRequest>;
|
|
324
|
-
|
|
325
146
|
export interface GetUpdateScheduleResponse {
|
|
326
147
|
enabled: boolean;
|
|
327
148
|
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
@@ -331,37 +152,10 @@ export interface GetUpdateScheduleResponse {
|
|
|
331
152
|
rrule: string;
|
|
332
153
|
id: number;
|
|
333
154
|
}
|
|
334
|
-
export const GetUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
335
|
-
S.Struct({
|
|
336
|
-
enabled: S.Boolean,
|
|
337
|
-
maintenanceWindow: S.Number,
|
|
338
|
-
name: S.String,
|
|
339
|
-
rrule: S.String,
|
|
340
|
-
id: S.Number,
|
|
341
|
-
}),
|
|
342
|
-
).annotate({
|
|
343
|
-
identifier: "GetUpdateScheduleResponse",
|
|
344
|
-
}) as any as S.Schema<GetUpdateScheduleResponse>;
|
|
345
|
-
|
|
346
155
|
export interface ListUpdatePoliciesRequest {
|
|
347
156
|
/** project id */
|
|
348
157
|
projectId: string;
|
|
349
158
|
}
|
|
350
|
-
export const ListUpdatePoliciesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
351
|
-
S.Struct({
|
|
352
|
-
projectId: S.String.pipe(T.Label()),
|
|
353
|
-
}).pipe(
|
|
354
|
-
T.Http({
|
|
355
|
-
method: "GET",
|
|
356
|
-
uri: "/v2/projects/{projectId}/update-policies",
|
|
357
|
-
code: 200,
|
|
358
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
359
|
-
}),
|
|
360
|
-
),
|
|
361
|
-
).annotate({
|
|
362
|
-
identifier: "ListUpdatePoliciesRequest",
|
|
363
|
-
}) as any as S.Schema<ListUpdatePoliciesRequest>;
|
|
364
|
-
|
|
365
159
|
export interface UpdatePolicy {
|
|
366
160
|
default?: boolean;
|
|
367
161
|
description?: string;
|
|
@@ -373,34 +167,10 @@ export interface UpdatePolicy {
|
|
|
373
167
|
/** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
|
|
374
168
|
rrule?: string;
|
|
375
169
|
}
|
|
376
|
-
export const UpdatePolicy = /*@__PURE__*/ S.suspend(() =>
|
|
377
|
-
S.Struct({
|
|
378
|
-
default: S.optional(S.Boolean),
|
|
379
|
-
description: S.optional(S.String),
|
|
380
|
-
enabled: S.optional(S.Boolean),
|
|
381
|
-
id: S.optional(S.String),
|
|
382
|
-
maintenanceWindow: S.optional(S.Number),
|
|
383
|
-
name: S.optional(S.String),
|
|
384
|
-
rrule: S.optional(S.String),
|
|
385
|
-
}),
|
|
386
|
-
).annotate({ identifier: "UpdatePolicy" }) as any as S.Schema<UpdatePolicy>;
|
|
387
|
-
|
|
388
170
|
export type GetUpdatePoliciesResponseItemsList = Array<UpdatePolicy>;
|
|
389
|
-
export const GetUpdatePoliciesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
390
|
-
UpdatePolicy,
|
|
391
|
-
) as any as S.Schema<GetUpdatePoliciesResponseItemsList>;
|
|
392
|
-
|
|
393
171
|
export interface GetUpdatePoliciesResponse {
|
|
394
172
|
items?: GetUpdatePoliciesResponseItemsList;
|
|
395
173
|
}
|
|
396
|
-
export const GetUpdatePoliciesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
397
|
-
S.Struct({
|
|
398
|
-
items: S.optional(GetUpdatePoliciesResponseItemsList),
|
|
399
|
-
}),
|
|
400
|
-
).annotate({
|
|
401
|
-
identifier: "GetUpdatePoliciesResponse",
|
|
402
|
-
}) as any as S.Schema<GetUpdatePoliciesResponse>;
|
|
403
|
-
|
|
404
174
|
export interface ListUpdatesRequest {
|
|
405
175
|
/** project id */
|
|
406
176
|
projectId: string;
|
|
@@ -409,35 +179,10 @@ export interface ListUpdatesRequest {
|
|
|
409
179
|
/** server id */
|
|
410
180
|
serverId: string;
|
|
411
181
|
}
|
|
412
|
-
export const ListUpdatesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
413
|
-
S.Struct({
|
|
414
|
-
projectId: S.String.pipe(T.Label()),
|
|
415
|
-
region: S.String.pipe(T.Label()),
|
|
416
|
-
serverId: S.String.pipe(T.Label()),
|
|
417
|
-
}).pipe(
|
|
418
|
-
T.Http({
|
|
419
|
-
method: "GET",
|
|
420
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
|
|
421
|
-
code: 200,
|
|
422
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
423
|
-
}),
|
|
424
|
-
),
|
|
425
|
-
).annotate({ identifier: "ListUpdatesRequest" }) as any as S.Schema<ListUpdatesRequest>;
|
|
426
|
-
|
|
427
182
|
export type GetUpdatesListResponseItemsList = Array<Update>;
|
|
428
|
-
export const GetUpdatesListResponseItemsList = /*@__PURE__*/ S.Array(
|
|
429
|
-
Update,
|
|
430
|
-
) as any as S.Schema<GetUpdatesListResponseItemsList>;
|
|
431
|
-
|
|
432
183
|
export interface GetUpdatesListResponse {
|
|
433
184
|
items?: GetUpdatesListResponseItemsList;
|
|
434
185
|
}
|
|
435
|
-
export const GetUpdatesListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
436
|
-
S.Struct({
|
|
437
|
-
items: S.optional(GetUpdatesListResponseItemsList),
|
|
438
|
-
}),
|
|
439
|
-
).annotate({ identifier: "GetUpdatesListResponse" }) as any as S.Schema<GetUpdatesListResponse>;
|
|
440
|
-
|
|
441
186
|
export interface ListUpdateSchedulesRequest {
|
|
442
187
|
/** project id */
|
|
443
188
|
projectId: string;
|
|
@@ -446,23 +191,6 @@ export interface ListUpdateSchedulesRequest {
|
|
|
446
191
|
/** server id */
|
|
447
192
|
serverId: string;
|
|
448
193
|
}
|
|
449
|
-
export const ListUpdateSchedulesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
450
|
-
S.Struct({
|
|
451
|
-
projectId: S.String.pipe(T.Label()),
|
|
452
|
-
region: S.String.pipe(T.Label()),
|
|
453
|
-
serverId: S.String.pipe(T.Label()),
|
|
454
|
-
}).pipe(
|
|
455
|
-
T.Http({
|
|
456
|
-
method: "GET",
|
|
457
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
|
|
458
|
-
code: 200,
|
|
459
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
460
|
-
}),
|
|
461
|
-
),
|
|
462
|
-
).annotate({
|
|
463
|
-
identifier: "ListUpdateSchedulesRequest",
|
|
464
|
-
}) as any as S.Schema<ListUpdateSchedulesRequest>;
|
|
465
|
-
|
|
466
194
|
export interface UpdateSchedule {
|
|
467
195
|
enabled: boolean;
|
|
468
196
|
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
@@ -472,32 +200,10 @@ export interface UpdateSchedule {
|
|
|
472
200
|
rrule: string;
|
|
473
201
|
id: number;
|
|
474
202
|
}
|
|
475
|
-
export const UpdateSchedule = /*@__PURE__*/ S.suspend(() =>
|
|
476
|
-
S.Struct({
|
|
477
|
-
enabled: S.Boolean,
|
|
478
|
-
maintenanceWindow: S.Number,
|
|
479
|
-
name: S.String,
|
|
480
|
-
rrule: S.String,
|
|
481
|
-
id: S.Number,
|
|
482
|
-
}),
|
|
483
|
-
).annotate({ identifier: "UpdateSchedule" }) as any as S.Schema<UpdateSchedule>;
|
|
484
|
-
|
|
485
203
|
export type GetUpdateSchedulesResponseItemsList = Array<UpdateSchedule>;
|
|
486
|
-
export const GetUpdateSchedulesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
487
|
-
UpdateSchedule,
|
|
488
|
-
) as any as S.Schema<GetUpdateSchedulesResponseItemsList>;
|
|
489
|
-
|
|
490
204
|
export interface GetUpdateSchedulesResponse {
|
|
491
205
|
items?: GetUpdateSchedulesResponseItemsList;
|
|
492
206
|
}
|
|
493
|
-
export const GetUpdateSchedulesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
494
|
-
S.Struct({
|
|
495
|
-
items: S.optional(GetUpdateSchedulesResponseItemsList),
|
|
496
|
-
}),
|
|
497
|
-
).annotate({
|
|
498
|
-
identifier: "GetUpdateSchedulesResponse",
|
|
499
|
-
}) as any as S.Schema<GetUpdateSchedulesResponse>;
|
|
500
|
-
|
|
501
207
|
export interface UpdateUpdateScheduleRequest {
|
|
502
208
|
/** project id */
|
|
503
209
|
projectId: string;
|
|
@@ -514,28 +220,6 @@ export interface UpdateUpdateScheduleRequest {
|
|
|
514
220
|
/** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
|
|
515
221
|
rrule: string;
|
|
516
222
|
}
|
|
517
|
-
export const UpdateUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
518
|
-
S.Struct({
|
|
519
|
-
projectId: S.String.pipe(T.Label()),
|
|
520
|
-
region: S.String.pipe(T.Label()),
|
|
521
|
-
serverId: S.String.pipe(T.Label()),
|
|
522
|
-
scheduleId: S.String.pipe(T.Label()),
|
|
523
|
-
enabled: S.Boolean,
|
|
524
|
-
maintenanceWindow: S.Number,
|
|
525
|
-
name: S.String,
|
|
526
|
-
rrule: S.String,
|
|
527
|
-
}).pipe(
|
|
528
|
-
T.Http({
|
|
529
|
-
method: "PUT",
|
|
530
|
-
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
531
|
-
code: 200,
|
|
532
|
-
baseUrl: "https://server-update.api.stackit.cloud",
|
|
533
|
-
}),
|
|
534
|
-
),
|
|
535
|
-
).annotate({
|
|
536
|
-
identifier: "UpdateUpdateScheduleRequest",
|
|
537
|
-
}) as any as S.Schema<UpdateUpdateScheduleRequest>;
|
|
538
|
-
|
|
539
223
|
export interface UpdateUpdateScheduleResponse {
|
|
540
224
|
enabled: boolean;
|
|
541
225
|
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
@@ -545,18 +229,6 @@ export interface UpdateUpdateScheduleResponse {
|
|
|
545
229
|
rrule: string;
|
|
546
230
|
id: number;
|
|
547
231
|
}
|
|
548
|
-
export const UpdateUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
549
|
-
S.Struct({
|
|
550
|
-
enabled: S.Boolean,
|
|
551
|
-
maintenanceWindow: S.Number,
|
|
552
|
-
name: S.String,
|
|
553
|
-
rrule: S.String,
|
|
554
|
-
id: S.Number,
|
|
555
|
-
}),
|
|
556
|
-
).annotate({
|
|
557
|
-
identifier: "UpdateUpdateScheduleResponse",
|
|
558
|
-
}) as any as S.Schema<UpdateUpdateScheduleResponse>;
|
|
559
|
-
|
|
560
232
|
export type CreateUpdateError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
561
233
|
/** create update */
|
|
562
234
|
export const createUpdate: API.OperationMethod<
|
|
@@ -565,8 +237,8 @@ export const createUpdate: API.OperationMethod<
|
|
|
565
237
|
CreateUpdateError,
|
|
566
238
|
StackitOpContext
|
|
567
239
|
> = /*@__PURE__*/ API.make(() => ({
|
|
568
|
-
input: CreateUpdateRequest
|
|
569
|
-
output: Update
|
|
240
|
+
input: __S(20, __c5, 0) as any as S.Schema<CreateUpdateRequest>,
|
|
241
|
+
output: __S(24, __c6, 0) as any as S.Schema<Update>,
|
|
570
242
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
571
243
|
protocol: StackitProtocol,
|
|
572
244
|
retry: Retry.Retry,
|
|
@@ -580,8 +252,8 @@ export const createUpdateSchedule: API.OperationMethod<
|
|
|
580
252
|
CreateUpdateScheduleError,
|
|
581
253
|
StackitOpContext
|
|
582
254
|
> = /*@__PURE__*/ API.make(() => ({
|
|
583
|
-
input: CreateUpdateScheduleRequest
|
|
584
|
-
output: CreateUpdateScheduleResponse
|
|
255
|
+
input: __S(28, __c7, 0) as any as S.Schema<CreateUpdateScheduleRequest>,
|
|
256
|
+
output: __S(32, __c8, 0) as any as S.Schema<CreateUpdateScheduleResponse>,
|
|
585
257
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
586
258
|
protocol: StackitProtocol,
|
|
587
259
|
retry: Retry.Retry,
|
|
@@ -595,8 +267,8 @@ export const deleteUpdateSchedule: API.OperationMethod<
|
|
|
595
267
|
DeleteUpdateScheduleError,
|
|
596
268
|
StackitOpContext
|
|
597
269
|
> = /*@__PURE__*/ API.make(() => ({
|
|
598
|
-
input: DeleteUpdateScheduleRequest
|
|
599
|
-
output: DeleteUpdateScheduleResponse
|
|
270
|
+
input: __S(36, __c9, 0) as any as S.Schema<DeleteUpdateScheduleRequest>,
|
|
271
|
+
output: __S(40, __c10, 0) as any as S.Schema<DeleteUpdateScheduleResponse>,
|
|
600
272
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
601
273
|
protocol: StackitProtocol,
|
|
602
274
|
retry: Retry.Retry,
|
|
@@ -610,8 +282,8 @@ export const disableServiceResource: API.OperationMethod<
|
|
|
610
282
|
DisableServiceResourceError,
|
|
611
283
|
StackitOpContext
|
|
612
284
|
> = /*@__PURE__*/ API.make(() => ({
|
|
613
|
-
input: DisableServiceResourceRequest
|
|
614
|
-
output: DisableServiceResourceResponse
|
|
285
|
+
input: __S(44, __c11, 0) as any as S.Schema<DisableServiceResourceRequest>,
|
|
286
|
+
output: __S(40, __c10, 0) as any as S.Schema<DisableServiceResourceResponse>,
|
|
615
287
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
616
288
|
protocol: StackitProtocol,
|
|
617
289
|
retry: Retry.Retry,
|
|
@@ -625,8 +297,8 @@ export const enableServiceResource: API.OperationMethod<
|
|
|
625
297
|
EnableServiceResourceError,
|
|
626
298
|
StackitOpContext
|
|
627
299
|
> = /*@__PURE__*/ API.make(() => ({
|
|
628
|
-
input: EnableServiceResourceRequest
|
|
629
|
-
output: EnableServiceResourceResponse
|
|
300
|
+
input: __S(48, __c12, 0) as any as S.Schema<EnableServiceResourceRequest>,
|
|
301
|
+
output: __S(40, __c10, 0) as any as S.Schema<EnableServiceResourceResponse>,
|
|
630
302
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
631
303
|
protocol: StackitProtocol,
|
|
632
304
|
retry: Retry.Retry,
|
|
@@ -640,8 +312,8 @@ export const getServiceResource: API.OperationMethod<
|
|
|
640
312
|
GetServiceResourceError,
|
|
641
313
|
StackitOpContext
|
|
642
314
|
> = /*@__PURE__*/ API.make(() => ({
|
|
643
|
-
input: GetServiceResourceRequest
|
|
644
|
-
output: GetUpdateServiceResponse
|
|
315
|
+
input: __S(52, __c13, 0) as any as S.Schema<GetServiceResourceRequest>,
|
|
316
|
+
output: __S(53, __c13, 1) as any as S.Schema<GetUpdateServiceResponse>,
|
|
645
317
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
646
318
|
protocol: StackitProtocol,
|
|
647
319
|
retry: Retry.Retry,
|
|
@@ -655,8 +327,8 @@ export const getUpdate: API.OperationMethod<
|
|
|
655
327
|
GetUpdateError,
|
|
656
328
|
StackitOpContext
|
|
657
329
|
> = /*@__PURE__*/ API.make(() => ({
|
|
658
|
-
input: GetUpdateRequest
|
|
659
|
-
output: Update
|
|
330
|
+
input: __S(56, __c14, 0) as any as S.Schema<GetUpdateRequest>,
|
|
331
|
+
output: __S(24, __c6, 0) as any as S.Schema<Update>,
|
|
660
332
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
661
333
|
protocol: StackitProtocol,
|
|
662
334
|
retry: Retry.Retry,
|
|
@@ -670,8 +342,8 @@ export const getUpdateSchedule: API.OperationMethod<
|
|
|
670
342
|
GetUpdateScheduleError,
|
|
671
343
|
StackitOpContext
|
|
672
344
|
> = /*@__PURE__*/ API.make(() => ({
|
|
673
|
-
input: GetUpdateScheduleRequest
|
|
674
|
-
output: GetUpdateScheduleResponse
|
|
345
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetUpdateScheduleRequest>,
|
|
346
|
+
output: __S(32, __c8, 0) as any as S.Schema<GetUpdateScheduleResponse>,
|
|
675
347
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
676
348
|
protocol: StackitProtocol,
|
|
677
349
|
retry: Retry.Retry,
|
|
@@ -685,8 +357,8 @@ export const listUpdatePolicies: API.OperationMethod<
|
|
|
685
357
|
ListUpdatePoliciesError,
|
|
686
358
|
StackitOpContext
|
|
687
359
|
> = /*@__PURE__*/ API.make(() => ({
|
|
688
|
-
input: ListUpdatePoliciesRequest
|
|
689
|
-
output: GetUpdatePoliciesResponse
|
|
360
|
+
input: __S(4, __c1, 0) as any as S.Schema<ListUpdatePoliciesRequest>,
|
|
361
|
+
output: __S(7, __c1, 3) as any as S.Schema<GetUpdatePoliciesResponse>,
|
|
690
362
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
691
363
|
protocol: StackitProtocol,
|
|
692
364
|
retry: Retry.Retry,
|
|
@@ -700,8 +372,8 @@ export const listUpdates: API.OperationMethod<
|
|
|
700
372
|
ListUpdatesError,
|
|
701
373
|
StackitOpContext
|
|
702
374
|
> = /*@__PURE__*/ API.make(() => ({
|
|
703
|
-
input: ListUpdatesRequest
|
|
704
|
-
output: GetUpdatesListResponse
|
|
375
|
+
input: __S(8, __c2, 0) as any as S.Schema<ListUpdatesRequest>,
|
|
376
|
+
output: __S(10, __c2, 2) as any as S.Schema<GetUpdatesListResponse>,
|
|
705
377
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
706
378
|
protocol: StackitProtocol,
|
|
707
379
|
retry: Retry.Retry,
|
|
@@ -715,8 +387,8 @@ export const listUpdateSchedules: API.OperationMethod<
|
|
|
715
387
|
ListUpdateSchedulesError,
|
|
716
388
|
StackitOpContext
|
|
717
389
|
> = /*@__PURE__*/ API.make(() => ({
|
|
718
|
-
input: ListUpdateSchedulesRequest
|
|
719
|
-
output: GetUpdateSchedulesResponse
|
|
390
|
+
input: __S(12, __c3, 0) as any as S.Schema<ListUpdateSchedulesRequest>,
|
|
391
|
+
output: __S(14, __c3, 2) as any as S.Schema<GetUpdateSchedulesResponse>,
|
|
720
392
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
721
393
|
protocol: StackitProtocol,
|
|
722
394
|
retry: Retry.Retry,
|
|
@@ -730,9 +402,334 @@ export const updateUpdateSchedule: API.OperationMethod<
|
|
|
730
402
|
UpdateUpdateScheduleError,
|
|
731
403
|
StackitOpContext
|
|
732
404
|
> = /*@__PURE__*/ API.make(() => ({
|
|
733
|
-
input: UpdateUpdateScheduleRequest
|
|
734
|
-
output: UpdateUpdateScheduleResponse
|
|
405
|
+
input: __S(16, __c4, 0) as any as S.Schema<UpdateUpdateScheduleRequest>,
|
|
406
|
+
output: __S(32, __c8, 0) as any as S.Schema<UpdateUpdateScheduleResponse>,
|
|
735
407
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
736
408
|
protocol: StackitProtocol,
|
|
737
409
|
retry: Retry.Retry,
|
|
738
410
|
}));
|
|
411
|
+
|
|
412
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
413
|
+
function __c0(j: number): any {
|
|
414
|
+
switch (j) {
|
|
415
|
+
case 0:
|
|
416
|
+
return S.suspend(() =>
|
|
417
|
+
S.Struct({
|
|
418
|
+
projectId: S.String.pipe(T.Label()),
|
|
419
|
+
region: S.String.pipe(T.Label()),
|
|
420
|
+
serverId: S.String.pipe(T.Label()),
|
|
421
|
+
scheduleId: S.String.pipe(T.Label()),
|
|
422
|
+
}).pipe(
|
|
423
|
+
T.Http({
|
|
424
|
+
method: "GET",
|
|
425
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
426
|
+
code: 200,
|
|
427
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
428
|
+
}),
|
|
429
|
+
),
|
|
430
|
+
).annotate({ identifier: "GetUpdateScheduleRequest" });
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
function __c1(j: number): any {
|
|
434
|
+
switch (j) {
|
|
435
|
+
case 0:
|
|
436
|
+
return S.suspend(() =>
|
|
437
|
+
S.Struct({
|
|
438
|
+
projectId: S.String.pipe(T.Label()),
|
|
439
|
+
}).pipe(
|
|
440
|
+
T.Http({
|
|
441
|
+
method: "GET",
|
|
442
|
+
uri: "/v2/projects/{projectId}/update-policies",
|
|
443
|
+
code: 200,
|
|
444
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
445
|
+
}),
|
|
446
|
+
),
|
|
447
|
+
).annotate({ identifier: "ListUpdatePoliciesRequest" });
|
|
448
|
+
case 1:
|
|
449
|
+
return S.suspend(() =>
|
|
450
|
+
S.Struct({
|
|
451
|
+
default: S.optional(S.Boolean),
|
|
452
|
+
description: S.optional(S.String),
|
|
453
|
+
enabled: S.optional(S.Boolean),
|
|
454
|
+
id: S.optional(S.String),
|
|
455
|
+
maintenanceWindow: S.optional(S.Number),
|
|
456
|
+
name: S.optional(S.String),
|
|
457
|
+
rrule: S.optional(S.String),
|
|
458
|
+
}),
|
|
459
|
+
).annotate({ identifier: "UpdatePolicy" });
|
|
460
|
+
case 2:
|
|
461
|
+
return S.Array(__S(5, __c1, 1));
|
|
462
|
+
case 3:
|
|
463
|
+
return S.suspend(() =>
|
|
464
|
+
S.Struct({
|
|
465
|
+
items: S.optional(__S(6, __c1, 2)),
|
|
466
|
+
}),
|
|
467
|
+
).annotate({ identifier: "GetUpdatePoliciesResponse" });
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
function __c2(j: number): any {
|
|
471
|
+
switch (j) {
|
|
472
|
+
case 0:
|
|
473
|
+
return S.suspend(() =>
|
|
474
|
+
S.Struct({
|
|
475
|
+
projectId: S.String.pipe(T.Label()),
|
|
476
|
+
region: S.String.pipe(T.Label()),
|
|
477
|
+
serverId: S.String.pipe(T.Label()),
|
|
478
|
+
}).pipe(
|
|
479
|
+
T.Http({
|
|
480
|
+
method: "GET",
|
|
481
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
|
|
482
|
+
code: 200,
|
|
483
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
484
|
+
}),
|
|
485
|
+
),
|
|
486
|
+
).annotate({ identifier: "ListUpdatesRequest" });
|
|
487
|
+
case 1:
|
|
488
|
+
return S.Array(__S(24, __c6, 0));
|
|
489
|
+
case 2:
|
|
490
|
+
return S.suspend(() =>
|
|
491
|
+
S.Struct({
|
|
492
|
+
items: S.optional(__S(9, __c2, 1)),
|
|
493
|
+
}),
|
|
494
|
+
).annotate({ identifier: "GetUpdatesListResponse" });
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
function __c3(j: number): any {
|
|
498
|
+
switch (j) {
|
|
499
|
+
case 0:
|
|
500
|
+
return S.suspend(() =>
|
|
501
|
+
S.Struct({
|
|
502
|
+
projectId: S.String.pipe(T.Label()),
|
|
503
|
+
region: S.String.pipe(T.Label()),
|
|
504
|
+
serverId: S.String.pipe(T.Label()),
|
|
505
|
+
}).pipe(
|
|
506
|
+
T.Http({
|
|
507
|
+
method: "GET",
|
|
508
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
|
|
509
|
+
code: 200,
|
|
510
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
511
|
+
}),
|
|
512
|
+
),
|
|
513
|
+
).annotate({ identifier: "ListUpdateSchedulesRequest" });
|
|
514
|
+
case 1:
|
|
515
|
+
return S.Array(__S(32, __c8, 0));
|
|
516
|
+
case 2:
|
|
517
|
+
return S.suspend(() =>
|
|
518
|
+
S.Struct({
|
|
519
|
+
items: S.optional(__S(13, __c3, 1)),
|
|
520
|
+
}),
|
|
521
|
+
).annotate({ identifier: "GetUpdateSchedulesResponse" });
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function __c4(j: number): any {
|
|
525
|
+
switch (j) {
|
|
526
|
+
case 0:
|
|
527
|
+
return S.suspend(() =>
|
|
528
|
+
S.Struct({
|
|
529
|
+
projectId: S.String.pipe(T.Label()),
|
|
530
|
+
region: S.String.pipe(T.Label()),
|
|
531
|
+
serverId: S.String.pipe(T.Label()),
|
|
532
|
+
scheduleId: S.String.pipe(T.Label()),
|
|
533
|
+
enabled: S.Boolean,
|
|
534
|
+
maintenanceWindow: S.Number,
|
|
535
|
+
name: S.String,
|
|
536
|
+
rrule: S.String,
|
|
537
|
+
}).pipe(
|
|
538
|
+
T.Http({
|
|
539
|
+
method: "PUT",
|
|
540
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
541
|
+
code: 200,
|
|
542
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
543
|
+
}),
|
|
544
|
+
),
|
|
545
|
+
).annotate({ identifier: "UpdateUpdateScheduleRequest" });
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
function __c5(j: number): any {
|
|
549
|
+
switch (j) {
|
|
550
|
+
case 0:
|
|
551
|
+
return S.suspend(() =>
|
|
552
|
+
S.Struct({
|
|
553
|
+
projectId: S.String.pipe(T.Label()),
|
|
554
|
+
region: S.String.pipe(T.Label()),
|
|
555
|
+
serverId: S.String.pipe(T.Label()),
|
|
556
|
+
backupBeforeUpdate: S.optional(S.Boolean),
|
|
557
|
+
maintenanceWindow: S.Number,
|
|
558
|
+
}).pipe(
|
|
559
|
+
T.Http({
|
|
560
|
+
method: "POST",
|
|
561
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
|
|
562
|
+
code: 200,
|
|
563
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
564
|
+
}),
|
|
565
|
+
),
|
|
566
|
+
).annotate({ identifier: "CreateUpdateRequest" });
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
function __c6(j: number): any {
|
|
570
|
+
switch (j) {
|
|
571
|
+
case 0:
|
|
572
|
+
return S.suspend(() =>
|
|
573
|
+
S.Struct({
|
|
574
|
+
endDate: S.optional(S.String),
|
|
575
|
+
failReason: S.optional(S.String),
|
|
576
|
+
failedUpdates: S.optional(S.Number),
|
|
577
|
+
id: S.Number,
|
|
578
|
+
installedUpdates: S.optional(S.Number),
|
|
579
|
+
startDate: S.String,
|
|
580
|
+
status: S.String,
|
|
581
|
+
}),
|
|
582
|
+
).annotate({ identifier: "Update" });
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
function __c7(j: number): any {
|
|
586
|
+
switch (j) {
|
|
587
|
+
case 0:
|
|
588
|
+
return S.suspend(() =>
|
|
589
|
+
S.Struct({
|
|
590
|
+
projectId: S.String.pipe(T.Label()),
|
|
591
|
+
region: S.String.pipe(T.Label()),
|
|
592
|
+
serverId: S.String.pipe(T.Label()),
|
|
593
|
+
enabled: S.Boolean,
|
|
594
|
+
maintenanceWindow: S.Number,
|
|
595
|
+
name: S.String,
|
|
596
|
+
rrule: S.String,
|
|
597
|
+
}).pipe(
|
|
598
|
+
T.Http({
|
|
599
|
+
method: "POST",
|
|
600
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
|
|
601
|
+
code: 200,
|
|
602
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
603
|
+
}),
|
|
604
|
+
),
|
|
605
|
+
).annotate({ identifier: "CreateUpdateScheduleRequest" });
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
function __c8(j: number): any {
|
|
609
|
+
switch (j) {
|
|
610
|
+
case 0:
|
|
611
|
+
return S.suspend(() =>
|
|
612
|
+
S.Struct({
|
|
613
|
+
enabled: S.Boolean,
|
|
614
|
+
maintenanceWindow: S.Number,
|
|
615
|
+
name: S.String,
|
|
616
|
+
rrule: S.String,
|
|
617
|
+
id: S.Number,
|
|
618
|
+
}),
|
|
619
|
+
).annotate({ identifier: "CreateUpdateScheduleResponse" });
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function __c9(j: number): any {
|
|
623
|
+
switch (j) {
|
|
624
|
+
case 0:
|
|
625
|
+
return S.suspend(() =>
|
|
626
|
+
S.Struct({
|
|
627
|
+
projectId: S.String.pipe(T.Label()),
|
|
628
|
+
region: S.String.pipe(T.Label()),
|
|
629
|
+
serverId: S.String.pipe(T.Label()),
|
|
630
|
+
scheduleId: S.String.pipe(T.Label()),
|
|
631
|
+
}).pipe(
|
|
632
|
+
T.Http({
|
|
633
|
+
method: "DELETE",
|
|
634
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
635
|
+
code: 200,
|
|
636
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
637
|
+
}),
|
|
638
|
+
),
|
|
639
|
+
).annotate({ identifier: "DeleteUpdateScheduleRequest" });
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
function __c10(j: number): any {
|
|
643
|
+
switch (j) {
|
|
644
|
+
case 0:
|
|
645
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteUpdateScheduleResponse" });
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
function __c11(j: number): any {
|
|
649
|
+
switch (j) {
|
|
650
|
+
case 0:
|
|
651
|
+
return S.suspend(() =>
|
|
652
|
+
S.Struct({
|
|
653
|
+
projectId: S.String.pipe(T.Label()),
|
|
654
|
+
region: S.String.pipe(T.Label()),
|
|
655
|
+
serverId: S.String.pipe(T.Label()),
|
|
656
|
+
}).pipe(
|
|
657
|
+
T.Http({
|
|
658
|
+
method: "DELETE",
|
|
659
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
660
|
+
code: 200,
|
|
661
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
662
|
+
}),
|
|
663
|
+
),
|
|
664
|
+
).annotate({ identifier: "DisableServiceResourceRequest" });
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
function __c12(j: number): any {
|
|
668
|
+
switch (j) {
|
|
669
|
+
case 0:
|
|
670
|
+
return S.suspend(() =>
|
|
671
|
+
S.Struct({
|
|
672
|
+
projectId: S.String.pipe(T.Label()),
|
|
673
|
+
region: S.String.pipe(T.Label()),
|
|
674
|
+
serverId: S.String.pipe(T.Label()),
|
|
675
|
+
updatePolicyId: S.optional(S.String),
|
|
676
|
+
}).pipe(
|
|
677
|
+
T.Http({
|
|
678
|
+
method: "POST",
|
|
679
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
680
|
+
code: 200,
|
|
681
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
682
|
+
}),
|
|
683
|
+
),
|
|
684
|
+
).annotate({ identifier: "EnableServiceResourceRequest" });
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
function __c13(j: number): any {
|
|
688
|
+
switch (j) {
|
|
689
|
+
case 0:
|
|
690
|
+
return S.suspend(() =>
|
|
691
|
+
S.Struct({
|
|
692
|
+
projectId: S.String.pipe(T.Label()),
|
|
693
|
+
region: S.String.pipe(T.Label()),
|
|
694
|
+
serverId: S.String.pipe(T.Label()),
|
|
695
|
+
}).pipe(
|
|
696
|
+
T.Http({
|
|
697
|
+
method: "GET",
|
|
698
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
699
|
+
code: 200,
|
|
700
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
701
|
+
}),
|
|
702
|
+
),
|
|
703
|
+
).annotate({ identifier: "GetServiceResourceRequest" });
|
|
704
|
+
case 1:
|
|
705
|
+
return S.suspend(() =>
|
|
706
|
+
S.Struct({
|
|
707
|
+
enabled: S.optional(S.Boolean),
|
|
708
|
+
}),
|
|
709
|
+
).annotate({ identifier: "GetUpdateServiceResponse" });
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
function __c14(j: number): any {
|
|
713
|
+
switch (j) {
|
|
714
|
+
case 0:
|
|
715
|
+
return S.suspend(() =>
|
|
716
|
+
S.Struct({
|
|
717
|
+
projectId: S.String.pipe(T.Label()),
|
|
718
|
+
region: S.String.pipe(T.Label()),
|
|
719
|
+
serverId: S.String.pipe(T.Label()),
|
|
720
|
+
updateId: S.String.pipe(T.Label()),
|
|
721
|
+
}).pipe(
|
|
722
|
+
T.Http({
|
|
723
|
+
method: "GET",
|
|
724
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates/{updateId}",
|
|
725
|
+
code: 200,
|
|
726
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
727
|
+
}),
|
|
728
|
+
),
|
|
729
|
+
).annotate({ identifier: "GetUpdateRequest" });
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
733
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
734
|
+
return (__s[i] ??= __L.at(f, j));
|
|
735
|
+
}
|