@origincloud/compute 0.0.0-stage → 0.3.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 +24 -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/catalog.d.ts +146 -0
- package/dist/v1beta1/catalog.d.ts.map +1 -0
- package/dist/v1beta1/catalog.js +86 -0
- package/dist/v1beta1/catalog.js.map +1 -0
- package/dist/v1beta1/image.d.ts +172 -0
- package/dist/v1beta1/image.d.ts.map +1 -0
- package/dist/v1beta1/image.js +115 -0
- package/dist/v1beta1/image.js.map +1 -0
- package/dist/v1beta1/index.d.ts +7 -0
- package/dist/v1beta1/index.d.ts.map +1 -0
- package/dist/v1beta1/index.js +8 -0
- package/dist/v1beta1/index.js.map +1 -0
- package/dist/v1beta1/instance.d.ts +398 -0
- package/dist/v1beta1/instance.d.ts.map +1 -0
- package/dist/v1beta1/instance.js +253 -0
- package/dist/v1beta1/instance.js.map +1 -0
- package/dist/v1beta1/key_pair.d.ts +126 -0
- package/dist/v1beta1/key_pair.d.ts.map +1 -0
- package/dist/v1beta1/key_pair.js +95 -0
- package/dist/v1beta1/key_pair.js.map +1 -0
- package/dist/v1beta1/public_image.d.ts +94 -0
- package/dist/v1beta1/public_image.d.ts.map +1 -0
- package/dist/v1beta1/public_image.js +56 -0
- package/dist/v1beta1/public_image.js.map +1 -0
- package/dist/v1beta1/volume_attachment.d.ts +156 -0
- package/dist/v1beta1/volume_attachment.d.ts.map +1 -0
- package/dist/v1beta1/volume_attachment.js +125 -0
- package/dist/v1beta1/volume_attachment.js.map +1 -0
- package/package.json +40 -4
- package/src/longrunning/v1beta1/index.ts +3 -0
- package/src/longrunning/v1beta1/operations.ts +103 -0
- package/src/v1beta1/catalog.ts +208 -0
- package/src/v1beta1/image.ts +269 -0
- package/src/v1beta1/index.ts +8 -0
- package/src/v1beta1/instance.ts +541 -0
- package/src/v1beta1/key_pair.ts +216 -0
- package/src/v1beta1/public_image.ts +137 -0
- package/src/v1beta1/volume_attachment.ts +241 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { type CallOptions, type Client, type Empty, type Service } from "@origincloud/core";
|
|
2
|
+
/**
|
|
3
|
+
* Calls KeyPairService.
|
|
4
|
+
*
|
|
5
|
+
* Key pairs: SSH public keys an instance installs for its login user at
|
|
6
|
+
* launch. A key pair belongs to its project and can be used in every zone.
|
|
7
|
+
* Import a key you have, or have the platform generate one and return its
|
|
8
|
+
* private key once.
|
|
9
|
+
*/
|
|
10
|
+
export declare class KeyPairClient {
|
|
11
|
+
/**
|
|
12
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
13
|
+
* operations its methods answer with.
|
|
14
|
+
*/
|
|
15
|
+
readonly service: Service;
|
|
16
|
+
/** A client of KeyPairService that sends its calls through `client`. */
|
|
17
|
+
constructor(client: Client);
|
|
18
|
+
/** Returns a key pair, its public key only. */
|
|
19
|
+
getKeyPair(request: GetKeyPairRequest, options?: CallOptions): Promise<KeyPair>;
|
|
20
|
+
/** Lists a project's key pairs, oldest first. */
|
|
21
|
+
listKeyPairs(request: ListKeyPairsRequest, options?: CallOptions): Promise<ListKeyPairsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Iterates over everything listKeyPairs lists from the request's page on,
|
|
24
|
+
* fetching the next page as the loop reaches it. A page that fails ends
|
|
25
|
+
* the iteration with its error.
|
|
26
|
+
*/
|
|
27
|
+
allKeyPairs(request: ListKeyPairsRequest, options?: CallOptions): AsyncGenerator<KeyPair, void, undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a key pair: imports `publicKey`, or, left empty, generates an
|
|
30
|
+
* `ssh-ed25519` key and returns its private half in `privateKey`, in
|
|
31
|
+
* this response only. A repeat of a generating request with the same
|
|
32
|
+
* `requestId` can't return the private key again, and is refused with
|
|
33
|
+
* `FAILED_PRECONDITION`: delete the key pair and create another.
|
|
34
|
+
*/
|
|
35
|
+
createKeyPair(request: CreateKeyPairRequest, options?: CallOptions): Promise<KeyPair>;
|
|
36
|
+
/** Changes a key pair's tags. */
|
|
37
|
+
updateKeyPair(request: UpdateKeyPairRequest, options?: CallOptions): Promise<KeyPair>;
|
|
38
|
+
/** Deletes a key pair. Instances launched with it keep the key installed. */
|
|
39
|
+
deleteKeyPair(request: DeleteKeyPairRequest, options?: CallOptions): Promise<Empty>;
|
|
40
|
+
}
|
|
41
|
+
/** An SSH public key, and on creation the private key generated for it. */
|
|
42
|
+
export interface KeyPair {
|
|
43
|
+
/** The key pair's resource name. */
|
|
44
|
+
name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The key pair's URN, the identifier access policies and the audit log
|
|
47
|
+
* use.
|
|
48
|
+
*/
|
|
49
|
+
urn?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The OpenSSH public key line, such as `ssh-ed25519 AAAA... comment`.
|
|
52
|
+
* Left empty, the platform generates the key pair.
|
|
53
|
+
*/
|
|
54
|
+
publicKey?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The generated private key in OpenSSH format, in the response that
|
|
57
|
+
* generated it and never again: the platform keeps only the public key.
|
|
58
|
+
* Empty in every other response.
|
|
59
|
+
*/
|
|
60
|
+
privateKey?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The principal that created the key pair, such as `user:<id>` or
|
|
63
|
+
* `service_account:<id>`.
|
|
64
|
+
*/
|
|
65
|
+
creator?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Labels of your own, at most 50. The `origin:name` tag is the name the
|
|
68
|
+
* console shows, and the comment of a generated key.
|
|
69
|
+
*/
|
|
70
|
+
tags?: Record<string, string>;
|
|
71
|
+
}
|
|
72
|
+
/** The request for GetKeyPair. */
|
|
73
|
+
export interface GetKeyPairRequest {
|
|
74
|
+
/** The key pair to return. */
|
|
75
|
+
name?: string;
|
|
76
|
+
}
|
|
77
|
+
/** The request for ListKeyPairs. */
|
|
78
|
+
export interface ListKeyPairsRequest {
|
|
79
|
+
/** The project whose key pairs to list, `projects/{project}`. */
|
|
80
|
+
parent?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The most key pairs to return; the server clamps it, and 0 means its
|
|
83
|
+
* default.
|
|
84
|
+
*/
|
|
85
|
+
pageSize?: number;
|
|
86
|
+
/** A previous response's `nextPageToken`, for the page after it. */
|
|
87
|
+
pageToken?: string;
|
|
88
|
+
}
|
|
89
|
+
/** The response for ListKeyPairs. */
|
|
90
|
+
export interface ListKeyPairsResponse {
|
|
91
|
+
/** The key pairs on this page. */
|
|
92
|
+
keyPairs?: KeyPair[];
|
|
93
|
+
/** The token for the next page; empty on the last one. */
|
|
94
|
+
nextPageToken?: string;
|
|
95
|
+
}
|
|
96
|
+
/** The request for CreateKeyPair. */
|
|
97
|
+
export interface CreateKeyPairRequest {
|
|
98
|
+
/** The project to create the key pair in, `projects/{project}`. */
|
|
99
|
+
parent?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The key pair to create: the public key to import, or none to generate
|
|
102
|
+
* one, and optionally its tags.
|
|
103
|
+
*/
|
|
104
|
+
keyPair?: KeyPair;
|
|
105
|
+
/**
|
|
106
|
+
* A UUID; a repeat with the same id returns the first request's key pair
|
|
107
|
+
* instead of creating a second one.
|
|
108
|
+
*/
|
|
109
|
+
requestId?: string;
|
|
110
|
+
}
|
|
111
|
+
/** The request for UpdateKeyPair. */
|
|
112
|
+
export interface UpdateKeyPairRequest {
|
|
113
|
+
/** The key pair, by its name, with the tags to set. */
|
|
114
|
+
keyPair?: KeyPair;
|
|
115
|
+
/**
|
|
116
|
+
* The fields to change: `tags`, the only field that changes. `*` is the
|
|
117
|
+
* same.
|
|
118
|
+
*/
|
|
119
|
+
updateMask?: string;
|
|
120
|
+
}
|
|
121
|
+
/** The request for DeleteKeyPair. */
|
|
122
|
+
export interface DeleteKeyPairRequest {
|
|
123
|
+
/** The key pair to delete. */
|
|
124
|
+
name?: string;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=key_pair.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key_pair.d.ts","sourceRoot":"","sources":["../../src/v1beta1/key_pair.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,OAAO,EAIb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;GAOG;AACH,qBAAa,aAAa;IACxB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,wEAAwE;gBAC5D,MAAM,EAAE,MAAM;IAI1B,+CAA+C;IACzC,UAAU,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAarF,iDAAiD;IAC3C,YAAY,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAatG;;;;OAIG;IACI,WAAW,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC;IASjH;;;;;;OAMG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAe3F,iCAAiC;IAC3B,aAAa,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAa3F,6EAA6E;IACvE,aAAa,C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AE,MAAM,CAAC;CACrB;AAED,qCAAqC;AACrC,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Code generated by the SDK's generator (generator/). DO NOT EDIT.
|
|
2
|
+
// source: origincloud/compute/v1beta1/key_pair.proto
|
|
3
|
+
import { newRequestId, pathValue, query, } from "@origincloud/core";
|
|
4
|
+
/**
|
|
5
|
+
* Calls KeyPairService.
|
|
6
|
+
*
|
|
7
|
+
* Key pairs: SSH public keys an instance installs for its login user at
|
|
8
|
+
* launch. A key pair belongs to its project and can be used in every zone.
|
|
9
|
+
* Import a key you have, or have the platform generate one and return its
|
|
10
|
+
* private key once.
|
|
11
|
+
*/
|
|
12
|
+
export class KeyPairClient {
|
|
13
|
+
/**
|
|
14
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
15
|
+
* operations its methods answer with.
|
|
16
|
+
*/
|
|
17
|
+
service;
|
|
18
|
+
/** A client of KeyPairService that sends its calls through `client`. */
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.service = client.service("compute", true);
|
|
21
|
+
}
|
|
22
|
+
/** Returns a key pair, its public key only. */
|
|
23
|
+
async getKeyPair(request, options) {
|
|
24
|
+
const p0 = pathValue("name", request.name, "projects/*/keyPairs/*");
|
|
25
|
+
return this.service.call({
|
|
26
|
+
method: "GET",
|
|
27
|
+
path: `/v1beta1/${p0}`,
|
|
28
|
+
query: query(request, ["name"]),
|
|
29
|
+
idempotent: true,
|
|
30
|
+
}, options);
|
|
31
|
+
}
|
|
32
|
+
/** Lists a project's key pairs, oldest first. */
|
|
33
|
+
async listKeyPairs(request, options) {
|
|
34
|
+
const p0 = pathValue("parent", request.parent, "projects/*");
|
|
35
|
+
return this.service.call({
|
|
36
|
+
method: "GET",
|
|
37
|
+
path: `/v1beta1/${p0}/keyPairs`,
|
|
38
|
+
query: query(request, ["parent"]),
|
|
39
|
+
idempotent: true,
|
|
40
|
+
}, options);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Iterates over everything listKeyPairs lists from the request's page on,
|
|
44
|
+
* fetching the next page as the loop reaches it. A page that fails ends
|
|
45
|
+
* the iteration with its error.
|
|
46
|
+
*/
|
|
47
|
+
async *allKeyPairs(request, options) {
|
|
48
|
+
for (let page = request;;) {
|
|
49
|
+
const response = await this.listKeyPairs(page, options);
|
|
50
|
+
yield* response.keyPairs ?? [];
|
|
51
|
+
if (!response.nextPageToken)
|
|
52
|
+
return;
|
|
53
|
+
page = { ...page, pageToken: response.nextPageToken };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Creates a key pair: imports `publicKey`, or, left empty, generates an
|
|
58
|
+
* `ssh-ed25519` key and returns its private half in `privateKey`, in
|
|
59
|
+
* this response only. A repeat of a generating request with the same
|
|
60
|
+
* `requestId` can't return the private key again, and is refused with
|
|
61
|
+
* `FAILED_PRECONDITION`: delete the key pair and create another.
|
|
62
|
+
*/
|
|
63
|
+
async createKeyPair(request, options) {
|
|
64
|
+
if (!request.requestId)
|
|
65
|
+
request = { ...request, requestId: newRequestId() };
|
|
66
|
+
const p0 = pathValue("parent", request.parent, "projects/*");
|
|
67
|
+
return this.service.call({
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: `/v1beta1/${p0}/keyPairs`,
|
|
70
|
+
body: request.keyPair,
|
|
71
|
+
query: query(request, ["parent", "keyPair"]),
|
|
72
|
+
idempotent: true,
|
|
73
|
+
}, options);
|
|
74
|
+
}
|
|
75
|
+
/** Changes a key pair's tags. */
|
|
76
|
+
async updateKeyPair(request, options) {
|
|
77
|
+
const p0 = pathValue("keyPair.name", request.keyPair?.name, "projects/*/keyPairs/*");
|
|
78
|
+
return this.service.call({
|
|
79
|
+
method: "PATCH",
|
|
80
|
+
path: `/v1beta1/${p0}`,
|
|
81
|
+
body: request.keyPair,
|
|
82
|
+
query: query(request, ["keyPair.name", "keyPair"]),
|
|
83
|
+
}, options);
|
|
84
|
+
}
|
|
85
|
+
/** Deletes a key pair. Instances launched with it keep the key installed. */
|
|
86
|
+
async deleteKeyPair(request, options) {
|
|
87
|
+
const p0 = pathValue("name", request.name, "projects/*/keyPairs/*");
|
|
88
|
+
return this.service.call({
|
|
89
|
+
method: "DELETE",
|
|
90
|
+
path: `/v1beta1/${p0}`,
|
|
91
|
+
query: query(request, ["name"]),
|
|
92
|
+
}, options);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=key_pair.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key_pair.js","sourceRoot":"","sources":["../../src/v1beta1/key_pair.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,qDAAqD;AAErD,OAAO,EAKL,YAAY,EACZ,SAAS,EACT,KAAK,GACN,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;GAOG;AACH,MAAM,OAAO,aAAa;IACxB;;;OAGG;IACM,OAAO,CAAU;IAE1B,wEAAwE;IACxE,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,+CAA+C;IAC/C,KAAK,CAAC,UAAU,CAAC,OAA0B,EAAE,OAAqB;QAChE,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;QACpE,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,iDAAiD;IACjD,KAAK,CAAC,YAAY,CAAC,OAA4B,EAAE,OAAqB;QACpE,MA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S,CAAC,CAAC;YAC5C,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED,iCAAiC;IACjC,KAAK,CAAC,aAAa,CAAC,OAA6B,EAAE,OAAqB;QACtE,MAAM,EAAE,GAAG,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;QACrF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,YAAY,EAAE,EAAE;YACtB,IAAI,EAAE,OAAO,CAAC,OAAO;YACrB,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;SACnD,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED,6EAA6E;IAC7E,KAAK,CAAC,aAAa,CAAC,OAA6B,EAAE,OAAqB;QACtE,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,YAAY,EAAE,EAAE;YACtB,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;SAChC,EACD,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type CallOptions, type Client, type Service } from "@origincloud/core";
|
|
2
|
+
import type { Image_Architecture, Image_Platform, Image_State } from "./image.js";
|
|
3
|
+
/**
|
|
4
|
+
* Calls PublicImageService.
|
|
5
|
+
*
|
|
6
|
+
* The catalog of public images: the platform's images, in each zone, that
|
|
7
|
+
* any project's instances can be launched from. Not scoped to an
|
|
8
|
+
* organisation or a project; no permission is needed.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PublicImageClient {
|
|
11
|
+
/**
|
|
12
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
13
|
+
* operations its methods answer with.
|
|
14
|
+
*/
|
|
15
|
+
readonly service: Service;
|
|
16
|
+
/** A client of PublicImageService that sends its calls through `client`. */
|
|
17
|
+
constructor(client: Client);
|
|
18
|
+
/** Returns a public image. */
|
|
19
|
+
getPublicImage(request: GetPublicImageRequest, options?: CallOptions): Promise<PublicImage>;
|
|
20
|
+
/** Lists the public images in a zone, oldest first. */
|
|
21
|
+
listPublicImages(request: ListPublicImagesRequest, options?: CallOptions): Promise<ListPublicImagesResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Iterates over everything listPublicImages lists from the request's page on,
|
|
24
|
+
* fetching the next page as the loop reaches it. A page that fails ends
|
|
25
|
+
* the iteration with its error.
|
|
26
|
+
*/
|
|
27
|
+
allPublicImages(request: ListPublicImagesRequest, options?: CallOptions): AsyncGenerator<PublicImage, void, undefined>;
|
|
28
|
+
}
|
|
29
|
+
/** One of the platform's images, in one zone. */
|
|
30
|
+
export interface PublicImage {
|
|
31
|
+
/** The image's resource name, `zones/{zone}/images/{image}`. */
|
|
32
|
+
name?: string;
|
|
33
|
+
/** The image's URN, the identifier access policies and the audit log use. */
|
|
34
|
+
urn?: string;
|
|
35
|
+
/** What the image holds. */
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The account an instance launched from the image logs in as, unless the
|
|
39
|
+
* launch names another.
|
|
40
|
+
*/
|
|
41
|
+
defaultUser?: string;
|
|
42
|
+
/** The device name of the disk the image boots from. */
|
|
43
|
+
rootDevice?: string;
|
|
44
|
+
/** The image's disks, each created for an instance launched from it. */
|
|
45
|
+
blockDevices?: PublicImageBlockDevice[];
|
|
46
|
+
/** The CPU architecture it boots on. */
|
|
47
|
+
architecture?: Image_Architecture;
|
|
48
|
+
/** Its operating system family. */
|
|
49
|
+
platform?: Image_Platform;
|
|
50
|
+
/** Where it is in its lifecycle. */
|
|
51
|
+
state?: Image_State;
|
|
52
|
+
/**
|
|
53
|
+
* The family the image belongs to, `imageFamilies/{image_family}`; empty
|
|
54
|
+
* for an image of none.
|
|
55
|
+
*/
|
|
56
|
+
imageFamily?: string;
|
|
57
|
+
/** Whether `imageFamily` launches this image now. */
|
|
58
|
+
familyCurrent?: boolean;
|
|
59
|
+
}
|
|
60
|
+
/** A disk of a public image. */
|
|
61
|
+
export interface PublicImageBlockDevice {
|
|
62
|
+
/**
|
|
63
|
+
* The device name the disk appears under on every instance launched from
|
|
64
|
+
* the image.
|
|
65
|
+
*/
|
|
66
|
+
device?: string;
|
|
67
|
+
/** The disk's size in GiB. */
|
|
68
|
+
sizeGib?: number;
|
|
69
|
+
}
|
|
70
|
+
/** The request for GetPublicImage. */
|
|
71
|
+
export interface GetPublicImageRequest {
|
|
72
|
+
/** The image to return, `zones/{zone}/images/{image}`. */
|
|
73
|
+
name?: string;
|
|
74
|
+
}
|
|
75
|
+
/** The request for ListPublicImages. */
|
|
76
|
+
export interface ListPublicImagesRequest {
|
|
77
|
+
/** The zone whose public images to list, `zones/{zone}`. */
|
|
78
|
+
parent?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The most images to return; the server clamps it, and 0 means its
|
|
81
|
+
* default.
|
|
82
|
+
*/
|
|
83
|
+
pageSize?: number;
|
|
84
|
+
/** A previous response's `nextPageToken`, for the page after it. */
|
|
85
|
+
pageToken?: string;
|
|
86
|
+
}
|
|
87
|
+
/** The response for ListPublicImages. */
|
|
88
|
+
export interface ListPublicImagesResponse {
|
|
89
|
+
/** The images on this page. */
|
|
90
|
+
publicImages?: PublicImage[];
|
|
91
|
+
/** The token for the next page; empty on the last one. */
|
|
92
|
+
nextPageToken?: string;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=public_image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public_image.d.ts","sourceRoot":"","sources":["../../src/v1beta1/public_image.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,K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,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,gCAAgC;AAChC,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,sCAAsC;AACtC,MAAM,WAAW,qBAAqB;IACpC,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wCAAwC;AACxC,MAAM,WAAW,uBAAuB;IACtC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yCAAyC;AACzC,MAAM,WAAW,wBAAwB;IACvC,+BAA+B;IAC/B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Code generated by the SDK's generator (generator/). DO NOT EDIT.
|
|
2
|
+
// source: origincloud/compute/v1beta1/public_image.proto
|
|
3
|
+
import { pathValue, query } from "@origincloud/core";
|
|
4
|
+
/**
|
|
5
|
+
* Calls PublicImageService.
|
|
6
|
+
*
|
|
7
|
+
* The catalog of public images: the platform's images, in each zone, that
|
|
8
|
+
* any project's instances can be launched from. Not scoped to an
|
|
9
|
+
* organisation or a project; no permission is needed.
|
|
10
|
+
*/
|
|
11
|
+
export class PublicImageClient {
|
|
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 PublicImageService that sends its calls through `client`. */
|
|
18
|
+
constructor(client) {
|
|
19
|
+
this.service = client.service("compute", true);
|
|
20
|
+
}
|
|
21
|
+
/** Returns a public image. */
|
|
22
|
+
async getPublicImage(request, options) {
|
|
23
|
+
const p0 = pathValue("name", request.name, "zones/*/images/*");
|
|
24
|
+
return this.service.call({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: `/v1beta1/${p0}`,
|
|
27
|
+
query: query(request, ["name"]),
|
|
28
|
+
idempotent: true,
|
|
29
|
+
}, options);
|
|
30
|
+
}
|
|
31
|
+
/** Lists the public images in a zone, oldest first. */
|
|
32
|
+
async listPublicImages(request, options) {
|
|
33
|
+
const p0 = pathValue("parent", request.parent, "zones/*");
|
|
34
|
+
return this.service.call({
|
|
35
|
+
method: "GET",
|
|
36
|
+
path: `/v1beta1/${p0}/images`,
|
|
37
|
+
query: query(request, ["parent"]),
|
|
38
|
+
idempotent: true,
|
|
39
|
+
}, options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Iterates over everything listPublicImages lists from the request's page on,
|
|
43
|
+
* fetching the next page as the loop reaches it. A page that fails ends
|
|
44
|
+
* the iteration with its error.
|
|
45
|
+
*/
|
|
46
|
+
async *allPublicImages(request, options) {
|
|
47
|
+
for (let page = request;;) {
|
|
48
|
+
const response = await this.listPublicImages(page, options);
|
|
49
|
+
yield* response.publicImages ?? [];
|
|
50
|
+
if (!response.nextPageToken)
|
|
51
|
+
return;
|
|
52
|
+
page = { ...page, pageToken: response.nextPageToken };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=public_image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public_image.js","sourceRoot":"","sources":["../../src/v1beta1/public_image.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,yDAAyD;AAEzD,OAAO,EAA+C,SAAS,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAGlG;;;;;;GAMG;AACH,MAAM,OAAO,iBAAiB;IAC5B;;;OAGG;IACM,OAAO,CAAU;IAE1B,4EAA4E;IAC5E,YAAY,MAAc;QACxB,IAAI,C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I,EAAE,SAAS,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;QACxD,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,156 @@
|
|
|
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 VolumeAttachmentService.
|
|
5
|
+
*
|
|
6
|
+
* Volume attachments: which volumes of the persistent volume service an
|
|
7
|
+
* instance holds, and the device names its guest sees them under. Creating
|
|
8
|
+
* one attaches a volume, deleting it detaches the volume.
|
|
9
|
+
*/
|
|
10
|
+
export declare class VolumeAttachmentClient {
|
|
11
|
+
/**
|
|
12
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
13
|
+
* operations its methods answer with.
|
|
14
|
+
*/
|
|
15
|
+
readonly service: Service;
|
|
16
|
+
/** A client of VolumeAttachmentService that sends its calls through `client`. */
|
|
17
|
+
constructor(client: Client);
|
|
18
|
+
/** Returns a volume attachment. A detached attachment isn't found. */
|
|
19
|
+
getVolumeAttachment(request: GetVolumeAttachmentRequest, options?: CallOptions): Promise<VolumeAttachment>;
|
|
20
|
+
/**
|
|
21
|
+
* Lists an instance's volume attachments, the boot volume's first, then
|
|
22
|
+
* by device name. With `-` for the instance, lists every instance's in the
|
|
23
|
+
* zone, which with `volume` finds the instance holding a volume.
|
|
24
|
+
* Detached attachments aren't listed.
|
|
25
|
+
*/
|
|
26
|
+
listVolumeAttachments(request: ListVolumeAttachmentsRequest, options?: CallOptions): Promise<ListVolumeAttachmentsResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Iterates over everything listVolumeAttachments lists from the request's page on,
|
|
29
|
+
* fetching the next page as the loop reaches it. A page that fails ends
|
|
30
|
+
* the iteration with its error.
|
|
31
|
+
*/
|
|
32
|
+
allVolumeAttachments(request: ListVolumeAttachmentsRequest, options?: CallOptions): AsyncGenerator<VolumeAttachment, void, undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Attaches an `AVAILABLE` volume to a `RUNNING` or `STOPPED` instance in
|
|
35
|
+
* the same project and zone. On a stopped instance the disk appears at
|
|
36
|
+
* the next start, and the operation is done at once. On a running one it
|
|
37
|
+
* is added live, and the operation is done once the guest sees it, or
|
|
38
|
+
* failed if it couldn't be added, which leaves the volume available.
|
|
39
|
+
*
|
|
40
|
+
* It answers with an operation to wait on, whose result is the VolumeAttachment.
|
|
41
|
+
*/
|
|
42
|
+
createVolumeAttachment(request: CreateVolumeAttachmentRequest, options?: CallOptions): Promise<Operation<VolumeAttachment, OperationMetadata>>;
|
|
43
|
+
/**
|
|
44
|
+
* Detaches a volume, which then is `AVAILABLE` again. The boot volume
|
|
45
|
+
* can't be detached. On a running instance the device is removed live;
|
|
46
|
+
* if the guest doesn't release it, the operation fails and the volume
|
|
47
|
+
* stays attached. The operation is done once the volume is detached.
|
|
48
|
+
*
|
|
49
|
+
* It answers with an operation to wait on, which has no result.
|
|
50
|
+
*/
|
|
51
|
+
deleteVolumeAttachment(request: DeleteVolumeAttachmentRequest, options?: CallOptions): Promise<Operation<Empty, OperationMetadata>>;
|
|
52
|
+
}
|
|
53
|
+
/** A volume an instance holds. */
|
|
54
|
+
export interface VolumeAttachment {
|
|
55
|
+
/** The attachment's resource name. */
|
|
56
|
+
name?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The attachment's URN, the identifier access policies and the audit log
|
|
59
|
+
* use.
|
|
60
|
+
*/
|
|
61
|
+
urn?: string;
|
|
62
|
+
/** The volume, in the instance's project and zone. */
|
|
63
|
+
volume?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The device name the guest sees the volume under, `vda` to `vdz`. The
|
|
66
|
+
* first free one when left empty.
|
|
67
|
+
*/
|
|
68
|
+
device?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Whether this is the instance's boot volume, which was attached at
|
|
71
|
+
* launch and can't be detached.
|
|
72
|
+
*/
|
|
73
|
+
boot?: boolean;
|
|
74
|
+
/** Where the attachment is. */
|
|
75
|
+
state?: VolumeAttachment_State;
|
|
76
|
+
}
|
|
77
|
+
/** Where the attachment is. */
|
|
78
|
+
export declare const VolumeAttachment_State: {
|
|
79
|
+
/** Not set. */
|
|
80
|
+
readonly STATE_UNSPECIFIED: "STATE_UNSPECIFIED";
|
|
81
|
+
/** The volume is being created or claimed for the instance. */
|
|
82
|
+
readonly CREATING: "CREATING";
|
|
83
|
+
/** Being added to the running guest. */
|
|
84
|
+
readonly ATTACHING: "ATTACHING";
|
|
85
|
+
/** Attached. */
|
|
86
|
+
readonly ATTACHED: "ATTACHED";
|
|
87
|
+
/** Being removed from the running guest. */
|
|
88
|
+
readonly DETACHING: "DETACHING";
|
|
89
|
+
/** Being released, as the instance is terminated. */
|
|
90
|
+
readonly RELEASING: "RELEASING";
|
|
91
|
+
/**
|
|
92
|
+
* The platform stopped trying to release the volume, which may still
|
|
93
|
+
* be held.
|
|
94
|
+
*/
|
|
95
|
+
readonly RELEASE_ABANDONED: "RELEASE_ABANDONED";
|
|
96
|
+
/** The volume couldn't be attached, and was released. */
|
|
97
|
+
readonly FAILED: "FAILED";
|
|
98
|
+
};
|
|
99
|
+
/** Where the attachment is. */
|
|
100
|
+
export type VolumeAttachment_State = (typeof VolumeAttachment_State)[keyof typeof VolumeAttachment_State];
|
|
101
|
+
/** The request for GetVolumeAttachment. */
|
|
102
|
+
export interface GetVolumeAttachmentRequest {
|
|
103
|
+
/** The attachment to return. */
|
|
104
|
+
name?: string;
|
|
105
|
+
}
|
|
106
|
+
/** The request for ListVolumeAttachments. */
|
|
107
|
+
export interface ListVolumeAttachmentsRequest {
|
|
108
|
+
/**
|
|
109
|
+
* The instance whose attachments to list,
|
|
110
|
+
* `projects/{project}/zones/{zone}/instances/{instance}`, or `-` for the
|
|
111
|
+
* instance to list every instance's in the zone.
|
|
112
|
+
*/
|
|
113
|
+
parent?: string;
|
|
114
|
+
/**
|
|
115
|
+
* The most attachments to return; the server clamps it, and 0 means its
|
|
116
|
+
* default.
|
|
117
|
+
*/
|
|
118
|
+
pageSize?: number;
|
|
119
|
+
/** A previous response's `nextPageToken`, for the page after it. */
|
|
120
|
+
pageToken?: string;
|
|
121
|
+
/** Only the attachments of this volume; every volume's when left empty. */
|
|
122
|
+
volume?: string;
|
|
123
|
+
}
|
|
124
|
+
/** The response for ListVolumeAttachments. */
|
|
125
|
+
export interface ListVolumeAttachmentsResponse {
|
|
126
|
+
/** The attachments on this page. */
|
|
127
|
+
volumeAttachments?: VolumeAttachment[];
|
|
128
|
+
/** The token for the next page; empty on the last one. */
|
|
129
|
+
nextPageToken?: string;
|
|
130
|
+
}
|
|
131
|
+
/** The request for CreateVolumeAttachment. */
|
|
132
|
+
export interface CreateVolumeAttachmentRequest {
|
|
133
|
+
/**
|
|
134
|
+
* The instance to attach the volume to,
|
|
135
|
+
* `projects/{project}/zones/{zone}/instances/{instance}`.
|
|
136
|
+
*/
|
|
137
|
+
parent?: string;
|
|
138
|
+
/** The attachment to create: its volume, and optionally its device name. */
|
|
139
|
+
volumeAttachment?: VolumeAttachment;
|
|
140
|
+
/**
|
|
141
|
+
* A UUID; a repeat with the same id returns the first request's
|
|
142
|
+
* operation instead of attaching again.
|
|
143
|
+
*/
|
|
144
|
+
requestId?: string;
|
|
145
|
+
}
|
|
146
|
+
/** The request for DeleteVolumeAttachment. */
|
|
147
|
+
export interface DeleteVolumeAttachmentRequest {
|
|
148
|
+
/** The attachment to delete, detaching its volume. */
|
|
149
|
+
name?: string;
|
|
150
|
+
/**
|
|
151
|
+
* A UUID; a repeat with the same id returns the first request's
|
|
152
|
+
* operation.
|
|
153
|
+
*/
|
|
154
|
+
requestId?: string;
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=volume_attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volume_attachment.d.ts","sourceRoot":"","sources":["../../src/v1beta1/volume_attachment.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK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