@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14
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 +45 -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 +147 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.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 +513 -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 +521 -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 +323 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +321 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +363 -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 +906 -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 +179 -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 +177 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +842 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +726 -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 +317 -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 +357 -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 +399 -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 +520 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2986 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3543 -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 +475 -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 +663 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +160 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +154 -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 +497 -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 +574 -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 +475 -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 +551 -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 +336 -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 +287 -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 +803 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +470 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +540 -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 +3158 -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 +563 -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 +736 -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 +853 -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 +519 -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 +574 -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 +198 -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 +473 -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 +185 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +553 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +445 -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 +670 -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 +613 -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 +454 -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 +352 -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 +506 -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 +157 -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 +790 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +562 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +558 -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 +936 -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 +379 -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 +532 -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 +484 -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 +279 -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 +567 -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 +931 -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 +508 -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 +85 -3
- package/src/credentials.ts +84 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +57 -0
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +225 -0
- package/src/retry.ts +47 -0
- package/src/services/alb.ts +1326 -0
- package/src/services/alb_waf.ts +1288 -0
- package/src/services/authorization.ts +704 -0
- package/src/services/automation.ts +796 -0
- package/src/services/cdn.ts +2576 -0
- package/src/services/certificates.ts +418 -0
- package/src/services/cost.ts +449 -0
- package/src/services/dns.ts +1936 -0
- package/src/services/dremio.ts +753 -0
- package/src/services/edge.ts +780 -0
- package/src/services/functions.ts +957 -0
- package/src/services/git.ts +1194 -0
- package/src/services/iaas.ts +7878 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1166 -0
- package/src/services/kms.ts +1537 -0
- package/src/services/lb_ip_lists.ts +342 -0
- package/src/services/load_balancer.ts +1266 -0
- package/src/services/logme.ts +1284 -0
- package/src/services/logs.ts +1049 -0
- package/src/services/mariadb.ts +1212 -0
- package/src/services/model_experiments.ts +741 -0
- package/src/services/model_serving.ts +654 -0
- package/src/services/mongodb_flex.ts +1932 -0
- package/src/services/object_storage.ts +1195 -0
- package/src/services/observability.ts +7364 -0
- package/src/services/opensearch.ts +1265 -0
- package/src/services/pim.ts +1985 -0
- package/src/services/postgres_flex.ts +2080 -0
- package/src/services/pubsub.ts +1193 -0
- package/src/services/rabbitmq.ts +1310 -0
- package/src/services/registry.ts +446 -0
- package/src/services/resource_manager.ts +1072 -0
- package/src/services/run_command.ts +413 -0
- package/src/services/sca.ts +1187 -0
- package/src/services/scf.ts +1396 -0
- package/src/services/secrets_manager.ts +1317 -0
- package/src/services/server_backup.ts +983 -0
- package/src/services/server_update.ts +738 -0
- package/src/services/service_account.ts +1121 -0
- package/src/services/service_enablement.ts +330 -0
- package/src/services/sfs.ts +1831 -0
- package/src/services/ske.ts +1386 -0
- package/src/services/sqlserverflex.ts +2307 -0
- package/src/services/stackit_marketplace.ts +787 -0
- package/src/services/telemetry_link.ts +1166 -0
- package/src/services/telemetry_router.ts +1110 -0
- package/src/services/ufw.ts +654 -0
- package/src/services/valkey.ts +1266 -0
- package/src/services/vpn.ts +2365 -0
- package/src/services/workflows.ts +1249 -0
- package/src/traits.ts +60 -0
|
@@ -0,0 +1,796 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
6
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
|
+
import * as Retry from "../retry.ts";
|
|
8
|
+
import * as T from "../traits.ts";
|
|
9
|
+
|
|
10
|
+
export type { StackitOpError, StackitOpContext };
|
|
11
|
+
|
|
12
|
+
export class BadRequest
|
|
13
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
14
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
15
|
+
code: S.Number,
|
|
16
|
+
message: S.String,
|
|
17
|
+
}).pipe(C.withBadRequestError),
|
|
18
|
+
[{ status: 400 }],
|
|
19
|
+
) {}
|
|
20
|
+
|
|
21
|
+
export class Forbidden
|
|
22
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withAuthError),
|
|
27
|
+
[{ status: 403 }],
|
|
28
|
+
) {}
|
|
29
|
+
|
|
30
|
+
export class NotFound
|
|
31
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
32
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
33
|
+
code: S.Number,
|
|
34
|
+
message: S.String,
|
|
35
|
+
}).pipe(C.withBadRequestError),
|
|
36
|
+
[{ status: 404 }],
|
|
37
|
+
) {}
|
|
38
|
+
|
|
39
|
+
export interface VolumeAutomationInput {
|
|
40
|
+
kind: string;
|
|
41
|
+
}
|
|
42
|
+
export const VolumeAutomationInput = /*@__PURE__*/ S.suspend(() =>
|
|
43
|
+
S.Struct({
|
|
44
|
+
kind: S.String,
|
|
45
|
+
}),
|
|
46
|
+
).annotate({ identifier: "VolumeAutomationInput" }) as any as S.Schema<VolumeAutomationInput>;
|
|
47
|
+
|
|
48
|
+
export interface AutomationScheduleTrigger {
|
|
49
|
+
/** 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 */
|
|
50
|
+
rrule: string;
|
|
51
|
+
}
|
|
52
|
+
export const AutomationScheduleTrigger = /*@__PURE__*/ S.suspend(() =>
|
|
53
|
+
S.Struct({
|
|
54
|
+
rrule: S.String,
|
|
55
|
+
}),
|
|
56
|
+
).annotate({
|
|
57
|
+
identifier: "AutomationScheduleTrigger",
|
|
58
|
+
}) as any as S.Schema<AutomationScheduleTrigger>;
|
|
59
|
+
|
|
60
|
+
export interface AutomationTriggers {
|
|
61
|
+
schedule?: AutomationScheduleTrigger | null;
|
|
62
|
+
}
|
|
63
|
+
export const AutomationTriggers = /*@__PURE__*/ S.suspend(() =>
|
|
64
|
+
S.Struct({
|
|
65
|
+
schedule: S.optional(S.NullOr(AutomationScheduleTrigger)),
|
|
66
|
+
}),
|
|
67
|
+
).annotate({ identifier: "AutomationTriggers" }) as any as S.Schema<AutomationTriggers>;
|
|
68
|
+
|
|
69
|
+
export interface CreateVolumeAutomationRequest {
|
|
70
|
+
/** project Id */
|
|
71
|
+
projectId: string;
|
|
72
|
+
/** region */
|
|
73
|
+
region: string;
|
|
74
|
+
description?: string | null;
|
|
75
|
+
input?: VolumeAutomationInput | null;
|
|
76
|
+
name?: string | null;
|
|
77
|
+
templateId: string;
|
|
78
|
+
triggers?: AutomationTriggers | null;
|
|
79
|
+
}
|
|
80
|
+
export const CreateVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
81
|
+
S.Struct({
|
|
82
|
+
projectId: S.String.pipe(T.Label()),
|
|
83
|
+
region: S.String.pipe(T.Label()),
|
|
84
|
+
description: S.optional(S.NullOr(S.String)),
|
|
85
|
+
input: S.optional(S.NullOr(VolumeAutomationInput)),
|
|
86
|
+
name: S.optional(S.NullOr(S.String)),
|
|
87
|
+
templateId: S.String,
|
|
88
|
+
triggers: S.optional(S.NullOr(AutomationTriggers)),
|
|
89
|
+
}).pipe(
|
|
90
|
+
T.Http({
|
|
91
|
+
method: "POST",
|
|
92
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations",
|
|
93
|
+
code: 200,
|
|
94
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
95
|
+
}),
|
|
96
|
+
),
|
|
97
|
+
).annotate({
|
|
98
|
+
identifier: "CreateVolumeAutomationRequest",
|
|
99
|
+
}) as any as S.Schema<CreateVolumeAutomationRequest>;
|
|
100
|
+
|
|
101
|
+
export type VolumeOutputStepResult = VolumeAutomationInput;
|
|
102
|
+
export const VolumeOutputStepResult = VolumeAutomationInput;
|
|
103
|
+
|
|
104
|
+
export interface VolumeOutputStep {
|
|
105
|
+
name: string;
|
|
106
|
+
result?: VolumeAutomationInput;
|
|
107
|
+
}
|
|
108
|
+
export const VolumeOutputStep = /*@__PURE__*/ S.suspend(() =>
|
|
109
|
+
S.Struct({
|
|
110
|
+
name: S.String,
|
|
111
|
+
result: S.optional(VolumeAutomationInput),
|
|
112
|
+
}),
|
|
113
|
+
).annotate({ identifier: "VolumeOutputStep" }) as any as S.Schema<VolumeOutputStep>;
|
|
114
|
+
|
|
115
|
+
export type VolumeOutputStepsList = Array<VolumeOutputStep>;
|
|
116
|
+
export const VolumeOutputStepsList = /*@__PURE__*/ S.Array(
|
|
117
|
+
VolumeOutputStep,
|
|
118
|
+
) as any as S.Schema<VolumeOutputStepsList>;
|
|
119
|
+
|
|
120
|
+
export interface VolumeOutput {
|
|
121
|
+
steps?: VolumeOutputStepsList;
|
|
122
|
+
}
|
|
123
|
+
export const VolumeOutput = /*@__PURE__*/ S.suspend(() =>
|
|
124
|
+
S.Struct({
|
|
125
|
+
steps: S.optional(VolumeOutputStepsList),
|
|
126
|
+
}),
|
|
127
|
+
).annotate({ identifier: "VolumeOutput" }) as any as S.Schema<VolumeOutput>;
|
|
128
|
+
|
|
129
|
+
export interface VolumeAutomation {
|
|
130
|
+
createTime: string;
|
|
131
|
+
description?: string;
|
|
132
|
+
id: string;
|
|
133
|
+
input?: VolumeAutomationInput | null;
|
|
134
|
+
name?: string;
|
|
135
|
+
output?: VolumeOutput;
|
|
136
|
+
templateId?: string;
|
|
137
|
+
triggers?: AutomationTriggers | null;
|
|
138
|
+
updateTime: string;
|
|
139
|
+
}
|
|
140
|
+
export const VolumeAutomation = /*@__PURE__*/ S.suspend(() =>
|
|
141
|
+
S.Struct({
|
|
142
|
+
createTime: S.String,
|
|
143
|
+
description: S.optional(S.String),
|
|
144
|
+
id: S.String,
|
|
145
|
+
input: S.optional(S.NullOr(VolumeAutomationInput)),
|
|
146
|
+
name: S.optional(S.String),
|
|
147
|
+
output: S.optional(VolumeOutput),
|
|
148
|
+
templateId: S.optional(S.String),
|
|
149
|
+
triggers: S.optional(S.NullOr(AutomationTriggers)),
|
|
150
|
+
updateTime: S.String,
|
|
151
|
+
}),
|
|
152
|
+
).annotate({ identifier: "VolumeAutomation" }) as any as S.Schema<VolumeAutomation>;
|
|
153
|
+
|
|
154
|
+
export interface CreateVolumeExecutionRequest {
|
|
155
|
+
/** project Id */
|
|
156
|
+
projectId: string;
|
|
157
|
+
/** region */
|
|
158
|
+
region: string;
|
|
159
|
+
/** automation Id */
|
|
160
|
+
automationId: string;
|
|
161
|
+
}
|
|
162
|
+
export const CreateVolumeExecutionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
163
|
+
S.Struct({
|
|
164
|
+
projectId: S.String.pipe(T.Label()),
|
|
165
|
+
region: S.String.pipe(T.Label()),
|
|
166
|
+
automationId: S.String.pipe(T.Label()),
|
|
167
|
+
}).pipe(
|
|
168
|
+
T.Http({
|
|
169
|
+
method: "POST",
|
|
170
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions",
|
|
171
|
+
code: 200,
|
|
172
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
173
|
+
}),
|
|
174
|
+
),
|
|
175
|
+
).annotate({
|
|
176
|
+
identifier: "CreateVolumeExecutionRequest",
|
|
177
|
+
}) as any as S.Schema<CreateVolumeExecutionRequest>;
|
|
178
|
+
|
|
179
|
+
export interface VolumeExecutionAutomation {
|
|
180
|
+
createTime: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
input?: VolumeAutomationInput | null;
|
|
183
|
+
name?: string;
|
|
184
|
+
output?: VolumeOutput;
|
|
185
|
+
templateId?: string;
|
|
186
|
+
triggers?: AutomationTriggers | null;
|
|
187
|
+
updateTime: string;
|
|
188
|
+
}
|
|
189
|
+
export const VolumeExecutionAutomation = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({
|
|
191
|
+
createTime: S.String,
|
|
192
|
+
description: S.optional(S.String),
|
|
193
|
+
input: S.optional(S.NullOr(VolumeAutomationInput)),
|
|
194
|
+
name: S.optional(S.String),
|
|
195
|
+
output: S.optional(VolumeOutput),
|
|
196
|
+
templateId: S.optional(S.String),
|
|
197
|
+
triggers: S.optional(S.NullOr(AutomationTriggers)),
|
|
198
|
+
updateTime: S.String,
|
|
199
|
+
}),
|
|
200
|
+
).annotate({
|
|
201
|
+
identifier: "VolumeExecutionAutomation",
|
|
202
|
+
}) as any as S.Schema<VolumeExecutionAutomation>;
|
|
203
|
+
|
|
204
|
+
export type VolumeExecutionOutputStepStatus = "PENDING" | "RUNNING" | "FAILED" | "SUCCESSFUL";
|
|
205
|
+
export const VolumeExecutionOutputStepStatus = S.String;
|
|
206
|
+
|
|
207
|
+
export interface VolumeExecutionOutputStep {
|
|
208
|
+
message?: string;
|
|
209
|
+
name: string;
|
|
210
|
+
result?: VolumeAutomationInput;
|
|
211
|
+
status: VolumeExecutionOutputStepStatus;
|
|
212
|
+
}
|
|
213
|
+
export const VolumeExecutionOutputStep = /*@__PURE__*/ S.suspend(() =>
|
|
214
|
+
S.Struct({
|
|
215
|
+
message: S.optional(S.String),
|
|
216
|
+
name: S.String,
|
|
217
|
+
result: S.optional(VolumeAutomationInput),
|
|
218
|
+
status: VolumeExecutionOutputStepStatus,
|
|
219
|
+
}),
|
|
220
|
+
).annotate({
|
|
221
|
+
identifier: "VolumeExecutionOutputStep",
|
|
222
|
+
}) as any as S.Schema<VolumeExecutionOutputStep>;
|
|
223
|
+
|
|
224
|
+
export type VolumeExecutionOutputStepsList = Array<VolumeExecutionOutputStep>;
|
|
225
|
+
export const VolumeExecutionOutputStepsList = /*@__PURE__*/ S.Array(
|
|
226
|
+
VolumeExecutionOutputStep,
|
|
227
|
+
) as any as S.Schema<VolumeExecutionOutputStepsList>;
|
|
228
|
+
|
|
229
|
+
export interface VolumeExecutionOutput {
|
|
230
|
+
steps?: VolumeExecutionOutputStepsList;
|
|
231
|
+
}
|
|
232
|
+
export const VolumeExecutionOutput = /*@__PURE__*/ S.suspend(() =>
|
|
233
|
+
S.Struct({
|
|
234
|
+
steps: S.optional(VolumeExecutionOutputStepsList),
|
|
235
|
+
}),
|
|
236
|
+
).annotate({ identifier: "VolumeExecutionOutput" }) as any as S.Schema<VolumeExecutionOutput>;
|
|
237
|
+
|
|
238
|
+
export interface VolumeExecutionDetails {
|
|
239
|
+
config: VolumeExecutionAutomation;
|
|
240
|
+
output?: VolumeExecutionOutput;
|
|
241
|
+
}
|
|
242
|
+
export const VolumeExecutionDetails = /*@__PURE__*/ S.suspend(() =>
|
|
243
|
+
S.Struct({
|
|
244
|
+
config: VolumeExecutionAutomation,
|
|
245
|
+
output: S.optional(VolumeExecutionOutput),
|
|
246
|
+
}),
|
|
247
|
+
).annotate({ identifier: "VolumeExecutionDetails" }) as any as S.Schema<VolumeExecutionDetails>;
|
|
248
|
+
|
|
249
|
+
export type VolumeExecutionResponseStatus =
|
|
250
|
+
| "PENDING"
|
|
251
|
+
| "RUNNING"
|
|
252
|
+
| "COMPLETED"
|
|
253
|
+
| "FAILED"
|
|
254
|
+
| "TERMINATED";
|
|
255
|
+
export const VolumeExecutionResponseStatus = S.String;
|
|
256
|
+
|
|
257
|
+
export interface VolumeExecutionResponse {
|
|
258
|
+
automation?: VolumeExecutionDetails;
|
|
259
|
+
createTime: string;
|
|
260
|
+
endTime?: string;
|
|
261
|
+
id: string;
|
|
262
|
+
status: VolumeExecutionResponseStatus;
|
|
263
|
+
}
|
|
264
|
+
export const VolumeExecutionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
265
|
+
S.Struct({
|
|
266
|
+
automation: S.optional(VolumeExecutionDetails),
|
|
267
|
+
createTime: S.String,
|
|
268
|
+
endTime: S.optional(S.String),
|
|
269
|
+
id: S.String,
|
|
270
|
+
status: VolumeExecutionResponseStatus,
|
|
271
|
+
}),
|
|
272
|
+
).annotate({ identifier: "VolumeExecutionResponse" }) as any as S.Schema<VolumeExecutionResponse>;
|
|
273
|
+
|
|
274
|
+
export interface DeleteVolumeAutomationRequest {
|
|
275
|
+
/** project Id */
|
|
276
|
+
projectId: string;
|
|
277
|
+
/** region */
|
|
278
|
+
region: string;
|
|
279
|
+
/** automation Id */
|
|
280
|
+
automationId: string;
|
|
281
|
+
}
|
|
282
|
+
export const DeleteVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
283
|
+
S.Struct({
|
|
284
|
+
projectId: S.String.pipe(T.Label()),
|
|
285
|
+
region: S.String.pipe(T.Label()),
|
|
286
|
+
automationId: S.String.pipe(T.Label()),
|
|
287
|
+
}).pipe(
|
|
288
|
+
T.Http({
|
|
289
|
+
method: "DELETE",
|
|
290
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
|
|
291
|
+
code: 200,
|
|
292
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
293
|
+
}),
|
|
294
|
+
),
|
|
295
|
+
).annotate({
|
|
296
|
+
identifier: "DeleteVolumeAutomationRequest",
|
|
297
|
+
}) as any as S.Schema<DeleteVolumeAutomationRequest>;
|
|
298
|
+
|
|
299
|
+
export interface DeleteVolumeAutomationResponse {}
|
|
300
|
+
export const DeleteVolumeAutomationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
301
|
+
identifier: "DeleteVolumeAutomationResponse",
|
|
302
|
+
}) as any as S.Schema<DeleteVolumeAutomationResponse>;
|
|
303
|
+
|
|
304
|
+
export interface GetVolumeAutomationRequest {
|
|
305
|
+
/** project Id */
|
|
306
|
+
projectId: string;
|
|
307
|
+
/** region */
|
|
308
|
+
region: string;
|
|
309
|
+
/** automation Id */
|
|
310
|
+
automationId: string;
|
|
311
|
+
}
|
|
312
|
+
export const GetVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
313
|
+
S.Struct({
|
|
314
|
+
projectId: S.String.pipe(T.Label()),
|
|
315
|
+
region: S.String.pipe(T.Label()),
|
|
316
|
+
automationId: S.String.pipe(T.Label()),
|
|
317
|
+
}).pipe(
|
|
318
|
+
T.Http({
|
|
319
|
+
method: "GET",
|
|
320
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
|
|
321
|
+
code: 200,
|
|
322
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
323
|
+
}),
|
|
324
|
+
),
|
|
325
|
+
).annotate({
|
|
326
|
+
identifier: "GetVolumeAutomationRequest",
|
|
327
|
+
}) as any as S.Schema<GetVolumeAutomationRequest>;
|
|
328
|
+
|
|
329
|
+
export interface GetVolumeExecutionRequest {
|
|
330
|
+
/** project Id */
|
|
331
|
+
projectId: string;
|
|
332
|
+
/** region */
|
|
333
|
+
region: string;
|
|
334
|
+
/** automation Id */
|
|
335
|
+
automationId: string;
|
|
336
|
+
/** execution Id */
|
|
337
|
+
executionId: string;
|
|
338
|
+
}
|
|
339
|
+
export const GetVolumeExecutionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
340
|
+
S.Struct({
|
|
341
|
+
projectId: S.String.pipe(T.Label()),
|
|
342
|
+
region: S.String.pipe(T.Label()),
|
|
343
|
+
automationId: S.String.pipe(T.Label()),
|
|
344
|
+
executionId: S.String.pipe(T.Label()),
|
|
345
|
+
}).pipe(
|
|
346
|
+
T.Http({
|
|
347
|
+
method: "GET",
|
|
348
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions/{executionId}",
|
|
349
|
+
code: 200,
|
|
350
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
351
|
+
}),
|
|
352
|
+
),
|
|
353
|
+
).annotate({
|
|
354
|
+
identifier: "GetVolumeExecutionRequest",
|
|
355
|
+
}) as any as S.Schema<GetVolumeExecutionRequest>;
|
|
356
|
+
|
|
357
|
+
export interface GetVolumeTemplateRequest {
|
|
358
|
+
/** project Id */
|
|
359
|
+
projectId: string;
|
|
360
|
+
/** region */
|
|
361
|
+
region: string;
|
|
362
|
+
/** templateId Id */
|
|
363
|
+
templateId: string;
|
|
364
|
+
}
|
|
365
|
+
export const GetVolumeTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
366
|
+
S.Struct({
|
|
367
|
+
projectId: S.String.pipe(T.Label()),
|
|
368
|
+
region: S.String.pipe(T.Label()),
|
|
369
|
+
templateId: S.String.pipe(T.Label()),
|
|
370
|
+
}).pipe(
|
|
371
|
+
T.Http({
|
|
372
|
+
method: "GET",
|
|
373
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/templates/{templateId}",
|
|
374
|
+
code: 200,
|
|
375
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
376
|
+
}),
|
|
377
|
+
),
|
|
378
|
+
).annotate({ identifier: "GetVolumeTemplateRequest" }) as any as S.Schema<GetVolumeTemplateRequest>;
|
|
379
|
+
|
|
380
|
+
export type VolumeTemplateAutomationInputKind = "VolumeRecoveryPointManagement";
|
|
381
|
+
export const VolumeTemplateAutomationInputKind = S.String;
|
|
382
|
+
|
|
383
|
+
export interface VolumeTemplateAutomationInput {
|
|
384
|
+
kind: VolumeTemplateAutomationInputKind;
|
|
385
|
+
}
|
|
386
|
+
export const VolumeTemplateAutomationInput = /*@__PURE__*/ S.suspend(() =>
|
|
387
|
+
S.Struct({
|
|
388
|
+
kind: VolumeTemplateAutomationInputKind,
|
|
389
|
+
}),
|
|
390
|
+
).annotate({
|
|
391
|
+
identifier: "VolumeTemplateAutomationInput",
|
|
392
|
+
}) as any as S.Schema<VolumeTemplateAutomationInput>;
|
|
393
|
+
|
|
394
|
+
export interface GetVolumeTemplateResponse {
|
|
395
|
+
createTime: string;
|
|
396
|
+
description: string;
|
|
397
|
+
id: string;
|
|
398
|
+
input?: VolumeTemplateAutomationInput;
|
|
399
|
+
name: string;
|
|
400
|
+
output?: VolumeOutput;
|
|
401
|
+
}
|
|
402
|
+
export const GetVolumeTemplateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
403
|
+
S.Struct({
|
|
404
|
+
createTime: S.String,
|
|
405
|
+
description: S.String,
|
|
406
|
+
id: S.String,
|
|
407
|
+
input: S.optional(VolumeTemplateAutomationInput),
|
|
408
|
+
name: S.String,
|
|
409
|
+
output: S.optional(VolumeOutput),
|
|
410
|
+
}),
|
|
411
|
+
).annotate({
|
|
412
|
+
identifier: "GetVolumeTemplateResponse",
|
|
413
|
+
}) as any as S.Schema<GetVolumeTemplateResponse>;
|
|
414
|
+
|
|
415
|
+
export interface ListVolumeAutomationsRequest {
|
|
416
|
+
/** project Id */
|
|
417
|
+
projectId: string;
|
|
418
|
+
/** region */
|
|
419
|
+
region: string;
|
|
420
|
+
/** The maximum number of items to return. If unspecified or set to 0, at most 100 items will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
|
|
421
|
+
pageSize?: number;
|
|
422
|
+
/** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
|
|
423
|
+
pageToken?: string;
|
|
424
|
+
}
|
|
425
|
+
export const ListVolumeAutomationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
426
|
+
S.Struct({
|
|
427
|
+
projectId: S.String.pipe(T.Label()),
|
|
428
|
+
region: S.String.pipe(T.Label()),
|
|
429
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
430
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
431
|
+
}).pipe(
|
|
432
|
+
T.Http({
|
|
433
|
+
method: "GET",
|
|
434
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations",
|
|
435
|
+
code: 200,
|
|
436
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
437
|
+
}),
|
|
438
|
+
),
|
|
439
|
+
).annotate({
|
|
440
|
+
identifier: "ListVolumeAutomationsRequest",
|
|
441
|
+
}) as any as S.Schema<ListVolumeAutomationsRequest>;
|
|
442
|
+
|
|
443
|
+
export interface ListAutomationsItem {
|
|
444
|
+
createTime: string;
|
|
445
|
+
description?: string;
|
|
446
|
+
id: string;
|
|
447
|
+
name?: string;
|
|
448
|
+
templateId?: string;
|
|
449
|
+
triggers?: AutomationTriggers | null;
|
|
450
|
+
updateTime: string;
|
|
451
|
+
}
|
|
452
|
+
export const ListAutomationsItem = /*@__PURE__*/ S.suspend(() =>
|
|
453
|
+
S.Struct({
|
|
454
|
+
createTime: S.String,
|
|
455
|
+
description: S.optional(S.String),
|
|
456
|
+
id: S.String,
|
|
457
|
+
name: S.optional(S.String),
|
|
458
|
+
templateId: S.optional(S.String),
|
|
459
|
+
triggers: S.optional(S.NullOr(AutomationTriggers)),
|
|
460
|
+
updateTime: S.String,
|
|
461
|
+
}),
|
|
462
|
+
).annotate({ identifier: "ListAutomationsItem" }) as any as S.Schema<ListAutomationsItem>;
|
|
463
|
+
|
|
464
|
+
export type ListAutomationsResponseItemsList = Array<ListAutomationsItem>;
|
|
465
|
+
export const ListAutomationsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
466
|
+
ListAutomationsItem,
|
|
467
|
+
) as any as S.Schema<ListAutomationsResponseItemsList>;
|
|
468
|
+
|
|
469
|
+
export interface ListAutomationsResponse {
|
|
470
|
+
items: ListAutomationsResponseItemsList;
|
|
471
|
+
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
472
|
+
nextPageToken?: string;
|
|
473
|
+
}
|
|
474
|
+
export const ListAutomationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
475
|
+
S.Struct({
|
|
476
|
+
items: ListAutomationsResponseItemsList,
|
|
477
|
+
nextPageToken: S.optional(S.String),
|
|
478
|
+
}),
|
|
479
|
+
).annotate({ identifier: "ListAutomationsResponse" }) as any as S.Schema<ListAutomationsResponse>;
|
|
480
|
+
|
|
481
|
+
export interface ListVolumeExecutionsRequest {
|
|
482
|
+
/** project Id */
|
|
483
|
+
projectId: string;
|
|
484
|
+
/** region */
|
|
485
|
+
region: string;
|
|
486
|
+
/** automation Id */
|
|
487
|
+
automationId: string;
|
|
488
|
+
/** The maximum number of items to return. If unspecified or set to 0, at most 100 items will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
|
|
489
|
+
pageSize?: number;
|
|
490
|
+
/** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
|
|
491
|
+
pageToken?: string;
|
|
492
|
+
}
|
|
493
|
+
export const ListVolumeExecutionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
494
|
+
S.Struct({
|
|
495
|
+
projectId: S.String.pipe(T.Label()),
|
|
496
|
+
region: S.String.pipe(T.Label()),
|
|
497
|
+
automationId: S.String.pipe(T.Label()),
|
|
498
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
499
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
500
|
+
}).pipe(
|
|
501
|
+
T.Http({
|
|
502
|
+
method: "GET",
|
|
503
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions",
|
|
504
|
+
code: 200,
|
|
505
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
506
|
+
}),
|
|
507
|
+
),
|
|
508
|
+
).annotate({
|
|
509
|
+
identifier: "ListVolumeExecutionsRequest",
|
|
510
|
+
}) as any as S.Schema<ListVolumeExecutionsRequest>;
|
|
511
|
+
|
|
512
|
+
export type ListExecutionsItemStatus =
|
|
513
|
+
| "PENDING"
|
|
514
|
+
| "RUNNING"
|
|
515
|
+
| "COMPLETED"
|
|
516
|
+
| "FAILED"
|
|
517
|
+
| "TERMINATED";
|
|
518
|
+
export const ListExecutionsItemStatus = S.String;
|
|
519
|
+
|
|
520
|
+
export interface ListExecutionsItem {
|
|
521
|
+
createTime: string;
|
|
522
|
+
endTime?: string;
|
|
523
|
+
id: string;
|
|
524
|
+
status: ListExecutionsItemStatus;
|
|
525
|
+
}
|
|
526
|
+
export const ListExecutionsItem = /*@__PURE__*/ S.suspend(() =>
|
|
527
|
+
S.Struct({
|
|
528
|
+
createTime: S.String,
|
|
529
|
+
endTime: S.optional(S.String),
|
|
530
|
+
id: S.String,
|
|
531
|
+
status: ListExecutionsItemStatus,
|
|
532
|
+
}),
|
|
533
|
+
).annotate({ identifier: "ListExecutionsItem" }) as any as S.Schema<ListExecutionsItem>;
|
|
534
|
+
|
|
535
|
+
export type ListExecutionsResponseItemsList = Array<ListExecutionsItem>;
|
|
536
|
+
export const ListExecutionsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
537
|
+
ListExecutionsItem,
|
|
538
|
+
) as any as S.Schema<ListExecutionsResponseItemsList>;
|
|
539
|
+
|
|
540
|
+
export interface ListExecutionsResponse {
|
|
541
|
+
items: ListExecutionsResponseItemsList;
|
|
542
|
+
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
543
|
+
nextPageToken?: string;
|
|
544
|
+
}
|
|
545
|
+
export const ListExecutionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
546
|
+
S.Struct({
|
|
547
|
+
items: ListExecutionsResponseItemsList,
|
|
548
|
+
nextPageToken: S.optional(S.String),
|
|
549
|
+
}),
|
|
550
|
+
).annotate({ identifier: "ListExecutionsResponse" }) as any as S.Schema<ListExecutionsResponse>;
|
|
551
|
+
|
|
552
|
+
export interface ListVolumeTemplatesRequest {
|
|
553
|
+
/** project Id */
|
|
554
|
+
projectId: string;
|
|
555
|
+
/** region */
|
|
556
|
+
region: string;
|
|
557
|
+
/** The maximum number of items to return. If unspecified or set to 0, at most 100 items will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
|
|
558
|
+
pageSize?: number;
|
|
559
|
+
/** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
|
|
560
|
+
pageToken?: string;
|
|
561
|
+
}
|
|
562
|
+
export const ListVolumeTemplatesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
563
|
+
S.Struct({
|
|
564
|
+
projectId: S.String.pipe(T.Label()),
|
|
565
|
+
region: S.String.pipe(T.Label()),
|
|
566
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
567
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
568
|
+
}).pipe(
|
|
569
|
+
T.Http({
|
|
570
|
+
method: "GET",
|
|
571
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/templates",
|
|
572
|
+
code: 200,
|
|
573
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
574
|
+
}),
|
|
575
|
+
),
|
|
576
|
+
).annotate({
|
|
577
|
+
identifier: "ListVolumeTemplatesRequest",
|
|
578
|
+
}) as any as S.Schema<ListVolumeTemplatesRequest>;
|
|
579
|
+
|
|
580
|
+
export interface Template {
|
|
581
|
+
createTime: string;
|
|
582
|
+
description: string;
|
|
583
|
+
id: string;
|
|
584
|
+
name: string;
|
|
585
|
+
}
|
|
586
|
+
export const Template = /*@__PURE__*/ S.suspend(() =>
|
|
587
|
+
S.Struct({
|
|
588
|
+
createTime: S.String,
|
|
589
|
+
description: S.String,
|
|
590
|
+
id: S.String,
|
|
591
|
+
name: S.String,
|
|
592
|
+
}),
|
|
593
|
+
).annotate({ identifier: "Template" }) as any as S.Schema<Template>;
|
|
594
|
+
|
|
595
|
+
export type ListTemplatesResponseItemsList = Array<Template>;
|
|
596
|
+
export const ListTemplatesResponseItemsList = /*@__PURE__*/ S.Array(
|
|
597
|
+
Template,
|
|
598
|
+
) as any as S.Schema<ListTemplatesResponseItemsList>;
|
|
599
|
+
|
|
600
|
+
export interface ListTemplatesResponse {
|
|
601
|
+
items: ListTemplatesResponseItemsList;
|
|
602
|
+
/** A token that can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
603
|
+
nextPageToken?: string;
|
|
604
|
+
}
|
|
605
|
+
export const ListTemplatesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
606
|
+
S.Struct({
|
|
607
|
+
items: ListTemplatesResponseItemsList,
|
|
608
|
+
nextPageToken: S.optional(S.String),
|
|
609
|
+
}),
|
|
610
|
+
).annotate({ identifier: "ListTemplatesResponse" }) as any as S.Schema<ListTemplatesResponse>;
|
|
611
|
+
|
|
612
|
+
export interface PartialUpdateVolumeAutomationRequest {
|
|
613
|
+
/** project Id */
|
|
614
|
+
projectId: string;
|
|
615
|
+
/** region */
|
|
616
|
+
region: string;
|
|
617
|
+
/** automation Id */
|
|
618
|
+
automationId: string;
|
|
619
|
+
/** A comma-separated list of fully qualified names of fields to be updated. Example: "name,triggers.schedule.rrule" */
|
|
620
|
+
updateMask?: string;
|
|
621
|
+
description?: string | null;
|
|
622
|
+
input?: VolumeAutomationInput | null;
|
|
623
|
+
name?: string | null;
|
|
624
|
+
triggers?: AutomationTriggers | null;
|
|
625
|
+
}
|
|
626
|
+
export const PartialUpdateVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
627
|
+
S.Struct({
|
|
628
|
+
projectId: S.String.pipe(T.Label()),
|
|
629
|
+
region: S.String.pipe(T.Label()),
|
|
630
|
+
automationId: S.String.pipe(T.Label()),
|
|
631
|
+
updateMask: S.optional(S.String.pipe(T.Query())),
|
|
632
|
+
description: S.optional(S.NullOr(S.String)),
|
|
633
|
+
input: S.optional(S.NullOr(VolumeAutomationInput)),
|
|
634
|
+
name: S.optional(S.NullOr(S.String)),
|
|
635
|
+
triggers: S.optional(S.NullOr(AutomationTriggers)),
|
|
636
|
+
}).pipe(
|
|
637
|
+
T.Http({
|
|
638
|
+
method: "PATCH",
|
|
639
|
+
uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
|
|
640
|
+
code: 200,
|
|
641
|
+
baseUrl: "https://automation-service.api.stackit.cloud",
|
|
642
|
+
}),
|
|
643
|
+
),
|
|
644
|
+
).annotate({
|
|
645
|
+
identifier: "PartialUpdateVolumeAutomationRequest",
|
|
646
|
+
}) as any as S.Schema<PartialUpdateVolumeAutomationRequest>;
|
|
647
|
+
|
|
648
|
+
export type CreateVolumeAutomationError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
649
|
+
/** Create volume automation Creates a new volume automation */
|
|
650
|
+
export const createVolumeAutomation: API.OperationMethod<
|
|
651
|
+
CreateVolumeAutomationRequest,
|
|
652
|
+
VolumeAutomation,
|
|
653
|
+
CreateVolumeAutomationError,
|
|
654
|
+
StackitOpContext
|
|
655
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
656
|
+
input: CreateVolumeAutomationRequest,
|
|
657
|
+
output: VolumeAutomation,
|
|
658
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
659
|
+
protocol: StackitProtocol,
|
|
660
|
+
retry: Retry.Retry,
|
|
661
|
+
}));
|
|
662
|
+
|
|
663
|
+
export type CreateVolumeExecutionError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
664
|
+
/** Create volume automation executions Creates a new execution for a specific volume automation */
|
|
665
|
+
export const createVolumeExecution: API.OperationMethod<
|
|
666
|
+
CreateVolumeExecutionRequest,
|
|
667
|
+
VolumeExecutionResponse,
|
|
668
|
+
CreateVolumeExecutionError,
|
|
669
|
+
StackitOpContext
|
|
670
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
671
|
+
input: CreateVolumeExecutionRequest,
|
|
672
|
+
output: VolumeExecutionResponse,
|
|
673
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
674
|
+
protocol: StackitProtocol,
|
|
675
|
+
retry: Retry.Retry,
|
|
676
|
+
}));
|
|
677
|
+
|
|
678
|
+
export type DeleteVolumeAutomationError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
679
|
+
/** Delete volume automation Deletes a specific volume automation. */
|
|
680
|
+
export const deleteVolumeAutomation: API.OperationMethod<
|
|
681
|
+
DeleteVolumeAutomationRequest,
|
|
682
|
+
DeleteVolumeAutomationResponse,
|
|
683
|
+
DeleteVolumeAutomationError,
|
|
684
|
+
StackitOpContext
|
|
685
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
686
|
+
input: DeleteVolumeAutomationRequest,
|
|
687
|
+
output: DeleteVolumeAutomationResponse,
|
|
688
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
689
|
+
protocol: StackitProtocol,
|
|
690
|
+
retry: Retry.Retry,
|
|
691
|
+
}));
|
|
692
|
+
|
|
693
|
+
export type GetVolumeAutomationError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
694
|
+
/** Get volume automation Retrieves a specific volume automation. */
|
|
695
|
+
export const getVolumeAutomation: API.OperationMethod<
|
|
696
|
+
GetVolumeAutomationRequest,
|
|
697
|
+
VolumeAutomation,
|
|
698
|
+
GetVolumeAutomationError,
|
|
699
|
+
StackitOpContext
|
|
700
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
701
|
+
input: GetVolumeAutomationRequest,
|
|
702
|
+
output: VolumeAutomation,
|
|
703
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
704
|
+
protocol: StackitProtocol,
|
|
705
|
+
retry: Retry.Retry,
|
|
706
|
+
}));
|
|
707
|
+
|
|
708
|
+
export type GetVolumeExecutionError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
709
|
+
/** Get volume automation execution details Get details for a specific volume automation execution */
|
|
710
|
+
export const getVolumeExecution: API.OperationMethod<
|
|
711
|
+
GetVolumeExecutionRequest,
|
|
712
|
+
VolumeExecutionResponse,
|
|
713
|
+
GetVolumeExecutionError,
|
|
714
|
+
StackitOpContext
|
|
715
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
716
|
+
input: GetVolumeExecutionRequest,
|
|
717
|
+
output: VolumeExecutionResponse,
|
|
718
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
719
|
+
protocol: StackitProtocol,
|
|
720
|
+
retry: Retry.Retry,
|
|
721
|
+
}));
|
|
722
|
+
|
|
723
|
+
export type GetVolumeTemplateError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
724
|
+
/** Get volume template Retrieve detailed information about a volume template */
|
|
725
|
+
export const getVolumeTemplate: API.OperationMethod<
|
|
726
|
+
GetVolumeTemplateRequest,
|
|
727
|
+
GetVolumeTemplateResponse,
|
|
728
|
+
GetVolumeTemplateError,
|
|
729
|
+
StackitOpContext
|
|
730
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
731
|
+
input: GetVolumeTemplateRequest,
|
|
732
|
+
output: GetVolumeTemplateResponse,
|
|
733
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
734
|
+
protocol: StackitProtocol,
|
|
735
|
+
retry: Retry.Retry,
|
|
736
|
+
}));
|
|
737
|
+
|
|
738
|
+
export type ListVolumeAutomationsError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
739
|
+
/** List volume automations Retrieves a list of volume automations. */
|
|
740
|
+
export const listVolumeAutomations: API.OperationMethod<
|
|
741
|
+
ListVolumeAutomationsRequest,
|
|
742
|
+
ListAutomationsResponse,
|
|
743
|
+
ListVolumeAutomationsError,
|
|
744
|
+
StackitOpContext
|
|
745
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
746
|
+
input: ListVolumeAutomationsRequest,
|
|
747
|
+
output: ListAutomationsResponse,
|
|
748
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
749
|
+
protocol: StackitProtocol,
|
|
750
|
+
retry: Retry.Retry,
|
|
751
|
+
}));
|
|
752
|
+
|
|
753
|
+
export type ListVolumeExecutionsError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
754
|
+
/** List volume automation executions Get a list of all executions for a specific volume automation. */
|
|
755
|
+
export const listVolumeExecutions: API.OperationMethod<
|
|
756
|
+
ListVolumeExecutionsRequest,
|
|
757
|
+
ListExecutionsResponse,
|
|
758
|
+
ListVolumeExecutionsError,
|
|
759
|
+
StackitOpContext
|
|
760
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
761
|
+
input: ListVolumeExecutionsRequest,
|
|
762
|
+
output: ListExecutionsResponse,
|
|
763
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
764
|
+
protocol: StackitProtocol,
|
|
765
|
+
retry: Retry.Retry,
|
|
766
|
+
}));
|
|
767
|
+
|
|
768
|
+
export type ListVolumeTemplatesError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
769
|
+
/** List volume templates Lists all volume templates for the specified service */
|
|
770
|
+
export const listVolumeTemplates: API.OperationMethod<
|
|
771
|
+
ListVolumeTemplatesRequest,
|
|
772
|
+
ListTemplatesResponse,
|
|
773
|
+
ListVolumeTemplatesError,
|
|
774
|
+
StackitOpContext
|
|
775
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
776
|
+
input: ListVolumeTemplatesRequest,
|
|
777
|
+
output: ListTemplatesResponse,
|
|
778
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
779
|
+
protocol: StackitProtocol,
|
|
780
|
+
retry: Retry.Retry,
|
|
781
|
+
}));
|
|
782
|
+
|
|
783
|
+
export type PartialUpdateVolumeAutomationError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
784
|
+
/** Patch volume automation Partially updates a specific volume automation. Specify the fields to update in the `updateMask` query parameter. */
|
|
785
|
+
export const partialUpdateVolumeAutomation: API.OperationMethod<
|
|
786
|
+
PartialUpdateVolumeAutomationRequest,
|
|
787
|
+
VolumeAutomation,
|
|
788
|
+
PartialUpdateVolumeAutomationError,
|
|
789
|
+
StackitOpContext
|
|
790
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
791
|
+
input: PartialUpdateVolumeAutomationRequest,
|
|
792
|
+
output: VolumeAutomation,
|
|
793
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
794
|
+
protocol: StackitProtocol,
|
|
795
|
+
retry: Retry.Retry,
|
|
796
|
+
}));
|