@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +48 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +562 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +545 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +992 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +197 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +339 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +375 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +423 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +513 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +542 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +636 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +498 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +611 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +356 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +319 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3407 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +623 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +789 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +1018 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +614 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +636 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +221 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +503 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +718 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +659 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +474 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +364 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +523 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +159 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +1087 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +393 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +550 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +523 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +301 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +627 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +1013 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +556 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +83 -3
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
StackitProtocol,
|
|
8
|
+
type StackitOpError,
|
|
9
|
+
type StackitOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { StackitOpError, StackitOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Conflict
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withConflictError),
|
|
31
|
+
[{ status: 409 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class NotFound
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withBadRequestError),
|
|
40
|
+
[{ status: 404 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export interface CreateUpdateRequest {
|
|
44
|
+
/** project id */
|
|
45
|
+
projectId: string;
|
|
46
|
+
/** region */
|
|
47
|
+
region: string;
|
|
48
|
+
/** server id */
|
|
49
|
+
serverId: string;
|
|
50
|
+
backupBeforeUpdate?: boolean;
|
|
51
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
52
|
+
maintenanceWindow: number;
|
|
53
|
+
}
|
|
54
|
+
export const CreateUpdateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
55
|
+
S.Struct({
|
|
56
|
+
projectId: S.String.pipe(T.Label()),
|
|
57
|
+
region: S.String.pipe(T.Label()),
|
|
58
|
+
serverId: S.String.pipe(T.Label()),
|
|
59
|
+
backupBeforeUpdate: S.optional(S.Boolean),
|
|
60
|
+
maintenanceWindow: S.Number,
|
|
61
|
+
}).pipe(
|
|
62
|
+
T.Http({
|
|
63
|
+
method: "POST",
|
|
64
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
|
|
65
|
+
code: 200,
|
|
66
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
67
|
+
}),
|
|
68
|
+
),
|
|
69
|
+
).annotate({
|
|
70
|
+
identifier: "CreateUpdateRequest",
|
|
71
|
+
}) as any as S.Schema<CreateUpdateRequest>;
|
|
72
|
+
|
|
73
|
+
export interface Update {
|
|
74
|
+
endDate?: string;
|
|
75
|
+
failReason?: string;
|
|
76
|
+
failedUpdates?: number;
|
|
77
|
+
id: number;
|
|
78
|
+
installedUpdates?: number;
|
|
79
|
+
startDate: string;
|
|
80
|
+
status: string;
|
|
81
|
+
}
|
|
82
|
+
export const Update = /*@__PURE__*/ S.suspend(() =>
|
|
83
|
+
S.Struct({
|
|
84
|
+
endDate: S.optional(S.String),
|
|
85
|
+
failReason: S.optional(S.String),
|
|
86
|
+
failedUpdates: S.optional(S.Number),
|
|
87
|
+
id: S.Number,
|
|
88
|
+
installedUpdates: S.optional(S.Number),
|
|
89
|
+
startDate: S.String,
|
|
90
|
+
status: S.String,
|
|
91
|
+
}),
|
|
92
|
+
).annotate({ identifier: "Update" }) as any as S.Schema<Update>;
|
|
93
|
+
|
|
94
|
+
export interface CreateUpdateScheduleRequest {
|
|
95
|
+
/** project id */
|
|
96
|
+
projectId: string;
|
|
97
|
+
/** region */
|
|
98
|
+
region: string;
|
|
99
|
+
/** server id */
|
|
100
|
+
serverId: string;
|
|
101
|
+
enabled: boolean;
|
|
102
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
103
|
+
maintenanceWindow: number;
|
|
104
|
+
name: string;
|
|
105
|
+
/** 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 */
|
|
106
|
+
rrule: string;
|
|
107
|
+
}
|
|
108
|
+
export const CreateUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
109
|
+
S.Struct({
|
|
110
|
+
projectId: S.String.pipe(T.Label()),
|
|
111
|
+
region: S.String.pipe(T.Label()),
|
|
112
|
+
serverId: S.String.pipe(T.Label()),
|
|
113
|
+
enabled: S.Boolean,
|
|
114
|
+
maintenanceWindow: S.Number,
|
|
115
|
+
name: S.String,
|
|
116
|
+
rrule: S.String,
|
|
117
|
+
}).pipe(
|
|
118
|
+
T.Http({
|
|
119
|
+
method: "POST",
|
|
120
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
|
|
121
|
+
code: 200,
|
|
122
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
123
|
+
}),
|
|
124
|
+
),
|
|
125
|
+
).annotate({
|
|
126
|
+
identifier: "CreateUpdateScheduleRequest",
|
|
127
|
+
}) as any as S.Schema<CreateUpdateScheduleRequest>;
|
|
128
|
+
|
|
129
|
+
export interface CreateUpdateScheduleResponse {
|
|
130
|
+
enabled: boolean;
|
|
131
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
132
|
+
maintenanceWindow: number;
|
|
133
|
+
name: string;
|
|
134
|
+
/** 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 */
|
|
135
|
+
rrule: string;
|
|
136
|
+
id: number;
|
|
137
|
+
}
|
|
138
|
+
export const CreateUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
139
|
+
S.Struct({
|
|
140
|
+
enabled: S.Boolean,
|
|
141
|
+
maintenanceWindow: S.Number,
|
|
142
|
+
name: S.String,
|
|
143
|
+
rrule: S.String,
|
|
144
|
+
id: S.Number,
|
|
145
|
+
}),
|
|
146
|
+
).annotate({
|
|
147
|
+
identifier: "CreateUpdateScheduleResponse",
|
|
148
|
+
}) as any as S.Schema<CreateUpdateScheduleResponse>;
|
|
149
|
+
|
|
150
|
+
export interface DeleteUpdateScheduleRequest {
|
|
151
|
+
/** project id */
|
|
152
|
+
projectId: string;
|
|
153
|
+
/** region */
|
|
154
|
+
region: string;
|
|
155
|
+
/** server id */
|
|
156
|
+
serverId: string;
|
|
157
|
+
/** update schedule id */
|
|
158
|
+
scheduleId: string;
|
|
159
|
+
}
|
|
160
|
+
export const DeleteUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
161
|
+
S.Struct({
|
|
162
|
+
projectId: S.String.pipe(T.Label()),
|
|
163
|
+
region: S.String.pipe(T.Label()),
|
|
164
|
+
serverId: S.String.pipe(T.Label()),
|
|
165
|
+
scheduleId: S.String.pipe(T.Label()),
|
|
166
|
+
}).pipe(
|
|
167
|
+
T.Http({
|
|
168
|
+
method: "DELETE",
|
|
169
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
170
|
+
code: 200,
|
|
171
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
172
|
+
}),
|
|
173
|
+
),
|
|
174
|
+
).annotate({
|
|
175
|
+
identifier: "DeleteUpdateScheduleRequest",
|
|
176
|
+
}) as any as S.Schema<DeleteUpdateScheduleRequest>;
|
|
177
|
+
|
|
178
|
+
export interface DeleteUpdateScheduleResponse {}
|
|
179
|
+
export const DeleteUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
180
|
+
S.Struct({}),
|
|
181
|
+
).annotate({
|
|
182
|
+
identifier: "DeleteUpdateScheduleResponse",
|
|
183
|
+
}) as any as S.Schema<DeleteUpdateScheduleResponse>;
|
|
184
|
+
|
|
185
|
+
export interface DisableServiceResourceRequest {
|
|
186
|
+
/** project id */
|
|
187
|
+
projectId: string;
|
|
188
|
+
/** region */
|
|
189
|
+
region: string;
|
|
190
|
+
/** server id */
|
|
191
|
+
serverId: string;
|
|
192
|
+
}
|
|
193
|
+
export const DisableServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
194
|
+
S.Struct({
|
|
195
|
+
projectId: S.String.pipe(T.Label()),
|
|
196
|
+
region: S.String.pipe(T.Label()),
|
|
197
|
+
serverId: S.String.pipe(T.Label()),
|
|
198
|
+
}).pipe(
|
|
199
|
+
T.Http({
|
|
200
|
+
method: "DELETE",
|
|
201
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
202
|
+
code: 200,
|
|
203
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
204
|
+
}),
|
|
205
|
+
),
|
|
206
|
+
).annotate({
|
|
207
|
+
identifier: "DisableServiceResourceRequest",
|
|
208
|
+
}) as any as S.Schema<DisableServiceResourceRequest>;
|
|
209
|
+
|
|
210
|
+
export interface DisableServiceResourceResponse {}
|
|
211
|
+
export const DisableServiceResourceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
212
|
+
S.Struct({}),
|
|
213
|
+
).annotate({
|
|
214
|
+
identifier: "DisableServiceResourceResponse",
|
|
215
|
+
}) as any as S.Schema<DisableServiceResourceResponse>;
|
|
216
|
+
|
|
217
|
+
export interface EnableServiceResourceRequest {
|
|
218
|
+
/** project id */
|
|
219
|
+
projectId: string;
|
|
220
|
+
/** region */
|
|
221
|
+
region: string;
|
|
222
|
+
/** server id */
|
|
223
|
+
serverId: string;
|
|
224
|
+
updatePolicyId?: string;
|
|
225
|
+
}
|
|
226
|
+
export const EnableServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
227
|
+
S.Struct({
|
|
228
|
+
projectId: S.String.pipe(T.Label()),
|
|
229
|
+
region: S.String.pipe(T.Label()),
|
|
230
|
+
serverId: S.String.pipe(T.Label()),
|
|
231
|
+
updatePolicyId: S.optional(S.String),
|
|
232
|
+
}).pipe(
|
|
233
|
+
T.Http({
|
|
234
|
+
method: "POST",
|
|
235
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
236
|
+
code: 200,
|
|
237
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
238
|
+
}),
|
|
239
|
+
),
|
|
240
|
+
).annotate({
|
|
241
|
+
identifier: "EnableServiceResourceRequest",
|
|
242
|
+
}) as any as S.Schema<EnableServiceResourceRequest>;
|
|
243
|
+
|
|
244
|
+
export interface EnableServiceResourceResponse {}
|
|
245
|
+
export const EnableServiceResourceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
246
|
+
S.Struct({}),
|
|
247
|
+
).annotate({
|
|
248
|
+
identifier: "EnableServiceResourceResponse",
|
|
249
|
+
}) as any as S.Schema<EnableServiceResourceResponse>;
|
|
250
|
+
|
|
251
|
+
export interface GetServiceResourceRequest {
|
|
252
|
+
/** project id */
|
|
253
|
+
projectId: string;
|
|
254
|
+
/** region */
|
|
255
|
+
region: string;
|
|
256
|
+
/** server id */
|
|
257
|
+
serverId: string;
|
|
258
|
+
}
|
|
259
|
+
export const GetServiceResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
260
|
+
S.Struct({
|
|
261
|
+
projectId: S.String.pipe(T.Label()),
|
|
262
|
+
region: S.String.pipe(T.Label()),
|
|
263
|
+
serverId: S.String.pipe(T.Label()),
|
|
264
|
+
}).pipe(
|
|
265
|
+
T.Http({
|
|
266
|
+
method: "GET",
|
|
267
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
|
|
268
|
+
code: 200,
|
|
269
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
270
|
+
}),
|
|
271
|
+
),
|
|
272
|
+
).annotate({
|
|
273
|
+
identifier: "GetServiceResourceRequest",
|
|
274
|
+
}) as any as S.Schema<GetServiceResourceRequest>;
|
|
275
|
+
|
|
276
|
+
export interface GetUpdateServiceResponse {
|
|
277
|
+
enabled?: boolean;
|
|
278
|
+
}
|
|
279
|
+
export const GetUpdateServiceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
280
|
+
S.Struct({
|
|
281
|
+
enabled: S.optional(S.Boolean),
|
|
282
|
+
}),
|
|
283
|
+
).annotate({
|
|
284
|
+
identifier: "GetUpdateServiceResponse",
|
|
285
|
+
}) as any as S.Schema<GetUpdateServiceResponse>;
|
|
286
|
+
|
|
287
|
+
export interface GetUpdateRequest {
|
|
288
|
+
/** project id */
|
|
289
|
+
projectId: string;
|
|
290
|
+
/** region */
|
|
291
|
+
region: string;
|
|
292
|
+
/** server id */
|
|
293
|
+
serverId: string;
|
|
294
|
+
/** id of the update */
|
|
295
|
+
updateId: string;
|
|
296
|
+
}
|
|
297
|
+
export const GetUpdateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
298
|
+
S.Struct({
|
|
299
|
+
projectId: S.String.pipe(T.Label()),
|
|
300
|
+
region: S.String.pipe(T.Label()),
|
|
301
|
+
serverId: S.String.pipe(T.Label()),
|
|
302
|
+
updateId: S.String.pipe(T.Label()),
|
|
303
|
+
}).pipe(
|
|
304
|
+
T.Http({
|
|
305
|
+
method: "GET",
|
|
306
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates/{updateId}",
|
|
307
|
+
code: 200,
|
|
308
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
309
|
+
}),
|
|
310
|
+
),
|
|
311
|
+
).annotate({
|
|
312
|
+
identifier: "GetUpdateRequest",
|
|
313
|
+
}) as any as S.Schema<GetUpdateRequest>;
|
|
314
|
+
|
|
315
|
+
export interface GetUpdateScheduleRequest {
|
|
316
|
+
/** project id */
|
|
317
|
+
projectId: string;
|
|
318
|
+
/** region */
|
|
319
|
+
region: string;
|
|
320
|
+
/** server id */
|
|
321
|
+
serverId: string;
|
|
322
|
+
/** update schedule id */
|
|
323
|
+
scheduleId: string;
|
|
324
|
+
}
|
|
325
|
+
export const GetUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
326
|
+
S.Struct({
|
|
327
|
+
projectId: S.String.pipe(T.Label()),
|
|
328
|
+
region: S.String.pipe(T.Label()),
|
|
329
|
+
serverId: S.String.pipe(T.Label()),
|
|
330
|
+
scheduleId: S.String.pipe(T.Label()),
|
|
331
|
+
}).pipe(
|
|
332
|
+
T.Http({
|
|
333
|
+
method: "GET",
|
|
334
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
335
|
+
code: 200,
|
|
336
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
337
|
+
}),
|
|
338
|
+
),
|
|
339
|
+
).annotate({
|
|
340
|
+
identifier: "GetUpdateScheduleRequest",
|
|
341
|
+
}) as any as S.Schema<GetUpdateScheduleRequest>;
|
|
342
|
+
|
|
343
|
+
export interface GetUpdateScheduleResponse {
|
|
344
|
+
enabled: boolean;
|
|
345
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
346
|
+
maintenanceWindow: number;
|
|
347
|
+
name: string;
|
|
348
|
+
/** 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 */
|
|
349
|
+
rrule: string;
|
|
350
|
+
id: number;
|
|
351
|
+
}
|
|
352
|
+
export const GetUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
353
|
+
S.Struct({
|
|
354
|
+
enabled: S.Boolean,
|
|
355
|
+
maintenanceWindow: S.Number,
|
|
356
|
+
name: S.String,
|
|
357
|
+
rrule: S.String,
|
|
358
|
+
id: S.Number,
|
|
359
|
+
}),
|
|
360
|
+
).annotate({
|
|
361
|
+
identifier: "GetUpdateScheduleResponse",
|
|
362
|
+
}) as any as S.Schema<GetUpdateScheduleResponse>;
|
|
363
|
+
|
|
364
|
+
export interface ListUpdatePoliciesRequest {
|
|
365
|
+
/** project id */
|
|
366
|
+
projectId: string;
|
|
367
|
+
}
|
|
368
|
+
export const ListUpdatePoliciesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
369
|
+
S.Struct({
|
|
370
|
+
projectId: S.String.pipe(T.Label()),
|
|
371
|
+
}).pipe(
|
|
372
|
+
T.Http({
|
|
373
|
+
method: "GET",
|
|
374
|
+
uri: "/v2/projects/{projectId}/update-policies",
|
|
375
|
+
code: 200,
|
|
376
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
377
|
+
}),
|
|
378
|
+
),
|
|
379
|
+
).annotate({
|
|
380
|
+
identifier: "ListUpdatePoliciesRequest",
|
|
381
|
+
}) as any as S.Schema<ListUpdatePoliciesRequest>;
|
|
382
|
+
|
|
383
|
+
export interface UpdatePolicy {
|
|
384
|
+
default?: boolean;
|
|
385
|
+
description?: string;
|
|
386
|
+
enabled?: boolean;
|
|
387
|
+
id?: string;
|
|
388
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
389
|
+
maintenanceWindow?: number;
|
|
390
|
+
name?: string;
|
|
391
|
+
/** 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 */
|
|
392
|
+
rrule?: string;
|
|
393
|
+
}
|
|
394
|
+
export const UpdatePolicy = /*@__PURE__*/ S.suspend(() =>
|
|
395
|
+
S.Struct({
|
|
396
|
+
default: S.optional(S.Boolean),
|
|
397
|
+
description: S.optional(S.String),
|
|
398
|
+
enabled: S.optional(S.Boolean),
|
|
399
|
+
id: S.optional(S.String),
|
|
400
|
+
maintenanceWindow: S.optional(S.Number),
|
|
401
|
+
name: S.optional(S.String),
|
|
402
|
+
rrule: S.optional(S.String),
|
|
403
|
+
}),
|
|
404
|
+
).annotate({ identifier: "UpdatePolicy" }) as any as S.Schema<UpdatePolicy>;
|
|
405
|
+
|
|
406
|
+
export type GetUpdatePoliciesResponseItemsList = Array<UpdatePolicy>;
|
|
407
|
+
export const GetUpdatePoliciesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
408
|
+
UpdatePolicy,
|
|
409
|
+
) as any as S.Schema<GetUpdatePoliciesResponseItemsList>;
|
|
410
|
+
|
|
411
|
+
export interface GetUpdatePoliciesResponse {
|
|
412
|
+
items?: GetUpdatePoliciesResponseItemsList;
|
|
413
|
+
}
|
|
414
|
+
export const GetUpdatePoliciesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
415
|
+
S.Struct({
|
|
416
|
+
items: S.optional(GetUpdatePoliciesResponseItemsList),
|
|
417
|
+
}),
|
|
418
|
+
).annotate({
|
|
419
|
+
identifier: "GetUpdatePoliciesResponse",
|
|
420
|
+
}) as any as S.Schema<GetUpdatePoliciesResponse>;
|
|
421
|
+
|
|
422
|
+
export interface ListUpdatesRequest {
|
|
423
|
+
/** project id */
|
|
424
|
+
projectId: string;
|
|
425
|
+
/** region */
|
|
426
|
+
region: string;
|
|
427
|
+
/** server id */
|
|
428
|
+
serverId: string;
|
|
429
|
+
}
|
|
430
|
+
export const ListUpdatesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
431
|
+
S.Struct({
|
|
432
|
+
projectId: S.String.pipe(T.Label()),
|
|
433
|
+
region: S.String.pipe(T.Label()),
|
|
434
|
+
serverId: S.String.pipe(T.Label()),
|
|
435
|
+
}).pipe(
|
|
436
|
+
T.Http({
|
|
437
|
+
method: "GET",
|
|
438
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
|
|
439
|
+
code: 200,
|
|
440
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
441
|
+
}),
|
|
442
|
+
),
|
|
443
|
+
).annotate({
|
|
444
|
+
identifier: "ListUpdatesRequest",
|
|
445
|
+
}) as any as S.Schema<ListUpdatesRequest>;
|
|
446
|
+
|
|
447
|
+
export type GetUpdatesListResponseItemsList = Array<Update>;
|
|
448
|
+
export const GetUpdatesListResponseItemsList = /*@__PURE__*/ S.Array(
|
|
449
|
+
Update,
|
|
450
|
+
) as any as S.Schema<GetUpdatesListResponseItemsList>;
|
|
451
|
+
|
|
452
|
+
export interface GetUpdatesListResponse {
|
|
453
|
+
items?: GetUpdatesListResponseItemsList;
|
|
454
|
+
}
|
|
455
|
+
export const GetUpdatesListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
456
|
+
S.Struct({
|
|
457
|
+
items: S.optional(GetUpdatesListResponseItemsList),
|
|
458
|
+
}),
|
|
459
|
+
).annotate({
|
|
460
|
+
identifier: "GetUpdatesListResponse",
|
|
461
|
+
}) as any as S.Schema<GetUpdatesListResponse>;
|
|
462
|
+
|
|
463
|
+
export interface ListUpdateSchedulesRequest {
|
|
464
|
+
/** project id */
|
|
465
|
+
projectId: string;
|
|
466
|
+
/** region */
|
|
467
|
+
region: string;
|
|
468
|
+
/** server id */
|
|
469
|
+
serverId: string;
|
|
470
|
+
}
|
|
471
|
+
export const ListUpdateSchedulesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
472
|
+
S.Struct({
|
|
473
|
+
projectId: S.String.pipe(T.Label()),
|
|
474
|
+
region: S.String.pipe(T.Label()),
|
|
475
|
+
serverId: S.String.pipe(T.Label()),
|
|
476
|
+
}).pipe(
|
|
477
|
+
T.Http({
|
|
478
|
+
method: "GET",
|
|
479
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
|
|
480
|
+
code: 200,
|
|
481
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
482
|
+
}),
|
|
483
|
+
),
|
|
484
|
+
).annotate({
|
|
485
|
+
identifier: "ListUpdateSchedulesRequest",
|
|
486
|
+
}) as any as S.Schema<ListUpdateSchedulesRequest>;
|
|
487
|
+
|
|
488
|
+
export interface UpdateSchedule {
|
|
489
|
+
enabled: boolean;
|
|
490
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
491
|
+
maintenanceWindow: number;
|
|
492
|
+
name: string;
|
|
493
|
+
/** 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 */
|
|
494
|
+
rrule: string;
|
|
495
|
+
id: number;
|
|
496
|
+
}
|
|
497
|
+
export const UpdateSchedule = /*@__PURE__*/ S.suspend(() =>
|
|
498
|
+
S.Struct({
|
|
499
|
+
enabled: S.Boolean,
|
|
500
|
+
maintenanceWindow: S.Number,
|
|
501
|
+
name: S.String,
|
|
502
|
+
rrule: S.String,
|
|
503
|
+
id: S.Number,
|
|
504
|
+
}),
|
|
505
|
+
).annotate({ identifier: "UpdateSchedule" }) as any as S.Schema<UpdateSchedule>;
|
|
506
|
+
|
|
507
|
+
export type GetUpdateSchedulesResponseItemsList = Array<UpdateSchedule>;
|
|
508
|
+
export const GetUpdateSchedulesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
509
|
+
UpdateSchedule,
|
|
510
|
+
) as any as S.Schema<GetUpdateSchedulesResponseItemsList>;
|
|
511
|
+
|
|
512
|
+
export interface GetUpdateSchedulesResponse {
|
|
513
|
+
items?: GetUpdateSchedulesResponseItemsList;
|
|
514
|
+
}
|
|
515
|
+
export const GetUpdateSchedulesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
516
|
+
S.Struct({
|
|
517
|
+
items: S.optional(GetUpdateSchedulesResponseItemsList),
|
|
518
|
+
}),
|
|
519
|
+
).annotate({
|
|
520
|
+
identifier: "GetUpdateSchedulesResponse",
|
|
521
|
+
}) as any as S.Schema<GetUpdateSchedulesResponse>;
|
|
522
|
+
|
|
523
|
+
export interface UpdateUpdateScheduleRequest {
|
|
524
|
+
/** project id */
|
|
525
|
+
projectId: string;
|
|
526
|
+
/** region */
|
|
527
|
+
region: string;
|
|
528
|
+
/** server id */
|
|
529
|
+
serverId: string;
|
|
530
|
+
/** update schedule id */
|
|
531
|
+
scheduleId: string;
|
|
532
|
+
enabled: boolean;
|
|
533
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
534
|
+
maintenanceWindow: number;
|
|
535
|
+
name: string;
|
|
536
|
+
/** 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 */
|
|
537
|
+
rrule: string;
|
|
538
|
+
}
|
|
539
|
+
export const UpdateUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
540
|
+
S.Struct({
|
|
541
|
+
projectId: S.String.pipe(T.Label()),
|
|
542
|
+
region: S.String.pipe(T.Label()),
|
|
543
|
+
serverId: S.String.pipe(T.Label()),
|
|
544
|
+
scheduleId: S.String.pipe(T.Label()),
|
|
545
|
+
enabled: S.Boolean,
|
|
546
|
+
maintenanceWindow: S.Number,
|
|
547
|
+
name: S.String,
|
|
548
|
+
rrule: S.String,
|
|
549
|
+
}).pipe(
|
|
550
|
+
T.Http({
|
|
551
|
+
method: "PUT",
|
|
552
|
+
uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
|
|
553
|
+
code: 200,
|
|
554
|
+
baseUrl: "https://server-update.api.stackit.cloud",
|
|
555
|
+
}),
|
|
556
|
+
),
|
|
557
|
+
).annotate({
|
|
558
|
+
identifier: "UpdateUpdateScheduleRequest",
|
|
559
|
+
}) as any as S.Schema<UpdateUpdateScheduleRequest>;
|
|
560
|
+
|
|
561
|
+
export interface UpdateUpdateScheduleResponse {
|
|
562
|
+
enabled: boolean;
|
|
563
|
+
/** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
|
|
564
|
+
maintenanceWindow: number;
|
|
565
|
+
name: string;
|
|
566
|
+
/** 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 */
|
|
567
|
+
rrule: string;
|
|
568
|
+
id: number;
|
|
569
|
+
}
|
|
570
|
+
export const UpdateUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
571
|
+
S.Struct({
|
|
572
|
+
enabled: S.Boolean,
|
|
573
|
+
maintenanceWindow: S.Number,
|
|
574
|
+
name: S.String,
|
|
575
|
+
rrule: S.String,
|
|
576
|
+
id: S.Number,
|
|
577
|
+
}),
|
|
578
|
+
).annotate({
|
|
579
|
+
identifier: "UpdateUpdateScheduleResponse",
|
|
580
|
+
}) as any as S.Schema<UpdateUpdateScheduleResponse>;
|
|
581
|
+
|
|
582
|
+
export type CreateUpdateError =
|
|
583
|
+
| BadRequest
|
|
584
|
+
| NotFound
|
|
585
|
+
| Conflict
|
|
586
|
+
| StackitOpError;
|
|
587
|
+
/** create update */
|
|
588
|
+
export const createUpdate: API.OperationMethod<
|
|
589
|
+
CreateUpdateRequest,
|
|
590
|
+
Update,
|
|
591
|
+
CreateUpdateError,
|
|
592
|
+
StackitOpContext
|
|
593
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
594
|
+
input: CreateUpdateRequest,
|
|
595
|
+
output: Update,
|
|
596
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
597
|
+
protocol: StackitProtocol,
|
|
598
|
+
retry: Retry.Retry,
|
|
599
|
+
}));
|
|
600
|
+
|
|
601
|
+
export type CreateUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
602
|
+
/** create update schedule */
|
|
603
|
+
export const createUpdateSchedule: API.OperationMethod<
|
|
604
|
+
CreateUpdateScheduleRequest,
|
|
605
|
+
CreateUpdateScheduleResponse,
|
|
606
|
+
CreateUpdateScheduleError,
|
|
607
|
+
StackitOpContext
|
|
608
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
609
|
+
input: CreateUpdateScheduleRequest,
|
|
610
|
+
output: CreateUpdateScheduleResponse,
|
|
611
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
612
|
+
protocol: StackitProtocol,
|
|
613
|
+
retry: Retry.Retry,
|
|
614
|
+
}));
|
|
615
|
+
|
|
616
|
+
export type DeleteUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
617
|
+
/** delete update schedule */
|
|
618
|
+
export const deleteUpdateSchedule: API.OperationMethod<
|
|
619
|
+
DeleteUpdateScheduleRequest,
|
|
620
|
+
DeleteUpdateScheduleResponse,
|
|
621
|
+
DeleteUpdateScheduleError,
|
|
622
|
+
StackitOpContext
|
|
623
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
624
|
+
input: DeleteUpdateScheduleRequest,
|
|
625
|
+
output: DeleteUpdateScheduleResponse,
|
|
626
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
627
|
+
protocol: StackitProtocol,
|
|
628
|
+
retry: Retry.Retry,
|
|
629
|
+
}));
|
|
630
|
+
|
|
631
|
+
export type DisableServiceResourceError =
|
|
632
|
+
| BadRequest
|
|
633
|
+
| NotFound
|
|
634
|
+
| StackitOpError;
|
|
635
|
+
/** disable update service */
|
|
636
|
+
export const disableServiceResource: API.OperationMethod<
|
|
637
|
+
DisableServiceResourceRequest,
|
|
638
|
+
DisableServiceResourceResponse,
|
|
639
|
+
DisableServiceResourceError,
|
|
640
|
+
StackitOpContext
|
|
641
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
642
|
+
input: DisableServiceResourceRequest,
|
|
643
|
+
output: DisableServiceResourceResponse,
|
|
644
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
645
|
+
protocol: StackitProtocol,
|
|
646
|
+
retry: Retry.Retry,
|
|
647
|
+
}));
|
|
648
|
+
|
|
649
|
+
export type EnableServiceResourceError = BadRequest | NotFound | StackitOpError;
|
|
650
|
+
/** enable update service */
|
|
651
|
+
export const enableServiceResource: API.OperationMethod<
|
|
652
|
+
EnableServiceResourceRequest,
|
|
653
|
+
EnableServiceResourceResponse,
|
|
654
|
+
EnableServiceResourceError,
|
|
655
|
+
StackitOpContext
|
|
656
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
657
|
+
input: EnableServiceResourceRequest,
|
|
658
|
+
output: EnableServiceResourceResponse,
|
|
659
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
660
|
+
protocol: StackitProtocol,
|
|
661
|
+
retry: Retry.Retry,
|
|
662
|
+
}));
|
|
663
|
+
|
|
664
|
+
export type GetServiceResourceError = BadRequest | NotFound | StackitOpError;
|
|
665
|
+
/** get update service details */
|
|
666
|
+
export const getServiceResource: API.OperationMethod<
|
|
667
|
+
GetServiceResourceRequest,
|
|
668
|
+
GetUpdateServiceResponse,
|
|
669
|
+
GetServiceResourceError,
|
|
670
|
+
StackitOpContext
|
|
671
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
672
|
+
input: GetServiceResourceRequest,
|
|
673
|
+
output: GetUpdateServiceResponse,
|
|
674
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
675
|
+
protocol: StackitProtocol,
|
|
676
|
+
retry: Retry.Retry,
|
|
677
|
+
}));
|
|
678
|
+
|
|
679
|
+
export type GetUpdateError = BadRequest | NotFound | StackitOpError;
|
|
680
|
+
/** get update */
|
|
681
|
+
export const getUpdate: API.OperationMethod<
|
|
682
|
+
GetUpdateRequest,
|
|
683
|
+
Update,
|
|
684
|
+
GetUpdateError,
|
|
685
|
+
StackitOpContext
|
|
686
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
687
|
+
input: GetUpdateRequest,
|
|
688
|
+
output: Update,
|
|
689
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
690
|
+
protocol: StackitProtocol,
|
|
691
|
+
retry: Retry.Retry,
|
|
692
|
+
}));
|
|
693
|
+
|
|
694
|
+
export type GetUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
695
|
+
/** get single update schedule details */
|
|
696
|
+
export const getUpdateSchedule: API.OperationMethod<
|
|
697
|
+
GetUpdateScheduleRequest,
|
|
698
|
+
GetUpdateScheduleResponse,
|
|
699
|
+
GetUpdateScheduleError,
|
|
700
|
+
StackitOpContext
|
|
701
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
702
|
+
input: GetUpdateScheduleRequest,
|
|
703
|
+
output: GetUpdateScheduleResponse,
|
|
704
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
705
|
+
protocol: StackitProtocol,
|
|
706
|
+
retry: Retry.Retry,
|
|
707
|
+
}));
|
|
708
|
+
|
|
709
|
+
export type ListUpdatePoliciesError = BadRequest | NotFound | StackitOpError;
|
|
710
|
+
/** get list of update policies */
|
|
711
|
+
export const listUpdatePolicies: API.OperationMethod<
|
|
712
|
+
ListUpdatePoliciesRequest,
|
|
713
|
+
GetUpdatePoliciesResponse,
|
|
714
|
+
ListUpdatePoliciesError,
|
|
715
|
+
StackitOpContext
|
|
716
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
717
|
+
input: ListUpdatePoliciesRequest,
|
|
718
|
+
output: GetUpdatePoliciesResponse,
|
|
719
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
720
|
+
protocol: StackitProtocol,
|
|
721
|
+
retry: Retry.Retry,
|
|
722
|
+
}));
|
|
723
|
+
|
|
724
|
+
export type ListUpdatesError = BadRequest | NotFound | StackitOpError;
|
|
725
|
+
/** get list of updates */
|
|
726
|
+
export const listUpdates: API.OperationMethod<
|
|
727
|
+
ListUpdatesRequest,
|
|
728
|
+
GetUpdatesListResponse,
|
|
729
|
+
ListUpdatesError,
|
|
730
|
+
StackitOpContext
|
|
731
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
732
|
+
input: ListUpdatesRequest,
|
|
733
|
+
output: GetUpdatesListResponse,
|
|
734
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
735
|
+
protocol: StackitProtocol,
|
|
736
|
+
retry: Retry.Retry,
|
|
737
|
+
}));
|
|
738
|
+
|
|
739
|
+
export type ListUpdateSchedulesError = BadRequest | NotFound | StackitOpError;
|
|
740
|
+
/** get list of update schedules */
|
|
741
|
+
export const listUpdateSchedules: API.OperationMethod<
|
|
742
|
+
ListUpdateSchedulesRequest,
|
|
743
|
+
GetUpdateSchedulesResponse,
|
|
744
|
+
ListUpdateSchedulesError,
|
|
745
|
+
StackitOpContext
|
|
746
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
747
|
+
input: ListUpdateSchedulesRequest,
|
|
748
|
+
output: GetUpdateSchedulesResponse,
|
|
749
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
750
|
+
protocol: StackitProtocol,
|
|
751
|
+
retry: Retry.Retry,
|
|
752
|
+
}));
|
|
753
|
+
|
|
754
|
+
export type UpdateUpdateScheduleError = BadRequest | NotFound | StackitOpError;
|
|
755
|
+
/** update update schedule */
|
|
756
|
+
export const updateUpdateSchedule: API.OperationMethod<
|
|
757
|
+
UpdateUpdateScheduleRequest,
|
|
758
|
+
UpdateUpdateScheduleResponse,
|
|
759
|
+
UpdateUpdateScheduleError,
|
|
760
|
+
StackitOpContext
|
|
761
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
762
|
+
input: UpdateUpdateScheduleRequest,
|
|
763
|
+
output: UpdateUpdateScheduleResponse,
|
|
764
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
765
|
+
protocol: StackitProtocol,
|
|
766
|
+
retry: Retry.Retry,
|
|
767
|
+
}));
|