@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
package/src/services/sfs.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
6
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { StackitOpError, StackitOpContext };
|
|
11
14
|
|
|
@@ -20,17 +23,8 @@ export class BadRequest
|
|
|
20
23
|
|
|
21
24
|
/** List of IPs that can mount the Resource Pool in read-only; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP) */
|
|
22
25
|
export type CreateResourcePoolRequestIpAclList = Array<string>;
|
|
23
|
-
export const CreateResourcePoolRequestIpAclList = /*@__PURE__*/ S.Array(
|
|
24
|
-
S.String,
|
|
25
|
-
) as any as S.Schema<CreateResourcePoolRequestIpAclList>;
|
|
26
|
-
|
|
27
26
|
/** An optional object that represents the labels associated with the resource pool. */
|
|
28
27
|
export type CreateResourcePoolRequestLabelsMap = { [key: string]: string | undefined };
|
|
29
|
-
export const CreateResourcePoolRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
30
|
-
S.String,
|
|
31
|
-
S.String,
|
|
32
|
-
) as any as S.Schema<CreateResourcePoolRequestLabelsMap>;
|
|
33
|
-
|
|
34
28
|
export interface CreateResourcePoolRequest {
|
|
35
29
|
projectId: string;
|
|
36
30
|
region: string;
|
|
@@ -51,42 +45,9 @@ export interface CreateResourcePoolRequest {
|
|
|
51
45
|
/** Whether the .snapshot directory is visible when mounting the resource pool. Setting this value to false might prevent you from accessing the snapshots (e.g. for security reasons). Additionally, the access to the snapshots is always controlled by the export policy of the resource pool. That means, if snapshots are visible and the export policy allows for reading the resource pool, then it also allows reading the snapshot of all shares. */
|
|
52
46
|
snapshotsAreVisible?: boolean;
|
|
53
47
|
}
|
|
54
|
-
export const CreateResourcePoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
55
|
-
S.Struct({
|
|
56
|
-
projectId: S.String.pipe(T.Label()),
|
|
57
|
-
region: S.String.pipe(T.Label()),
|
|
58
|
-
availabilityZone: S.String,
|
|
59
|
-
ipAcl: CreateResourcePoolRequestIpAclList,
|
|
60
|
-
labels: S.optional(CreateResourcePoolRequestLabelsMap),
|
|
61
|
-
name: S.String,
|
|
62
|
-
performanceClass: S.String,
|
|
63
|
-
sizeGigabytes: S.Number,
|
|
64
|
-
snapshotPolicyId: S.optional(S.String),
|
|
65
|
-
snapshotsAreVisible: S.optional(S.Boolean),
|
|
66
|
-
}).pipe(
|
|
67
|
-
T.Http({
|
|
68
|
-
method: "POST",
|
|
69
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools",
|
|
70
|
-
code: 200,
|
|
71
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
72
|
-
}),
|
|
73
|
-
),
|
|
74
|
-
).annotate({
|
|
75
|
-
identifier: "CreateResourcePoolRequest",
|
|
76
|
-
}) as any as S.Schema<CreateResourcePoolRequest>;
|
|
77
|
-
|
|
78
48
|
/** List of IPs that can mount the Resource Pool in read-only; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP) */
|
|
79
49
|
export type ResourcePoolIpAclList = Array<string>;
|
|
80
|
-
export const ResourcePoolIpAclList = /*@__PURE__*/ S.Array(
|
|
81
|
-
S.String,
|
|
82
|
-
) as any as S.Schema<ResourcePoolIpAclList>;
|
|
83
|
-
|
|
84
50
|
export type ResourcePoolLabelsMap = { [key: string]: string | undefined };
|
|
85
|
-
export const ResourcePoolLabelsMap = /*@__PURE__*/ S.Record(
|
|
86
|
-
S.String,
|
|
87
|
-
S.String,
|
|
88
|
-
) as any as S.Schema<ResourcePoolLabelsMap>;
|
|
89
|
-
|
|
90
51
|
export interface ResourcePoolPerformanceClass {
|
|
91
52
|
/** Name of the performance class */
|
|
92
53
|
name?: string;
|
|
@@ -95,31 +56,12 @@ export interface ResourcePoolPerformanceClass {
|
|
|
95
56
|
/** Throughput of the Resource Pool. */
|
|
96
57
|
throughput?: number;
|
|
97
58
|
}
|
|
98
|
-
export const ResourcePoolPerformanceClass = /*@__PURE__*/ S.suspend(() =>
|
|
99
|
-
S.Struct({
|
|
100
|
-
name: S.optional(S.String),
|
|
101
|
-
peakIops: S.optional(S.Number),
|
|
102
|
-
throughput: S.optional(S.Number),
|
|
103
|
-
}),
|
|
104
|
-
).annotate({
|
|
105
|
-
identifier: "ResourcePoolPerformanceClass",
|
|
106
|
-
}) as any as S.Schema<ResourcePoolPerformanceClass>;
|
|
107
|
-
|
|
108
59
|
export interface ResourcePoolSnapshotPolicy {
|
|
109
60
|
/** ID of the Snapshot Policy */
|
|
110
61
|
id?: string;
|
|
111
62
|
/** Name of the Snapshot Policy */
|
|
112
63
|
name?: string;
|
|
113
64
|
}
|
|
114
|
-
export const ResourcePoolSnapshotPolicy = /*@__PURE__*/ S.suspend(() =>
|
|
115
|
-
S.Struct({
|
|
116
|
-
id: S.optional(S.String),
|
|
117
|
-
name: S.optional(S.String),
|
|
118
|
-
}),
|
|
119
|
-
).annotate({
|
|
120
|
-
identifier: "ResourcePoolSnapshotPolicy",
|
|
121
|
-
}) as any as S.Schema<ResourcePoolSnapshotPolicy>;
|
|
122
|
-
|
|
123
65
|
export interface ResourcePoolSpace {
|
|
124
66
|
/** Available space of the Resource Pool (only available when retrieving a single Resource Pool by ID) */
|
|
125
67
|
availableGigabytes?: number | null;
|
|
@@ -130,15 +72,6 @@ export interface ResourcePoolSpace {
|
|
|
130
72
|
/** Used space of the Resource Pool (only available when retrieving a single Resource Pool by ID) */
|
|
131
73
|
usedGigabytes?: number | null;
|
|
132
74
|
}
|
|
133
|
-
export const ResourcePoolSpace = /*@__PURE__*/ S.suspend(() =>
|
|
134
|
-
S.Struct({
|
|
135
|
-
availableGigabytes: S.optional(S.NullOr(S.Number)),
|
|
136
|
-
sizeGigabytes: S.optional(S.Number),
|
|
137
|
-
usedBySnapshotsGigabytes: S.optional(S.NullOr(S.Number)),
|
|
138
|
-
usedGigabytes: S.optional(S.NullOr(S.Number)),
|
|
139
|
-
}),
|
|
140
|
-
).annotate({ identifier: "ResourcePoolSpace" }) as any as S.Schema<ResourcePoolSpace>;
|
|
141
|
-
|
|
142
75
|
export interface ResourcePool {
|
|
143
76
|
/** Name of the respective availability zone */
|
|
144
77
|
availabilityZone?: string;
|
|
@@ -169,38 +102,10 @@ export interface ResourcePool {
|
|
|
169
102
|
/** State of the Resource Pool (possible values: ["pending", "creating", "created", "updating", "error", "deleting"]) */
|
|
170
103
|
state?: string;
|
|
171
104
|
}
|
|
172
|
-
export const ResourcePool = /*@__PURE__*/ S.suspend(() =>
|
|
173
|
-
S.Struct({
|
|
174
|
-
availabilityZone: S.optional(S.String),
|
|
175
|
-
countShares: S.optional(S.Number),
|
|
176
|
-
createdAt: S.optional(S.String),
|
|
177
|
-
id: S.optional(S.String),
|
|
178
|
-
ipAcl: S.optional(ResourcePoolIpAclList),
|
|
179
|
-
labels: S.optional(ResourcePoolLabelsMap),
|
|
180
|
-
mountPath: S.optional(S.String),
|
|
181
|
-
name: S.optional(S.String),
|
|
182
|
-
performanceClass: S.optional(ResourcePoolPerformanceClass),
|
|
183
|
-
performanceClassDowngradableAt: S.optional(S.String),
|
|
184
|
-
sizeReducibleAt: S.optional(S.String),
|
|
185
|
-
snapshotPolicy: S.optional(S.NullOr(ResourcePoolSnapshotPolicy)),
|
|
186
|
-
snapshotsAreVisible: S.optional(S.Boolean),
|
|
187
|
-
space: S.optional(ResourcePoolSpace),
|
|
188
|
-
state: S.optional(S.String),
|
|
189
|
-
}),
|
|
190
|
-
).annotate({ identifier: "ResourcePool" }) as any as S.Schema<ResourcePool>;
|
|
191
|
-
|
|
192
105
|
export interface CreateResourcePoolResponse {
|
|
193
106
|
/** Created Resource Pool */
|
|
194
107
|
resourcePool?: ResourcePool;
|
|
195
108
|
}
|
|
196
|
-
export const CreateResourcePoolResponse = /*@__PURE__*/ S.suspend(() =>
|
|
197
|
-
S.Struct({
|
|
198
|
-
resourcePool: S.optional(ResourcePool),
|
|
199
|
-
}),
|
|
200
|
-
).annotate({
|
|
201
|
-
identifier: "CreateResourcePoolResponse",
|
|
202
|
-
}) as any as S.Schema<CreateResourcePoolResponse>;
|
|
203
|
-
|
|
204
109
|
export interface CreateResourcePoolSnapshotRequest {
|
|
205
110
|
projectId: string;
|
|
206
111
|
region: string;
|
|
@@ -212,31 +117,11 @@ export interface CreateResourcePoolSnapshotRequest {
|
|
|
212
117
|
/** (optional) Time in hours after which snaplock on the snapshot expires */
|
|
213
118
|
snaplockRetentionHours?: number | null;
|
|
214
119
|
}
|
|
215
|
-
export const CreateResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
216
|
-
S.Struct({
|
|
217
|
-
projectId: S.String.pipe(T.Label()),
|
|
218
|
-
region: S.String.pipe(T.Label()),
|
|
219
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
220
|
-
comment: S.optional(S.NullOr(S.String)),
|
|
221
|
-
name: S.optional(S.String),
|
|
222
|
-
snaplockRetentionHours: S.optional(S.NullOr(S.Number)),
|
|
223
|
-
}).pipe(
|
|
224
|
-
T.Http({
|
|
225
|
-
method: "POST",
|
|
226
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",
|
|
227
|
-
code: 200,
|
|
228
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
229
|
-
}),
|
|
230
|
-
),
|
|
231
|
-
).annotate({
|
|
232
|
-
identifier: "CreateResourcePoolSnapshotRequest",
|
|
233
|
-
}) as any as S.Schema<CreateResourcePoolSnapshotRequest>;
|
|
234
|
-
|
|
235
120
|
export interface ResourcePoolSnapshot {
|
|
236
121
|
/** (optional) A comment to add more information about a snapshot */
|
|
237
122
|
comment?: string | null;
|
|
238
123
|
createdAt?: string;
|
|
239
|
-
/** Represents the user-visible data size at the time of the snapshot in Gibibytes (e.g. what
|
|
124
|
+
/** Represents the user-visible data size at the time of the snapshot in Gibibytes (e.g. what's in the snapshot) */
|
|
240
125
|
logicalSizeGigabytes?: number;
|
|
241
126
|
/** ID of the Resource Pool of the Snapshot */
|
|
242
127
|
resourcePoolId?: string;
|
|
@@ -247,37 +132,12 @@ export interface ResourcePoolSnapshot {
|
|
|
247
132
|
/** Name of the Resource Pool Snapshot */
|
|
248
133
|
snapshotName?: string;
|
|
249
134
|
}
|
|
250
|
-
export const ResourcePoolSnapshot = /*@__PURE__*/ S.suspend(() =>
|
|
251
|
-
S.Struct({
|
|
252
|
-
comment: S.optional(S.NullOr(S.String)),
|
|
253
|
-
createdAt: S.optional(S.String),
|
|
254
|
-
logicalSizeGigabytes: S.optional(S.Number),
|
|
255
|
-
resourcePoolId: S.optional(S.String),
|
|
256
|
-
sizeGigabytes: S.optional(S.Number),
|
|
257
|
-
snaplockExpiryTime: S.optional(S.NullOr(S.String)),
|
|
258
|
-
snapshotName: S.optional(S.String),
|
|
259
|
-
}),
|
|
260
|
-
).annotate({ identifier: "ResourcePoolSnapshot" }) as any as S.Schema<ResourcePoolSnapshot>;
|
|
261
|
-
|
|
262
135
|
export interface CreateResourcePoolSnapshotResponse {
|
|
263
136
|
/** Created Resource Pool Snapshot */
|
|
264
137
|
resourcePoolSnapshot?: ResourcePoolSnapshot;
|
|
265
138
|
}
|
|
266
|
-
export const CreateResourcePoolSnapshotResponse = /*@__PURE__*/ S.suspend(() =>
|
|
267
|
-
S.Struct({
|
|
268
|
-
resourcePoolSnapshot: S.optional(ResourcePoolSnapshot),
|
|
269
|
-
}),
|
|
270
|
-
).annotate({
|
|
271
|
-
identifier: "CreateResourcePoolSnapshotResponse",
|
|
272
|
-
}) as any as S.Schema<CreateResourcePoolSnapshotResponse>;
|
|
273
|
-
|
|
274
139
|
/** An optional object that represents the labels associated with the share. */
|
|
275
140
|
export type CreateShareRequestLabelsMap = { [key: string]: string | undefined };
|
|
276
|
-
export const CreateShareRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
277
|
-
S.String,
|
|
278
|
-
S.String,
|
|
279
|
-
) as any as S.Schema<CreateShareRequestLabelsMap>;
|
|
280
|
-
|
|
281
141
|
export interface CreateShareRequest {
|
|
282
142
|
projectId: string;
|
|
283
143
|
region: string;
|
|
@@ -291,38 +151,10 @@ export interface CreateShareRequest {
|
|
|
291
151
|
/** Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gibibytes) */
|
|
292
152
|
spaceHardLimitGigabytes: number;
|
|
293
153
|
}
|
|
294
|
-
export const CreateShareRequest = /*@__PURE__*/ S.suspend(() =>
|
|
295
|
-
S.Struct({
|
|
296
|
-
projectId: S.String.pipe(T.Label()),
|
|
297
|
-
region: S.String.pipe(T.Label()),
|
|
298
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
299
|
-
exportPolicyName: S.optional(S.NullOr(S.String)),
|
|
300
|
-
labels: S.optional(CreateShareRequestLabelsMap),
|
|
301
|
-
name: S.String,
|
|
302
|
-
spaceHardLimitGigabytes: S.Number,
|
|
303
|
-
}).pipe(
|
|
304
|
-
T.Http({
|
|
305
|
-
method: "POST",
|
|
306
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",
|
|
307
|
-
code: 200,
|
|
308
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
309
|
-
}),
|
|
310
|
-
),
|
|
311
|
-
).annotate({ identifier: "CreateShareRequest" }) as any as S.Schema<CreateShareRequest>;
|
|
312
|
-
|
|
313
154
|
/** An optional object that represents the labels associated with the share export policy. */
|
|
314
155
|
export type ShareExportPolicyLabelsMap = { [key: string]: string | undefined };
|
|
315
|
-
export const ShareExportPolicyLabelsMap = /*@__PURE__*/ S.Record(
|
|
316
|
-
S.String,
|
|
317
|
-
S.String,
|
|
318
|
-
) as any as S.Schema<ShareExportPolicyLabelsMap>;
|
|
319
|
-
|
|
320
156
|
/** IP access control list, where IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.251/32" for a specific IP) This array cannot be empty */
|
|
321
157
|
export type ShareExportPolicyRuleIpAclList = Array<string>;
|
|
322
|
-
export const ShareExportPolicyRuleIpAclList = /*@__PURE__*/ S.Array(
|
|
323
|
-
S.String,
|
|
324
|
-
) as any as S.Schema<ShareExportPolicyRuleIpAclList>;
|
|
325
|
-
|
|
326
158
|
export interface ShareExportPolicyRule {
|
|
327
159
|
createdAt?: string;
|
|
328
160
|
/** Description of the Rule (optional) */
|
|
@@ -340,25 +172,8 @@ export interface ShareExportPolicyRule {
|
|
|
340
172
|
/** Flag to indicate if client IPs matching this rule have root access on the Share Default: true */
|
|
341
173
|
superUser?: boolean;
|
|
342
174
|
}
|
|
343
|
-
export const ShareExportPolicyRule = /*@__PURE__*/ S.suspend(() =>
|
|
344
|
-
S.Struct({
|
|
345
|
-
createdAt: S.optional(S.String),
|
|
346
|
-
description: S.optional(S.NullOr(S.String)),
|
|
347
|
-
id: S.optional(S.String),
|
|
348
|
-
ipAcl: S.optional(ShareExportPolicyRuleIpAclList),
|
|
349
|
-
order: S.optional(S.Number),
|
|
350
|
-
readOnly: S.optional(S.Boolean),
|
|
351
|
-
setUuid: S.optional(S.Boolean),
|
|
352
|
-
superUser: S.optional(S.Boolean),
|
|
353
|
-
}),
|
|
354
|
-
).annotate({ identifier: "ShareExportPolicyRule" }) as any as S.Schema<ShareExportPolicyRule>;
|
|
355
|
-
|
|
356
175
|
/** List of rules of the Share Export Policy. The order of the rules within the array does not matter - what matters is the field "order" within each rule */
|
|
357
176
|
export type ShareExportPolicyRulesList = Array<ShareExportPolicyRule>;
|
|
358
|
-
export const ShareExportPolicyRulesList = /*@__PURE__*/ S.Array(
|
|
359
|
-
ShareExportPolicyRule,
|
|
360
|
-
) as any as S.Schema<ShareExportPolicyRulesList>;
|
|
361
|
-
|
|
362
177
|
export interface ShareExportPolicy {
|
|
363
178
|
createdAt?: string;
|
|
364
179
|
/** ID of the Share Export Policy */
|
|
@@ -372,24 +187,8 @@ export interface ShareExportPolicy {
|
|
|
372
187
|
/** Number of Shares using this Share Export Policy */
|
|
373
188
|
sharesUsingExportPolicy?: number;
|
|
374
189
|
}
|
|
375
|
-
export const ShareExportPolicy = /*@__PURE__*/ S.suspend(() =>
|
|
376
|
-
S.Struct({
|
|
377
|
-
createdAt: S.optional(S.String),
|
|
378
|
-
id: S.optional(S.String),
|
|
379
|
-
labels: S.optional(ShareExportPolicyLabelsMap),
|
|
380
|
-
name: S.optional(S.String),
|
|
381
|
-
rules: S.optional(ShareExportPolicyRulesList),
|
|
382
|
-
sharesUsingExportPolicy: S.optional(S.Number),
|
|
383
|
-
}),
|
|
384
|
-
).annotate({ identifier: "ShareExportPolicy" }) as any as S.Schema<ShareExportPolicy>;
|
|
385
|
-
|
|
386
190
|
/** An optional object that represents the labels associated with the share. */
|
|
387
191
|
export type ShareLabelsMap = { [key: string]: string | undefined };
|
|
388
|
-
export const ShareLabelsMap = /*@__PURE__*/ S.Record(
|
|
389
|
-
S.String,
|
|
390
|
-
S.String,
|
|
391
|
-
) as any as S.Schema<ShareLabelsMap>;
|
|
392
|
-
|
|
393
192
|
export interface Share {
|
|
394
193
|
createdAt?: string;
|
|
395
194
|
/** Details of the Share Export Policy to use in the Share. Note that if this is not set, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share */
|
|
@@ -407,42 +206,14 @@ export interface Share {
|
|
|
407
206
|
/** State of the Resource Pool Snapshot (possible values: ["pending", "creating", "created", "error", "deleting"]) */
|
|
408
207
|
state?: string;
|
|
409
208
|
}
|
|
410
|
-
export const Share = /*@__PURE__*/ S.suspend(() =>
|
|
411
|
-
S.Struct({
|
|
412
|
-
createdAt: S.optional(S.String),
|
|
413
|
-
exportPolicy: S.optional(S.NullOr(ShareExportPolicy)),
|
|
414
|
-
id: S.optional(S.String),
|
|
415
|
-
labels: S.optional(ShareLabelsMap),
|
|
416
|
-
mountPath: S.optional(S.String),
|
|
417
|
-
name: S.optional(S.String),
|
|
418
|
-
spaceHardLimitGigabytes: S.optional(S.Number),
|
|
419
|
-
state: S.optional(S.String),
|
|
420
|
-
}),
|
|
421
|
-
).annotate({ identifier: "Share" }) as any as S.Schema<Share>;
|
|
422
|
-
|
|
423
209
|
export interface CreateShareResponse {
|
|
424
210
|
/** Created Share */
|
|
425
211
|
share?: Share;
|
|
426
212
|
}
|
|
427
|
-
export const CreateShareResponse = /*@__PURE__*/ S.suspend(() =>
|
|
428
|
-
S.Struct({
|
|
429
|
-
share: S.optional(Share),
|
|
430
|
-
}),
|
|
431
|
-
).annotate({ identifier: "CreateShareResponse" }) as any as S.Schema<CreateShareResponse>;
|
|
432
|
-
|
|
433
213
|
/** An optional object that represents the labels associated with the share export policy. */
|
|
434
214
|
export type CreateShareExportPolicyRequestLabelsMap = { [key: string]: string | undefined };
|
|
435
|
-
export const CreateShareExportPolicyRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
436
|
-
S.String,
|
|
437
|
-
S.String,
|
|
438
|
-
) as any as S.Schema<CreateShareExportPolicyRequestLabelsMap>;
|
|
439
|
-
|
|
440
215
|
/** IP access control list, where IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP) This array cannot be empty */
|
|
441
216
|
export type CreateShareExportPolicyRequestRuleIpAclList = Array<string>;
|
|
442
|
-
export const CreateShareExportPolicyRequestRuleIpAclList = /*@__PURE__*/ S.Array(
|
|
443
|
-
S.String,
|
|
444
|
-
) as any as S.Schema<CreateShareExportPolicyRequestRuleIpAclList>;
|
|
445
|
-
|
|
446
217
|
export interface CreateShareExportPolicyRequestRule {
|
|
447
218
|
/** Description of the Rule (optional) */
|
|
448
219
|
description?: string | null;
|
|
@@ -457,25 +228,8 @@ export interface CreateShareExportPolicyRequestRule {
|
|
|
457
228
|
/** Flag to indicate if client IPs matching this rule have root access on the Share Default: true */
|
|
458
229
|
superUser?: boolean;
|
|
459
230
|
}
|
|
460
|
-
export const CreateShareExportPolicyRequestRule = /*@__PURE__*/ S.suspend(() =>
|
|
461
|
-
S.Struct({
|
|
462
|
-
description: S.optional(S.NullOr(S.String)),
|
|
463
|
-
ipAcl: S.optional(CreateShareExportPolicyRequestRuleIpAclList),
|
|
464
|
-
order: S.optional(S.Number),
|
|
465
|
-
readOnly: S.optional(S.Boolean),
|
|
466
|
-
setUuid: S.optional(S.Boolean),
|
|
467
|
-
superUser: S.optional(S.Boolean),
|
|
468
|
-
}),
|
|
469
|
-
).annotate({
|
|
470
|
-
identifier: "CreateShareExportPolicyRequestRule",
|
|
471
|
-
}) as any as S.Schema<CreateShareExportPolicyRequestRule>;
|
|
472
|
-
|
|
473
231
|
/** List of rules of the Share Export Policy. The order of the rules within the array does not matter - what matters is the field "order" within each rule */
|
|
474
232
|
export type CreateShareExportPolicyRequestRulesList = Array<CreateShareExportPolicyRequestRule>;
|
|
475
|
-
export const CreateShareExportPolicyRequestRulesList = /*@__PURE__*/ S.Array(
|
|
476
|
-
CreateShareExportPolicyRequestRule,
|
|
477
|
-
) as any as S.Schema<CreateShareExportPolicyRequestRulesList>;
|
|
478
|
-
|
|
479
233
|
export interface CreateShareExportPolicyRequest {
|
|
480
234
|
projectId: string;
|
|
481
235
|
region: string;
|
|
@@ -486,380 +240,97 @@ export interface CreateShareExportPolicyRequest {
|
|
|
486
240
|
/** List of rules of the Share Export Policy. The order of the rules within the array does not matter - what matters is the field "order" within each rule */
|
|
487
241
|
rules?: CreateShareExportPolicyRequestRulesList;
|
|
488
242
|
}
|
|
489
|
-
export const CreateShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
490
|
-
S.Struct({
|
|
491
|
-
projectId: S.String.pipe(T.Label()),
|
|
492
|
-
region: S.String.pipe(T.Label()),
|
|
493
|
-
labels: S.optional(CreateShareExportPolicyRequestLabelsMap),
|
|
494
|
-
name: S.String,
|
|
495
|
-
rules: S.optional(CreateShareExportPolicyRequestRulesList),
|
|
496
|
-
}).pipe(
|
|
497
|
-
T.Http({
|
|
498
|
-
method: "POST",
|
|
499
|
-
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies",
|
|
500
|
-
code: 200,
|
|
501
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
502
|
-
}),
|
|
503
|
-
),
|
|
504
|
-
).annotate({
|
|
505
|
-
identifier: "CreateShareExportPolicyRequest",
|
|
506
|
-
}) as any as S.Schema<CreateShareExportPolicyRequest>;
|
|
507
|
-
|
|
508
243
|
export interface CreateShareExportPolicyResponse {
|
|
509
244
|
/** Created Share Export Policy */
|
|
510
245
|
shareExportPolicy?: ShareExportPolicy;
|
|
511
246
|
}
|
|
512
|
-
export const CreateShareExportPolicyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
513
|
-
S.Struct({
|
|
514
|
-
shareExportPolicy: S.optional(ShareExportPolicy),
|
|
515
|
-
}),
|
|
516
|
-
).annotate({
|
|
517
|
-
identifier: "CreateShareExportPolicyResponse",
|
|
518
|
-
}) as any as S.Schema<CreateShareExportPolicyResponse>;
|
|
519
|
-
|
|
520
247
|
export interface DeleteResourcePoolRequest {
|
|
521
248
|
projectId: string;
|
|
522
249
|
region: string;
|
|
523
250
|
resourcePoolId: string;
|
|
524
251
|
}
|
|
525
|
-
export const DeleteResourcePoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
526
|
-
S.Struct({
|
|
527
|
-
projectId: S.String.pipe(T.Label()),
|
|
528
|
-
region: S.String.pipe(T.Label()),
|
|
529
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
530
|
-
}).pipe(
|
|
531
|
-
T.Http({
|
|
532
|
-
method: "DELETE",
|
|
533
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
|
|
534
|
-
code: 200,
|
|
535
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
536
|
-
}),
|
|
537
|
-
),
|
|
538
|
-
).annotate({
|
|
539
|
-
identifier: "DeleteResourcePoolRequest",
|
|
540
|
-
}) as any as S.Schema<DeleteResourcePoolRequest>;
|
|
541
|
-
|
|
542
252
|
export type DeleteResourcePoolResponse2 = unknown;
|
|
543
|
-
export const DeleteResourcePoolResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
544
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
545
|
-
).annotate({
|
|
546
|
-
identifier: "DeleteResourcePoolResponse2",
|
|
547
|
-
}) as any as S.Schema<DeleteResourcePoolResponse2>;
|
|
548
|
-
|
|
549
253
|
export interface DeleteResourcePoolSnapshotRequest {
|
|
550
254
|
projectId: string;
|
|
551
255
|
region: string;
|
|
552
256
|
resourcePoolId: string;
|
|
553
257
|
snapshotName: string;
|
|
554
258
|
}
|
|
555
|
-
export const DeleteResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
556
|
-
S.Struct({
|
|
557
|
-
projectId: S.String.pipe(T.Label()),
|
|
558
|
-
region: S.String.pipe(T.Label()),
|
|
559
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
560
|
-
snapshotName: S.String.pipe(T.Label()),
|
|
561
|
-
}).pipe(
|
|
562
|
-
T.Http({
|
|
563
|
-
method: "DELETE",
|
|
564
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
|
|
565
|
-
code: 200,
|
|
566
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
567
|
-
}),
|
|
568
|
-
),
|
|
569
|
-
).annotate({
|
|
570
|
-
identifier: "DeleteResourcePoolSnapshotRequest",
|
|
571
|
-
}) as any as S.Schema<DeleteResourcePoolSnapshotRequest>;
|
|
572
|
-
|
|
573
259
|
export type DeleteResourcePoolSnapshotResponse2 = unknown;
|
|
574
|
-
export const DeleteResourcePoolSnapshotResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
575
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
576
|
-
).annotate({
|
|
577
|
-
identifier: "DeleteResourcePoolSnapshotResponse2",
|
|
578
|
-
}) as any as S.Schema<DeleteResourcePoolSnapshotResponse2>;
|
|
579
|
-
|
|
580
260
|
export interface DeleteShareRequest {
|
|
581
261
|
projectId: string;
|
|
582
262
|
region: string;
|
|
583
263
|
resourcePoolId: string;
|
|
584
264
|
shareId: string;
|
|
585
265
|
}
|
|
586
|
-
export const DeleteShareRequest = /*@__PURE__*/ S.suspend(() =>
|
|
587
|
-
S.Struct({
|
|
588
|
-
projectId: S.String.pipe(T.Label()),
|
|
589
|
-
region: S.String.pipe(T.Label()),
|
|
590
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
591
|
-
shareId: S.String.pipe(T.Label()),
|
|
592
|
-
}).pipe(
|
|
593
|
-
T.Http({
|
|
594
|
-
method: "DELETE",
|
|
595
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
|
|
596
|
-
code: 200,
|
|
597
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
598
|
-
}),
|
|
599
|
-
),
|
|
600
|
-
).annotate({ identifier: "DeleteShareRequest" }) as any as S.Schema<DeleteShareRequest>;
|
|
601
|
-
|
|
602
266
|
export type DeleteShareResponse2 = unknown;
|
|
603
|
-
export const DeleteShareResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
604
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
605
|
-
).annotate({ identifier: "DeleteShareResponse2" }) as any as S.Schema<DeleteShareResponse2>;
|
|
606
|
-
|
|
607
267
|
export interface DeleteShareExportPolicyRequest {
|
|
608
268
|
projectId: string;
|
|
609
269
|
region: string;
|
|
610
270
|
policyId: string;
|
|
611
271
|
}
|
|
612
|
-
export const DeleteShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
613
|
-
S.Struct({
|
|
614
|
-
projectId: S.String.pipe(T.Label()),
|
|
615
|
-
region: S.String.pipe(T.Label()),
|
|
616
|
-
policyId: S.String.pipe(T.Label()),
|
|
617
|
-
}).pipe(
|
|
618
|
-
T.Http({
|
|
619
|
-
method: "DELETE",
|
|
620
|
-
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
|
|
621
|
-
code: 200,
|
|
622
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
623
|
-
}),
|
|
624
|
-
),
|
|
625
|
-
).annotate({
|
|
626
|
-
identifier: "DeleteShareExportPolicyRequest",
|
|
627
|
-
}) as any as S.Schema<DeleteShareExportPolicyRequest>;
|
|
628
|
-
|
|
629
272
|
export type DeleteShareExportPolicyResponse2 = unknown;
|
|
630
|
-
export const DeleteShareExportPolicyResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
631
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
632
|
-
).annotate({
|
|
633
|
-
identifier: "DeleteShareExportPolicyResponse2",
|
|
634
|
-
}) as any as S.Schema<DeleteShareExportPolicyResponse2>;
|
|
635
|
-
|
|
636
273
|
export interface DisableLockRequest {
|
|
637
274
|
region: string;
|
|
638
275
|
projectId: string;
|
|
639
276
|
}
|
|
640
|
-
export const DisableLockRequest = /*@__PURE__*/ S.suspend(() =>
|
|
641
|
-
S.Struct({
|
|
642
|
-
region: S.String.pipe(T.Label()),
|
|
643
|
-
projectId: S.String.pipe(T.Label()),
|
|
644
|
-
}).pipe(
|
|
645
|
-
T.Http({
|
|
646
|
-
method: "DELETE",
|
|
647
|
-
uri: "/v1/regions/{region}/project/{projectId}/locks",
|
|
648
|
-
code: 200,
|
|
649
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
650
|
-
}),
|
|
651
|
-
),
|
|
652
|
-
).annotate({ identifier: "DisableLockRequest" }) as any as S.Schema<DisableLockRequest>;
|
|
653
|
-
|
|
654
277
|
export type DisableLockResponse2 = unknown;
|
|
655
|
-
export const DisableLockResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
656
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
657
|
-
).annotate({ identifier: "DisableLockResponse2" }) as any as S.Schema<DisableLockResponse2>;
|
|
658
|
-
|
|
659
278
|
export interface EnableLockRequest {
|
|
660
279
|
region: string;
|
|
661
280
|
projectId: string;
|
|
662
281
|
}
|
|
663
|
-
export const EnableLockRequest = /*@__PURE__*/ S.suspend(() =>
|
|
664
|
-
S.Struct({
|
|
665
|
-
region: S.String.pipe(T.Label()),
|
|
666
|
-
projectId: S.String.pipe(T.Label()),
|
|
667
|
-
}).pipe(
|
|
668
|
-
T.Http({
|
|
669
|
-
method: "POST",
|
|
670
|
-
uri: "/v1/regions/{region}/project/{projectId}/locks",
|
|
671
|
-
code: 200,
|
|
672
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
673
|
-
}),
|
|
674
|
-
),
|
|
675
|
-
).annotate({ identifier: "EnableLockRequest" }) as any as S.Schema<EnableLockRequest>;
|
|
676
|
-
|
|
677
282
|
export interface EnableLockResponse {
|
|
678
283
|
lockId?: string;
|
|
679
284
|
}
|
|
680
|
-
export const EnableLockResponse = /*@__PURE__*/ S.suspend(() =>
|
|
681
|
-
S.Struct({
|
|
682
|
-
lockId: S.optional(S.String),
|
|
683
|
-
}),
|
|
684
|
-
).annotate({ identifier: "EnableLockResponse" }) as any as S.Schema<EnableLockResponse>;
|
|
685
|
-
|
|
686
285
|
export interface GetLockRequest {
|
|
687
286
|
region: string;
|
|
688
287
|
projectId: string;
|
|
689
288
|
}
|
|
690
|
-
export const GetLockRequest = /*@__PURE__*/ S.suspend(() =>
|
|
691
|
-
S.Struct({
|
|
692
|
-
region: S.String.pipe(T.Label()),
|
|
693
|
-
projectId: S.String.pipe(T.Label()),
|
|
694
|
-
}).pipe(
|
|
695
|
-
T.Http({
|
|
696
|
-
method: "GET",
|
|
697
|
-
uri: "/v1/regions/{region}/project/{projectId}/locks",
|
|
698
|
-
code: 200,
|
|
699
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
700
|
-
}),
|
|
701
|
-
),
|
|
702
|
-
).annotate({ identifier: "GetLockRequest" }) as any as S.Schema<GetLockRequest>;
|
|
703
|
-
|
|
704
289
|
export interface GetLockResponse {
|
|
705
290
|
lockId?: string;
|
|
706
291
|
}
|
|
707
|
-
export const GetLockResponse = /*@__PURE__*/ S.suspend(() =>
|
|
708
|
-
S.Struct({
|
|
709
|
-
lockId: S.optional(S.String),
|
|
710
|
-
}),
|
|
711
|
-
).annotate({ identifier: "GetLockResponse" }) as any as S.Schema<GetLockResponse>;
|
|
712
|
-
|
|
713
292
|
export interface GetResourcePoolRequest {
|
|
714
293
|
projectId: string;
|
|
715
294
|
region: string;
|
|
716
295
|
resourcePoolId: string;
|
|
717
296
|
}
|
|
718
|
-
export const GetResourcePoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
719
|
-
S.Struct({
|
|
720
|
-
projectId: S.String.pipe(T.Label()),
|
|
721
|
-
region: S.String.pipe(T.Label()),
|
|
722
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
723
|
-
}).pipe(
|
|
724
|
-
T.Http({
|
|
725
|
-
method: "GET",
|
|
726
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
|
|
727
|
-
code: 200,
|
|
728
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
729
|
-
}),
|
|
730
|
-
),
|
|
731
|
-
).annotate({ identifier: "GetResourcePoolRequest" }) as any as S.Schema<GetResourcePoolRequest>;
|
|
732
|
-
|
|
733
297
|
export interface GetResourcePoolResponse {
|
|
734
298
|
/** Resource Pool */
|
|
735
299
|
resourcePool?: ResourcePool;
|
|
736
300
|
}
|
|
737
|
-
export const GetResourcePoolResponse = /*@__PURE__*/ S.suspend(() =>
|
|
738
|
-
S.Struct({
|
|
739
|
-
resourcePool: S.optional(ResourcePool),
|
|
740
|
-
}),
|
|
741
|
-
).annotate({ identifier: "GetResourcePoolResponse" }) as any as S.Schema<GetResourcePoolResponse>;
|
|
742
|
-
|
|
743
301
|
export interface GetResourcePoolSnapshotRequest {
|
|
744
302
|
projectId: string;
|
|
745
303
|
region: string;
|
|
746
304
|
resourcePoolId: string;
|
|
747
305
|
snapshotName: string;
|
|
748
306
|
}
|
|
749
|
-
export const GetResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
750
|
-
S.Struct({
|
|
751
|
-
projectId: S.String.pipe(T.Label()),
|
|
752
|
-
region: S.String.pipe(T.Label()),
|
|
753
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
754
|
-
snapshotName: S.String.pipe(T.Label()),
|
|
755
|
-
}).pipe(
|
|
756
|
-
T.Http({
|
|
757
|
-
method: "GET",
|
|
758
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
|
|
759
|
-
code: 200,
|
|
760
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
761
|
-
}),
|
|
762
|
-
),
|
|
763
|
-
).annotate({
|
|
764
|
-
identifier: "GetResourcePoolSnapshotRequest",
|
|
765
|
-
}) as any as S.Schema<GetResourcePoolSnapshotRequest>;
|
|
766
|
-
|
|
767
307
|
export interface GetResourcePoolSnapshotResponse {
|
|
768
308
|
/** Resource Pool Snapshot */
|
|
769
309
|
resourcePoolSnapshot?: ResourcePoolSnapshot;
|
|
770
310
|
}
|
|
771
|
-
export const GetResourcePoolSnapshotResponse = /*@__PURE__*/ S.suspend(() =>
|
|
772
|
-
S.Struct({
|
|
773
|
-
resourcePoolSnapshot: S.optional(ResourcePoolSnapshot),
|
|
774
|
-
}),
|
|
775
|
-
).annotate({
|
|
776
|
-
identifier: "GetResourcePoolSnapshotResponse",
|
|
777
|
-
}) as any as S.Schema<GetResourcePoolSnapshotResponse>;
|
|
778
|
-
|
|
779
311
|
export interface GetShareRequest {
|
|
780
312
|
projectId: string;
|
|
781
313
|
region: string;
|
|
782
314
|
resourcePoolId: string;
|
|
783
315
|
shareId: string;
|
|
784
316
|
}
|
|
785
|
-
export const GetShareRequest = /*@__PURE__*/ S.suspend(() =>
|
|
786
|
-
S.Struct({
|
|
787
|
-
projectId: S.String.pipe(T.Label()),
|
|
788
|
-
region: S.String.pipe(T.Label()),
|
|
789
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
790
|
-
shareId: S.String.pipe(T.Label()),
|
|
791
|
-
}).pipe(
|
|
792
|
-
T.Http({
|
|
793
|
-
method: "GET",
|
|
794
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
|
|
795
|
-
code: 200,
|
|
796
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
797
|
-
}),
|
|
798
|
-
),
|
|
799
|
-
).annotate({ identifier: "GetShareRequest" }) as any as S.Schema<GetShareRequest>;
|
|
800
|
-
|
|
801
317
|
export interface GetShareResponse {
|
|
802
318
|
/** Share */
|
|
803
319
|
share?: Share;
|
|
804
320
|
}
|
|
805
|
-
export const GetShareResponse = /*@__PURE__*/ S.suspend(() =>
|
|
806
|
-
S.Struct({
|
|
807
|
-
share: S.optional(Share),
|
|
808
|
-
}),
|
|
809
|
-
).annotate({ identifier: "GetShareResponse" }) as any as S.Schema<GetShareResponse>;
|
|
810
|
-
|
|
811
321
|
export interface GetShareExportPolicyRequest {
|
|
812
322
|
projectId: string;
|
|
813
323
|
region: string;
|
|
814
324
|
policyId: string;
|
|
815
325
|
}
|
|
816
|
-
export const GetShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
817
|
-
S.Struct({
|
|
818
|
-
projectId: S.String.pipe(T.Label()),
|
|
819
|
-
region: S.String.pipe(T.Label()),
|
|
820
|
-
policyId: S.String.pipe(T.Label()),
|
|
821
|
-
}).pipe(
|
|
822
|
-
T.Http({
|
|
823
|
-
method: "GET",
|
|
824
|
-
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
|
|
825
|
-
code: 200,
|
|
826
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
827
|
-
}),
|
|
828
|
-
),
|
|
829
|
-
).annotate({
|
|
830
|
-
identifier: "GetShareExportPolicyRequest",
|
|
831
|
-
}) as any as S.Schema<GetShareExportPolicyRequest>;
|
|
832
|
-
|
|
833
326
|
export interface GetShareExportPolicyResponse {
|
|
834
327
|
/** Share Export Policies */
|
|
835
328
|
shareExportPolicy?: ShareExportPolicy;
|
|
836
329
|
}
|
|
837
|
-
export const GetShareExportPolicyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
838
|
-
S.Struct({
|
|
839
|
-
shareExportPolicy: S.optional(ShareExportPolicy),
|
|
840
|
-
}),
|
|
841
|
-
).annotate({
|
|
842
|
-
identifier: "GetShareExportPolicyResponse",
|
|
843
|
-
}) as any as S.Schema<GetShareExportPolicyResponse>;
|
|
844
|
-
|
|
845
330
|
export interface GetSnapshotPolicyRequest {
|
|
846
331
|
projectId: string;
|
|
847
332
|
id: string;
|
|
848
333
|
}
|
|
849
|
-
export const GetSnapshotPolicyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
850
|
-
S.Struct({
|
|
851
|
-
projectId: S.String.pipe(T.Label()),
|
|
852
|
-
id: S.String.pipe(T.Label()),
|
|
853
|
-
}).pipe(
|
|
854
|
-
T.Http({
|
|
855
|
-
method: "GET",
|
|
856
|
-
uri: "/v1/projects/{projectId}/snapshotPolicies/{id}",
|
|
857
|
-
code: 200,
|
|
858
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
859
|
-
}),
|
|
860
|
-
),
|
|
861
|
-
).annotate({ identifier: "GetSnapshotPolicyRequest" }) as any as S.Schema<GetSnapshotPolicyRequest>;
|
|
862
|
-
|
|
863
334
|
export interface SnapshotPolicySchedule {
|
|
864
335
|
/** Retention Count */
|
|
865
336
|
count?: number;
|
|
@@ -872,22 +343,8 @@ export interface SnapshotPolicySchedule {
|
|
|
872
343
|
/** ID of the Schedule */
|
|
873
344
|
scheduleId?: string;
|
|
874
345
|
}
|
|
875
|
-
export const SnapshotPolicySchedule = /*@__PURE__*/ S.suspend(() =>
|
|
876
|
-
S.Struct({
|
|
877
|
-
count: S.optional(S.Number),
|
|
878
|
-
interval: S.optional(S.String),
|
|
879
|
-
prefix: S.optional(S.String),
|
|
880
|
-
retentionPeriod: S.optional(S.String),
|
|
881
|
-
scheduleId: S.optional(S.String),
|
|
882
|
-
}),
|
|
883
|
-
).annotate({ identifier: "SnapshotPolicySchedule" }) as any as S.Schema<SnapshotPolicySchedule>;
|
|
884
|
-
|
|
885
346
|
/** (deprecated) associated schedules */
|
|
886
347
|
export type SnapshotPolicySchedulesList = Array<SnapshotPolicySchedule>;
|
|
887
|
-
export const SnapshotPolicySchedulesList = /*@__PURE__*/ S.Array(
|
|
888
|
-
SnapshotPolicySchedule,
|
|
889
|
-
) as any as S.Schema<SnapshotPolicySchedulesList>;
|
|
890
|
-
|
|
891
348
|
export interface SnapshotPolicySnapshotPolicySchedule {
|
|
892
349
|
createdAt?: string;
|
|
893
350
|
/** ID of the Schedule */
|
|
@@ -903,26 +360,8 @@ export interface SnapshotPolicySnapshotPolicySchedule {
|
|
|
903
360
|
/** Retention Period (ISO 8601 format or "infinite") */
|
|
904
361
|
retentionPeriod?: string;
|
|
905
362
|
}
|
|
906
|
-
export const SnapshotPolicySnapshotPolicySchedule = /*@__PURE__*/ S.suspend(() =>
|
|
907
|
-
S.Struct({
|
|
908
|
-
createdAt: S.optional(S.String),
|
|
909
|
-
id: S.optional(S.String),
|
|
910
|
-
interval: S.optional(S.String),
|
|
911
|
-
name: S.optional(S.String),
|
|
912
|
-
prefix: S.optional(S.String),
|
|
913
|
-
retentionCount: S.optional(S.Number),
|
|
914
|
-
retentionPeriod: S.optional(S.String),
|
|
915
|
-
}),
|
|
916
|
-
).annotate({
|
|
917
|
-
identifier: "SnapshotPolicySnapshotPolicySchedule",
|
|
918
|
-
}) as any as S.Schema<SnapshotPolicySnapshotPolicySchedule>;
|
|
919
|
-
|
|
920
363
|
/** associated schedules */
|
|
921
364
|
export type SnapshotPolicySnapshotSchedulesList = Array<SnapshotPolicySnapshotPolicySchedule>;
|
|
922
|
-
export const SnapshotPolicySnapshotSchedulesList = /*@__PURE__*/ S.Array(
|
|
923
|
-
SnapshotPolicySnapshotPolicySchedule,
|
|
924
|
-
) as any as S.Schema<SnapshotPolicySnapshotSchedulesList>;
|
|
925
|
-
|
|
926
365
|
export interface SnapshotPolicy {
|
|
927
366
|
/** Comment of the Snapshot Policy */
|
|
928
367
|
comment?: string;
|
|
@@ -939,44 +378,11 @@ export interface SnapshotPolicy {
|
|
|
939
378
|
/** associated schedules */
|
|
940
379
|
snapshotSchedules?: SnapshotPolicySnapshotSchedulesList;
|
|
941
380
|
}
|
|
942
|
-
export const SnapshotPolicy = /*@__PURE__*/ S.suspend(() =>
|
|
943
|
-
S.Struct({
|
|
944
|
-
comment: S.optional(S.String),
|
|
945
|
-
createdAt: S.optional(S.String),
|
|
946
|
-
enabled: S.optional(S.Boolean),
|
|
947
|
-
id: S.optional(S.String),
|
|
948
|
-
name: S.optional(S.String),
|
|
949
|
-
schedules: S.optional(SnapshotPolicySchedulesList),
|
|
950
|
-
snapshotSchedules: S.optional(SnapshotPolicySnapshotSchedulesList),
|
|
951
|
-
}),
|
|
952
|
-
).annotate({ identifier: "SnapshotPolicy" }) as any as S.Schema<SnapshotPolicy>;
|
|
953
|
-
|
|
954
381
|
export interface GetSnapshotPolicyResponse {
|
|
955
382
|
/** Snapshot Policy */
|
|
956
383
|
snapshotPolicy?: SnapshotPolicy;
|
|
957
384
|
}
|
|
958
|
-
export const GetSnapshotPolicyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
959
|
-
S.Struct({
|
|
960
|
-
snapshotPolicy: S.optional(SnapshotPolicy),
|
|
961
|
-
}),
|
|
962
|
-
).annotate({
|
|
963
|
-
identifier: "GetSnapshotPolicyResponse",
|
|
964
|
-
}) as any as S.Schema<GetSnapshotPolicyResponse>;
|
|
965
|
-
|
|
966
385
|
export interface ListPerformanceClassesRequest {}
|
|
967
|
-
export const ListPerformanceClassesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
968
|
-
S.Struct({}).pipe(
|
|
969
|
-
T.Http({
|
|
970
|
-
method: "GET",
|
|
971
|
-
uri: "/v1/resourcePoolPerformanceClasses",
|
|
972
|
-
code: 200,
|
|
973
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
974
|
-
}),
|
|
975
|
-
),
|
|
976
|
-
).annotate({
|
|
977
|
-
identifier: "ListPerformanceClassesRequest",
|
|
978
|
-
}) as any as S.Schema<ListPerformanceClassesRequest>;
|
|
979
|
-
|
|
980
386
|
export interface PerformanceClass {
|
|
981
387
|
/** IOPS of the Performance Class */
|
|
982
388
|
iops?: number;
|
|
@@ -985,234 +391,69 @@ export interface PerformanceClass {
|
|
|
985
391
|
/** Throughput of the Performance Class */
|
|
986
392
|
throughput?: number;
|
|
987
393
|
}
|
|
988
|
-
export const PerformanceClass = /*@__PURE__*/ S.suspend(() =>
|
|
989
|
-
S.Struct({
|
|
990
|
-
iops: S.optional(S.Number),
|
|
991
|
-
name: S.optional(S.String),
|
|
992
|
-
throughput: S.optional(S.Number),
|
|
993
|
-
}),
|
|
994
|
-
).annotate({ identifier: "PerformanceClass" }) as any as S.Schema<PerformanceClass>;
|
|
995
|
-
|
|
996
394
|
/** List of Performance Classes */
|
|
997
395
|
export type ListPerformanceClassesResponsePerformanceClassesList = Array<PerformanceClass>;
|
|
998
|
-
export const ListPerformanceClassesResponsePerformanceClassesList = /*@__PURE__*/ S.Array(
|
|
999
|
-
PerformanceClass,
|
|
1000
|
-
) as any as S.Schema<ListPerformanceClassesResponsePerformanceClassesList>;
|
|
1001
|
-
|
|
1002
396
|
export interface ListPerformanceClassesResponse {
|
|
1003
397
|
/** List of Performance Classes */
|
|
1004
398
|
performanceClasses?: ListPerformanceClassesResponsePerformanceClassesList;
|
|
1005
399
|
}
|
|
1006
|
-
export const ListPerformanceClassesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1007
|
-
S.Struct({
|
|
1008
|
-
performanceClasses: S.optional(ListPerformanceClassesResponsePerformanceClassesList),
|
|
1009
|
-
}),
|
|
1010
|
-
).annotate({
|
|
1011
|
-
identifier: "ListPerformanceClassesResponse",
|
|
1012
|
-
}) as any as S.Schema<ListPerformanceClassesResponse>;
|
|
1013
|
-
|
|
1014
400
|
export interface ListResourcePoolsRequest {
|
|
1015
401
|
projectId: string;
|
|
1016
402
|
region: string;
|
|
1017
403
|
}
|
|
1018
|
-
export const ListResourcePoolsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1019
|
-
S.Struct({
|
|
1020
|
-
projectId: S.String.pipe(T.Label()),
|
|
1021
|
-
region: S.String.pipe(T.Label()),
|
|
1022
|
-
}).pipe(
|
|
1023
|
-
T.Http({
|
|
1024
|
-
method: "GET",
|
|
1025
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools",
|
|
1026
|
-
code: 200,
|
|
1027
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1028
|
-
}),
|
|
1029
|
-
),
|
|
1030
|
-
).annotate({ identifier: "ListResourcePoolsRequest" }) as any as S.Schema<ListResourcePoolsRequest>;
|
|
1031
|
-
|
|
1032
404
|
/** List of Resource Pools */
|
|
1033
405
|
export type ListResourcePoolsResponseResourcePoolsList = Array<ResourcePool>;
|
|
1034
|
-
export const ListResourcePoolsResponseResourcePoolsList = /*@__PURE__*/ S.Array(
|
|
1035
|
-
ResourcePool,
|
|
1036
|
-
) as any as S.Schema<ListResourcePoolsResponseResourcePoolsList>;
|
|
1037
|
-
|
|
1038
406
|
export interface ListResourcePoolsResponse {
|
|
1039
407
|
/** List of Resource Pools */
|
|
1040
408
|
resourcePools?: ListResourcePoolsResponseResourcePoolsList;
|
|
1041
409
|
}
|
|
1042
|
-
export const ListResourcePoolsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1043
|
-
S.Struct({
|
|
1044
|
-
resourcePools: S.optional(ListResourcePoolsResponseResourcePoolsList),
|
|
1045
|
-
}),
|
|
1046
|
-
).annotate({
|
|
1047
|
-
identifier: "ListResourcePoolsResponse",
|
|
1048
|
-
}) as any as S.Schema<ListResourcePoolsResponse>;
|
|
1049
|
-
|
|
1050
410
|
export interface ListResourcePoolSnapshotsRequest {
|
|
1051
411
|
projectId: string;
|
|
1052
412
|
region: string;
|
|
1053
413
|
resourcePoolId: string;
|
|
1054
414
|
}
|
|
1055
|
-
export const ListResourcePoolSnapshotsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1056
|
-
S.Struct({
|
|
1057
|
-
projectId: S.String.pipe(T.Label()),
|
|
1058
|
-
region: S.String.pipe(T.Label()),
|
|
1059
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
1060
|
-
}).pipe(
|
|
1061
|
-
T.Http({
|
|
1062
|
-
method: "GET",
|
|
1063
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",
|
|
1064
|
-
code: 200,
|
|
1065
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1066
|
-
}),
|
|
1067
|
-
),
|
|
1068
|
-
).annotate({
|
|
1069
|
-
identifier: "ListResourcePoolSnapshotsRequest",
|
|
1070
|
-
}) as any as S.Schema<ListResourcePoolSnapshotsRequest>;
|
|
1071
|
-
|
|
1072
415
|
/** List of Resource Pool Snapshots */
|
|
1073
416
|
export type ListResourcePoolSnapshotsResponseResourcePoolSnapshotsList =
|
|
1074
417
|
Array<ResourcePoolSnapshot>;
|
|
1075
|
-
export const ListResourcePoolSnapshotsResponseResourcePoolSnapshotsList = /*@__PURE__*/ S.Array(
|
|
1076
|
-
ResourcePoolSnapshot,
|
|
1077
|
-
) as any as S.Schema<ListResourcePoolSnapshotsResponseResourcePoolSnapshotsList>;
|
|
1078
|
-
|
|
1079
418
|
export interface ListResourcePoolSnapshotsResponse {
|
|
1080
419
|
/** List of Resource Pool Snapshots */
|
|
1081
420
|
resourcePoolSnapshots?: ListResourcePoolSnapshotsResponseResourcePoolSnapshotsList;
|
|
1082
421
|
}
|
|
1083
|
-
export const ListResourcePoolSnapshotsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1084
|
-
S.Struct({
|
|
1085
|
-
resourcePoolSnapshots: S.optional(ListResourcePoolSnapshotsResponseResourcePoolSnapshotsList),
|
|
1086
|
-
}),
|
|
1087
|
-
).annotate({
|
|
1088
|
-
identifier: "ListResourcePoolSnapshotsResponse",
|
|
1089
|
-
}) as any as S.Schema<ListResourcePoolSnapshotsResponse>;
|
|
1090
|
-
|
|
1091
422
|
export interface ListShareExportPoliciesRequest {
|
|
1092
423
|
projectId: string;
|
|
1093
424
|
region: string;
|
|
1094
425
|
}
|
|
1095
|
-
export const ListShareExportPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1096
|
-
S.Struct({
|
|
1097
|
-
projectId: S.String.pipe(T.Label()),
|
|
1098
|
-
region: S.String.pipe(T.Label()),
|
|
1099
|
-
}).pipe(
|
|
1100
|
-
T.Http({
|
|
1101
|
-
method: "GET",
|
|
1102
|
-
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies",
|
|
1103
|
-
code: 200,
|
|
1104
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1105
|
-
}),
|
|
1106
|
-
),
|
|
1107
|
-
).annotate({
|
|
1108
|
-
identifier: "ListShareExportPoliciesRequest",
|
|
1109
|
-
}) as any as S.Schema<ListShareExportPoliciesRequest>;
|
|
1110
|
-
|
|
1111
426
|
/** List of Share Export Policies */
|
|
1112
427
|
export type ListShareExportPoliciesResponseShareExportPoliciesList = Array<ShareExportPolicy>;
|
|
1113
|
-
export const ListShareExportPoliciesResponseShareExportPoliciesList = /*@__PURE__*/ S.Array(
|
|
1114
|
-
ShareExportPolicy,
|
|
1115
|
-
) as any as S.Schema<ListShareExportPoliciesResponseShareExportPoliciesList>;
|
|
1116
|
-
|
|
1117
428
|
export interface ListShareExportPoliciesResponse {
|
|
1118
429
|
/** List of Share Export Policies */
|
|
1119
430
|
shareExportPolicies?: ListShareExportPoliciesResponseShareExportPoliciesList;
|
|
1120
431
|
}
|
|
1121
|
-
export const ListShareExportPoliciesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1122
|
-
S.Struct({
|
|
1123
|
-
shareExportPolicies: S.optional(ListShareExportPoliciesResponseShareExportPoliciesList),
|
|
1124
|
-
}),
|
|
1125
|
-
).annotate({
|
|
1126
|
-
identifier: "ListShareExportPoliciesResponse",
|
|
1127
|
-
}) as any as S.Schema<ListShareExportPoliciesResponse>;
|
|
1128
|
-
|
|
1129
432
|
export interface ListSharesRequest {
|
|
1130
433
|
projectId: string;
|
|
1131
434
|
region: string;
|
|
1132
435
|
resourcePoolId: string;
|
|
1133
436
|
}
|
|
1134
|
-
export const ListSharesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1135
|
-
S.Struct({
|
|
1136
|
-
projectId: S.String.pipe(T.Label()),
|
|
1137
|
-
region: S.String.pipe(T.Label()),
|
|
1138
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
1139
|
-
}).pipe(
|
|
1140
|
-
T.Http({
|
|
1141
|
-
method: "GET",
|
|
1142
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",
|
|
1143
|
-
code: 200,
|
|
1144
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1145
|
-
}),
|
|
1146
|
-
),
|
|
1147
|
-
).annotate({ identifier: "ListSharesRequest" }) as any as S.Schema<ListSharesRequest>;
|
|
1148
|
-
|
|
1149
437
|
/** List of Shares */
|
|
1150
438
|
export type ListSharesResponseSharesList = Array<Share>;
|
|
1151
|
-
export const ListSharesResponseSharesList = /*@__PURE__*/ S.Array(
|
|
1152
|
-
Share,
|
|
1153
|
-
) as any as S.Schema<ListSharesResponseSharesList>;
|
|
1154
|
-
|
|
1155
439
|
export interface ListSharesResponse {
|
|
1156
440
|
/** List of Shares */
|
|
1157
441
|
shares?: ListSharesResponseSharesList;
|
|
1158
442
|
}
|
|
1159
|
-
export const ListSharesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1160
|
-
S.Struct({
|
|
1161
|
-
shares: S.optional(ListSharesResponseSharesList),
|
|
1162
|
-
}),
|
|
1163
|
-
).annotate({ identifier: "ListSharesResponse" }) as any as S.Schema<ListSharesResponse>;
|
|
1164
|
-
|
|
1165
443
|
export interface ListSnapshotPoliciesRequest {
|
|
1166
444
|
projectId: string;
|
|
1167
445
|
immutable?: boolean;
|
|
1168
446
|
}
|
|
1169
|
-
export const ListSnapshotPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1170
|
-
S.Struct({
|
|
1171
|
-
projectId: S.String.pipe(T.Label()),
|
|
1172
|
-
immutable: S.optional(S.Boolean.pipe(T.Query())),
|
|
1173
|
-
}).pipe(
|
|
1174
|
-
T.Http({
|
|
1175
|
-
method: "GET",
|
|
1176
|
-
uri: "/v1/projects/{projectId}/snapshotPolicies",
|
|
1177
|
-
code: 200,
|
|
1178
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1179
|
-
}),
|
|
1180
|
-
),
|
|
1181
|
-
).annotate({
|
|
1182
|
-
identifier: "ListSnapshotPoliciesRequest",
|
|
1183
|
-
}) as any as S.Schema<ListSnapshotPoliciesRequest>;
|
|
1184
|
-
|
|
1185
447
|
/** List of Snapshot Policies */
|
|
1186
448
|
export type ListSnapshotPoliciesResponseSnapshotPoliciesList = Array<SnapshotPolicy>;
|
|
1187
|
-
export const ListSnapshotPoliciesResponseSnapshotPoliciesList = /*@__PURE__*/ S.Array(
|
|
1188
|
-
SnapshotPolicy,
|
|
1189
|
-
) as any as S.Schema<ListSnapshotPoliciesResponseSnapshotPoliciesList>;
|
|
1190
|
-
|
|
1191
449
|
export interface ListSnapshotPoliciesResponse {
|
|
1192
450
|
/** List of Snapshot Policies */
|
|
1193
451
|
snapshotPolicies?: ListSnapshotPoliciesResponseSnapshotPoliciesList;
|
|
1194
452
|
}
|
|
1195
|
-
export const ListSnapshotPoliciesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1196
|
-
S.Struct({
|
|
1197
|
-
snapshotPolicies: S.optional(ListSnapshotPoliciesResponseSnapshotPoliciesList),
|
|
1198
|
-
}),
|
|
1199
|
-
).annotate({
|
|
1200
|
-
identifier: "ListSnapshotPoliciesResponse",
|
|
1201
|
-
}) as any as S.Schema<ListSnapshotPoliciesResponse>;
|
|
1202
|
-
|
|
1203
453
|
/** (optional) List of IPs that can mount the Resource Pool in read-only; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP) */
|
|
1204
454
|
export type UpdateResourcePoolRequestIpAclList = Array<string>;
|
|
1205
|
-
export const UpdateResourcePoolRequestIpAclList = /*@__PURE__*/ S.Array(
|
|
1206
|
-
S.String,
|
|
1207
|
-
) as any as S.Schema<UpdateResourcePoolRequestIpAclList>;
|
|
1208
|
-
|
|
1209
455
|
/** An optional object that represents the labels associated with the resource pool. */
|
|
1210
456
|
export type UpdateResourcePoolRequestLabelsMap = { [key: string]: string | undefined };
|
|
1211
|
-
export const UpdateResourcePoolRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
1212
|
-
S.String,
|
|
1213
|
-
S.String,
|
|
1214
|
-
) as any as S.Schema<UpdateResourcePoolRequestLabelsMap>;
|
|
1215
|
-
|
|
1216
457
|
export interface UpdateResourcePoolRequest {
|
|
1217
458
|
projectId: string;
|
|
1218
459
|
region: string;
|
|
@@ -1230,41 +471,10 @@ export interface UpdateResourcePoolRequest {
|
|
|
1230
471
|
/** Whether the .snapshot directory is visible when mounting the resource pool. Setting this value to false might prevent you from accessing the snapshots (e.g. for security reasons). Additionally, the access to the snapshots is always controlled by the export policy of the resource pool. That means, if snapshots are visible and the export policy allows for reading the resource pool, then it also allows reading the snapshot of all shares. */
|
|
1231
472
|
snapshotsAreVisible?: boolean;
|
|
1232
473
|
}
|
|
1233
|
-
export const UpdateResourcePoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1234
|
-
S.Struct({
|
|
1235
|
-
projectId: S.String.pipe(T.Label()),
|
|
1236
|
-
region: S.String.pipe(T.Label()),
|
|
1237
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
1238
|
-
ipAcl: S.optional(UpdateResourcePoolRequestIpAclList),
|
|
1239
|
-
labels: S.optional(UpdateResourcePoolRequestLabelsMap),
|
|
1240
|
-
performanceClass: S.optional(S.String),
|
|
1241
|
-
sizeGigabytes: S.optional(S.NullOr(S.Number)),
|
|
1242
|
-
snapshotPolicyId: S.optional(S.NullOr(S.String)),
|
|
1243
|
-
snapshotsAreVisible: S.optional(S.Boolean),
|
|
1244
|
-
}).pipe(
|
|
1245
|
-
T.Http({
|
|
1246
|
-
method: "PATCH",
|
|
1247
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
|
|
1248
|
-
code: 200,
|
|
1249
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1250
|
-
}),
|
|
1251
|
-
),
|
|
1252
|
-
).annotate({
|
|
1253
|
-
identifier: "UpdateResourcePoolRequest",
|
|
1254
|
-
}) as any as S.Schema<UpdateResourcePoolRequest>;
|
|
1255
|
-
|
|
1256
474
|
export interface UpdateResourcePoolResponse {
|
|
1257
475
|
/** Updated Resource Pool */
|
|
1258
476
|
resourcePool?: ResourcePool;
|
|
1259
477
|
}
|
|
1260
|
-
export const UpdateResourcePoolResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1261
|
-
S.Struct({
|
|
1262
|
-
resourcePool: S.optional(ResourcePool),
|
|
1263
|
-
}),
|
|
1264
|
-
).annotate({
|
|
1265
|
-
identifier: "UpdateResourcePoolResponse",
|
|
1266
|
-
}) as any as S.Schema<UpdateResourcePoolResponse>;
|
|
1267
|
-
|
|
1268
478
|
export interface UpdateResourcePoolSnapshotRequest {
|
|
1269
479
|
projectId: string;
|
|
1270
480
|
region: string;
|
|
@@ -1275,45 +485,12 @@ export interface UpdateResourcePoolSnapshotRequest {
|
|
|
1275
485
|
/** (optional) name of the Resource Pool Snapshot */
|
|
1276
486
|
name?: string | null;
|
|
1277
487
|
}
|
|
1278
|
-
export const UpdateResourcePoolSnapshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1279
|
-
S.Struct({
|
|
1280
|
-
projectId: S.String.pipe(T.Label()),
|
|
1281
|
-
region: S.String.pipe(T.Label()),
|
|
1282
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
1283
|
-
snapshotName: S.String.pipe(T.Label()),
|
|
1284
|
-
comment: S.optional(S.NullOr(S.String)),
|
|
1285
|
-
name: S.optional(S.NullOr(S.String)),
|
|
1286
|
-
}).pipe(
|
|
1287
|
-
T.Http({
|
|
1288
|
-
method: "PATCH",
|
|
1289
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
|
|
1290
|
-
code: 200,
|
|
1291
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1292
|
-
}),
|
|
1293
|
-
),
|
|
1294
|
-
).annotate({
|
|
1295
|
-
identifier: "UpdateResourcePoolSnapshotRequest",
|
|
1296
|
-
}) as any as S.Schema<UpdateResourcePoolSnapshotRequest>;
|
|
1297
|
-
|
|
1298
488
|
export interface UpdateResourcePoolSnapshotResponse {
|
|
1299
489
|
/** Updated Resource Pool Snapshot */
|
|
1300
490
|
resourcePoolSnapshot?: ResourcePoolSnapshot;
|
|
1301
491
|
}
|
|
1302
|
-
export const UpdateResourcePoolSnapshotResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1303
|
-
S.Struct({
|
|
1304
|
-
resourcePoolSnapshot: S.optional(ResourcePoolSnapshot),
|
|
1305
|
-
}),
|
|
1306
|
-
).annotate({
|
|
1307
|
-
identifier: "UpdateResourcePoolSnapshotResponse",
|
|
1308
|
-
}) as any as S.Schema<UpdateResourcePoolSnapshotResponse>;
|
|
1309
|
-
|
|
1310
492
|
/** An optional object that represents the labels associated with the share. */
|
|
1311
493
|
export type UpdateShareRequestLabelsMap = { [key: string]: string | undefined };
|
|
1312
|
-
export const UpdateShareRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
1313
|
-
S.String,
|
|
1314
|
-
S.String,
|
|
1315
|
-
) as any as S.Schema<UpdateShareRequestLabelsMap>;
|
|
1316
|
-
|
|
1317
494
|
export interface UpdateShareRequest {
|
|
1318
495
|
projectId: string;
|
|
1319
496
|
region: string;
|
|
@@ -1326,48 +503,14 @@ export interface UpdateShareRequest {
|
|
|
1326
503
|
/** Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gibibytes) */
|
|
1327
504
|
spaceHardLimitGigabytes?: number | null;
|
|
1328
505
|
}
|
|
1329
|
-
export const UpdateShareRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1330
|
-
S.Struct({
|
|
1331
|
-
projectId: S.String.pipe(T.Label()),
|
|
1332
|
-
region: S.String.pipe(T.Label()),
|
|
1333
|
-
resourcePoolId: S.String.pipe(T.Label()),
|
|
1334
|
-
shareId: S.String.pipe(T.Label()),
|
|
1335
|
-
exportPolicyName: S.optional(S.NullOr(S.String)),
|
|
1336
|
-
labels: S.optional(UpdateShareRequestLabelsMap),
|
|
1337
|
-
spaceHardLimitGigabytes: S.optional(S.NullOr(S.Number)),
|
|
1338
|
-
}).pipe(
|
|
1339
|
-
T.Http({
|
|
1340
|
-
method: "PATCH",
|
|
1341
|
-
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
|
|
1342
|
-
code: 200,
|
|
1343
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1344
|
-
}),
|
|
1345
|
-
),
|
|
1346
|
-
).annotate({ identifier: "UpdateShareRequest" }) as any as S.Schema<UpdateShareRequest>;
|
|
1347
|
-
|
|
1348
506
|
export interface UpdateShareResponse {
|
|
1349
507
|
/** Updated Share */
|
|
1350
508
|
share?: Share;
|
|
1351
509
|
}
|
|
1352
|
-
export const UpdateShareResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1353
|
-
S.Struct({
|
|
1354
|
-
share: S.optional(Share),
|
|
1355
|
-
}),
|
|
1356
|
-
).annotate({ identifier: "UpdateShareResponse" }) as any as S.Schema<UpdateShareResponse>;
|
|
1357
|
-
|
|
1358
510
|
/** An optional object that represents the labels associated with the share export policy. */
|
|
1359
511
|
export type UpdateShareExportPolicyRequestLabelsMap = { [key: string]: string | undefined };
|
|
1360
|
-
export const UpdateShareExportPolicyRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
1361
|
-
S.String,
|
|
1362
|
-
S.String,
|
|
1363
|
-
) as any as S.Schema<UpdateShareExportPolicyRequestLabelsMap>;
|
|
1364
|
-
|
|
1365
512
|
/** IP access control list, where IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP) This array cannot be empty */
|
|
1366
513
|
export type UpdateShareExportPolicyBodyRuleIpAclList = Array<string>;
|
|
1367
|
-
export const UpdateShareExportPolicyBodyRuleIpAclList = /*@__PURE__*/ S.Array(
|
|
1368
|
-
S.String,
|
|
1369
|
-
) as any as S.Schema<UpdateShareExportPolicyBodyRuleIpAclList>;
|
|
1370
|
-
|
|
1371
514
|
export interface UpdateShareExportPolicyBodyRule {
|
|
1372
515
|
/** Description of the Rule (optional) */
|
|
1373
516
|
description?: string | null;
|
|
@@ -1382,25 +525,8 @@ export interface UpdateShareExportPolicyBodyRule {
|
|
|
1382
525
|
/** Flag to indicate if client IPs matching this rule have root access on the Share Default: true */
|
|
1383
526
|
superUser?: boolean;
|
|
1384
527
|
}
|
|
1385
|
-
export const UpdateShareExportPolicyBodyRule = /*@__PURE__*/ S.suspend(() =>
|
|
1386
|
-
S.Struct({
|
|
1387
|
-
description: S.optional(S.NullOr(S.String)),
|
|
1388
|
-
ipAcl: S.optional(UpdateShareExportPolicyBodyRuleIpAclList),
|
|
1389
|
-
order: S.optional(S.Number),
|
|
1390
|
-
readOnly: S.optional(S.Boolean),
|
|
1391
|
-
setUuid: S.optional(S.Boolean),
|
|
1392
|
-
superUser: S.optional(S.Boolean),
|
|
1393
|
-
}),
|
|
1394
|
-
).annotate({
|
|
1395
|
-
identifier: "UpdateShareExportPolicyBodyRule",
|
|
1396
|
-
}) as any as S.Schema<UpdateShareExportPolicyBodyRule>;
|
|
1397
|
-
|
|
1398
528
|
/** List of rules of the Share Export Policy. The order of the rules within the array does not matter - what matters is the field "order" within each rule. The whole set of rules needs to be sent in the same request, e.g. if 1 rule is sent, the share export policy will have just that 1 rule, as opposed to extending the existing set of rules with the 1 rule that was sent Important note: the array of rules passed always overwrites the rule array (i.e. sending an empty array removes all rules) */
|
|
1399
529
|
export type UpdateShareExportPolicyRequestRulesList = Array<UpdateShareExportPolicyBodyRule>;
|
|
1400
|
-
export const UpdateShareExportPolicyRequestRulesList = /*@__PURE__*/ S.Array(
|
|
1401
|
-
UpdateShareExportPolicyBodyRule,
|
|
1402
|
-
) as any as S.Schema<UpdateShareExportPolicyRequestRulesList>;
|
|
1403
|
-
|
|
1404
530
|
export interface UpdateShareExportPolicyRequest {
|
|
1405
531
|
projectId: string;
|
|
1406
532
|
region: string;
|
|
@@ -1410,36 +536,9 @@ export interface UpdateShareExportPolicyRequest {
|
|
|
1410
536
|
/** List of rules of the Share Export Policy. The order of the rules within the array does not matter - what matters is the field "order" within each rule. The whole set of rules needs to be sent in the same request, e.g. if 1 rule is sent, the share export policy will have just that 1 rule, as opposed to extending the existing set of rules with the 1 rule that was sent Important note: the array of rules passed always overwrites the rule array (i.e. sending an empty array removes all rules) */
|
|
1411
537
|
rules?: UpdateShareExportPolicyRequestRulesList | null;
|
|
1412
538
|
}
|
|
1413
|
-
export const UpdateShareExportPolicyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1414
|
-
S.Struct({
|
|
1415
|
-
projectId: S.String.pipe(T.Label()),
|
|
1416
|
-
region: S.String.pipe(T.Label()),
|
|
1417
|
-
policyId: S.String.pipe(T.Label()),
|
|
1418
|
-
labels: S.optional(UpdateShareExportPolicyRequestLabelsMap),
|
|
1419
|
-
rules: S.optional(S.NullOr(UpdateShareExportPolicyRequestRulesList)),
|
|
1420
|
-
}).pipe(
|
|
1421
|
-
T.Http({
|
|
1422
|
-
method: "PATCH",
|
|
1423
|
-
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
|
|
1424
|
-
code: 200,
|
|
1425
|
-
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1426
|
-
}),
|
|
1427
|
-
),
|
|
1428
|
-
).annotate({
|
|
1429
|
-
identifier: "UpdateShareExportPolicyRequest",
|
|
1430
|
-
}) as any as S.Schema<UpdateShareExportPolicyRequest>;
|
|
1431
|
-
|
|
1432
539
|
export interface UpdateShareExportPolicyResponse {
|
|
1433
540
|
shareExportPolicy?: ShareExportPolicy;
|
|
1434
541
|
}
|
|
1435
|
-
export const UpdateShareExportPolicyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1436
|
-
S.Struct({
|
|
1437
|
-
shareExportPolicy: S.optional(ShareExportPolicy),
|
|
1438
|
-
}),
|
|
1439
|
-
).annotate({
|
|
1440
|
-
identifier: "UpdateShareExportPolicyResponse",
|
|
1441
|
-
}) as any as S.Schema<UpdateShareExportPolicyResponse>;
|
|
1442
|
-
|
|
1443
542
|
export type CreateResourcePoolError = BadRequest | StackitOpError;
|
|
1444
543
|
/** Create Resource Pool Create a Resource Pool in a project. */
|
|
1445
544
|
export const createResourcePool: API.OperationMethod<
|
|
@@ -1448,8 +547,8 @@ export const createResourcePool: API.OperationMethod<
|
|
|
1448
547
|
CreateResourcePoolError,
|
|
1449
548
|
StackitOpContext
|
|
1450
549
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1451
|
-
input: CreateResourcePoolRequest
|
|
1452
|
-
output: CreateResourcePoolResponse
|
|
550
|
+
input: __S(0, __c0, 0) as any as S.Schema<CreateResourcePoolRequest>,
|
|
551
|
+
output: __S(16, __c2, 0) as any as S.Schema<CreateResourcePoolResponse>,
|
|
1453
552
|
errors: [BadRequest, UnknownStackitError],
|
|
1454
553
|
protocol: StackitProtocol,
|
|
1455
554
|
retry: Retry.Retry,
|
|
@@ -1463,8 +562,8 @@ export const createResourcePoolSnapshot: API.OperationMethod<
|
|
|
1463
562
|
CreateResourcePoolSnapshotError,
|
|
1464
563
|
StackitOpContext
|
|
1465
564
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1466
|
-
input: CreateResourcePoolSnapshotRequest
|
|
1467
|
-
output: CreateResourcePoolSnapshotResponse
|
|
565
|
+
input: __S(128, __c16, 0) as any as S.Schema<CreateResourcePoolSnapshotRequest>,
|
|
566
|
+
output: __S(144, __c18, 0) as any as S.Schema<CreateResourcePoolSnapshotResponse>,
|
|
1468
567
|
errors: [BadRequest, UnknownStackitError],
|
|
1469
568
|
protocol: StackitProtocol,
|
|
1470
569
|
retry: Retry.Retry,
|
|
@@ -1478,8 +577,8 @@ export const createShare: API.OperationMethod<
|
|
|
1478
577
|
CreateShareError,
|
|
1479
578
|
StackitOpContext
|
|
1480
579
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1481
|
-
input: CreateShareRequest
|
|
1482
|
-
output: CreateShareResponse
|
|
580
|
+
input: __S(208, __c26, 0) as any as S.Schema<CreateShareRequest>,
|
|
581
|
+
output: __S(224, __c28, 0) as any as S.Schema<CreateShareResponse>,
|
|
1483
582
|
errors: [BadRequest, UnknownStackitError],
|
|
1484
583
|
protocol: StackitProtocol,
|
|
1485
584
|
retry: Retry.Retry,
|
|
@@ -1493,8 +592,8 @@ export const createShareExportPolicy: API.OperationMethod<
|
|
|
1493
592
|
CreateShareExportPolicyError,
|
|
1494
593
|
StackitOpContext
|
|
1495
594
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1496
|
-
input: CreateShareExportPolicyRequest
|
|
1497
|
-
output: CreateShareExportPolicyResponse
|
|
595
|
+
input: __S(240, __c30, 0) as any as S.Schema<CreateShareExportPolicyRequest>,
|
|
596
|
+
output: __S(248, __c31, 0) as any as S.Schema<CreateShareExportPolicyResponse>,
|
|
1498
597
|
errors: [BadRequest, UnknownStackitError],
|
|
1499
598
|
protocol: StackitProtocol,
|
|
1500
599
|
retry: Retry.Retry,
|
|
@@ -1508,8 +607,8 @@ export const deleteResourcePool: API.OperationMethod<
|
|
|
1508
607
|
DeleteResourcePoolError,
|
|
1509
608
|
StackitOpContext
|
|
1510
609
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1511
|
-
input: DeleteResourcePoolRequest
|
|
1512
|
-
output: DeleteResourcePoolResponse2
|
|
610
|
+
input: __S(264, __c33, 0) as any as S.Schema<DeleteResourcePoolRequest>,
|
|
611
|
+
output: __S(272, __c34, 0) as any as S.Schema<DeleteResourcePoolResponse2>,
|
|
1513
612
|
errors: [BadRequest, UnknownStackitError],
|
|
1514
613
|
protocol: StackitProtocol,
|
|
1515
614
|
retry: Retry.Retry,
|
|
@@ -1523,8 +622,8 @@ export const deleteResourcePoolSnapshot: API.OperationMethod<
|
|
|
1523
622
|
DeleteResourcePoolSnapshotError,
|
|
1524
623
|
StackitOpContext
|
|
1525
624
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1526
|
-
input: DeleteResourcePoolSnapshotRequest
|
|
1527
|
-
output: DeleteResourcePoolSnapshotResponse2
|
|
625
|
+
input: __S(280, __c35, 0) as any as S.Schema<DeleteResourcePoolSnapshotRequest>,
|
|
626
|
+
output: __S(272, __c34, 0) as any as S.Schema<DeleteResourcePoolSnapshotResponse2>,
|
|
1528
627
|
errors: [BadRequest, UnknownStackitError],
|
|
1529
628
|
protocol: StackitProtocol,
|
|
1530
629
|
retry: Retry.Retry,
|
|
@@ -1538,8 +637,8 @@ export const deleteShare: API.OperationMethod<
|
|
|
1538
637
|
DeleteShareError,
|
|
1539
638
|
StackitOpContext
|
|
1540
639
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1541
|
-
input: DeleteShareRequest
|
|
1542
|
-
output: DeleteShareResponse2
|
|
640
|
+
input: __S(288, __c36, 0) as any as S.Schema<DeleteShareRequest>,
|
|
641
|
+
output: __S(272, __c34, 0) as any as S.Schema<DeleteShareResponse2>,
|
|
1543
642
|
errors: [BadRequest, UnknownStackitError],
|
|
1544
643
|
protocol: StackitProtocol,
|
|
1545
644
|
retry: Retry.Retry,
|
|
@@ -1553,8 +652,8 @@ export const deleteShareExportPolicy: API.OperationMethod<
|
|
|
1553
652
|
DeleteShareExportPolicyError,
|
|
1554
653
|
StackitOpContext
|
|
1555
654
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1556
|
-
input: DeleteShareExportPolicyRequest
|
|
1557
|
-
output: DeleteShareExportPolicyResponse2
|
|
655
|
+
input: __S(296, __c37, 0) as any as S.Schema<DeleteShareExportPolicyRequest>,
|
|
656
|
+
output: __S(272, __c34, 0) as any as S.Schema<DeleteShareExportPolicyResponse2>,
|
|
1558
657
|
errors: [BadRequest, UnknownStackitError],
|
|
1559
658
|
protocol: StackitProtocol,
|
|
1560
659
|
retry: Retry.Retry,
|
|
@@ -1568,8 +667,8 @@ export const disableLock: API.OperationMethod<
|
|
|
1568
667
|
DisableLockError,
|
|
1569
668
|
StackitOpContext
|
|
1570
669
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1571
|
-
input: DisableLockRequest
|
|
1572
|
-
output: DisableLockResponse2
|
|
670
|
+
input: __S(304, __c38, 0) as any as S.Schema<DisableLockRequest>,
|
|
671
|
+
output: __S(272, __c34, 0) as any as S.Schema<DisableLockResponse2>,
|
|
1573
672
|
errors: [UnknownStackitError],
|
|
1574
673
|
protocol: StackitProtocol,
|
|
1575
674
|
retry: Retry.Retry,
|
|
@@ -1583,8 +682,8 @@ export const enableLock: API.OperationMethod<
|
|
|
1583
682
|
EnableLockError,
|
|
1584
683
|
StackitOpContext
|
|
1585
684
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1586
|
-
input: EnableLockRequest
|
|
1587
|
-
output: EnableLockResponse
|
|
685
|
+
input: __S(32, __c4, 0) as any as S.Schema<EnableLockRequest>,
|
|
686
|
+
output: __S(40, __c5, 0) as any as S.Schema<EnableLockResponse>,
|
|
1588
687
|
errors: [UnknownStackitError],
|
|
1589
688
|
protocol: StackitProtocol,
|
|
1590
689
|
retry: Retry.Retry,
|
|
@@ -1598,8 +697,8 @@ export const getLock: API.OperationMethod<
|
|
|
1598
697
|
GetLockError,
|
|
1599
698
|
StackitOpContext
|
|
1600
699
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1601
|
-
input: GetLockRequest
|
|
1602
|
-
output: GetLockResponse
|
|
700
|
+
input: __S(48, __c6, 0) as any as S.Schema<GetLockRequest>,
|
|
701
|
+
output: __S(40, __c5, 0) as any as S.Schema<GetLockResponse>,
|
|
1603
702
|
errors: [UnknownStackitError],
|
|
1604
703
|
protocol: StackitProtocol,
|
|
1605
704
|
retry: Retry.Retry,
|
|
@@ -1613,8 +712,8 @@ export const getResourcePool: API.OperationMethod<
|
|
|
1613
712
|
GetResourcePoolError,
|
|
1614
713
|
StackitOpContext
|
|
1615
714
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1616
|
-
input: GetResourcePoolRequest
|
|
1617
|
-
output: GetResourcePoolResponse
|
|
715
|
+
input: __S(56, __c7, 0) as any as S.Schema<GetResourcePoolRequest>,
|
|
716
|
+
output: __S(16, __c2, 0) as any as S.Schema<GetResourcePoolResponse>,
|
|
1618
717
|
errors: [BadRequest, UnknownStackitError],
|
|
1619
718
|
protocol: StackitProtocol,
|
|
1620
719
|
retry: Retry.Retry,
|
|
@@ -1628,8 +727,8 @@ export const getResourcePoolSnapshot: API.OperationMethod<
|
|
|
1628
727
|
GetResourcePoolSnapshotError,
|
|
1629
728
|
StackitOpContext
|
|
1630
729
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1631
|
-
input: GetResourcePoolSnapshotRequest
|
|
1632
|
-
output: GetResourcePoolSnapshotResponse
|
|
730
|
+
input: __S(64, __c8, 0) as any as S.Schema<GetResourcePoolSnapshotRequest>,
|
|
731
|
+
output: __S(144, __c18, 0) as any as S.Schema<GetResourcePoolSnapshotResponse>,
|
|
1633
732
|
errors: [BadRequest, UnknownStackitError],
|
|
1634
733
|
protocol: StackitProtocol,
|
|
1635
734
|
retry: Retry.Retry,
|
|
@@ -1643,8 +742,8 @@ export const getShare: API.OperationMethod<
|
|
|
1643
742
|
GetShareError,
|
|
1644
743
|
StackitOpContext
|
|
1645
744
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1646
|
-
input: GetShareRequest
|
|
1647
|
-
output: GetShareResponse
|
|
745
|
+
input: __S(72, __c9, 0) as any as S.Schema<GetShareRequest>,
|
|
746
|
+
output: __S(224, __c28, 0) as any as S.Schema<GetShareResponse>,
|
|
1648
747
|
errors: [BadRequest, UnknownStackitError],
|
|
1649
748
|
protocol: StackitProtocol,
|
|
1650
749
|
retry: Retry.Retry,
|
|
@@ -1658,8 +757,8 @@ export const getShareExportPolicy: API.OperationMethod<
|
|
|
1658
757
|
GetShareExportPolicyError,
|
|
1659
758
|
StackitOpContext
|
|
1660
759
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1661
|
-
input: GetShareExportPolicyRequest
|
|
1662
|
-
output: GetShareExportPolicyResponse
|
|
760
|
+
input: __S(80, __c10, 0) as any as S.Schema<GetShareExportPolicyRequest>,
|
|
761
|
+
output: __S(248, __c31, 0) as any as S.Schema<GetShareExportPolicyResponse>,
|
|
1663
762
|
errors: [BadRequest, UnknownStackitError],
|
|
1664
763
|
protocol: StackitProtocol,
|
|
1665
764
|
retry: Retry.Retry,
|
|
@@ -1673,8 +772,8 @@ export const getSnapshotPolicy: API.OperationMethod<
|
|
|
1673
772
|
GetSnapshotPolicyError,
|
|
1674
773
|
StackitOpContext
|
|
1675
774
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1676
|
-
input: GetSnapshotPolicyRequest
|
|
1677
|
-
output: GetSnapshotPolicyResponse
|
|
775
|
+
input: __S(88, __c11, 0) as any as S.Schema<GetSnapshotPolicyRequest>,
|
|
776
|
+
output: __S(89, __c11, 1) as any as S.Schema<GetSnapshotPolicyResponse>,
|
|
1678
777
|
errors: [UnknownStackitError],
|
|
1679
778
|
protocol: StackitProtocol,
|
|
1680
779
|
retry: Retry.Retry,
|
|
@@ -1688,8 +787,8 @@ export const listPerformanceClasses: API.OperationMethod<
|
|
|
1688
787
|
ListPerformanceClassesError,
|
|
1689
788
|
StackitOpContext
|
|
1690
789
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1691
|
-
input: ListPerformanceClassesRequest
|
|
1692
|
-
output: ListPerformanceClassesResponse
|
|
790
|
+
input: __S(104, __c13, 0) as any as S.Schema<ListPerformanceClassesRequest>,
|
|
791
|
+
output: __S(107, __c13, 3) as any as S.Schema<ListPerformanceClassesResponse>,
|
|
1693
792
|
errors: [BadRequest, UnknownStackitError],
|
|
1694
793
|
protocol: StackitProtocol,
|
|
1695
794
|
retry: Retry.Retry,
|
|
@@ -1703,8 +802,8 @@ export const listResourcePools: API.OperationMethod<
|
|
|
1703
802
|
ListResourcePoolsError,
|
|
1704
803
|
StackitOpContext
|
|
1705
804
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1706
|
-
input: ListResourcePoolsRequest
|
|
1707
|
-
output: ListResourcePoolsResponse
|
|
805
|
+
input: __S(112, __c14, 0) as any as S.Schema<ListResourcePoolsRequest>,
|
|
806
|
+
output: __S(114, __c14, 2) as any as S.Schema<ListResourcePoolsResponse>,
|
|
1708
807
|
errors: [BadRequest, UnknownStackitError],
|
|
1709
808
|
protocol: StackitProtocol,
|
|
1710
809
|
retry: Retry.Retry,
|
|
@@ -1718,8 +817,8 @@ export const listResourcePoolSnapshots: API.OperationMethod<
|
|
|
1718
817
|
ListResourcePoolSnapshotsError,
|
|
1719
818
|
StackitOpContext
|
|
1720
819
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1721
|
-
input: ListResourcePoolSnapshotsRequest
|
|
1722
|
-
output: ListResourcePoolSnapshotsResponse
|
|
820
|
+
input: __S(120, __c15, 0) as any as S.Schema<ListResourcePoolSnapshotsRequest>,
|
|
821
|
+
output: __S(122, __c15, 2) as any as S.Schema<ListResourcePoolSnapshotsResponse>,
|
|
1723
822
|
errors: [BadRequest, UnknownStackitError],
|
|
1724
823
|
protocol: StackitProtocol,
|
|
1725
824
|
retry: Retry.Retry,
|
|
@@ -1733,8 +832,8 @@ export const listShareExportPolicies: API.OperationMethod<
|
|
|
1733
832
|
ListShareExportPoliciesError,
|
|
1734
833
|
StackitOpContext
|
|
1735
834
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1736
|
-
input: ListShareExportPoliciesRequest
|
|
1737
|
-
output: ListShareExportPoliciesResponse
|
|
835
|
+
input: __S(152, __c19, 0) as any as S.Schema<ListShareExportPoliciesRequest>,
|
|
836
|
+
output: __S(154, __c19, 2) as any as S.Schema<ListShareExportPoliciesResponse>,
|
|
1738
837
|
errors: [BadRequest, UnknownStackitError],
|
|
1739
838
|
protocol: StackitProtocol,
|
|
1740
839
|
retry: Retry.Retry,
|
|
@@ -1748,8 +847,8 @@ export const listShares: API.OperationMethod<
|
|
|
1748
847
|
ListSharesError,
|
|
1749
848
|
StackitOpContext
|
|
1750
849
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1751
|
-
input: ListSharesRequest
|
|
1752
|
-
output: ListSharesResponse
|
|
850
|
+
input: __S(160, __c20, 0) as any as S.Schema<ListSharesRequest>,
|
|
851
|
+
output: __S(162, __c20, 2) as any as S.Schema<ListSharesResponse>,
|
|
1753
852
|
errors: [BadRequest, UnknownStackitError],
|
|
1754
853
|
protocol: StackitProtocol,
|
|
1755
854
|
retry: Retry.Retry,
|
|
@@ -1763,8 +862,8 @@ export const listSnapshotPolicies: API.OperationMethod<
|
|
|
1763
862
|
ListSnapshotPoliciesError,
|
|
1764
863
|
StackitOpContext
|
|
1765
864
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1766
|
-
input: ListSnapshotPoliciesRequest
|
|
1767
|
-
output: ListSnapshotPoliciesResponse
|
|
865
|
+
input: __S(168, __c21, 0) as any as S.Schema<ListSnapshotPoliciesRequest>,
|
|
866
|
+
output: __S(170, __c21, 2) as any as S.Schema<ListSnapshotPoliciesResponse>,
|
|
1768
867
|
errors: [UnknownStackitError],
|
|
1769
868
|
protocol: StackitProtocol,
|
|
1770
869
|
retry: Retry.Retry,
|
|
@@ -1778,8 +877,8 @@ export const updateResourcePool: API.OperationMethod<
|
|
|
1778
877
|
UpdateResourcePoolError,
|
|
1779
878
|
StackitOpContext
|
|
1780
879
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1781
|
-
input: UpdateResourcePoolRequest
|
|
1782
|
-
output: UpdateResourcePoolResponse
|
|
880
|
+
input: __S(176, __c22, 0) as any as S.Schema<UpdateResourcePoolRequest>,
|
|
881
|
+
output: __S(16, __c2, 0) as any as S.Schema<UpdateResourcePoolResponse>,
|
|
1783
882
|
errors: [BadRequest, UnknownStackitError],
|
|
1784
883
|
protocol: StackitProtocol,
|
|
1785
884
|
retry: Retry.Retry,
|
|
@@ -1793,8 +892,8 @@ export const updateResourcePoolSnapshot: API.OperationMethod<
|
|
|
1793
892
|
UpdateResourcePoolSnapshotError,
|
|
1794
893
|
StackitOpContext
|
|
1795
894
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1796
|
-
input: UpdateResourcePoolSnapshotRequest
|
|
1797
|
-
output: UpdateResourcePoolSnapshotResponse
|
|
895
|
+
input: __S(184, __c23, 0) as any as S.Schema<UpdateResourcePoolSnapshotRequest>,
|
|
896
|
+
output: __S(144, __c18, 0) as any as S.Schema<UpdateResourcePoolSnapshotResponse>,
|
|
1798
897
|
errors: [BadRequest, UnknownStackitError],
|
|
1799
898
|
protocol: StackitProtocol,
|
|
1800
899
|
retry: Retry.Retry,
|
|
@@ -1808,8 +907,8 @@ export const updateShare: API.OperationMethod<
|
|
|
1808
907
|
UpdateShareError,
|
|
1809
908
|
StackitOpContext
|
|
1810
909
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1811
|
-
input: UpdateShareRequest
|
|
1812
|
-
output: UpdateShareResponse
|
|
910
|
+
input: __S(192, __c24, 0) as any as S.Schema<UpdateShareRequest>,
|
|
911
|
+
output: __S(224, __c28, 0) as any as S.Schema<UpdateShareResponse>,
|
|
1813
912
|
errors: [BadRequest, UnknownStackitError],
|
|
1814
913
|
protocol: StackitProtocol,
|
|
1815
914
|
retry: Retry.Retry,
|
|
@@ -1823,9 +922,831 @@ export const updateShareExportPolicy: API.OperationMethod<
|
|
|
1823
922
|
UpdateShareExportPolicyError,
|
|
1824
923
|
StackitOpContext
|
|
1825
924
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1826
|
-
input: UpdateShareExportPolicyRequest
|
|
1827
|
-
output: UpdateShareExportPolicyResponse
|
|
925
|
+
input: __S(200, __c25, 0) as any as S.Schema<UpdateShareExportPolicyRequest>,
|
|
926
|
+
output: __S(248, __c31, 0) as any as S.Schema<UpdateShareExportPolicyResponse>,
|
|
1828
927
|
errors: [BadRequest, UnknownStackitError],
|
|
1829
928
|
protocol: StackitProtocol,
|
|
1830
929
|
retry: Retry.Retry,
|
|
1831
930
|
}));
|
|
931
|
+
|
|
932
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
933
|
+
function __c0(j: number): any {
|
|
934
|
+
switch (j) {
|
|
935
|
+
case 0:
|
|
936
|
+
return S.suspend(() =>
|
|
937
|
+
S.Struct({
|
|
938
|
+
projectId: S.String.pipe(T.Label()),
|
|
939
|
+
region: S.String.pipe(T.Label()),
|
|
940
|
+
availabilityZone: S.String,
|
|
941
|
+
ipAcl: __S(24, __c3, 0),
|
|
942
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
943
|
+
name: S.String,
|
|
944
|
+
performanceClass: S.String,
|
|
945
|
+
sizeGigabytes: S.Number,
|
|
946
|
+
snapshotPolicyId: S.optional(S.String),
|
|
947
|
+
snapshotsAreVisible: S.optional(S.Boolean),
|
|
948
|
+
}).pipe(
|
|
949
|
+
T.Http({
|
|
950
|
+
method: "POST",
|
|
951
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools",
|
|
952
|
+
code: 200,
|
|
953
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
954
|
+
}),
|
|
955
|
+
),
|
|
956
|
+
).annotate({ identifier: "CreateResourcePoolRequest" });
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
function __c1(j: number): any {
|
|
960
|
+
switch (j) {
|
|
961
|
+
case 0:
|
|
962
|
+
return S.suspend(() =>
|
|
963
|
+
S.Struct({
|
|
964
|
+
name: S.optional(S.String),
|
|
965
|
+
peakIops: S.optional(S.Number),
|
|
966
|
+
throughput: S.optional(S.Number),
|
|
967
|
+
}),
|
|
968
|
+
).annotate({ identifier: "ResourcePoolPerformanceClass" });
|
|
969
|
+
case 1:
|
|
970
|
+
return S.suspend(() =>
|
|
971
|
+
S.Struct({
|
|
972
|
+
id: S.optional(S.String),
|
|
973
|
+
name: S.optional(S.String),
|
|
974
|
+
}),
|
|
975
|
+
).annotate({ identifier: "ResourcePoolSnapshotPolicy" });
|
|
976
|
+
case 2:
|
|
977
|
+
return S.suspend(() =>
|
|
978
|
+
S.Struct({
|
|
979
|
+
availableGigabytes: S.optional(S.NullOr(S.Number)),
|
|
980
|
+
sizeGigabytes: S.optional(S.Number),
|
|
981
|
+
usedBySnapshotsGigabytes: S.optional(S.NullOr(S.Number)),
|
|
982
|
+
usedGigabytes: S.optional(S.NullOr(S.Number)),
|
|
983
|
+
}),
|
|
984
|
+
).annotate({ identifier: "ResourcePoolSpace" });
|
|
985
|
+
case 3:
|
|
986
|
+
return S.suspend(() =>
|
|
987
|
+
S.Struct({
|
|
988
|
+
availabilityZone: S.optional(S.String),
|
|
989
|
+
countShares: S.optional(S.Number),
|
|
990
|
+
createdAt: S.optional(S.String),
|
|
991
|
+
id: S.optional(S.String),
|
|
992
|
+
ipAcl: S.optional(__S(24, __c3, 0)),
|
|
993
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
994
|
+
mountPath: S.optional(S.String),
|
|
995
|
+
name: S.optional(S.String),
|
|
996
|
+
performanceClass: S.optional(__S(8, __c1, 0)),
|
|
997
|
+
performanceClassDowngradableAt: S.optional(S.String),
|
|
998
|
+
sizeReducibleAt: S.optional(S.String),
|
|
999
|
+
snapshotPolicy: S.optional(S.NullOr(__S(9, __c1, 1))),
|
|
1000
|
+
snapshotsAreVisible: S.optional(S.Boolean),
|
|
1001
|
+
space: S.optional(__S(10, __c1, 2)),
|
|
1002
|
+
state: S.optional(S.String),
|
|
1003
|
+
}),
|
|
1004
|
+
).annotate({ identifier: "ResourcePool" });
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
function __c2(j: number): any {
|
|
1008
|
+
switch (j) {
|
|
1009
|
+
case 0:
|
|
1010
|
+
return S.suspend(() =>
|
|
1011
|
+
S.Struct({
|
|
1012
|
+
resourcePool: S.optional(__S(11, __c1, 3)),
|
|
1013
|
+
}),
|
|
1014
|
+
).annotate({ identifier: "CreateResourcePoolResponse" });
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
function __c3(j: number): any {
|
|
1018
|
+
switch (j) {
|
|
1019
|
+
case 0:
|
|
1020
|
+
return S.Array(S.String);
|
|
1021
|
+
case 1:
|
|
1022
|
+
return S.Record(S.String, S.String);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
function __c4(j: number): any {
|
|
1026
|
+
switch (j) {
|
|
1027
|
+
case 0:
|
|
1028
|
+
return S.suspend(() =>
|
|
1029
|
+
S.Struct({
|
|
1030
|
+
region: S.String.pipe(T.Label()),
|
|
1031
|
+
projectId: S.String.pipe(T.Label()),
|
|
1032
|
+
}).pipe(
|
|
1033
|
+
T.Http({
|
|
1034
|
+
method: "POST",
|
|
1035
|
+
uri: "/v1/regions/{region}/project/{projectId}/locks",
|
|
1036
|
+
code: 200,
|
|
1037
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1038
|
+
}),
|
|
1039
|
+
),
|
|
1040
|
+
).annotate({ identifier: "EnableLockRequest" });
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
function __c5(j: number): any {
|
|
1044
|
+
switch (j) {
|
|
1045
|
+
case 0:
|
|
1046
|
+
return S.suspend(() =>
|
|
1047
|
+
S.Struct({
|
|
1048
|
+
lockId: S.optional(S.String),
|
|
1049
|
+
}),
|
|
1050
|
+
).annotate({ identifier: "EnableLockResponse" });
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
function __c6(j: number): any {
|
|
1054
|
+
switch (j) {
|
|
1055
|
+
case 0:
|
|
1056
|
+
return S.suspend(() =>
|
|
1057
|
+
S.Struct({
|
|
1058
|
+
region: S.String.pipe(T.Label()),
|
|
1059
|
+
projectId: S.String.pipe(T.Label()),
|
|
1060
|
+
}).pipe(
|
|
1061
|
+
T.Http({
|
|
1062
|
+
method: "GET",
|
|
1063
|
+
uri: "/v1/regions/{region}/project/{projectId}/locks",
|
|
1064
|
+
code: 200,
|
|
1065
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1066
|
+
}),
|
|
1067
|
+
),
|
|
1068
|
+
).annotate({ identifier: "GetLockRequest" });
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
function __c7(j: number): any {
|
|
1072
|
+
switch (j) {
|
|
1073
|
+
case 0:
|
|
1074
|
+
return S.suspend(() =>
|
|
1075
|
+
S.Struct({
|
|
1076
|
+
projectId: S.String.pipe(T.Label()),
|
|
1077
|
+
region: S.String.pipe(T.Label()),
|
|
1078
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1079
|
+
}).pipe(
|
|
1080
|
+
T.Http({
|
|
1081
|
+
method: "GET",
|
|
1082
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
|
|
1083
|
+
code: 200,
|
|
1084
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1085
|
+
}),
|
|
1086
|
+
),
|
|
1087
|
+
).annotate({ identifier: "GetResourcePoolRequest" });
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function __c8(j: number): any {
|
|
1091
|
+
switch (j) {
|
|
1092
|
+
case 0:
|
|
1093
|
+
return S.suspend(() =>
|
|
1094
|
+
S.Struct({
|
|
1095
|
+
projectId: S.String.pipe(T.Label()),
|
|
1096
|
+
region: S.String.pipe(T.Label()),
|
|
1097
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1098
|
+
snapshotName: S.String.pipe(T.Label()),
|
|
1099
|
+
}).pipe(
|
|
1100
|
+
T.Http({
|
|
1101
|
+
method: "GET",
|
|
1102
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
|
|
1103
|
+
code: 200,
|
|
1104
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1105
|
+
}),
|
|
1106
|
+
),
|
|
1107
|
+
).annotate({ identifier: "GetResourcePoolSnapshotRequest" });
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
function __c9(j: number): any {
|
|
1111
|
+
switch (j) {
|
|
1112
|
+
case 0:
|
|
1113
|
+
return S.suspend(() =>
|
|
1114
|
+
S.Struct({
|
|
1115
|
+
projectId: S.String.pipe(T.Label()),
|
|
1116
|
+
region: S.String.pipe(T.Label()),
|
|
1117
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1118
|
+
shareId: S.String.pipe(T.Label()),
|
|
1119
|
+
}).pipe(
|
|
1120
|
+
T.Http({
|
|
1121
|
+
method: "GET",
|
|
1122
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
|
|
1123
|
+
code: 200,
|
|
1124
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1125
|
+
}),
|
|
1126
|
+
),
|
|
1127
|
+
).annotate({ identifier: "GetShareRequest" });
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
function __c10(j: number): any {
|
|
1131
|
+
switch (j) {
|
|
1132
|
+
case 0:
|
|
1133
|
+
return S.suspend(() =>
|
|
1134
|
+
S.Struct({
|
|
1135
|
+
projectId: S.String.pipe(T.Label()),
|
|
1136
|
+
region: S.String.pipe(T.Label()),
|
|
1137
|
+
policyId: S.String.pipe(T.Label()),
|
|
1138
|
+
}).pipe(
|
|
1139
|
+
T.Http({
|
|
1140
|
+
method: "GET",
|
|
1141
|
+
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
|
|
1142
|
+
code: 200,
|
|
1143
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1144
|
+
}),
|
|
1145
|
+
),
|
|
1146
|
+
).annotate({ identifier: "GetShareExportPolicyRequest" });
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
function __c11(j: number): any {
|
|
1150
|
+
switch (j) {
|
|
1151
|
+
case 0:
|
|
1152
|
+
return S.suspend(() =>
|
|
1153
|
+
S.Struct({
|
|
1154
|
+
projectId: S.String.pipe(T.Label()),
|
|
1155
|
+
id: S.String.pipe(T.Label()),
|
|
1156
|
+
}).pipe(
|
|
1157
|
+
T.Http({
|
|
1158
|
+
method: "GET",
|
|
1159
|
+
uri: "/v1/projects/{projectId}/snapshotPolicies/{id}",
|
|
1160
|
+
code: 200,
|
|
1161
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1162
|
+
}),
|
|
1163
|
+
),
|
|
1164
|
+
).annotate({ identifier: "GetSnapshotPolicyRequest" });
|
|
1165
|
+
case 1:
|
|
1166
|
+
return S.suspend(() =>
|
|
1167
|
+
S.Struct({
|
|
1168
|
+
snapshotPolicy: S.optional(__S(100, __c12, 4)),
|
|
1169
|
+
}),
|
|
1170
|
+
).annotate({ identifier: "GetSnapshotPolicyResponse" });
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
function __c12(j: number): any {
|
|
1174
|
+
switch (j) {
|
|
1175
|
+
case 0:
|
|
1176
|
+
return S.suspend(() =>
|
|
1177
|
+
S.Struct({
|
|
1178
|
+
count: S.optional(S.Number),
|
|
1179
|
+
interval: S.optional(S.String),
|
|
1180
|
+
prefix: S.optional(S.String),
|
|
1181
|
+
retentionPeriod: S.optional(S.String),
|
|
1182
|
+
scheduleId: S.optional(S.String),
|
|
1183
|
+
}),
|
|
1184
|
+
).annotate({ identifier: "SnapshotPolicySchedule" });
|
|
1185
|
+
case 1:
|
|
1186
|
+
return S.Array(__S(96, __c12, 0));
|
|
1187
|
+
case 2:
|
|
1188
|
+
return S.suspend(() =>
|
|
1189
|
+
S.Struct({
|
|
1190
|
+
createdAt: S.optional(S.String),
|
|
1191
|
+
id: S.optional(S.String),
|
|
1192
|
+
interval: S.optional(S.String),
|
|
1193
|
+
name: S.optional(S.String),
|
|
1194
|
+
prefix: S.optional(S.String),
|
|
1195
|
+
retentionCount: S.optional(S.Number),
|
|
1196
|
+
retentionPeriod: S.optional(S.String),
|
|
1197
|
+
}),
|
|
1198
|
+
).annotate({ identifier: "SnapshotPolicySnapshotPolicySchedule" });
|
|
1199
|
+
case 3:
|
|
1200
|
+
return S.Array(__S(98, __c12, 2));
|
|
1201
|
+
case 4:
|
|
1202
|
+
return S.suspend(() =>
|
|
1203
|
+
S.Struct({
|
|
1204
|
+
comment: S.optional(S.String),
|
|
1205
|
+
createdAt: S.optional(S.String),
|
|
1206
|
+
enabled: S.optional(S.Boolean),
|
|
1207
|
+
id: S.optional(S.String),
|
|
1208
|
+
name: S.optional(S.String),
|
|
1209
|
+
schedules: S.optional(__S(97, __c12, 1)),
|
|
1210
|
+
snapshotSchedules: S.optional(__S(99, __c12, 3)),
|
|
1211
|
+
}),
|
|
1212
|
+
).annotate({ identifier: "SnapshotPolicy" });
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
function __c13(j: number): any {
|
|
1216
|
+
switch (j) {
|
|
1217
|
+
case 0:
|
|
1218
|
+
return S.suspend(() =>
|
|
1219
|
+
S.Struct({}).pipe(
|
|
1220
|
+
T.Http({
|
|
1221
|
+
method: "GET",
|
|
1222
|
+
uri: "/v1/resourcePoolPerformanceClasses",
|
|
1223
|
+
code: 200,
|
|
1224
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1225
|
+
}),
|
|
1226
|
+
),
|
|
1227
|
+
).annotate({ identifier: "ListPerformanceClassesRequest" });
|
|
1228
|
+
case 1:
|
|
1229
|
+
return S.suspend(() =>
|
|
1230
|
+
S.Struct({
|
|
1231
|
+
iops: S.optional(S.Number),
|
|
1232
|
+
name: S.optional(S.String),
|
|
1233
|
+
throughput: S.optional(S.Number),
|
|
1234
|
+
}),
|
|
1235
|
+
).annotate({ identifier: "PerformanceClass" });
|
|
1236
|
+
case 2:
|
|
1237
|
+
return S.Array(__S(105, __c13, 1));
|
|
1238
|
+
case 3:
|
|
1239
|
+
return S.suspend(() =>
|
|
1240
|
+
S.Struct({
|
|
1241
|
+
performanceClasses: S.optional(__S(106, __c13, 2)),
|
|
1242
|
+
}),
|
|
1243
|
+
).annotate({ identifier: "ListPerformanceClassesResponse" });
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
function __c14(j: number): any {
|
|
1247
|
+
switch (j) {
|
|
1248
|
+
case 0:
|
|
1249
|
+
return S.suspend(() =>
|
|
1250
|
+
S.Struct({
|
|
1251
|
+
projectId: S.String.pipe(T.Label()),
|
|
1252
|
+
region: S.String.pipe(T.Label()),
|
|
1253
|
+
}).pipe(
|
|
1254
|
+
T.Http({
|
|
1255
|
+
method: "GET",
|
|
1256
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools",
|
|
1257
|
+
code: 200,
|
|
1258
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1259
|
+
}),
|
|
1260
|
+
),
|
|
1261
|
+
).annotate({ identifier: "ListResourcePoolsRequest" });
|
|
1262
|
+
case 1:
|
|
1263
|
+
return S.Array(__S(11, __c1, 3));
|
|
1264
|
+
case 2:
|
|
1265
|
+
return S.suspend(() =>
|
|
1266
|
+
S.Struct({
|
|
1267
|
+
resourcePools: S.optional(__S(113, __c14, 1)),
|
|
1268
|
+
}),
|
|
1269
|
+
).annotate({ identifier: "ListResourcePoolsResponse" });
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
function __c15(j: number): any {
|
|
1273
|
+
switch (j) {
|
|
1274
|
+
case 0:
|
|
1275
|
+
return S.suspend(() =>
|
|
1276
|
+
S.Struct({
|
|
1277
|
+
projectId: S.String.pipe(T.Label()),
|
|
1278
|
+
region: S.String.pipe(T.Label()),
|
|
1279
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1280
|
+
}).pipe(
|
|
1281
|
+
T.Http({
|
|
1282
|
+
method: "GET",
|
|
1283
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",
|
|
1284
|
+
code: 200,
|
|
1285
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1286
|
+
}),
|
|
1287
|
+
),
|
|
1288
|
+
).annotate({ identifier: "ListResourcePoolSnapshotsRequest" });
|
|
1289
|
+
case 1:
|
|
1290
|
+
return S.Array(__S(136, __c17, 0));
|
|
1291
|
+
case 2:
|
|
1292
|
+
return S.suspend(() =>
|
|
1293
|
+
S.Struct({
|
|
1294
|
+
resourcePoolSnapshots: S.optional(__S(121, __c15, 1)),
|
|
1295
|
+
}),
|
|
1296
|
+
).annotate({ identifier: "ListResourcePoolSnapshotsResponse" });
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
function __c16(j: number): any {
|
|
1300
|
+
switch (j) {
|
|
1301
|
+
case 0:
|
|
1302
|
+
return S.suspend(() =>
|
|
1303
|
+
S.Struct({
|
|
1304
|
+
projectId: S.String.pipe(T.Label()),
|
|
1305
|
+
region: S.String.pipe(T.Label()),
|
|
1306
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1307
|
+
comment: S.optional(S.NullOr(S.String)),
|
|
1308
|
+
name: S.optional(S.String),
|
|
1309
|
+
snaplockRetentionHours: S.optional(S.NullOr(S.Number)),
|
|
1310
|
+
}).pipe(
|
|
1311
|
+
T.Http({
|
|
1312
|
+
method: "POST",
|
|
1313
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots",
|
|
1314
|
+
code: 200,
|
|
1315
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1316
|
+
}),
|
|
1317
|
+
),
|
|
1318
|
+
).annotate({ identifier: "CreateResourcePoolSnapshotRequest" });
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
function __c17(j: number): any {
|
|
1322
|
+
switch (j) {
|
|
1323
|
+
case 0:
|
|
1324
|
+
return S.suspend(() =>
|
|
1325
|
+
S.Struct({
|
|
1326
|
+
comment: S.optional(S.NullOr(S.String)),
|
|
1327
|
+
createdAt: S.optional(S.String),
|
|
1328
|
+
logicalSizeGigabytes: S.optional(S.Number),
|
|
1329
|
+
resourcePoolId: S.optional(S.String),
|
|
1330
|
+
sizeGigabytes: S.optional(S.Number),
|
|
1331
|
+
snaplockExpiryTime: S.optional(S.NullOr(S.String)),
|
|
1332
|
+
snapshotName: S.optional(S.String),
|
|
1333
|
+
}),
|
|
1334
|
+
).annotate({ identifier: "ResourcePoolSnapshot" });
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
function __c18(j: number): any {
|
|
1338
|
+
switch (j) {
|
|
1339
|
+
case 0:
|
|
1340
|
+
return S.suspend(() =>
|
|
1341
|
+
S.Struct({
|
|
1342
|
+
resourcePoolSnapshot: S.optional(__S(136, __c17, 0)),
|
|
1343
|
+
}),
|
|
1344
|
+
).annotate({ identifier: "CreateResourcePoolSnapshotResponse" });
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
function __c19(j: number): any {
|
|
1348
|
+
switch (j) {
|
|
1349
|
+
case 0:
|
|
1350
|
+
return S.suspend(() =>
|
|
1351
|
+
S.Struct({
|
|
1352
|
+
projectId: S.String.pipe(T.Label()),
|
|
1353
|
+
region: S.String.pipe(T.Label()),
|
|
1354
|
+
}).pipe(
|
|
1355
|
+
T.Http({
|
|
1356
|
+
method: "GET",
|
|
1357
|
+
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies",
|
|
1358
|
+
code: 200,
|
|
1359
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1360
|
+
}),
|
|
1361
|
+
),
|
|
1362
|
+
).annotate({ identifier: "ListShareExportPoliciesRequest" });
|
|
1363
|
+
case 1:
|
|
1364
|
+
return S.Array(__S(234, __c29, 2));
|
|
1365
|
+
case 2:
|
|
1366
|
+
return S.suspend(() =>
|
|
1367
|
+
S.Struct({
|
|
1368
|
+
shareExportPolicies: S.optional(__S(153, __c19, 1)),
|
|
1369
|
+
}),
|
|
1370
|
+
).annotate({ identifier: "ListShareExportPoliciesResponse" });
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
function __c20(j: number): any {
|
|
1374
|
+
switch (j) {
|
|
1375
|
+
case 0:
|
|
1376
|
+
return S.suspend(() =>
|
|
1377
|
+
S.Struct({
|
|
1378
|
+
projectId: S.String.pipe(T.Label()),
|
|
1379
|
+
region: S.String.pipe(T.Label()),
|
|
1380
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1381
|
+
}).pipe(
|
|
1382
|
+
T.Http({
|
|
1383
|
+
method: "GET",
|
|
1384
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",
|
|
1385
|
+
code: 200,
|
|
1386
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1387
|
+
}),
|
|
1388
|
+
),
|
|
1389
|
+
).annotate({ identifier: "ListSharesRequest" });
|
|
1390
|
+
case 1:
|
|
1391
|
+
return S.Array(__S(216, __c27, 0));
|
|
1392
|
+
case 2:
|
|
1393
|
+
return S.suspend(() =>
|
|
1394
|
+
S.Struct({
|
|
1395
|
+
shares: S.optional(__S(161, __c20, 1)),
|
|
1396
|
+
}),
|
|
1397
|
+
).annotate({ identifier: "ListSharesResponse" });
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
function __c21(j: number): any {
|
|
1401
|
+
switch (j) {
|
|
1402
|
+
case 0:
|
|
1403
|
+
return S.suspend(() =>
|
|
1404
|
+
S.Struct({
|
|
1405
|
+
projectId: S.String.pipe(T.Label()),
|
|
1406
|
+
immutable: S.optional(S.Boolean.pipe(T.Query())),
|
|
1407
|
+
}).pipe(
|
|
1408
|
+
T.Http({
|
|
1409
|
+
method: "GET",
|
|
1410
|
+
uri: "/v1/projects/{projectId}/snapshotPolicies",
|
|
1411
|
+
code: 200,
|
|
1412
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1413
|
+
}),
|
|
1414
|
+
),
|
|
1415
|
+
).annotate({ identifier: "ListSnapshotPoliciesRequest" });
|
|
1416
|
+
case 1:
|
|
1417
|
+
return S.Array(__S(100, __c12, 4));
|
|
1418
|
+
case 2:
|
|
1419
|
+
return S.suspend(() =>
|
|
1420
|
+
S.Struct({
|
|
1421
|
+
snapshotPolicies: S.optional(__S(169, __c21, 1)),
|
|
1422
|
+
}),
|
|
1423
|
+
).annotate({ identifier: "ListSnapshotPoliciesResponse" });
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
function __c22(j: number): any {
|
|
1427
|
+
switch (j) {
|
|
1428
|
+
case 0:
|
|
1429
|
+
return S.suspend(() =>
|
|
1430
|
+
S.Struct({
|
|
1431
|
+
projectId: S.String.pipe(T.Label()),
|
|
1432
|
+
region: S.String.pipe(T.Label()),
|
|
1433
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1434
|
+
ipAcl: S.optional(__S(24, __c3, 0)),
|
|
1435
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
1436
|
+
performanceClass: S.optional(S.String),
|
|
1437
|
+
sizeGigabytes: S.optional(S.NullOr(S.Number)),
|
|
1438
|
+
snapshotPolicyId: S.optional(S.NullOr(S.String)),
|
|
1439
|
+
snapshotsAreVisible: S.optional(S.Boolean),
|
|
1440
|
+
}).pipe(
|
|
1441
|
+
T.Http({
|
|
1442
|
+
method: "PATCH",
|
|
1443
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
|
|
1444
|
+
code: 200,
|
|
1445
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1446
|
+
}),
|
|
1447
|
+
),
|
|
1448
|
+
).annotate({ identifier: "UpdateResourcePoolRequest" });
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
function __c23(j: number): any {
|
|
1452
|
+
switch (j) {
|
|
1453
|
+
case 0:
|
|
1454
|
+
return S.suspend(() =>
|
|
1455
|
+
S.Struct({
|
|
1456
|
+
projectId: S.String.pipe(T.Label()),
|
|
1457
|
+
region: S.String.pipe(T.Label()),
|
|
1458
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1459
|
+
snapshotName: S.String.pipe(T.Label()),
|
|
1460
|
+
comment: S.optional(S.NullOr(S.String)),
|
|
1461
|
+
name: S.optional(S.NullOr(S.String)),
|
|
1462
|
+
}).pipe(
|
|
1463
|
+
T.Http({
|
|
1464
|
+
method: "PATCH",
|
|
1465
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
|
|
1466
|
+
code: 200,
|
|
1467
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1468
|
+
}),
|
|
1469
|
+
),
|
|
1470
|
+
).annotate({ identifier: "UpdateResourcePoolSnapshotRequest" });
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
function __c24(j: number): any {
|
|
1474
|
+
switch (j) {
|
|
1475
|
+
case 0:
|
|
1476
|
+
return S.suspend(() =>
|
|
1477
|
+
S.Struct({
|
|
1478
|
+
projectId: S.String.pipe(T.Label()),
|
|
1479
|
+
region: S.String.pipe(T.Label()),
|
|
1480
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1481
|
+
shareId: S.String.pipe(T.Label()),
|
|
1482
|
+
exportPolicyName: S.optional(S.NullOr(S.String)),
|
|
1483
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
1484
|
+
spaceHardLimitGigabytes: S.optional(S.NullOr(S.Number)),
|
|
1485
|
+
}).pipe(
|
|
1486
|
+
T.Http({
|
|
1487
|
+
method: "PATCH",
|
|
1488
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
|
|
1489
|
+
code: 200,
|
|
1490
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1491
|
+
}),
|
|
1492
|
+
),
|
|
1493
|
+
).annotate({ identifier: "UpdateShareRequest" });
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
function __c25(j: number): any {
|
|
1497
|
+
switch (j) {
|
|
1498
|
+
case 0:
|
|
1499
|
+
return S.suspend(() =>
|
|
1500
|
+
S.Struct({
|
|
1501
|
+
projectId: S.String.pipe(T.Label()),
|
|
1502
|
+
region: S.String.pipe(T.Label()),
|
|
1503
|
+
policyId: S.String.pipe(T.Label()),
|
|
1504
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
1505
|
+
rules: S.optional(S.NullOr(__S(257, __c32, 1))),
|
|
1506
|
+
}).pipe(
|
|
1507
|
+
T.Http({
|
|
1508
|
+
method: "PATCH",
|
|
1509
|
+
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
|
|
1510
|
+
code: 200,
|
|
1511
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1512
|
+
}),
|
|
1513
|
+
),
|
|
1514
|
+
).annotate({ identifier: "UpdateShareExportPolicyRequest" });
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
function __c26(j: number): any {
|
|
1518
|
+
switch (j) {
|
|
1519
|
+
case 0:
|
|
1520
|
+
return S.suspend(() =>
|
|
1521
|
+
S.Struct({
|
|
1522
|
+
projectId: S.String.pipe(T.Label()),
|
|
1523
|
+
region: S.String.pipe(T.Label()),
|
|
1524
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1525
|
+
exportPolicyName: S.optional(S.NullOr(S.String)),
|
|
1526
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
1527
|
+
name: S.String,
|
|
1528
|
+
spaceHardLimitGigabytes: S.Number,
|
|
1529
|
+
}).pipe(
|
|
1530
|
+
T.Http({
|
|
1531
|
+
method: "POST",
|
|
1532
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares",
|
|
1533
|
+
code: 200,
|
|
1534
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1535
|
+
}),
|
|
1536
|
+
),
|
|
1537
|
+
).annotate({ identifier: "CreateShareRequest" });
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
function __c27(j: number): any {
|
|
1541
|
+
switch (j) {
|
|
1542
|
+
case 0:
|
|
1543
|
+
return S.suspend(() =>
|
|
1544
|
+
S.Struct({
|
|
1545
|
+
createdAt: S.optional(S.String),
|
|
1546
|
+
exportPolicy: S.optional(S.NullOr(__S(234, __c29, 2))),
|
|
1547
|
+
id: S.optional(S.String),
|
|
1548
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
1549
|
+
mountPath: S.optional(S.String),
|
|
1550
|
+
name: S.optional(S.String),
|
|
1551
|
+
spaceHardLimitGigabytes: S.optional(S.Number),
|
|
1552
|
+
state: S.optional(S.String),
|
|
1553
|
+
}),
|
|
1554
|
+
).annotate({ identifier: "Share" });
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
function __c28(j: number): any {
|
|
1558
|
+
switch (j) {
|
|
1559
|
+
case 0:
|
|
1560
|
+
return S.suspend(() =>
|
|
1561
|
+
S.Struct({
|
|
1562
|
+
share: S.optional(__S(216, __c27, 0)),
|
|
1563
|
+
}),
|
|
1564
|
+
).annotate({ identifier: "CreateShareResponse" });
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
function __c29(j: number): any {
|
|
1568
|
+
switch (j) {
|
|
1569
|
+
case 0:
|
|
1570
|
+
return S.suspend(() =>
|
|
1571
|
+
S.Struct({
|
|
1572
|
+
createdAt: S.optional(S.String),
|
|
1573
|
+
description: S.optional(S.NullOr(S.String)),
|
|
1574
|
+
id: S.optional(S.String),
|
|
1575
|
+
ipAcl: S.optional(__S(24, __c3, 0)),
|
|
1576
|
+
order: S.optional(S.Number),
|
|
1577
|
+
readOnly: S.optional(S.Boolean),
|
|
1578
|
+
setUuid: S.optional(S.Boolean),
|
|
1579
|
+
superUser: S.optional(S.Boolean),
|
|
1580
|
+
}),
|
|
1581
|
+
).annotate({ identifier: "ShareExportPolicyRule" });
|
|
1582
|
+
case 1:
|
|
1583
|
+
return S.Array(__S(232, __c29, 0));
|
|
1584
|
+
case 2:
|
|
1585
|
+
return S.suspend(() =>
|
|
1586
|
+
S.Struct({
|
|
1587
|
+
createdAt: S.optional(S.String),
|
|
1588
|
+
id: S.optional(S.String),
|
|
1589
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
1590
|
+
name: S.optional(S.String),
|
|
1591
|
+
rules: S.optional(__S(233, __c29, 1)),
|
|
1592
|
+
sharesUsingExportPolicy: S.optional(S.Number),
|
|
1593
|
+
}),
|
|
1594
|
+
).annotate({ identifier: "ShareExportPolicy" });
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
function __c30(j: number): any {
|
|
1598
|
+
switch (j) {
|
|
1599
|
+
case 0:
|
|
1600
|
+
return S.suspend(() =>
|
|
1601
|
+
S.Struct({
|
|
1602
|
+
projectId: S.String.pipe(T.Label()),
|
|
1603
|
+
region: S.String.pipe(T.Label()),
|
|
1604
|
+
labels: S.optional(__S(25, __c3, 1)),
|
|
1605
|
+
name: S.String,
|
|
1606
|
+
rules: S.optional(__S(257, __c32, 1)),
|
|
1607
|
+
}).pipe(
|
|
1608
|
+
T.Http({
|
|
1609
|
+
method: "POST",
|
|
1610
|
+
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies",
|
|
1611
|
+
code: 200,
|
|
1612
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1613
|
+
}),
|
|
1614
|
+
),
|
|
1615
|
+
).annotate({ identifier: "CreateShareExportPolicyRequest" });
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
function __c31(j: number): any {
|
|
1619
|
+
switch (j) {
|
|
1620
|
+
case 0:
|
|
1621
|
+
return S.suspend(() =>
|
|
1622
|
+
S.Struct({
|
|
1623
|
+
shareExportPolicy: S.optional(__S(234, __c29, 2)),
|
|
1624
|
+
}),
|
|
1625
|
+
).annotate({ identifier: "CreateShareExportPolicyResponse" });
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
function __c32(j: number): any {
|
|
1629
|
+
switch (j) {
|
|
1630
|
+
case 0:
|
|
1631
|
+
return S.suspend(() =>
|
|
1632
|
+
S.Struct({
|
|
1633
|
+
description: S.optional(S.NullOr(S.String)),
|
|
1634
|
+
ipAcl: S.optional(__S(24, __c3, 0)),
|
|
1635
|
+
order: S.optional(S.Number),
|
|
1636
|
+
readOnly: S.optional(S.Boolean),
|
|
1637
|
+
setUuid: S.optional(S.Boolean),
|
|
1638
|
+
superUser: S.optional(S.Boolean),
|
|
1639
|
+
}),
|
|
1640
|
+
).annotate({ identifier: "CreateShareExportPolicyRequestRule" });
|
|
1641
|
+
case 1:
|
|
1642
|
+
return S.Array(__S(256, __c32, 0));
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
function __c33(j: number): any {
|
|
1646
|
+
switch (j) {
|
|
1647
|
+
case 0:
|
|
1648
|
+
return S.suspend(() =>
|
|
1649
|
+
S.Struct({
|
|
1650
|
+
projectId: S.String.pipe(T.Label()),
|
|
1651
|
+
region: S.String.pipe(T.Label()),
|
|
1652
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1653
|
+
}).pipe(
|
|
1654
|
+
T.Http({
|
|
1655
|
+
method: "DELETE",
|
|
1656
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}",
|
|
1657
|
+
code: 200,
|
|
1658
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1659
|
+
}),
|
|
1660
|
+
),
|
|
1661
|
+
).annotate({ identifier: "DeleteResourcePoolRequest" });
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
function __c34(j: number): any {
|
|
1665
|
+
switch (j) {
|
|
1666
|
+
case 0:
|
|
1667
|
+
return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1668
|
+
identifier: "DeleteResourcePoolResponse2",
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
function __c35(j: number): any {
|
|
1673
|
+
switch (j) {
|
|
1674
|
+
case 0:
|
|
1675
|
+
return S.suspend(() =>
|
|
1676
|
+
S.Struct({
|
|
1677
|
+
projectId: S.String.pipe(T.Label()),
|
|
1678
|
+
region: S.String.pipe(T.Label()),
|
|
1679
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1680
|
+
snapshotName: S.String.pipe(T.Label()),
|
|
1681
|
+
}).pipe(
|
|
1682
|
+
T.Http({
|
|
1683
|
+
method: "DELETE",
|
|
1684
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}",
|
|
1685
|
+
code: 200,
|
|
1686
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1687
|
+
}),
|
|
1688
|
+
),
|
|
1689
|
+
).annotate({ identifier: "DeleteResourcePoolSnapshotRequest" });
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
function __c36(j: number): any {
|
|
1693
|
+
switch (j) {
|
|
1694
|
+
case 0:
|
|
1695
|
+
return S.suspend(() =>
|
|
1696
|
+
S.Struct({
|
|
1697
|
+
projectId: S.String.pipe(T.Label()),
|
|
1698
|
+
region: S.String.pipe(T.Label()),
|
|
1699
|
+
resourcePoolId: S.String.pipe(T.Label()),
|
|
1700
|
+
shareId: S.String.pipe(T.Label()),
|
|
1701
|
+
}).pipe(
|
|
1702
|
+
T.Http({
|
|
1703
|
+
method: "DELETE",
|
|
1704
|
+
uri: "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}",
|
|
1705
|
+
code: 200,
|
|
1706
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1707
|
+
}),
|
|
1708
|
+
),
|
|
1709
|
+
).annotate({ identifier: "DeleteShareRequest" });
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
function __c37(j: number): any {
|
|
1713
|
+
switch (j) {
|
|
1714
|
+
case 0:
|
|
1715
|
+
return S.suspend(() =>
|
|
1716
|
+
S.Struct({
|
|
1717
|
+
projectId: S.String.pipe(T.Label()),
|
|
1718
|
+
region: S.String.pipe(T.Label()),
|
|
1719
|
+
policyId: S.String.pipe(T.Label()),
|
|
1720
|
+
}).pipe(
|
|
1721
|
+
T.Http({
|
|
1722
|
+
method: "DELETE",
|
|
1723
|
+
uri: "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}",
|
|
1724
|
+
code: 200,
|
|
1725
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1726
|
+
}),
|
|
1727
|
+
),
|
|
1728
|
+
).annotate({ identifier: "DeleteShareExportPolicyRequest" });
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
function __c38(j: number): any {
|
|
1732
|
+
switch (j) {
|
|
1733
|
+
case 0:
|
|
1734
|
+
return S.suspend(() =>
|
|
1735
|
+
S.Struct({
|
|
1736
|
+
region: S.String.pipe(T.Label()),
|
|
1737
|
+
projectId: S.String.pipe(T.Label()),
|
|
1738
|
+
}).pipe(
|
|
1739
|
+
T.Http({
|
|
1740
|
+
method: "DELETE",
|
|
1741
|
+
uri: "/v1/regions/{region}/project/{projectId}/locks",
|
|
1742
|
+
code: 200,
|
|
1743
|
+
baseUrl: "https://sfs.api.stackit.cloud",
|
|
1744
|
+
}),
|
|
1745
|
+
),
|
|
1746
|
+
).annotate({ identifier: "DisableLockRequest" });
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1750
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1751
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1752
|
+
}
|