@origincloud/pvs 0.0.0-stage → 0.2.0
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 +202 -0
- package/README.md +30 -2
- package/dist/longrunning/v1beta1/index.d.ts +2 -0
- package/dist/longrunning/v1beta1/index.d.ts.map +1 -0
- package/dist/longrunning/v1beta1/index.js +3 -0
- package/dist/longrunning/v1beta1/index.js.map +1 -0
- package/dist/longrunning/v1beta1/operations.d.ts +63 -0
- package/dist/longrunning/v1beta1/operations.d.ts.map +1 -0
- package/dist/longrunning/v1beta1/operations.js +54 -0
- package/dist/longrunning/v1beta1/operations.js.map +1 -0
- package/dist/v1beta1/index.d.ts +4 -0
- package/dist/v1beta1/index.d.ts.map +1 -0
- package/dist/v1beta1/index.js +5 -0
- package/dist/v1beta1/index.js.map +1 -0
- package/dist/v1beta1/snapshot.d.ts +222 -0
- package/dist/v1beta1/snapshot.d.ts.map +1 -0
- package/dist/v1beta1/snapshot.js +181 -0
- package/dist/v1beta1/snapshot.js.map +1 -0
- package/dist/v1beta1/storage_class.d.ts +81 -0
- package/dist/v1beta1/storage_class.d.ts.map +1 -0
- package/dist/v1beta1/storage_class.js +53 -0
- package/dist/v1beta1/storage_class.js.map +1 -0
- package/dist/v1beta1/volume.d.ts +248 -0
- package/dist/v1beta1/volume.d.ts.map +1 -0
- package/dist/v1beta1/volume.js +169 -0
- package/dist/v1beta1/volume.js.map +1 -0
- package/package.json +41 -4
- package/src/longrunning/v1beta1/index.ts +3 -0
- package/src/longrunning/v1beta1/operations.ts +103 -0
- package/src/v1beta1/index.ts +5 -0
- package/src/v1beta1/snapshot.ts +352 -0
- package/src/v1beta1/storage_class.ts +115 -0
- package/src/v1beta1/volume.ts +366 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Code generated by the SDK's generator (generator/). DO NOT EDIT.
|
|
2
|
+
// source: origincloud/pvs/v1beta1/snapshot.proto
|
|
3
|
+
import { Operation, newRequestId, pathValue, query, } from "@origincloud/core";
|
|
4
|
+
/**
|
|
5
|
+
* Calls SnapshotService.
|
|
6
|
+
*
|
|
7
|
+
* Snapshots: point-in-time copies of a volume, in the volume's zone. A
|
|
8
|
+
* protected, completed snapshot is the source of new volumes and images.
|
|
9
|
+
*/
|
|
10
|
+
export class SnapshotClient {
|
|
11
|
+
/**
|
|
12
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
13
|
+
* operations its methods answer with.
|
|
14
|
+
*/
|
|
15
|
+
service;
|
|
16
|
+
/** A client of SnapshotService that sends its calls through `client`. */
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.service = client.service("pvs", true);
|
|
19
|
+
}
|
|
20
|
+
/** Returns a snapshot. */
|
|
21
|
+
async getSnapshot(request, options) {
|
|
22
|
+
const p0 = pathValue("name", request.name, "projects/*/zones/*/snapshots/*");
|
|
23
|
+
return this.service.call({
|
|
24
|
+
method: "GET",
|
|
25
|
+
path: `/v1beta1/${p0}`,
|
|
26
|
+
query: query(request, ["name"]),
|
|
27
|
+
idempotent: true,
|
|
28
|
+
}, options);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Lists the snapshots in a zone, oldest first. Deleted snapshots aren't
|
|
32
|
+
* listed. For every zone's snapshots, list the zones whose `services` name
|
|
33
|
+
* `pvs` with the location service (`location.origincloudapis.eu`), then
|
|
34
|
+
* each zone's snapshots.
|
|
35
|
+
*/
|
|
36
|
+
async listSnapshots(request, options) {
|
|
37
|
+
const p0 = pathValue("parent", request.parent, "projects/*/zones/*");
|
|
38
|
+
return this.service.call({
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: `/v1beta1/${p0}/snapshots`,
|
|
41
|
+
query: query(request, ["parent"]),
|
|
42
|
+
idempotent: true,
|
|
43
|
+
}, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Iterates over everything listSnapshots lists from the request's page on,
|
|
47
|
+
* fetching the next page as the loop reaches it. A page that fails ends
|
|
48
|
+
* the iteration with its error.
|
|
49
|
+
*/
|
|
50
|
+
async *allSnapshots(request, options) {
|
|
51
|
+
for (let page = request;;) {
|
|
52
|
+
const response = await this.listSnapshots(page, options);
|
|
53
|
+
yield* response.snapshots ?? [];
|
|
54
|
+
if (!response.nextPageToken)
|
|
55
|
+
return;
|
|
56
|
+
page = { ...page, pageToken: response.nextPageToken };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Takes a snapshot of a volume. The operation is done once the copy is
|
|
61
|
+
* `COMPLETED`, or failed once it is `ERROR`.
|
|
62
|
+
*
|
|
63
|
+
* It answers with an operation to wait on, whose result is the Snapshot.
|
|
64
|
+
*/
|
|
65
|
+
async createSnapshot(request, options) {
|
|
66
|
+
if (!request.requestId)
|
|
67
|
+
request = { ...request, requestId: newRequestId() };
|
|
68
|
+
const p0 = pathValue("parent", request.parent, "projects/*/zones/*");
|
|
69
|
+
const op = await this.service.call({
|
|
70
|
+
method: "POST",
|
|
71
|
+
path: `/v1beta1/${p0}/snapshots`,
|
|
72
|
+
body: request.snapshot,
|
|
73
|
+
query: query(request, ["parent", "snapshot"]),
|
|
74
|
+
idempotent: true,
|
|
75
|
+
}, options);
|
|
76
|
+
return new Operation(this.service, op, "origincloud.pvs.v1beta1.Snapshot");
|
|
77
|
+
}
|
|
78
|
+
/** Changes a snapshot's tags. */
|
|
79
|
+
async updateSnapshot(request, options) {
|
|
80
|
+
const p0 = pathValue("snapshot.name", request.snapshot?.name, "projects/*/zones/*/snapshots/*");
|
|
81
|
+
return this.service.call({
|
|
82
|
+
method: "PATCH",
|
|
83
|
+
path: `/v1beta1/${p0}`,
|
|
84
|
+
body: request.snapshot,
|
|
85
|
+
query: query(request, ["snapshot.name", "snapshot"]),
|
|
86
|
+
}, options);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Deletes a snapshot. It must be `COMPLETED` or `ERROR`, and unprotected.
|
|
90
|
+
* The operation is done once the snapshot is `DELETED`.
|
|
91
|
+
*
|
|
92
|
+
* It answers with an operation to wait on, which has no result.
|
|
93
|
+
*/
|
|
94
|
+
async deleteSnapshot(request, options) {
|
|
95
|
+
if (!request.requestId)
|
|
96
|
+
request = { ...request, requestId: newRequestId() };
|
|
97
|
+
const p0 = pathValue("name", request.name, "projects/*/zones/*/snapshots/*");
|
|
98
|
+
const op = await this.service.call({
|
|
99
|
+
method: "DELETE",
|
|
100
|
+
path: `/v1beta1/${p0}`,
|
|
101
|
+
query: query(request, ["name"]),
|
|
102
|
+
idempotent: true,
|
|
103
|
+
}, options);
|
|
104
|
+
return new Operation(this.service, op, "google.protobuf.Empty");
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Protects a snapshot, so it can be the source of volumes and images and
|
|
108
|
+
* can't be deleted. The operation is done once it is `PROTECTED`.
|
|
109
|
+
*
|
|
110
|
+
* It answers with an operation to wait on, whose result is the Snapshot.
|
|
111
|
+
*/
|
|
112
|
+
async protectSnapshot(request, options) {
|
|
113
|
+
if (!request.requestId)
|
|
114
|
+
request = { ...request, requestId: newRequestId() };
|
|
115
|
+
const p0 = pathValue("name", request.name, "projects/*/zones/*/snapshots/*");
|
|
116
|
+
const op = await this.service.call({
|
|
117
|
+
method: "POST",
|
|
118
|
+
path: `/v1beta1/${p0}:protect`,
|
|
119
|
+
body: request,
|
|
120
|
+
idempotent: true,
|
|
121
|
+
}, options);
|
|
122
|
+
return new Operation(this.service, op, "origincloud.pvs.v1beta1.Snapshot");
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Unprotects a snapshot, so it can be deleted. Refused with
|
|
126
|
+
* `FAILED_PRECONDITION` while an image is built from it or a volume not
|
|
127
|
+
* `DELETED` was created from it; delete those first. The operation is
|
|
128
|
+
* done once it is `UNPROTECTED`.
|
|
129
|
+
*
|
|
130
|
+
* It answers with an operation to wait on, whose result is the Snapshot.
|
|
131
|
+
*/
|
|
132
|
+
async unprotectSnapshot(request, options) {
|
|
133
|
+
if (!request.requestId)
|
|
134
|
+
request = { ...request, requestId: newRequestId() };
|
|
135
|
+
const p0 = pathValue("name", request.name, "projects/*/zones/*/snapshots/*");
|
|
136
|
+
const op = await this.service.call({
|
|
137
|
+
method: "POST",
|
|
138
|
+
path: `/v1beta1/${p0}:unprotect`,
|
|
139
|
+
body: request,
|
|
140
|
+
idempotent: true,
|
|
141
|
+
}, options);
|
|
142
|
+
return new Operation(this.service, op, "origincloud.pvs.v1beta1.Snapshot");
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/** Where the copy is. */
|
|
146
|
+
export const Snapshot_State = {
|
|
147
|
+
/** Not set. */
|
|
148
|
+
STATE_UNSPECIFIED: "STATE_UNSPECIFIED",
|
|
149
|
+
/** Being copied. */
|
|
150
|
+
PENDING: "PENDING",
|
|
151
|
+
/** Copied. */
|
|
152
|
+
COMPLETED: "COMPLETED",
|
|
153
|
+
/** Being deleted. */
|
|
154
|
+
DELETING: "DELETING",
|
|
155
|
+
/** Deleted. Readable by name for a day, never listed. */
|
|
156
|
+
DELETED: "DELETED",
|
|
157
|
+
/**
|
|
158
|
+
* The copy or its removal failed; `stateReason` says which. There is
|
|
159
|
+
* no usable copy behind it: delete it.
|
|
160
|
+
*/
|
|
161
|
+
ERROR: "ERROR",
|
|
162
|
+
};
|
|
163
|
+
/** Whether the snapshot is protected, independently of `state`. */
|
|
164
|
+
export const Snapshot_ProtectionState = {
|
|
165
|
+
/** Not set. */
|
|
166
|
+
PROTECTION_STATE_UNSPECIFIED: "PROTECTION_STATE_UNSPECIFIED",
|
|
167
|
+
/** Not protected: it can be deleted, and is no source. */
|
|
168
|
+
UNPROTECTED: "UNPROTECTED",
|
|
169
|
+
/** Becoming protected. */
|
|
170
|
+
PROTECTING: "PROTECTING",
|
|
171
|
+
/** Protected: a source of volumes and images, and can't be deleted. */
|
|
172
|
+
PROTECTED: "PROTECTED",
|
|
173
|
+
/** Becoming unprotected. */
|
|
174
|
+
UNPROTECTING: "UNPROTECTING",
|
|
175
|
+
/**
|
|
176
|
+
* The last change couldn't be applied; `protectionReason` says why.
|
|
177
|
+
* Protect or unprotect it again.
|
|
178
|
+
*/
|
|
179
|
+
PROTECTION_FAILED: "PROTECTION_FAILED",
|
|
180
|
+
};
|
|
181
|
+
//# sourceMappingURL=snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/v1beta1/snapshot.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,iDAAiD;AAEjD,OAAO,EAKL,SAAS,EAET,YAAY,EACZ,SAAS,EACT,KAAK,GACN,MAAM,mBAAmB,CAAC;AAG3B;;;;;GAKG;AACH,MAAM,OAAO,cAAc;IACzB;;;OAGG;IACM,OAAO,CAAU;IAE1B,yEAAyE;IACzE,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,0BAA0B;IAC1B,KAAK,CAAC,WAAW,CAAC,OAA2B,EAAE,OAAqB;QAClE,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,YAAY,EAAE,EAAE;YACtB,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;YAC/B,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CAAC,OAA6B,EAAE,OAAqB;QACtE,MAAM,EAAE,GAAG,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM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AyD;IACzD,OAAO,EAAE,SAAS;IAClB;;;OAGG;IACH,KAAK,EAAE,OAAO;CACN,CAAC;AAKX,mEAAmE;AACnE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,eAAe;IACf,4BAA4B,EAAE,8BAA8B;IAC5D,0DAA0D;IAC1D,WAAW,EAAE,aAAa;IAC1B,0BAA0B;IAC1B,UAAU,EAAE,YAAY;IACxB,uEAAuE;IACvE,SAAS,EAAE,WAAW;IACtB,4BAA4B;IAC5B,YAAY,EAAE,cAAc;IAC5B;;;OAGG;IACH,iBAAiB,EAAE,mBAAmB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type CallOptions, type Client, type Service } from "@origincloud/core";
|
|
2
|
+
/**
|
|
3
|
+
* Calls StorageClassService.
|
|
4
|
+
*
|
|
5
|
+
* The catalog of storage classes: every tier the platform publishes, each
|
|
6
|
+
* saying whether it can be selected right now. Not scoped to an
|
|
7
|
+
* organisation or a project; no permission is needed.
|
|
8
|
+
*/
|
|
9
|
+
export declare class StorageClassClient {
|
|
10
|
+
/**
|
|
11
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
12
|
+
* operations its methods answer with.
|
|
13
|
+
*/
|
|
14
|
+
readonly service: Service;
|
|
15
|
+
/** A client of StorageClassService that sends its calls through `client`. */
|
|
16
|
+
constructor(client: Client);
|
|
17
|
+
/** Returns a storage class. */
|
|
18
|
+
getStorageClass(request: GetStorageClassRequest, options?: CallOptions): Promise<StorageClass>;
|
|
19
|
+
/**
|
|
20
|
+
* Lists every storage class, including those not yet on sale: check
|
|
21
|
+
* `available` before selecting one.
|
|
22
|
+
*/
|
|
23
|
+
listStorageClasses(request: ListStorageClassesRequest, options?: CallOptions): Promise<ListStorageClassesResponse>;
|
|
24
|
+
}
|
|
25
|
+
/** A storage tier a volume is created in. */
|
|
26
|
+
export interface StorageClass {
|
|
27
|
+
/** The class's resource name, `storageClasses/gp1`. */
|
|
28
|
+
name?: string;
|
|
29
|
+
/** The name the console shows. */
|
|
30
|
+
displayName?: string;
|
|
31
|
+
/** The media the class is backed by. */
|
|
32
|
+
media?: StorageClass_Media;
|
|
33
|
+
/**
|
|
34
|
+
* Whether a volume created without a storage class is created in this
|
|
35
|
+
* one.
|
|
36
|
+
*/
|
|
37
|
+
defaultClass?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the class can be selected right now. A class that is listed
|
|
40
|
+
* but not available is a published tier not yet on sale.
|
|
41
|
+
*/
|
|
42
|
+
available?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The I/O operations per second a volume of the class is limited to; 0
|
|
45
|
+
* for a class not on sale.
|
|
46
|
+
*/
|
|
47
|
+
baselineIops?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The MiB per second a volume of the class is limited to; 0 for a class
|
|
50
|
+
* not on sale.
|
|
51
|
+
*/
|
|
52
|
+
baselineThroughputMibps?: number;
|
|
53
|
+
}
|
|
54
|
+
/** The media a class is backed by. */
|
|
55
|
+
export declare const StorageClass_Media: {
|
|
56
|
+
/** Not set. */
|
|
57
|
+
readonly MEDIA_UNSPECIFIED: "MEDIA_UNSPECIFIED";
|
|
58
|
+
/** Solid-state storage. */
|
|
59
|
+
readonly SSD: "SSD";
|
|
60
|
+
/** Rotational (hard-disk) storage. */
|
|
61
|
+
readonly HDD: "HDD";
|
|
62
|
+
};
|
|
63
|
+
/** The media a class is backed by. */
|
|
64
|
+
export type StorageClass_Media = (typeof StorageClass_Media)[keyof typeof StorageClass_Media];
|
|
65
|
+
/** The request for GetStorageClass. */
|
|
66
|
+
export interface GetStorageClassRequest {
|
|
67
|
+
/** The class to return, `storageClasses/{storage_class}`. */
|
|
68
|
+
name?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The request for ListStorageClasses. The catalog is small and bounded by
|
|
72
|
+
* the platform, so it comes in one page.
|
|
73
|
+
*/
|
|
74
|
+
export interface ListStorageClassesRequest {
|
|
75
|
+
}
|
|
76
|
+
/** The response for ListStorageClasses. */
|
|
77
|
+
export interface ListStorageClassesResponse {
|
|
78
|
+
/** Every storage class, in catalog order. */
|
|
79
|
+
storageClasses?: StorageClass[];
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=storage_class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage_class.d.ts","sourceRoot":"","sources":["../../src/v1beta1/storage_class.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAElG;;;;;;GAMG;AACH,qBAAa,kBAAkB;IAC7B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,6EAA6E;gBACjE,MAAM,EAAE,MAAM;IAI1B,+BAA+B;IACzB,eAAe,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;IAapG;;;OAGG;IACG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAWzH;AAED,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IAC3B,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,sCAAsC;AACtC,eAAO,MAAM,kBAAkB;IAC7B,eAAe;;IAEf,2BAA2B;;IAE3B,sCAAsC;;CAE9B,CAAC;AAEX,sCAAsC;AACtC,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE9F,uCAAuC;AACvC,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;CAAG;AAE7C,2CAA2C;AAC3C,MAAM,WAAW,0BAA0B;IACzC,6CAA6C;IAC7C,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;CACjC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Code generated by the SDK's generator (generator/). DO NOT EDIT.
|
|
2
|
+
// source: origincloud/pvs/v1beta1/storage_class.proto
|
|
3
|
+
import { pathValue, query } from "@origincloud/core";
|
|
4
|
+
/**
|
|
5
|
+
* Calls StorageClassService.
|
|
6
|
+
*
|
|
7
|
+
* The catalog of storage classes: every tier the platform publishes, each
|
|
8
|
+
* saying whether it can be selected right now. Not scoped to an
|
|
9
|
+
* organisation or a project; no permission is needed.
|
|
10
|
+
*/
|
|
11
|
+
export class StorageClassClient {
|
|
12
|
+
/**
|
|
13
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
14
|
+
* operations its methods answer with.
|
|
15
|
+
*/
|
|
16
|
+
service;
|
|
17
|
+
/** A client of StorageClassService that sends its calls through `client`. */
|
|
18
|
+
constructor(client) {
|
|
19
|
+
this.service = client.service("pvs", true);
|
|
20
|
+
}
|
|
21
|
+
/** Returns a storage class. */
|
|
22
|
+
async getStorageClass(request, options) {
|
|
23
|
+
const p0 = pathValue("name", request.name, "storageClasses/*");
|
|
24
|
+
return this.service.call({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: `/v1beta1/${p0}`,
|
|
27
|
+
query: query(request, ["name"]),
|
|
28
|
+
idempotent: true,
|
|
29
|
+
}, options);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Lists every storage class, including those not yet on sale: check
|
|
33
|
+
* `available` before selecting one.
|
|
34
|
+
*/
|
|
35
|
+
async listStorageClasses(request, options) {
|
|
36
|
+
return this.service.call({
|
|
37
|
+
method: "GET",
|
|
38
|
+
path: `/v1beta1/storageClasses`,
|
|
39
|
+
query: query(request, []),
|
|
40
|
+
idempotent: true,
|
|
41
|
+
}, options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** The media a class is backed by. */
|
|
45
|
+
export const StorageClass_Media = {
|
|
46
|
+
/** Not set. */
|
|
47
|
+
MEDIA_UNSPECIFIED: "MEDIA_UNSPECIFIED",
|
|
48
|
+
/** Solid-state storage. */
|
|
49
|
+
SSD: "SSD",
|
|
50
|
+
/** Rotational (hard-disk) storage. */
|
|
51
|
+
HDD: "HDD",
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=storage_class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage_class.js","sourceRoot":"","sources":["../../src/v1beta1/storage_class.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,sDAAsD;AAEtD,OAAO,EAA+C,SAAS,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAElG;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IAC7B;;;OAGG;IACM,OAAO,CAAU;IAE1B,6EAA6E;IAC7E,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,+BAA+B;IAC/B,KAAK,CAAC,eAAe,CAAC,OAA+B,EAAE,OAAqB;QAC1E,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,YAAY,EAAE,EAAE;YACtB,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;YAC/B,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,OAAkC,EAAE,OAAqB;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;YACzB,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAgCD,sCAAsC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,eAAe;IACf,iBAAiB,EAAE,mBAAmB;IACtC,2BAA2B;IAC3B,GAAG,EAAE,KAAK;IACV,sCAAsC;IACtC,GAAG,EAAE,KAAK;CACF,CAAC"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { type CallOptions, type Client, type Empty, Operation, type Service } from "@origincloud/core";
|
|
2
|
+
import type { OperationMetadata } from "../longrunning/v1beta1/operations.js";
|
|
3
|
+
/**
|
|
4
|
+
* Calls VolumeService.
|
|
5
|
+
*
|
|
6
|
+
* Block storage volumes: durable disks in one zone that an instance attaches
|
|
7
|
+
* to read and write.
|
|
8
|
+
*/
|
|
9
|
+
export declare class VolumeClient {
|
|
10
|
+
/**
|
|
11
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
12
|
+
* operations its methods answer with.
|
|
13
|
+
*/
|
|
14
|
+
readonly service: Service;
|
|
15
|
+
/** A client of VolumeService that sends its calls through `client`. */
|
|
16
|
+
constructor(client: Client);
|
|
17
|
+
/** Returns a volume. */
|
|
18
|
+
getVolume(request: GetVolumeRequest, options?: CallOptions): Promise<Volume>;
|
|
19
|
+
/**
|
|
20
|
+
* Lists the volumes in a zone, oldest first. Deleted volumes aren't
|
|
21
|
+
* listed. For every zone's volumes, list the zones whose `services` name
|
|
22
|
+
* `pvs` with the location service (`location.origincloudapis.eu`), then
|
|
23
|
+
* each zone's volumes.
|
|
24
|
+
*/
|
|
25
|
+
listVolumes(request: ListVolumesRequest, options?: CallOptions): Promise<ListVolumesResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Iterates over everything listVolumes lists from the request's page on,
|
|
28
|
+
* fetching the next page as the loop reaches it. A page that fails ends
|
|
29
|
+
* the iteration with its error.
|
|
30
|
+
*/
|
|
31
|
+
allVolumes(request: ListVolumesRequest, options?: CallOptions): AsyncGenerator<Volume, void, undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Creates a volume, empty or as a copy of a snapshot. The operation is
|
|
34
|
+
* done once the volume is `AVAILABLE`, or failed once it is `ERROR`.
|
|
35
|
+
*
|
|
36
|
+
* It answers with an operation to wait on, whose result is the Volume.
|
|
37
|
+
*/
|
|
38
|
+
createVolume(request: CreateVolumeRequest, options?: CallOptions): Promise<Operation<Volume, OperationMetadata>>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a volume whose initial content is a disk image the platform
|
|
41
|
+
* downloads. The operation is done once the volume is `AVAILABLE`.
|
|
42
|
+
*
|
|
43
|
+
* It answers with an operation to wait on, whose result is the Volume.
|
|
44
|
+
*/
|
|
45
|
+
importVolume(request: ImportVolumeRequest, options?: CallOptions): Promise<Operation<Volume, OperationMetadata>>;
|
|
46
|
+
/**
|
|
47
|
+
* Changes a volume's size or tags. A larger `sizeGib` grows the volume,
|
|
48
|
+
* attached or not; it never shrinks, and the size it already has changes
|
|
49
|
+
* nothing. The operation is done once the volume reports the new size.
|
|
50
|
+
*
|
|
51
|
+
* It answers with an operation to wait on, whose result is the Volume.
|
|
52
|
+
*/
|
|
53
|
+
updateVolume(request: UpdateVolumeRequest, options?: CallOptions): Promise<Operation<Volume, OperationMetadata>>;
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a volume. It must not be attached, and none of its snapshots
|
|
56
|
+
* may be left. The operation is done once the volume is `DELETED`.
|
|
57
|
+
*
|
|
58
|
+
* It answers with an operation to wait on, which has no result.
|
|
59
|
+
*/
|
|
60
|
+
deleteVolume(request: DeleteVolumeRequest, options?: CallOptions): Promise<Operation<Empty, OperationMetadata>>;
|
|
61
|
+
}
|
|
62
|
+
/** A block storage volume in one zone. */
|
|
63
|
+
export interface Volume {
|
|
64
|
+
/** The volume's resource name. */
|
|
65
|
+
name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The volume's URN, the identifier access policies and the audit log
|
|
68
|
+
* use.
|
|
69
|
+
*/
|
|
70
|
+
urn?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The size in GiB, at least 1. Growing it resizes the volume; it never
|
|
73
|
+
* shrinks.
|
|
74
|
+
*/
|
|
75
|
+
sizeGib?: number;
|
|
76
|
+
/**
|
|
77
|
+
* The storage class, `storageClasses/{storage_class}`. The default class
|
|
78
|
+
* when left empty.
|
|
79
|
+
*/
|
|
80
|
+
storageClass?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The snapshot the volume was created from, in the same project and
|
|
83
|
+
* zone; empty for an empty volume. The volume is at least the snapshot's
|
|
84
|
+
* size.
|
|
85
|
+
*/
|
|
86
|
+
sourceSnapshot?: string;
|
|
87
|
+
/** Where the volume is in its lifecycle. */
|
|
88
|
+
state?: Volume_State;
|
|
89
|
+
/** Why the volume is in `ERROR`; empty otherwise. */
|
|
90
|
+
stateReason?: string;
|
|
91
|
+
/** When `state` is `IN_USE`, the id of the volume attachment holding it. */
|
|
92
|
+
attachment?: string;
|
|
93
|
+
/** Where the last resize is. */
|
|
94
|
+
resizeState?: Volume_ResizeState;
|
|
95
|
+
/** Why the last resize failed, when `resizeState` is `RESIZE_FAILED`. */
|
|
96
|
+
resizeReason?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The size a resize under way is heading for; 0 when none is.
|
|
99
|
+
* `sizeGib` changes once the resize is confirmed.
|
|
100
|
+
*/
|
|
101
|
+
pendingSizeGib?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Why the volume is still here after the instance it was created with
|
|
104
|
+
* was terminated; empty in every other case. Most often a snapshot of it
|
|
105
|
+
* exists, and a snapshot depends on its volume's data.
|
|
106
|
+
*/
|
|
107
|
+
retentionNote?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The most I/O operations per second the volume serves, reads and writes
|
|
110
|
+
* combined: a ceiling, not a guaranteed rate. 0 when it isn't limited.
|
|
111
|
+
*/
|
|
112
|
+
iops?: number;
|
|
113
|
+
/**
|
|
114
|
+
* The most MiB per second the volume transfers, reads and writes
|
|
115
|
+
* combined: a ceiling, not a guaranteed rate. 0 when it isn't limited.
|
|
116
|
+
*/
|
|
117
|
+
throughputMibps?: number;
|
|
118
|
+
/**
|
|
119
|
+
* The principal that created the volume, such as `user:<id>` or
|
|
120
|
+
* `service_account:<id>`.
|
|
121
|
+
*/
|
|
122
|
+
creator?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Labels of your own, at most 50. The `origin:name` tag is the name the
|
|
125
|
+
* console shows.
|
|
126
|
+
*/
|
|
127
|
+
tags?: Record<string, string>;
|
|
128
|
+
}
|
|
129
|
+
/** Where the volume is in its lifecycle. */
|
|
130
|
+
export declare const Volume_State: {
|
|
131
|
+
/** Not set. */
|
|
132
|
+
readonly STATE_UNSPECIFIED: "STATE_UNSPECIFIED";
|
|
133
|
+
/** Being created. */
|
|
134
|
+
readonly CREATING: "CREATING";
|
|
135
|
+
/** Ready to attach. */
|
|
136
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
137
|
+
/** Attached to an instance. */
|
|
138
|
+
readonly IN_USE: "IN_USE";
|
|
139
|
+
/** Being deleted. */
|
|
140
|
+
readonly DELETING: "DELETING";
|
|
141
|
+
/** Deleted. Readable by name for a day, never listed. */
|
|
142
|
+
readonly DELETED: "DELETED";
|
|
143
|
+
/**
|
|
144
|
+
* Its storage couldn't be created or removed; `stateReason` says
|
|
145
|
+
* which. It can be deleted again.
|
|
146
|
+
*/
|
|
147
|
+
readonly ERROR: "ERROR";
|
|
148
|
+
};
|
|
149
|
+
/** Where the volume is in its lifecycle. */
|
|
150
|
+
export type Volume_State = (typeof Volume_State)[keyof typeof Volume_State];
|
|
151
|
+
/** Where a resize is. */
|
|
152
|
+
export declare const Volume_ResizeState: {
|
|
153
|
+
/** Not set. */
|
|
154
|
+
readonly RESIZE_STATE_UNSPECIFIED: "RESIZE_STATE_UNSPECIFIED";
|
|
155
|
+
/** No resize is under way; the last one, if any, finished. */
|
|
156
|
+
readonly RESIZE_COMPLETED: "RESIZE_COMPLETED";
|
|
157
|
+
/** Growing to `pendingSizeGib`. */
|
|
158
|
+
readonly RESIZING: "RESIZING";
|
|
159
|
+
/**
|
|
160
|
+
* The last resize failed; `resizeReason` says why. The volume and its
|
|
161
|
+
* data are unaffected.
|
|
162
|
+
*/
|
|
163
|
+
readonly RESIZE_FAILED: "RESIZE_FAILED";
|
|
164
|
+
};
|
|
165
|
+
/** Where a resize is. */
|
|
166
|
+
export type Volume_ResizeState = (typeof Volume_ResizeState)[keyof typeof Volume_ResizeState];
|
|
167
|
+
/** The request for GetVolume. */
|
|
168
|
+
export interface GetVolumeRequest {
|
|
169
|
+
/** The volume to return. */
|
|
170
|
+
name?: string;
|
|
171
|
+
}
|
|
172
|
+
/** The request for ListVolumes. */
|
|
173
|
+
export interface ListVolumesRequest {
|
|
174
|
+
/** The zone whose volumes to list, `projects/{project}/zones/{zone}`. */
|
|
175
|
+
parent?: string;
|
|
176
|
+
/**
|
|
177
|
+
* The most volumes to return; the server clamps it, and 0 means its
|
|
178
|
+
* default.
|
|
179
|
+
*/
|
|
180
|
+
pageSize?: number;
|
|
181
|
+
/** A previous response's `nextPageToken`, for the page after it. */
|
|
182
|
+
pageToken?: string;
|
|
183
|
+
}
|
|
184
|
+
/** The response for ListVolumes. */
|
|
185
|
+
export interface ListVolumesResponse {
|
|
186
|
+
/** The volumes on this page. */
|
|
187
|
+
volumes?: Volume[];
|
|
188
|
+
/** The token for the next page; empty on the last one. */
|
|
189
|
+
nextPageToken?: string;
|
|
190
|
+
}
|
|
191
|
+
/** The request for CreateVolume. */
|
|
192
|
+
export interface CreateVolumeRequest {
|
|
193
|
+
/** The zone to create the volume in, `projects/{project}/zones/{zone}`. */
|
|
194
|
+
parent?: string;
|
|
195
|
+
/**
|
|
196
|
+
* The volume to create: its size, and optionally its storage class,
|
|
197
|
+
* source snapshot and tags.
|
|
198
|
+
*/
|
|
199
|
+
volume?: Volume;
|
|
200
|
+
/**
|
|
201
|
+
* A UUID; a repeat with the same id returns the first request's
|
|
202
|
+
* operation instead of creating a second volume.
|
|
203
|
+
*/
|
|
204
|
+
requestId?: string;
|
|
205
|
+
}
|
|
206
|
+
/** The request for ImportVolume. */
|
|
207
|
+
export interface ImportVolumeRequest {
|
|
208
|
+
/** The zone to create the volume in, `projects/{project}/zones/{zone}`. */
|
|
209
|
+
parent?: string;
|
|
210
|
+
/**
|
|
211
|
+
* The volume to create: its size, which must hold the image, and
|
|
212
|
+
* optionally its storage class and tags.
|
|
213
|
+
*/
|
|
214
|
+
volume?: Volume;
|
|
215
|
+
/**
|
|
216
|
+
* The URL of the disk image, which the platform downloads over HTTP or
|
|
217
|
+
* HTTPS: it must be reachable from the platform.
|
|
218
|
+
*/
|
|
219
|
+
sourceUrl?: string;
|
|
220
|
+
/**
|
|
221
|
+
* A UUID; a repeat with the same id returns the first request's
|
|
222
|
+
* operation instead of importing twice.
|
|
223
|
+
*/
|
|
224
|
+
requestId?: string;
|
|
225
|
+
}
|
|
226
|
+
/** The request for UpdateVolume. */
|
|
227
|
+
export interface UpdateVolumeRequest {
|
|
228
|
+
/** The volume, by its name, with the fields to change. */
|
|
229
|
+
volume?: Volume;
|
|
230
|
+
/** The fields to change: `sizeGib`, `tags`, or both. `*` is both. */
|
|
231
|
+
updateMask?: string;
|
|
232
|
+
/**
|
|
233
|
+
* A UUID; a repeat with the same id returns the first request's
|
|
234
|
+
* operation instead of changing the volume again.
|
|
235
|
+
*/
|
|
236
|
+
requestId?: string;
|
|
237
|
+
}
|
|
238
|
+
/** The request for DeleteVolume. */
|
|
239
|
+
export interface DeleteVolumeRequest {
|
|
240
|
+
/** The volume to delete. */
|
|
241
|
+
name?: string;
|
|
242
|
+
/**
|
|
243
|
+
* A UUID; a repeat with the same id returns the first request's
|
|
244
|
+
* operation.
|
|
245
|
+
*/
|
|
246
|
+
requestId?: string;
|
|
247
|
+
}
|
|
248
|
+
//# sourceMappingURL=volume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volume.d.ts","sourceRoot":"","sources":["../../src/v1beta1/volume.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,KAAK,EAEV,SAAS,EACT,KAAK,OAAO,EAIb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E;;;;;GAKG;AACH,qBAAa,YAAY;IACvB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,uEAAuE;gBAC3D,MAAM,EAAE,MAAM;IAI1B,wBAAwB;IAClB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAalF;;;;;OAKG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAanG;;;;OAIG;IACI,UAAU,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC;IAS9G;;;;;OAKG;IACG,YAAY,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAA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