@distilled.cloud/namespacelabs 0.0.0-stage → 1.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +125 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +55 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +33 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +42 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.lazy.js +7 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/pagination.d.ts +2 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +15 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +12 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/artifacts.d.ts +260 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +2 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/audit.d.ts +149 -0
- package/lib/services/audit.d.ts.map +1 -0
- package/lib/services/audit.js +2 -0
- package/lib/services/audit.js.map +1 -0
- package/lib/services/bazel.d.ts +173 -0
- package/lib/services/bazel.d.ts.map +1 -0
- package/lib/services/bazel.js +2 -0
- package/lib/services/bazel.js.map +1 -0
- package/lib/services/bazel_cache.d.ts +118 -0
- package/lib/services/bazel_cache.d.ts.map +1 -0
- package/lib/services/bazel_cache.js +2 -0
- package/lib/services/bazel_cache.js.map +1 -0
- package/lib/services/builder.d.ts +234 -0
- package/lib/services/builder.d.ts.map +1 -0
- package/lib/services/builder.js +2 -0
- package/lib/services/builder.js.map +1 -0
- package/lib/services/buildkite_jobs.d.ts +121 -0
- package/lib/services/buildkite_jobs.d.ts.map +1 -0
- package/lib/services/buildkite_jobs.js +2 -0
- package/lib/services/buildkite_jobs.js.map +1 -0
- package/lib/services/buildkite_queue.d.ts +178 -0
- package/lib/services/buildkite_queue.d.ts.map +1 -0
- package/lib/services/buildkite_queue.js +2 -0
- package/lib/services/buildkite_queue.js.map +1 -0
- package/lib/services/compute.d.ts +1057 -0
- package/lib/services/compute.d.ts.map +1 -0
- package/lib/services/compute.js +43 -0
- package/lib/services/compute.js.map +1 -0
- package/lib/services/compute_command.d.ts +112 -0
- package/lib/services/compute_command.d.ts.map +1 -0
- package/lib/services/compute_command.js +2 -0
- package/lib/services/compute_command.js.map +1 -0
- package/lib/services/compute_observability.d.ts +157 -0
- package/lib/services/compute_observability.d.ts.map +1 -0
- package/lib/services/compute_observability.js +2 -0
- package/lib/services/compute_observability.js.map +1 -0
- package/lib/services/compute_storage.d.ts +371 -0
- package/lib/services/compute_storage.d.ts.map +1 -0
- package/lib/services/compute_storage.js +33 -0
- package/lib/services/compute_storage.js.map +1 -0
- package/lib/services/compute_usage.d.ts +275 -0
- package/lib/services/compute_usage.d.ts.map +1 -0
- package/lib/services/compute_usage.js +2 -0
- package/lib/services/compute_usage.js.map +1 -0
- package/lib/services/egress.d.ts +183 -0
- package/lib/services/egress.d.ts.map +1 -0
- package/lib/services/egress.js +2 -0
- package/lib/services/egress.js.map +1 -0
- package/lib/services/experimental_compute_reservation.d.ts +662 -0
- package/lib/services/experimental_compute_reservation.d.ts.map +1 -0
- package/lib/services/experimental_compute_reservation.js +23 -0
- package/lib/services/experimental_compute_reservation.js.map +1 -0
- package/lib/services/experimental_remote_results.d.ts +488 -0
- package/lib/services/experimental_remote_results.d.ts.map +1 -0
- package/lib/services/experimental_remote_results.js +2 -0
- package/lib/services/experimental_remote_results.js.map +1 -0
- package/lib/services/github_image.d.ts +154 -0
- package/lib/services/github_image.d.ts.map +1 -0
- package/lib/services/github_image.js +2 -0
- package/lib/services/github_image.js.map +1 -0
- package/lib/services/github_jobs.d.ts +175 -0
- package/lib/services/github_jobs.d.ts.map +1 -0
- package/lib/services/github_jobs.js +2 -0
- package/lib/services/github_jobs.js.map +1 -0
- package/lib/services/github_profile.d.ts +288 -0
- package/lib/services/github_profile.d.ts.map +1 -0
- package/lib/services/github_profile.js +2 -0
- package/lib/services/github_profile.js.map +1 -0
- package/lib/services/gradle_cache.d.ts +117 -0
- package/lib/services/gradle_cache.d.ts.map +1 -0
- package/lib/services/gradle_cache.js +2 -0
- package/lib/services/gradle_cache.js.map +1 -0
- package/lib/services/httpcache.d.ts +117 -0
- package/lib/services/httpcache.d.ts.map +1 -0
- package/lib/services/httpcache.js +2 -0
- package/lib/services/httpcache.js.map +1 -0
- package/lib/services/iam_tenant.d.ts +373 -0
- package/lib/services/iam_tenant.d.ts.map +1 -0
- package/lib/services/iam_tenant.js +39 -0
- package/lib/services/iam_tenant.js.map +1 -0
- package/lib/services/iam_tenant_membership.d.ts +106 -0
- package/lib/services/iam_tenant_membership.d.ts.map +1 -0
- package/lib/services/iam_tenant_membership.js +2 -0
- package/lib/services/iam_tenant_membership.js.map +1 -0
- package/lib/services/iam_token.d.ts +249 -0
- package/lib/services/iam_token.d.ts.map +1 -0
- package/lib/services/iam_token.js +2 -0
- package/lib/services/iam_token.js.map +1 -0
- package/lib/services/image.d.ts +214 -0
- package/lib/services/image.d.ts.map +1 -0
- package/lib/services/image.js +2 -0
- package/lib/services/image.js.map +1 -0
- package/lib/services/index.d.ts +30 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +29 -0
- package/lib/services/private_devbox.d.ts +1156 -0
- package/lib/services/private_devbox.d.ts.map +1 -0
- package/lib/services/private_devbox.js +81 -0
- package/lib/services/private_devbox.js.map +1 -0
- package/lib/services/private_user_sessions.d.ts +137 -0
- package/lib/services/private_user_sessions.d.ts.map +1 -0
- package/lib/services/private_user_sessions.js +2 -0
- package/lib/services/private_user_sessions.js.map +1 -0
- package/lib/services/registry.d.ts +365 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +34 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/testing.d.ts +152 -0
- package/lib/services/testing.d.ts.map +1 -0
- package/lib/services/testing.js +2 -0
- package/lib/services/testing.js.map +1 -0
- package/lib/services/vault.d.ts +195 -0
- package/lib/services/vault.d.ts.map +1 -0
- package/lib/services/vault.js +2 -0
- package/lib/services/vault.js.map +1 -0
- package/lib/services.lazy/artifacts.js +1 -0
- package/lib/services.lazy/audit.js +1 -0
- package/lib/services.lazy/bazel.js +1 -0
- package/lib/services.lazy/bazel_cache.js +1 -0
- package/lib/services.lazy/builder.js +1 -0
- package/lib/services.lazy/buildkite_jobs.js +1 -0
- package/lib/services.lazy/buildkite_queue.js +1 -0
- package/lib/services.lazy/compute.js +4 -0
- package/lib/services.lazy/compute_command.js +1 -0
- package/lib/services.lazy/compute_observability.js +1 -0
- package/lib/services.lazy/compute_storage.js +4 -0
- package/lib/services.lazy/compute_usage.js +1 -0
- package/lib/services.lazy/egress.js +1 -0
- package/lib/services.lazy/experimental_compute_reservation.js +4 -0
- package/lib/services.lazy/experimental_remote_results.js +1 -0
- package/lib/services.lazy/github_image.js +1 -0
- package/lib/services.lazy/github_jobs.js +1 -0
- package/lib/services.lazy/github_profile.js +1 -0
- package/lib/services.lazy/gradle_cache.js +1 -0
- package/lib/services.lazy/httpcache.js +1 -0
- package/lib/services.lazy/iam_tenant.js +4 -0
- package/lib/services.lazy/iam_tenant_membership.js +1 -0
- package/lib/services.lazy/iam_token.js +1 -0
- package/lib/services.lazy/image.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/private_devbox.js +4 -0
- package/lib/services.lazy/private_user_sessions.js +1 -0
- package/lib/services.lazy/registry.js +4 -0
- package/lib/services.lazy/testing.js +1 -0
- package/lib/services.lazy/vault.js +1 -0
- package/lib/traits.d.ts +3 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +87 -3
- package/src/credentials.ts +164 -0
- package/src/errors.ts +47 -0
- package/src/index.ts +48 -0
- package/src/pagination.ts +1 -0
- package/src/protocol.ts +82 -0
- package/src/retry.ts +28 -0
- package/src/services/artifacts.ts +761 -0
- package/src/services/audit.ts +315 -0
- package/src/services/bazel.ts +415 -0
- package/src/services/bazel_cache.ts +211 -0
- package/src/services/builder.ts +568 -0
- package/src/services/buildkite_jobs.ts +222 -0
- package/src/services/buildkite_queue.ts +445 -0
- package/src/services/compute.ts +2794 -0
- package/src/services/compute_command.ts +212 -0
- package/src/services/compute_observability.ts +428 -0
- package/src/services/compute_storage.ts +1159 -0
- package/src/services/compute_usage.ts +730 -0
- package/src/services/egress.ts +508 -0
- package/src/services/experimental_compute_reservation.ts +1488 -0
- package/src/services/experimental_remote_results.ts +1157 -0
- package/src/services/github_image.ts +293 -0
- package/src/services/github_jobs.ts +381 -0
- package/src/services/github_profile.ts +721 -0
- package/src/services/gradle_cache.ts +263 -0
- package/src/services/httpcache.ts +263 -0
- package/src/services/iam_tenant.ts +1355 -0
- package/src/services/iam_tenant_membership.ts +245 -0
- package/src/services/iam_token.ts +780 -0
- package/src/services/image.ts +594 -0
- package/src/services/index.ts +30 -0
- package/src/services/private_devbox.ts +4217 -0
- package/src/services/private_user_sessions.ts +402 -0
- package/src/services/registry.ts +1234 -0
- package/src/services/testing.ts +386 -0
- package/src/services/vault.ts +514 -0
- package/src/traits.ts +36 -0
|
@@ -0,0 +1,1159 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (buf.build/namespace/cloud -> smithy). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { UnknownNamespaceLabsError } from "../errors.ts";
|
|
7
|
+
import { paginateCursor } from "../pagination.ts";
|
|
8
|
+
import {
|
|
9
|
+
NamespaceLabsProtocol,
|
|
10
|
+
type NamespaceLabsOpError,
|
|
11
|
+
type NamespaceLabsOpContext,
|
|
12
|
+
} from "../protocol.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
import * as T from "../traits.ts";
|
|
15
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
16
|
+
const __s: any[] = [];
|
|
17
|
+
|
|
18
|
+
export type { NamespaceLabsOpError, NamespaceLabsOpContext };
|
|
19
|
+
|
|
20
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
21
|
+
const TELEMETRY = {
|
|
22
|
+
system: "namespacelabs-api",
|
|
23
|
+
responseHeaders: [
|
|
24
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
25
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
26
|
+
],
|
|
27
|
+
prefix: "Namespacelabs",
|
|
28
|
+
service: "StorageService",
|
|
29
|
+
propagate: "w3c",
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
export class AlreadyExists
|
|
33
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
34
|
+
/*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
|
|
35
|
+
message: S.String,
|
|
36
|
+
body: S.Unknown,
|
|
37
|
+
}).pipe(C.withConflictError),
|
|
38
|
+
[{ status: 409, body: { "/code": "already_exists" } }],
|
|
39
|
+
) {}
|
|
40
|
+
|
|
41
|
+
export class FailedPrecondition
|
|
42
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
43
|
+
/*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
|
|
44
|
+
message: S.String,
|
|
45
|
+
body: S.Unknown,
|
|
46
|
+
}).pipe(C.withBadRequestError),
|
|
47
|
+
[{ status: 400, body: { "/code": "failed_precondition" } }],
|
|
48
|
+
) {}
|
|
49
|
+
|
|
50
|
+
export class InvalidArgument
|
|
51
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
52
|
+
/*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
|
|
53
|
+
message: S.String,
|
|
54
|
+
body: S.Unknown,
|
|
55
|
+
}).pipe(C.withBadRequestError),
|
|
56
|
+
[{ status: 400, body: { "/code": "invalid_argument" } }],
|
|
57
|
+
) {}
|
|
58
|
+
|
|
59
|
+
export class NotFound
|
|
60
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
61
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
62
|
+
message: S.String,
|
|
63
|
+
body: S.Unknown,
|
|
64
|
+
}).pipe(C.withBadRequestError),
|
|
65
|
+
[{ status: 404 }],
|
|
66
|
+
) {}
|
|
67
|
+
|
|
68
|
+
export class PermissionDenied
|
|
69
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
70
|
+
/*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
|
|
71
|
+
message: S.String,
|
|
72
|
+
body: S.Unknown,
|
|
73
|
+
}).pipe(C.withAuthError),
|
|
74
|
+
[{ status: 403 }],
|
|
75
|
+
) {}
|
|
76
|
+
|
|
77
|
+
export class ResourceExhausted
|
|
78
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
79
|
+
/*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
|
|
80
|
+
message: S.String,
|
|
81
|
+
body: S.Unknown,
|
|
82
|
+
}).pipe(C.withThrottlingError),
|
|
83
|
+
[{ status: 429 }],
|
|
84
|
+
) {}
|
|
85
|
+
|
|
86
|
+
export class Unauthenticated
|
|
87
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
88
|
+
/*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
|
|
89
|
+
message: S.String,
|
|
90
|
+
body: S.Unknown,
|
|
91
|
+
}).pipe(C.withAuthError),
|
|
92
|
+
[{ status: 401 }],
|
|
93
|
+
) {}
|
|
94
|
+
|
|
95
|
+
export interface DescribePersistentVolumeRequest {
|
|
96
|
+
/** The unique identifier of the persistent volume. */
|
|
97
|
+
id?: string | undefined;
|
|
98
|
+
/** The tag of the persistent volume. */
|
|
99
|
+
tag?: string | undefined;
|
|
100
|
+
/** Optional: The site/region where the volume is located. If provided, only that region is queried. */
|
|
101
|
+
site?: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface PersistentVolume {
|
|
104
|
+
/** The unique identifier of this persistent volume instance. */
|
|
105
|
+
id: string;
|
|
106
|
+
/** Which volume tag does this volume belong to? */
|
|
107
|
+
tag: string;
|
|
108
|
+
/** The timestamp of when the volume was created (in UTC). */
|
|
109
|
+
createdAt?: string | undefined;
|
|
110
|
+
/** The timestamp of when the volume was destroyed (in UTC). Not set if the volume is still active. */
|
|
111
|
+
destroyedAt?: string | undefined;
|
|
112
|
+
/** The requested size of the volume in megabytes. */
|
|
113
|
+
sizeMb: number;
|
|
114
|
+
/** The ID of the compute instance that this volume is attached to. Empty if the volume is not currently attached. */
|
|
115
|
+
attachedTo: string;
|
|
116
|
+
/** The timestamp of when the volume was released/detached (in UTC). Not set if the volume is still attached. */
|
|
117
|
+
releasedAt?: string | undefined;
|
|
118
|
+
/** The reason why the volume was released. */
|
|
119
|
+
releasedReason: string;
|
|
120
|
+
/** The site/region where this volume is located (e.g. "zrh", "ord", "iad"). */
|
|
121
|
+
site: string;
|
|
122
|
+
}
|
|
123
|
+
export interface DescribePersistentVolumeResponse {
|
|
124
|
+
volume?: PersistentVolume | undefined;
|
|
125
|
+
}
|
|
126
|
+
export interface DescribePersistentVolumeSnapshotRequest {
|
|
127
|
+
/** Required: snapshot ID returned by ListPersistentVolumeSnapshots, not a metadata blob ID. */
|
|
128
|
+
id?: string | undefined;
|
|
129
|
+
/** Required: the persistent volume tag the snapshot belongs to. */
|
|
130
|
+
tag?: string | undefined;
|
|
131
|
+
/** Optional: restrict the lookup to this site/region. */
|
|
132
|
+
site?: string | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface PersistentVolumeSnapshot {
|
|
135
|
+
/** The unique identifier of this snapshot. */
|
|
136
|
+
id: string;
|
|
137
|
+
/** The timestamp of when the snapshot was created (in UTC). */
|
|
138
|
+
createdAt?: string | undefined;
|
|
139
|
+
/** The total size of the snapshot in bytes (sum of all pages). */
|
|
140
|
+
usedBytes: string;
|
|
141
|
+
/** The ID of the snapshot this snapshot was created from. Empty if this is the first snapshot. */
|
|
142
|
+
snapshotFrom: string;
|
|
143
|
+
/** The completed snapshot ID. Empty if the snapshot is still in progress. */
|
|
144
|
+
completedSnapshot: string;
|
|
145
|
+
/** The net new bytes added by this snapshot compared to its parent. */
|
|
146
|
+
netNewUsedBytes: string;
|
|
147
|
+
/** The instance ID that this snapshot is attached to. Empty if not attached. */
|
|
148
|
+
attachedInstanceId: string;
|
|
149
|
+
/** The timestamp of when the snapshot was released (detached from the instance). */
|
|
150
|
+
releasedAt?: string | undefined;
|
|
151
|
+
/** The reason why the snapshot was released. */
|
|
152
|
+
releasedReason: string;
|
|
153
|
+
/** The timestamp of when the snapshot was abandoned (in UTC). Abandoned snapshots are excluded when selecting a base snapshot for new volumes. */
|
|
154
|
+
abandonedAt?: string | undefined;
|
|
155
|
+
/** The metadata version of the snapshot (e.g., "v1", "v2"). */
|
|
156
|
+
metadataVersion: string;
|
|
157
|
+
}
|
|
158
|
+
/** Disk-page usage of an immutable snapshot, not guest filesystem usage or billing usage. Excludes metadata, companion files, base images, and storage replication. */
|
|
159
|
+
export interface PersistentVolumeSnapshotUsage {
|
|
160
|
+
snapshotBlobId: string;
|
|
161
|
+
/** Distinct page blobs retained by the snapshot. */
|
|
162
|
+
pageCount: string;
|
|
163
|
+
/** Sum of those blobs' lengths, including overwritten space within each page. Does not subtract sharing with other snapshots. */
|
|
164
|
+
pageBytes: string;
|
|
165
|
+
/** Logical blocks mapped to pages. Holes and blocks supplied by a base image are excluded. */
|
|
166
|
+
allocatedBlockCount: string;
|
|
167
|
+
blockSizeBytes: string;
|
|
168
|
+
/** allocated_block_count * block_size_bytes: effective allocated disk bytes. */
|
|
169
|
+
allocatedBytes: string;
|
|
170
|
+
}
|
|
171
|
+
export interface DescribePersistentVolumeSnapshotResponse {
|
|
172
|
+
snapshot?: PersistentVolumeSnapshot | undefined;
|
|
173
|
+
/** Computed from this snapshot's completed metadata, never live writes. */
|
|
174
|
+
usage?: PersistentVolumeSnapshotUsage | undefined;
|
|
175
|
+
}
|
|
176
|
+
export interface DestroyCacheVolumeRequest {
|
|
177
|
+
/** Required input. */
|
|
178
|
+
tag?: string | undefined;
|
|
179
|
+
}
|
|
180
|
+
export interface DestroyCacheVolumeResponse {}
|
|
181
|
+
export type StringList = Array<string>;
|
|
182
|
+
export type StringMatcherOperator = "OPERATOR_UNKNOWN" | "IS_ANY_OF" | "IS_NOT";
|
|
183
|
+
export interface StringMatcher {
|
|
184
|
+
values?: StringList | undefined;
|
|
185
|
+
op?: StringMatcherOperator | (string & {}) | undefined;
|
|
186
|
+
}
|
|
187
|
+
export interface DestroyPersistentVolumesRequest {
|
|
188
|
+
/** Matcher for volume ID. At least one of id or tag must be specified. */
|
|
189
|
+
id?: StringMatcher | undefined;
|
|
190
|
+
/** Matcher for volume tag. At least one of id or tag must be specified. */
|
|
191
|
+
tag?: StringMatcher | undefined;
|
|
192
|
+
}
|
|
193
|
+
export type PersistentVolumeList = Array<PersistentVolume>;
|
|
194
|
+
export interface DestroyPersistentVolumesResponse {
|
|
195
|
+
/** Metadata of the volumes that were destroyed. */
|
|
196
|
+
destroyedVolumes: PersistentVolumeList;
|
|
197
|
+
}
|
|
198
|
+
export interface DestroyPersistentVolumeSnapshotRequest {
|
|
199
|
+
/** The unique identifier of the snapshot (volume ID). */
|
|
200
|
+
id?: string | undefined;
|
|
201
|
+
/** The tag of the persistent volume. */
|
|
202
|
+
tag?: string | undefined;
|
|
203
|
+
/** Optional: The site/region where the volume is located. If provided, only that region is queried. */
|
|
204
|
+
site?: string | undefined;
|
|
205
|
+
}
|
|
206
|
+
export interface DestroyPersistentVolumeSnapshotResponse {
|
|
207
|
+
/** The snapshot that was abandoned. */
|
|
208
|
+
snapshot?: PersistentVolumeSnapshot | undefined;
|
|
209
|
+
}
|
|
210
|
+
export interface GetCacheVolumeRequest {
|
|
211
|
+
/** The unique identifier of this cache volume instance. Within a single cache volume tag, multiple cache volume generations may exist, and each one is uniquely identified by this id. */
|
|
212
|
+
id?: string | undefined;
|
|
213
|
+
}
|
|
214
|
+
export type VolumeMetadataState =
|
|
215
|
+
| "STATE_UNKNOWN"
|
|
216
|
+
| "STATE_IN_USE"
|
|
217
|
+
| "STATE_AT_REST"
|
|
218
|
+
| "STATE_EXPIRED"
|
|
219
|
+
| "STATE_ABANDONED";
|
|
220
|
+
export type VolumeMetadataGenerationReason =
|
|
221
|
+
| "GENERATION_REASON_UNSPECIFIED"
|
|
222
|
+
| "RESERVATION_NOT_MET"
|
|
223
|
+
| "OTHER";
|
|
224
|
+
export interface VolumeMetadata {
|
|
225
|
+
/** The timestamp of when the volume was created (in UTC). */
|
|
226
|
+
createdAt?: string | undefined;
|
|
227
|
+
/** The timestamp of when the volume was destroyed (in UTC). Not set if the volume is still alive. */
|
|
228
|
+
destroyedAt?: string | undefined;
|
|
229
|
+
/** The requested size of the volume in megabytes. */
|
|
230
|
+
sizeMb: number;
|
|
231
|
+
/** Which state is this volume in right now? */
|
|
232
|
+
state: VolumeMetadataState;
|
|
233
|
+
/** Why this cache volume generation was started. */
|
|
234
|
+
generationReason: VolumeMetadataGenerationReason;
|
|
235
|
+
}
|
|
236
|
+
export interface CachedImage {
|
|
237
|
+
/** The fully qualified image reference (e.g., "docker.io/library/ubuntu:latest"). */
|
|
238
|
+
imageRef: string;
|
|
239
|
+
/** The namespace that the image belongs to. */
|
|
240
|
+
namespace: string;
|
|
241
|
+
/** The timestamp of when the image was first cached (in UTC). */
|
|
242
|
+
createdAt?: string | undefined;
|
|
243
|
+
/** The timestamp of when the cached image was last updated (in UTC). */
|
|
244
|
+
updatedAt?: string | undefined;
|
|
245
|
+
/** The size of the image in bytes (unpacked, on-disk size). */
|
|
246
|
+
sizeBytes: string;
|
|
247
|
+
}
|
|
248
|
+
export type CachedImageList = Array<CachedImage>;
|
|
249
|
+
export interface ContainerImageCache {
|
|
250
|
+
/** Whether container image caching is enabled for this volume. */
|
|
251
|
+
enabled: boolean;
|
|
252
|
+
/** The list of container images currently cached in this volume. */
|
|
253
|
+
cachedImages: CachedImageList;
|
|
254
|
+
/** The list of container images that were garbage collected from this volume. */
|
|
255
|
+
garbageCollectedImages: CachedImageList;
|
|
256
|
+
}
|
|
257
|
+
export interface PathUtilization {
|
|
258
|
+
/** What framework/purpose is this cache path used for? */
|
|
259
|
+
cacheFramework: string;
|
|
260
|
+
/** A series of bind mounts that have been applied to this cache path. */
|
|
261
|
+
mountTarget: StringList;
|
|
262
|
+
/** Name of the system that configured this cache path usage. */
|
|
263
|
+
source: string;
|
|
264
|
+
/** The utilization of this path in the Cache Volume in megabytes. */
|
|
265
|
+
utilizationMb: string;
|
|
266
|
+
/** When was this usage recorded. */
|
|
267
|
+
createdAt?: string | undefined;
|
|
268
|
+
}
|
|
269
|
+
export type PathUtilizationMap = { [key: string]: PathUtilization | undefined };
|
|
270
|
+
export interface VolumeAttachment {
|
|
271
|
+
/** The ID of the compute instance that this volume is attached to. A volume can be attached to at most one instance at a time. Empty, if the volume is not attached to any compute instance. */
|
|
272
|
+
attachedTo: string;
|
|
273
|
+
/** Deprecated, use `attached_at` instead. */
|
|
274
|
+
lastAttachedAt?: string | undefined;
|
|
275
|
+
/** Deprecated, use `detached_at` instead. */
|
|
276
|
+
lastDetachedAt?: string | undefined;
|
|
277
|
+
/** The timestamp of when the volume was attached to the compute instance (in UTC). */
|
|
278
|
+
attachedAt?: string | undefined;
|
|
279
|
+
/** The amount of data already stored on the volume when attaching it in megabytes. */
|
|
280
|
+
usedMbWhenAttached: number;
|
|
281
|
+
/** The timestamp of when the volume was detached from the compute instance (in UTC). If the volume is still attached to the instance, this field will not be set. */
|
|
282
|
+
detachedAt?: string | undefined;
|
|
283
|
+
/** The amount of data stored on the volume when detaching it in megabytes. If the volume is still attached to the instance, this field will not be set. */
|
|
284
|
+
usedMbWhenDetached: number;
|
|
285
|
+
/** If unset, Container Image caching is not enabled. */
|
|
286
|
+
containerImageCache?: ContainerImageCache | undefined;
|
|
287
|
+
/** Utilization metadata per path in the cache volume. This data is only populated after the volume is detached. To enable path utilization tracking, provide `CacheMetadata` to Namespace by producing a JSON file inside the Cache Volume at the path `.ns/cache-metadata.json`. */
|
|
288
|
+
pathUtilization: PathUtilizationMap;
|
|
289
|
+
}
|
|
290
|
+
export interface CacheVolume {
|
|
291
|
+
/** The unique identifier of this cache volume instance. Within a single cache volume tag, multiple cache volume generations may exist, and each one is uniquely identified by this id. */
|
|
292
|
+
id: string;
|
|
293
|
+
/** Which volume tag does this volume belong to? */
|
|
294
|
+
tag: string;
|
|
295
|
+
/** Metadata includes the lifecycle timestamps of the volume, as well as any other values provided at creation time, e.g. the volume size. */
|
|
296
|
+
metadata?: VolumeMetadata | undefined;
|
|
297
|
+
/** Volumes are attached once to instances. Attachment captures the lifecycle of that relationship, including which compute instance the volume was attached to, when it was attached, and detached. */
|
|
298
|
+
attachment?: VolumeAttachment | undefined;
|
|
299
|
+
}
|
|
300
|
+
export interface GetCacheVolumeResponse {
|
|
301
|
+
cacheVolume?: CacheVolume | undefined;
|
|
302
|
+
}
|
|
303
|
+
export interface GetVolumeTagSummaryRequest {
|
|
304
|
+
/** The name of the tag. */
|
|
305
|
+
tag?: string | undefined;
|
|
306
|
+
}
|
|
307
|
+
export type CacheVolumeList = Array<CacheVolume>;
|
|
308
|
+
export interface TagSummary {
|
|
309
|
+
/** The name of the tag. */
|
|
310
|
+
tag: string;
|
|
311
|
+
/** The requested size of the volume tag in megabytes. */
|
|
312
|
+
sizeMb: number;
|
|
313
|
+
/** A series of all active generations at rest that belong to this tag. These generations are candidates to clone new Cache Volumes from. The list is sorted chronologically, starting with the oldest available generation. Deprecated, use `generations` instead. */
|
|
314
|
+
atRest: CacheVolumeList;
|
|
315
|
+
/** A series of all generations in use that belong to this tag. Once detached, these generations get stored at rest and become candidates to clone new Cache Volumes from. The list is sorted chronologically, starting with the oldest available generation. Deprecated, use `generations` instead. */
|
|
316
|
+
inUse: CacheVolumeList;
|
|
317
|
+
/** A series of generations that belong to this tag. This list contains - all active generations at rest - all generations in use - the latest expired/abandoned generations (potentially incomplete) The list is sorted chronologically, starting with the oldest available generation. */
|
|
318
|
+
generations: CacheVolumeList;
|
|
319
|
+
/** The timestamp of the first generation (in UTC). Reset when released. Note: this field is not populated yet. */
|
|
320
|
+
createdAt?: string | undefined;
|
|
321
|
+
}
|
|
322
|
+
export interface GetVolumeTagSummaryResponse {
|
|
323
|
+
summary?: TagSummary | undefined;
|
|
324
|
+
}
|
|
325
|
+
export interface ListCacheVolumesRequest {}
|
|
326
|
+
export interface ListCacheVolumesResponse {
|
|
327
|
+
cacheVolume: CacheVolumeList;
|
|
328
|
+
}
|
|
329
|
+
export interface ListPersistentVolumesRequest {
|
|
330
|
+
/** Filter by tag. If not provided, all persistent volumes are returned. */
|
|
331
|
+
tag?: string | undefined;
|
|
332
|
+
/** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
|
|
333
|
+
paginationCursor?: string | undefined;
|
|
334
|
+
/** The maximum number of entries to return as part of this ListPersistentVolumes request. A maximum number of entries may also be specified when `pagination_cursor` is set. We won't return more than `max_entries`, but may return fewer. */
|
|
335
|
+
maxEntries?: string | undefined;
|
|
336
|
+
/** Filter by site/region. If not provided, all sites are queried. */
|
|
337
|
+
site?: StringMatcher | undefined;
|
|
338
|
+
}
|
|
339
|
+
export interface ListPersistentVolumesResponse {
|
|
340
|
+
volumes: PersistentVolumeList;
|
|
341
|
+
/** If set, there are additional results. Pass the same cursor to a subsequent ListPersistentVolumes call to continue fetching results. */
|
|
342
|
+
paginationCursor: string;
|
|
343
|
+
}
|
|
344
|
+
export interface ListPersistentVolumeSnapshotsRequest {
|
|
345
|
+
/** The unique identifier of the persistent volume. */
|
|
346
|
+
id?: string | undefined;
|
|
347
|
+
/** The tag of the persistent volume. */
|
|
348
|
+
tag?: string | undefined;
|
|
349
|
+
/** Optional: The site/region where the volume is located. If provided, only that region is queried. */
|
|
350
|
+
site?: string | undefined;
|
|
351
|
+
}
|
|
352
|
+
export type PersistentVolumeSnapshotList = Array<PersistentVolumeSnapshot>;
|
|
353
|
+
export interface ListPersistentVolumeSnapshotsResponse {
|
|
354
|
+
snapshots: PersistentVolumeSnapshotList;
|
|
355
|
+
}
|
|
356
|
+
export interface ListVolumeTagSummariesRequest {}
|
|
357
|
+
export type TagSummaryList = Array<TagSummary>;
|
|
358
|
+
export interface ListVolumeTagSummariesResponse {
|
|
359
|
+
summaries: TagSummaryList;
|
|
360
|
+
}
|
|
361
|
+
export type DescribePersistentVolumeError =
|
|
362
|
+
| InvalidArgument
|
|
363
|
+
| FailedPrecondition
|
|
364
|
+
| Unauthenticated
|
|
365
|
+
| PermissionDenied
|
|
366
|
+
| NotFound
|
|
367
|
+
| AlreadyExists
|
|
368
|
+
| ResourceExhausted
|
|
369
|
+
| NamespaceLabsOpError;
|
|
370
|
+
/** Returns details of a Persistent Volume. ### Errors - If the volume does not exist, a `NotFound` status is returned. */
|
|
371
|
+
export const describePersistentVolume: API.OperationMethod<
|
|
372
|
+
DescribePersistentVolumeRequest,
|
|
373
|
+
DescribePersistentVolumeResponse,
|
|
374
|
+
DescribePersistentVolumeError,
|
|
375
|
+
NamespaceLabsOpContext
|
|
376
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
377
|
+
input: __S(104, __c13, 0) as any as S.Schema<DescribePersistentVolumeRequest>,
|
|
378
|
+
output: __S(105, __c13, 1) as any as S.Schema<DescribePersistentVolumeResponse>,
|
|
379
|
+
errors: [
|
|
380
|
+
InvalidArgument,
|
|
381
|
+
FailedPrecondition,
|
|
382
|
+
Unauthenticated,
|
|
383
|
+
PermissionDenied,
|
|
384
|
+
NotFound,
|
|
385
|
+
AlreadyExists,
|
|
386
|
+
ResourceExhausted,
|
|
387
|
+
UnknownNamespaceLabsError,
|
|
388
|
+
],
|
|
389
|
+
protocol: NamespaceLabsProtocol,
|
|
390
|
+
retry: Retry.Retry,
|
|
391
|
+
telemetry: TELEMETRY,
|
|
392
|
+
span: "DescribePersistentVolume",
|
|
393
|
+
}));
|
|
394
|
+
|
|
395
|
+
export type DescribePersistentVolumeSnapshotError =
|
|
396
|
+
| InvalidArgument
|
|
397
|
+
| FailedPrecondition
|
|
398
|
+
| Unauthenticated
|
|
399
|
+
| PermissionDenied
|
|
400
|
+
| NotFound
|
|
401
|
+
| AlreadyExists
|
|
402
|
+
| ResourceExhausted
|
|
403
|
+
| NamespaceLabsOpError;
|
|
404
|
+
/** Returns details and computed disk-page usage of a specific completed snapshot. Returns NotFound if the snapshot does not belong to this tenant and tag, or FailedPrecondition if the snapshot has not completed. */
|
|
405
|
+
export const describePersistentVolumeSnapshot: API.OperationMethod<
|
|
406
|
+
DescribePersistentVolumeSnapshotRequest,
|
|
407
|
+
DescribePersistentVolumeSnapshotResponse,
|
|
408
|
+
DescribePersistentVolumeSnapshotError,
|
|
409
|
+
NamespaceLabsOpContext
|
|
410
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
411
|
+
input: __S(120, __c15, 0) as any as S.Schema<DescribePersistentVolumeSnapshotRequest>,
|
|
412
|
+
output: __S(122, __c15, 2) as any as S.Schema<DescribePersistentVolumeSnapshotResponse>,
|
|
413
|
+
errors: [
|
|
414
|
+
InvalidArgument,
|
|
415
|
+
FailedPrecondition,
|
|
416
|
+
Unauthenticated,
|
|
417
|
+
PermissionDenied,
|
|
418
|
+
NotFound,
|
|
419
|
+
AlreadyExists,
|
|
420
|
+
ResourceExhausted,
|
|
421
|
+
UnknownNamespaceLabsError,
|
|
422
|
+
],
|
|
423
|
+
protocol: NamespaceLabsProtocol,
|
|
424
|
+
retry: Retry.Retry,
|
|
425
|
+
telemetry: TELEMETRY,
|
|
426
|
+
span: "DescribePersistentVolumeSnapshot",
|
|
427
|
+
}));
|
|
428
|
+
|
|
429
|
+
export type DestroyCacheVolumeError =
|
|
430
|
+
| InvalidArgument
|
|
431
|
+
| FailedPrecondition
|
|
432
|
+
| Unauthenticated
|
|
433
|
+
| PermissionDenied
|
|
434
|
+
| NotFound
|
|
435
|
+
| AlreadyExists
|
|
436
|
+
| ResourceExhausted
|
|
437
|
+
| NamespaceLabsOpError;
|
|
438
|
+
/** Release all Cache Volumes belonging to a selected `tag`. This operation cannot be undone. ### Errors - If no volume tag is provided, a `InvalidArgument` status is returned. - If the provided volume tag does not match any known volume tag, a `NotFound` status is returned. */
|
|
439
|
+
export const destroyCacheVolume: API.OperationMethod<
|
|
440
|
+
DestroyCacheVolumeRequest,
|
|
441
|
+
DestroyCacheVolumeResponse,
|
|
442
|
+
DestroyCacheVolumeError,
|
|
443
|
+
NamespaceLabsOpContext
|
|
444
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
445
|
+
input: __S(136, __c17, 0) as any as S.Schema<DestroyCacheVolumeRequest>,
|
|
446
|
+
output: __S(137, __c17, 1) as any as S.Schema<DestroyCacheVolumeResponse>,
|
|
447
|
+
errors: [
|
|
448
|
+
InvalidArgument,
|
|
449
|
+
FailedPrecondition,
|
|
450
|
+
Unauthenticated,
|
|
451
|
+
PermissionDenied,
|
|
452
|
+
NotFound,
|
|
453
|
+
AlreadyExists,
|
|
454
|
+
ResourceExhausted,
|
|
455
|
+
UnknownNamespaceLabsError,
|
|
456
|
+
],
|
|
457
|
+
protocol: NamespaceLabsProtocol,
|
|
458
|
+
retry: Retry.Retry,
|
|
459
|
+
telemetry: TELEMETRY,
|
|
460
|
+
span: "DestroyCacheVolume",
|
|
461
|
+
}));
|
|
462
|
+
|
|
463
|
+
export type DestroyPersistentVolumesError =
|
|
464
|
+
| InvalidArgument
|
|
465
|
+
| FailedPrecondition
|
|
466
|
+
| Unauthenticated
|
|
467
|
+
| PermissionDenied
|
|
468
|
+
| NotFound
|
|
469
|
+
| AlreadyExists
|
|
470
|
+
| ResourceExhausted
|
|
471
|
+
| NamespaceLabsOpError;
|
|
472
|
+
/** Destroys Persistent Volumes matching the given criteria. Returns the metadata of destroyed volumes. At least one matcher (id or tag) must be specified. For safety, the IS_NOT operator is denied. ### Errors - If no matcher is provided, a `InvalidArgument` status is returned. - If IS_NOT operator is used, a `InvalidArgument` status is returned. - If no volumes are found matching criteria, a `NotFound` status is returned. */
|
|
473
|
+
export const destroyPersistentVolumes: API.OperationMethod<
|
|
474
|
+
DestroyPersistentVolumesRequest,
|
|
475
|
+
DestroyPersistentVolumesResponse,
|
|
476
|
+
DestroyPersistentVolumesError,
|
|
477
|
+
NamespaceLabsOpContext
|
|
478
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
479
|
+
input: __S(0, __c0, 0) as any as S.Schema<DestroyPersistentVolumesRequest>,
|
|
480
|
+
output: __S(1, __c0, 1) as any as S.Schema<DestroyPersistentVolumesResponse>,
|
|
481
|
+
errors: [
|
|
482
|
+
InvalidArgument,
|
|
483
|
+
FailedPrecondition,
|
|
484
|
+
Unauthenticated,
|
|
485
|
+
PermissionDenied,
|
|
486
|
+
NotFound,
|
|
487
|
+
AlreadyExists,
|
|
488
|
+
ResourceExhausted,
|
|
489
|
+
UnknownNamespaceLabsError,
|
|
490
|
+
],
|
|
491
|
+
protocol: NamespaceLabsProtocol,
|
|
492
|
+
retry: Retry.Retry,
|
|
493
|
+
telemetry: TELEMETRY,
|
|
494
|
+
span: "DestroyPersistentVolumes",
|
|
495
|
+
}));
|
|
496
|
+
|
|
497
|
+
export type DestroyPersistentVolumeSnapshotError =
|
|
498
|
+
| InvalidArgument
|
|
499
|
+
| FailedPrecondition
|
|
500
|
+
| Unauthenticated
|
|
501
|
+
| PermissionDenied
|
|
502
|
+
| NotFound
|
|
503
|
+
| AlreadyExists
|
|
504
|
+
| ResourceExhausted
|
|
505
|
+
| NamespaceLabsOpError;
|
|
506
|
+
/** Marks a persistent volume snapshot as abandoned. Abandoned snapshots are excluded when selecting a base snapshot for new volumes. This is useful for marking corrupted or unwanted snapshots without destroying the volume itself. ### Errors - If the snapshot does not exist, a `NotFound` status is returned. - If the snapshot is still attached to an instance, a `FailedPrecondition` status is returned. */
|
|
507
|
+
export const destroyPersistentVolumeSnapshot: API.OperationMethod<
|
|
508
|
+
DestroyPersistentVolumeSnapshotRequest,
|
|
509
|
+
DestroyPersistentVolumeSnapshotResponse,
|
|
510
|
+
DestroyPersistentVolumeSnapshotError,
|
|
511
|
+
NamespaceLabsOpContext
|
|
512
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
513
|
+
input: __S(24, __c3, 0) as any as S.Schema<DestroyPersistentVolumeSnapshotRequest>,
|
|
514
|
+
output: __S(25, __c3, 1) as any as S.Schema<DestroyPersistentVolumeSnapshotResponse>,
|
|
515
|
+
errors: [
|
|
516
|
+
InvalidArgument,
|
|
517
|
+
FailedPrecondition,
|
|
518
|
+
Unauthenticated,
|
|
519
|
+
PermissionDenied,
|
|
520
|
+
NotFound,
|
|
521
|
+
AlreadyExists,
|
|
522
|
+
ResourceExhausted,
|
|
523
|
+
UnknownNamespaceLabsError,
|
|
524
|
+
],
|
|
525
|
+
protocol: NamespaceLabsProtocol,
|
|
526
|
+
retry: Retry.Retry,
|
|
527
|
+
telemetry: TELEMETRY,
|
|
528
|
+
span: "DestroyPersistentVolumeSnapshot",
|
|
529
|
+
}));
|
|
530
|
+
|
|
531
|
+
export type GetCacheVolumeError =
|
|
532
|
+
| InvalidArgument
|
|
533
|
+
| FailedPrecondition
|
|
534
|
+
| Unauthenticated
|
|
535
|
+
| PermissionDenied
|
|
536
|
+
| NotFound
|
|
537
|
+
| AlreadyExists
|
|
538
|
+
| ResourceExhausted
|
|
539
|
+
| NamespaceLabsOpError;
|
|
540
|
+
/** Returns a Cache Volume. */
|
|
541
|
+
export const getCacheVolume: API.OperationMethod<
|
|
542
|
+
GetCacheVolumeRequest,
|
|
543
|
+
GetCacheVolumeResponse,
|
|
544
|
+
GetCacheVolumeError,
|
|
545
|
+
NamespaceLabsOpContext
|
|
546
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
547
|
+
input: __S(32, __c4, 0) as any as S.Schema<GetCacheVolumeRequest>,
|
|
548
|
+
output: __S(33, __c4, 1) as any as S.Schema<GetCacheVolumeResponse>,
|
|
549
|
+
errors: [
|
|
550
|
+
InvalidArgument,
|
|
551
|
+
FailedPrecondition,
|
|
552
|
+
Unauthenticated,
|
|
553
|
+
PermissionDenied,
|
|
554
|
+
NotFound,
|
|
555
|
+
AlreadyExists,
|
|
556
|
+
ResourceExhausted,
|
|
557
|
+
UnknownNamespaceLabsError,
|
|
558
|
+
],
|
|
559
|
+
protocol: NamespaceLabsProtocol,
|
|
560
|
+
retry: Retry.Retry,
|
|
561
|
+
telemetry: TELEMETRY,
|
|
562
|
+
span: "GetCacheVolume",
|
|
563
|
+
}));
|
|
564
|
+
|
|
565
|
+
export type GetVolumeTagSummaryError =
|
|
566
|
+
| InvalidArgument
|
|
567
|
+
| FailedPrecondition
|
|
568
|
+
| Unauthenticated
|
|
569
|
+
| PermissionDenied
|
|
570
|
+
| NotFound
|
|
571
|
+
| AlreadyExists
|
|
572
|
+
| ResourceExhausted
|
|
573
|
+
| NamespaceLabsOpError;
|
|
574
|
+
/** Produces a summary for a Cache Volume tag used by this tenant. */
|
|
575
|
+
export const getVolumeTagSummary: API.OperationMethod<
|
|
576
|
+
GetVolumeTagSummaryRequest,
|
|
577
|
+
GetVolumeTagSummaryResponse,
|
|
578
|
+
GetVolumeTagSummaryError,
|
|
579
|
+
NamespaceLabsOpContext
|
|
580
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
581
|
+
input: __S(48, __c6, 0) as any as S.Schema<GetVolumeTagSummaryRequest>,
|
|
582
|
+
output: __S(49, __c6, 1) as any as S.Schema<GetVolumeTagSummaryResponse>,
|
|
583
|
+
errors: [
|
|
584
|
+
InvalidArgument,
|
|
585
|
+
FailedPrecondition,
|
|
586
|
+
Unauthenticated,
|
|
587
|
+
PermissionDenied,
|
|
588
|
+
NotFound,
|
|
589
|
+
AlreadyExists,
|
|
590
|
+
ResourceExhausted,
|
|
591
|
+
UnknownNamespaceLabsError,
|
|
592
|
+
],
|
|
593
|
+
protocol: NamespaceLabsProtocol,
|
|
594
|
+
retry: Retry.Retry,
|
|
595
|
+
telemetry: TELEMETRY,
|
|
596
|
+
span: "GetVolumeTagSummary",
|
|
597
|
+
}));
|
|
598
|
+
|
|
599
|
+
export type ListCacheVolumesError =
|
|
600
|
+
| InvalidArgument
|
|
601
|
+
| FailedPrecondition
|
|
602
|
+
| Unauthenticated
|
|
603
|
+
| PermissionDenied
|
|
604
|
+
| NotFound
|
|
605
|
+
| AlreadyExists
|
|
606
|
+
| ResourceExhausted
|
|
607
|
+
| NamespaceLabsOpError;
|
|
608
|
+
/** Returns a list of all Cache Volumes used by this tenant. */
|
|
609
|
+
export const listCacheVolumes: API.OperationMethod<
|
|
610
|
+
ListCacheVolumesRequest,
|
|
611
|
+
ListCacheVolumesResponse,
|
|
612
|
+
ListCacheVolumesError,
|
|
613
|
+
NamespaceLabsOpContext
|
|
614
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
615
|
+
input: __S(72, __c9, 0) as any as S.Schema<ListCacheVolumesRequest>,
|
|
616
|
+
output: __S(73, __c9, 1) as any as S.Schema<ListCacheVolumesResponse>,
|
|
617
|
+
errors: [
|
|
618
|
+
InvalidArgument,
|
|
619
|
+
FailedPrecondition,
|
|
620
|
+
Unauthenticated,
|
|
621
|
+
PermissionDenied,
|
|
622
|
+
NotFound,
|
|
623
|
+
AlreadyExists,
|
|
624
|
+
ResourceExhausted,
|
|
625
|
+
UnknownNamespaceLabsError,
|
|
626
|
+
],
|
|
627
|
+
protocol: NamespaceLabsProtocol,
|
|
628
|
+
retry: Retry.Retry,
|
|
629
|
+
telemetry: TELEMETRY,
|
|
630
|
+
span: "ListCacheVolumes",
|
|
631
|
+
}));
|
|
632
|
+
|
|
633
|
+
export type ListPersistentVolumesError =
|
|
634
|
+
| InvalidArgument
|
|
635
|
+
| FailedPrecondition
|
|
636
|
+
| Unauthenticated
|
|
637
|
+
| PermissionDenied
|
|
638
|
+
| NotFound
|
|
639
|
+
| AlreadyExists
|
|
640
|
+
| ResourceExhausted
|
|
641
|
+
| NamespaceLabsOpError;
|
|
642
|
+
/** Returns a list of all Persistent Volumes for a given tag. */
|
|
643
|
+
export const listPersistentVolumes: API.PaginatedOperationMethod<
|
|
644
|
+
ListPersistentVolumesRequest,
|
|
645
|
+
ListPersistentVolumesResponse,
|
|
646
|
+
ListPersistentVolumesError,
|
|
647
|
+
NamespaceLabsOpContext,
|
|
648
|
+
PersistentVolume
|
|
649
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
650
|
+
() => ({
|
|
651
|
+
input: __S(80, __c10, 0) as any as S.Schema<ListPersistentVolumesRequest>,
|
|
652
|
+
output: __S(81, __c10, 1) as any as S.Schema<ListPersistentVolumesResponse>,
|
|
653
|
+
errors: [
|
|
654
|
+
InvalidArgument,
|
|
655
|
+
FailedPrecondition,
|
|
656
|
+
Unauthenticated,
|
|
657
|
+
PermissionDenied,
|
|
658
|
+
NotFound,
|
|
659
|
+
AlreadyExists,
|
|
660
|
+
ResourceExhausted,
|
|
661
|
+
UnknownNamespaceLabsError,
|
|
662
|
+
],
|
|
663
|
+
protocol: NamespaceLabsProtocol,
|
|
664
|
+
retry: Retry.Retry,
|
|
665
|
+
telemetry: TELEMETRY,
|
|
666
|
+
span: "ListPersistentVolumes",
|
|
667
|
+
pagination: {
|
|
668
|
+
mode: "cursor",
|
|
669
|
+
inputToken: "paginationCursor",
|
|
670
|
+
outputToken: "paginationCursor",
|
|
671
|
+
items: "volumes",
|
|
672
|
+
} as const,
|
|
673
|
+
}),
|
|
674
|
+
paginateCursor,
|
|
675
|
+
) as any;
|
|
676
|
+
|
|
677
|
+
export type ListPersistentVolumeSnapshotsError =
|
|
678
|
+
| InvalidArgument
|
|
679
|
+
| FailedPrecondition
|
|
680
|
+
| Unauthenticated
|
|
681
|
+
| PermissionDenied
|
|
682
|
+
| NotFound
|
|
683
|
+
| AlreadyExists
|
|
684
|
+
| ResourceExhausted
|
|
685
|
+
| NamespaceLabsOpError;
|
|
686
|
+
/** Returns all snapshots of a Persistent Volume. */
|
|
687
|
+
export const listPersistentVolumeSnapshots: API.OperationMethod<
|
|
688
|
+
ListPersistentVolumeSnapshotsRequest,
|
|
689
|
+
ListPersistentVolumeSnapshotsResponse,
|
|
690
|
+
ListPersistentVolumeSnapshotsError,
|
|
691
|
+
NamespaceLabsOpContext
|
|
692
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
693
|
+
input: __S(88, __c11, 0) as any as S.Schema<ListPersistentVolumeSnapshotsRequest>,
|
|
694
|
+
output: __S(90, __c11, 2) as any as S.Schema<ListPersistentVolumeSnapshotsResponse>,
|
|
695
|
+
errors: [
|
|
696
|
+
InvalidArgument,
|
|
697
|
+
FailedPrecondition,
|
|
698
|
+
Unauthenticated,
|
|
699
|
+
PermissionDenied,
|
|
700
|
+
NotFound,
|
|
701
|
+
AlreadyExists,
|
|
702
|
+
ResourceExhausted,
|
|
703
|
+
UnknownNamespaceLabsError,
|
|
704
|
+
],
|
|
705
|
+
protocol: NamespaceLabsProtocol,
|
|
706
|
+
retry: Retry.Retry,
|
|
707
|
+
telemetry: TELEMETRY,
|
|
708
|
+
span: "ListPersistentVolumeSnapshots",
|
|
709
|
+
}));
|
|
710
|
+
|
|
711
|
+
export type ListVolumeTagSummariesError =
|
|
712
|
+
| InvalidArgument
|
|
713
|
+
| FailedPrecondition
|
|
714
|
+
| Unauthenticated
|
|
715
|
+
| PermissionDenied
|
|
716
|
+
| NotFound
|
|
717
|
+
| AlreadyExists
|
|
718
|
+
| ResourceExhausted
|
|
719
|
+
| NamespaceLabsOpError;
|
|
720
|
+
/** Produces a summary for each Cache Volume tag used by this tenant. */
|
|
721
|
+
export const listVolumeTagSummaries: API.OperationMethod<
|
|
722
|
+
ListVolumeTagSummariesRequest,
|
|
723
|
+
ListVolumeTagSummariesResponse,
|
|
724
|
+
ListVolumeTagSummariesError,
|
|
725
|
+
NamespaceLabsOpContext
|
|
726
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
727
|
+
input: __S(96, __c12, 0) as any as S.Schema<ListVolumeTagSummariesRequest>,
|
|
728
|
+
output: __S(98, __c12, 2) as any as S.Schema<ListVolumeTagSummariesResponse>,
|
|
729
|
+
errors: [
|
|
730
|
+
InvalidArgument,
|
|
731
|
+
FailedPrecondition,
|
|
732
|
+
Unauthenticated,
|
|
733
|
+
PermissionDenied,
|
|
734
|
+
NotFound,
|
|
735
|
+
AlreadyExists,
|
|
736
|
+
ResourceExhausted,
|
|
737
|
+
UnknownNamespaceLabsError,
|
|
738
|
+
],
|
|
739
|
+
protocol: NamespaceLabsProtocol,
|
|
740
|
+
retry: Retry.Retry,
|
|
741
|
+
telemetry: TELEMETRY,
|
|
742
|
+
span: "ListVolumeTagSummaries",
|
|
743
|
+
}));
|
|
744
|
+
|
|
745
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
746
|
+
function __c0(j: number): any {
|
|
747
|
+
switch (j) {
|
|
748
|
+
case 0:
|
|
749
|
+
return S.suspend(() =>
|
|
750
|
+
S.Struct({
|
|
751
|
+
id: S.optional(__S(16, __c2, 0)),
|
|
752
|
+
tag: S.optional(__S(16, __c2, 0)),
|
|
753
|
+
}).pipe(
|
|
754
|
+
T.Http({
|
|
755
|
+
method: "POST",
|
|
756
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/DestroyPersistentVolumes",
|
|
757
|
+
code: 200,
|
|
758
|
+
}),
|
|
759
|
+
),
|
|
760
|
+
).annotate({ identifier: "DestroyPersistentVolumesRequest" });
|
|
761
|
+
case 1:
|
|
762
|
+
return S.suspend(() =>
|
|
763
|
+
S.Struct({
|
|
764
|
+
destroyedVolumes: __S(17, __c2, 1),
|
|
765
|
+
}),
|
|
766
|
+
).annotate({ identifier: "DestroyPersistentVolumesResponse" });
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
function __c1(j: number): any {
|
|
770
|
+
switch (j) {
|
|
771
|
+
case 0:
|
|
772
|
+
return S.Array(S.String);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
function __c2(j: number): any {
|
|
776
|
+
switch (j) {
|
|
777
|
+
case 0:
|
|
778
|
+
return S.suspend(() =>
|
|
779
|
+
S.Struct({
|
|
780
|
+
values: S.optional(__S(8, __c1, 0)),
|
|
781
|
+
op: S.optional(S.String),
|
|
782
|
+
}),
|
|
783
|
+
).annotate({ identifier: "StringMatcher" });
|
|
784
|
+
case 1:
|
|
785
|
+
return S.Array(__S(112, __c14, 0));
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function __c3(j: number): any {
|
|
789
|
+
switch (j) {
|
|
790
|
+
case 0:
|
|
791
|
+
return S.suspend(() =>
|
|
792
|
+
S.Struct({
|
|
793
|
+
id: S.optional(S.String),
|
|
794
|
+
tag: S.optional(S.String),
|
|
795
|
+
site: S.optional(S.String),
|
|
796
|
+
}).pipe(
|
|
797
|
+
T.Http({
|
|
798
|
+
method: "POST",
|
|
799
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/DestroyPersistentVolumeSnapshot",
|
|
800
|
+
code: 200,
|
|
801
|
+
}),
|
|
802
|
+
),
|
|
803
|
+
).annotate({ identifier: "DestroyPersistentVolumeSnapshotRequest" });
|
|
804
|
+
case 1:
|
|
805
|
+
return S.suspend(() =>
|
|
806
|
+
S.Struct({
|
|
807
|
+
snapshot: S.optional(__S(128, __c16, 0)),
|
|
808
|
+
}),
|
|
809
|
+
).annotate({ identifier: "DestroyPersistentVolumeSnapshotResponse" });
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
function __c4(j: number): any {
|
|
813
|
+
switch (j) {
|
|
814
|
+
case 0:
|
|
815
|
+
return S.suspend(() =>
|
|
816
|
+
S.Struct({
|
|
817
|
+
id: S.optional(S.String),
|
|
818
|
+
}).pipe(
|
|
819
|
+
T.Http({
|
|
820
|
+
method: "POST",
|
|
821
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/GetCacheVolume",
|
|
822
|
+
code: 200,
|
|
823
|
+
}),
|
|
824
|
+
),
|
|
825
|
+
).annotate({ identifier: "GetCacheVolumeRequest" });
|
|
826
|
+
case 1:
|
|
827
|
+
return S.suspend(() =>
|
|
828
|
+
S.Struct({
|
|
829
|
+
cacheVolume: S.optional(__S(47, __c5, 7)),
|
|
830
|
+
}),
|
|
831
|
+
).annotate({ identifier: "GetCacheVolumeResponse" });
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
function __c5(j: number): any {
|
|
835
|
+
switch (j) {
|
|
836
|
+
case 0:
|
|
837
|
+
return S.suspend(() =>
|
|
838
|
+
S.Struct({
|
|
839
|
+
createdAt: S.optional(S.String),
|
|
840
|
+
destroyedAt: S.optional(S.String),
|
|
841
|
+
sizeMb: S.Number,
|
|
842
|
+
state: S.String,
|
|
843
|
+
generationReason: S.String,
|
|
844
|
+
}),
|
|
845
|
+
).annotate({ identifier: "VolumeMetadata" });
|
|
846
|
+
case 1:
|
|
847
|
+
return S.suspend(() =>
|
|
848
|
+
S.Struct({
|
|
849
|
+
imageRef: S.String,
|
|
850
|
+
namespace: S.String,
|
|
851
|
+
createdAt: S.optional(S.String),
|
|
852
|
+
updatedAt: S.optional(S.String),
|
|
853
|
+
sizeBytes: S.String,
|
|
854
|
+
}),
|
|
855
|
+
).annotate({ identifier: "CachedImage" });
|
|
856
|
+
case 2:
|
|
857
|
+
return S.Array(__S(41, __c5, 1));
|
|
858
|
+
case 3:
|
|
859
|
+
return S.suspend(() =>
|
|
860
|
+
S.Struct({
|
|
861
|
+
enabled: S.Boolean,
|
|
862
|
+
cachedImages: __S(42, __c5, 2),
|
|
863
|
+
garbageCollectedImages: __S(42, __c5, 2),
|
|
864
|
+
}),
|
|
865
|
+
).annotate({ identifier: "ContainerImageCache" });
|
|
866
|
+
case 4:
|
|
867
|
+
return S.suspend(() =>
|
|
868
|
+
S.Struct({
|
|
869
|
+
cacheFramework: S.String,
|
|
870
|
+
mountTarget: __S(8, __c1, 0),
|
|
871
|
+
source: S.String,
|
|
872
|
+
utilizationMb: S.String,
|
|
873
|
+
createdAt: S.optional(S.String),
|
|
874
|
+
}),
|
|
875
|
+
).annotate({ identifier: "PathUtilization" });
|
|
876
|
+
case 5:
|
|
877
|
+
return S.Record(S.String, __S(44, __c5, 4));
|
|
878
|
+
case 6:
|
|
879
|
+
return S.suspend(() =>
|
|
880
|
+
S.Struct({
|
|
881
|
+
attachedTo: S.String,
|
|
882
|
+
lastAttachedAt: S.optional(S.String),
|
|
883
|
+
lastDetachedAt: S.optional(S.String),
|
|
884
|
+
attachedAt: S.optional(S.String),
|
|
885
|
+
usedMbWhenAttached: S.Number,
|
|
886
|
+
detachedAt: S.optional(S.String),
|
|
887
|
+
usedMbWhenDetached: S.Number,
|
|
888
|
+
containerImageCache: S.optional(__S(43, __c5, 3)),
|
|
889
|
+
pathUtilization: __S(45, __c5, 5),
|
|
890
|
+
}),
|
|
891
|
+
).annotate({ identifier: "VolumeAttachment" });
|
|
892
|
+
case 7:
|
|
893
|
+
return S.suspend(() =>
|
|
894
|
+
S.Struct({
|
|
895
|
+
id: S.String,
|
|
896
|
+
tag: S.String,
|
|
897
|
+
metadata: S.optional(__S(40, __c5, 0)),
|
|
898
|
+
attachment: S.optional(__S(46, __c5, 6)),
|
|
899
|
+
}),
|
|
900
|
+
).annotate({ identifier: "CacheVolume" });
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
function __c6(j: number): any {
|
|
904
|
+
switch (j) {
|
|
905
|
+
case 0:
|
|
906
|
+
return S.suspend(() =>
|
|
907
|
+
S.Struct({
|
|
908
|
+
tag: S.optional(S.String),
|
|
909
|
+
}).pipe(
|
|
910
|
+
T.Http({
|
|
911
|
+
method: "POST",
|
|
912
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/GetVolumeTagSummary",
|
|
913
|
+
code: 200,
|
|
914
|
+
}),
|
|
915
|
+
),
|
|
916
|
+
).annotate({ identifier: "GetVolumeTagSummaryRequest" });
|
|
917
|
+
case 1:
|
|
918
|
+
return S.suspend(() =>
|
|
919
|
+
S.Struct({
|
|
920
|
+
summary: S.optional(__S(64, __c8, 0)),
|
|
921
|
+
}),
|
|
922
|
+
).annotate({ identifier: "GetVolumeTagSummaryResponse" });
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
function __c7(j: number): any {
|
|
926
|
+
switch (j) {
|
|
927
|
+
case 0:
|
|
928
|
+
return S.Array(__S(47, __c5, 7));
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
function __c8(j: number): any {
|
|
932
|
+
switch (j) {
|
|
933
|
+
case 0:
|
|
934
|
+
return S.suspend(() =>
|
|
935
|
+
S.Struct({
|
|
936
|
+
tag: S.String,
|
|
937
|
+
sizeMb: S.Number,
|
|
938
|
+
atRest: __S(56, __c7, 0),
|
|
939
|
+
inUse: __S(56, __c7, 0),
|
|
940
|
+
generations: __S(56, __c7, 0),
|
|
941
|
+
createdAt: S.optional(S.String),
|
|
942
|
+
}),
|
|
943
|
+
).annotate({ identifier: "TagSummary" });
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
function __c9(j: number): any {
|
|
947
|
+
switch (j) {
|
|
948
|
+
case 0:
|
|
949
|
+
return S.suspend(() =>
|
|
950
|
+
S.Struct({}).pipe(
|
|
951
|
+
T.Http({
|
|
952
|
+
method: "POST",
|
|
953
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/ListCacheVolumes",
|
|
954
|
+
code: 200,
|
|
955
|
+
}),
|
|
956
|
+
),
|
|
957
|
+
).annotate({ identifier: "ListCacheVolumesRequest" });
|
|
958
|
+
case 1:
|
|
959
|
+
return S.suspend(() =>
|
|
960
|
+
S.Struct({
|
|
961
|
+
cacheVolume: __S(56, __c7, 0),
|
|
962
|
+
}),
|
|
963
|
+
).annotate({ identifier: "ListCacheVolumesResponse" });
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
function __c10(j: number): any {
|
|
967
|
+
switch (j) {
|
|
968
|
+
case 0:
|
|
969
|
+
return S.suspend(() =>
|
|
970
|
+
S.Struct({
|
|
971
|
+
tag: S.optional(S.String),
|
|
972
|
+
paginationCursor: S.optional(S.String),
|
|
973
|
+
maxEntries: S.optional(S.String),
|
|
974
|
+
site: S.optional(__S(16, __c2, 0)),
|
|
975
|
+
}).pipe(
|
|
976
|
+
T.Http({
|
|
977
|
+
method: "POST",
|
|
978
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/ListPersistentVolumes",
|
|
979
|
+
code: 200,
|
|
980
|
+
}),
|
|
981
|
+
),
|
|
982
|
+
).annotate({ identifier: "ListPersistentVolumesRequest" });
|
|
983
|
+
case 1:
|
|
984
|
+
return S.suspend(() =>
|
|
985
|
+
S.Struct({
|
|
986
|
+
volumes: __S(17, __c2, 1),
|
|
987
|
+
paginationCursor: S.String,
|
|
988
|
+
}),
|
|
989
|
+
).annotate({ identifier: "ListPersistentVolumesResponse" });
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
function __c11(j: number): any {
|
|
993
|
+
switch (j) {
|
|
994
|
+
case 0:
|
|
995
|
+
return S.suspend(() =>
|
|
996
|
+
S.Struct({
|
|
997
|
+
id: S.optional(S.String),
|
|
998
|
+
tag: S.optional(S.String),
|
|
999
|
+
site: S.optional(S.String),
|
|
1000
|
+
}).pipe(
|
|
1001
|
+
T.Http({
|
|
1002
|
+
method: "POST",
|
|
1003
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/ListPersistentVolumeSnapshots",
|
|
1004
|
+
code: 200,
|
|
1005
|
+
}),
|
|
1006
|
+
),
|
|
1007
|
+
).annotate({ identifier: "ListPersistentVolumeSnapshotsRequest" });
|
|
1008
|
+
case 1:
|
|
1009
|
+
return S.Array(__S(128, __c16, 0));
|
|
1010
|
+
case 2:
|
|
1011
|
+
return S.suspend(() =>
|
|
1012
|
+
S.Struct({
|
|
1013
|
+
snapshots: __S(89, __c11, 1),
|
|
1014
|
+
}),
|
|
1015
|
+
).annotate({ identifier: "ListPersistentVolumeSnapshotsResponse" });
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
function __c12(j: number): any {
|
|
1019
|
+
switch (j) {
|
|
1020
|
+
case 0:
|
|
1021
|
+
return S.suspend(() =>
|
|
1022
|
+
S.Struct({}).pipe(
|
|
1023
|
+
T.Http({
|
|
1024
|
+
method: "POST",
|
|
1025
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/ListVolumeTagSummaries",
|
|
1026
|
+
code: 200,
|
|
1027
|
+
}),
|
|
1028
|
+
),
|
|
1029
|
+
).annotate({ identifier: "ListVolumeTagSummariesRequest" });
|
|
1030
|
+
case 1:
|
|
1031
|
+
return S.Array(__S(64, __c8, 0));
|
|
1032
|
+
case 2:
|
|
1033
|
+
return S.suspend(() =>
|
|
1034
|
+
S.Struct({
|
|
1035
|
+
summaries: __S(97, __c12, 1),
|
|
1036
|
+
}),
|
|
1037
|
+
).annotate({ identifier: "ListVolumeTagSummariesResponse" });
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
function __c13(j: number): any {
|
|
1041
|
+
switch (j) {
|
|
1042
|
+
case 0:
|
|
1043
|
+
return S.suspend(() =>
|
|
1044
|
+
S.Struct({
|
|
1045
|
+
id: S.optional(S.String),
|
|
1046
|
+
tag: S.optional(S.String),
|
|
1047
|
+
site: S.optional(S.String),
|
|
1048
|
+
}).pipe(
|
|
1049
|
+
T.Http({
|
|
1050
|
+
method: "POST",
|
|
1051
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/DescribePersistentVolume",
|
|
1052
|
+
code: 200,
|
|
1053
|
+
}),
|
|
1054
|
+
),
|
|
1055
|
+
).annotate({ identifier: "DescribePersistentVolumeRequest" });
|
|
1056
|
+
case 1:
|
|
1057
|
+
return S.suspend(() =>
|
|
1058
|
+
S.Struct({
|
|
1059
|
+
volume: S.optional(__S(112, __c14, 0)),
|
|
1060
|
+
}),
|
|
1061
|
+
).annotate({ identifier: "DescribePersistentVolumeResponse" });
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
function __c14(j: number): any {
|
|
1065
|
+
switch (j) {
|
|
1066
|
+
case 0:
|
|
1067
|
+
return S.suspend(() =>
|
|
1068
|
+
S.Struct({
|
|
1069
|
+
id: S.String,
|
|
1070
|
+
tag: S.String,
|
|
1071
|
+
createdAt: S.optional(S.String),
|
|
1072
|
+
destroyedAt: S.optional(S.String),
|
|
1073
|
+
sizeMb: S.Number,
|
|
1074
|
+
attachedTo: S.String,
|
|
1075
|
+
releasedAt: S.optional(S.String),
|
|
1076
|
+
releasedReason: S.String,
|
|
1077
|
+
site: S.String,
|
|
1078
|
+
}),
|
|
1079
|
+
).annotate({ identifier: "PersistentVolume" });
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
function __c15(j: number): any {
|
|
1083
|
+
switch (j) {
|
|
1084
|
+
case 0:
|
|
1085
|
+
return S.suspend(() =>
|
|
1086
|
+
S.Struct({
|
|
1087
|
+
id: S.optional(S.String),
|
|
1088
|
+
tag: S.optional(S.String),
|
|
1089
|
+
site: S.optional(S.String),
|
|
1090
|
+
}).pipe(
|
|
1091
|
+
T.Http({
|
|
1092
|
+
method: "POST",
|
|
1093
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/DescribePersistentVolumeSnapshot",
|
|
1094
|
+
code: 200,
|
|
1095
|
+
}),
|
|
1096
|
+
),
|
|
1097
|
+
).annotate({ identifier: "DescribePersistentVolumeSnapshotRequest" });
|
|
1098
|
+
case 1:
|
|
1099
|
+
return S.suspend(() =>
|
|
1100
|
+
S.Struct({
|
|
1101
|
+
snapshotBlobId: S.String,
|
|
1102
|
+
pageCount: S.String,
|
|
1103
|
+
pageBytes: S.String,
|
|
1104
|
+
allocatedBlockCount: S.String,
|
|
1105
|
+
blockSizeBytes: S.String,
|
|
1106
|
+
allocatedBytes: S.String,
|
|
1107
|
+
}),
|
|
1108
|
+
).annotate({ identifier: "PersistentVolumeSnapshotUsage" });
|
|
1109
|
+
case 2:
|
|
1110
|
+
return S.suspend(() =>
|
|
1111
|
+
S.Struct({
|
|
1112
|
+
snapshot: S.optional(__S(128, __c16, 0)),
|
|
1113
|
+
usage: S.optional(__S(121, __c15, 1)),
|
|
1114
|
+
}),
|
|
1115
|
+
).annotate({ identifier: "DescribePersistentVolumeSnapshotResponse" });
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
function __c16(j: number): any {
|
|
1119
|
+
switch (j) {
|
|
1120
|
+
case 0:
|
|
1121
|
+
return S.suspend(() =>
|
|
1122
|
+
S.Struct({
|
|
1123
|
+
id: S.String,
|
|
1124
|
+
createdAt: S.optional(S.String),
|
|
1125
|
+
usedBytes: S.String,
|
|
1126
|
+
snapshotFrom: S.String,
|
|
1127
|
+
completedSnapshot: S.String,
|
|
1128
|
+
netNewUsedBytes: S.String,
|
|
1129
|
+
attachedInstanceId: S.String,
|
|
1130
|
+
releasedAt: S.optional(S.String),
|
|
1131
|
+
releasedReason: S.String,
|
|
1132
|
+
abandonedAt: S.optional(S.String),
|
|
1133
|
+
metadataVersion: S.String,
|
|
1134
|
+
}),
|
|
1135
|
+
).annotate({ identifier: "PersistentVolumeSnapshot" });
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
function __c17(j: number): any {
|
|
1139
|
+
switch (j) {
|
|
1140
|
+
case 0:
|
|
1141
|
+
return S.suspend(() =>
|
|
1142
|
+
S.Struct({
|
|
1143
|
+
tag: S.optional(S.String),
|
|
1144
|
+
}).pipe(
|
|
1145
|
+
T.Http({
|
|
1146
|
+
method: "POST",
|
|
1147
|
+
uri: "/namespace.cloud.compute.v1beta.StorageService/DestroyCacheVolume",
|
|
1148
|
+
code: 200,
|
|
1149
|
+
}),
|
|
1150
|
+
),
|
|
1151
|
+
).annotate({ identifier: "DestroyCacheVolumeRequest" });
|
|
1152
|
+
case 1:
|
|
1153
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DestroyCacheVolumeResponse" });
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1157
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1158
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1159
|
+
}
|