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