@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
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @origincloud/compute
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The client of Origin Cloud's compute service: instances, images, key pairs,
|
|
4
|
+
volume attachments and the instance catalog. Part of the [Origin Cloud SDK for
|
|
5
|
+
TypeScript](https://github.com/origincloudhq/sdk-typescript), generated from the
|
|
6
|
+
API definitions in [origincloudhq/api](https://github.com/origincloudhq/api).
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { Client } from "@origincloud/core";
|
|
10
|
+
import { InstanceTypeClient } from "@origincloud/compute/v1beta1";
|
|
11
|
+
|
|
12
|
+
const instanceTypes = new InstanceTypeClient(new Client());
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
| Import | API |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `@origincloud/compute/v1beta1` | Instances, images, key pairs, volume attachments and the instance catalog |
|
|
18
|
+
| `@origincloud/compute/longrunning/v1beta1` | Compute operations, for resuming one by name |
|
|
19
|
+
|
|
20
|
+
`v1beta1` is a preview version and may change in incompatible ways, like the API
|
|
21
|
+
itself. See the [repository's
|
|
22
|
+
README](https://github.com/origincloudhq/sdk-typescript#readme) for credentials
|
|
23
|
+
and behaviour.
|
|
24
|
+
|
|
25
|
+
Apache License 2.0.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/longrunning/v1beta1/index.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/longrunning/v1beta1/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type CallOptions, type Client, type LongrunningOperation, type Service } from "@origincloud/core";
|
|
2
|
+
/**
|
|
3
|
+
* Calls OperationService.
|
|
4
|
+
*
|
|
5
|
+
* The long-running operations of a service: what its creates, updates and
|
|
6
|
+
* deletes answer with, until their resource settles. Every service serves
|
|
7
|
+
* this at its own host, for the operations its own methods return.
|
|
8
|
+
*
|
|
9
|
+
* An operation is done when its resource reaches the state its method
|
|
10
|
+
* promises, or failed when it can't get there; that outcome never changes
|
|
11
|
+
* afterwards, whatever later happens to the resource. It can be read for a
|
|
12
|
+
* day after it is done.
|
|
13
|
+
*/
|
|
14
|
+
export declare class OperationClient {
|
|
15
|
+
/**
|
|
16
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
17
|
+
* operations its methods answer with.
|
|
18
|
+
*/
|
|
19
|
+
readonly service: Service;
|
|
20
|
+
/**
|
|
21
|
+
* A client of OperationService at the compute host, which serves the
|
|
22
|
+
* operations the compute methods answer with.
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: Client);
|
|
25
|
+
/** Returns an operation as it is now. */
|
|
26
|
+
getOperation(request: GetOperationRequest, options?: CallOptions): Promise<LongrunningOperation>;
|
|
27
|
+
/**
|
|
28
|
+
* Waits until an operation is done or `timeout` has passed, whichever
|
|
29
|
+
* comes first, and returns it as it is then. It only reads, so a client
|
|
30
|
+
* may repeat it after a transport error.
|
|
31
|
+
*/
|
|
32
|
+
waitOperation(request: WaitOperationRequest, options?: CallOptions): Promise<LongrunningOperation>;
|
|
33
|
+
}
|
|
34
|
+
/** The request for GetOperation. */
|
|
35
|
+
export interface GetOperationRequest {
|
|
36
|
+
/**
|
|
37
|
+
* The operation to return, `projects/{project}/zones/{zone}/operations/{operation}`,
|
|
38
|
+
* exactly as a method returned it.
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
}
|
|
42
|
+
/** The request for WaitOperation. */
|
|
43
|
+
export interface WaitOperationRequest {
|
|
44
|
+
/** The operation to wait for, exactly as a method returned it. */
|
|
45
|
+
name?: string;
|
|
46
|
+
/** The longest to wait, at most a minute; a minute when not set. */
|
|
47
|
+
timeout?: string;
|
|
48
|
+
}
|
|
49
|
+
/** What an operation is about. */
|
|
50
|
+
export interface OperationMetadata {
|
|
51
|
+
/** The resource the operation acts on. */
|
|
52
|
+
target?: string;
|
|
53
|
+
/**
|
|
54
|
+
* What it does, as the method that started it names it: for example
|
|
55
|
+
* `create`, `update` or `delete`.
|
|
56
|
+
*/
|
|
57
|
+
verb?: string;
|
|
58
|
+
/** When it was accepted. */
|
|
59
|
+
createTime?: string;
|
|
60
|
+
/** When it finished; empty while it hasn't. */
|
|
61
|
+
endTime?: string;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/longrunning/v1beta1/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,OAAO,EAGb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe;IAC1B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B,yCAAyC;IACnC,YAAY,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAatG;;;;OAIG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAYzG;AAED,oCAAoC;AACpC,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qCAAqC;AACrC,MAAM,WAAW,oBAAoB;IACnC,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,kCAAkC;AAClC,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Code generated by the SDK's generator (generator/). DO NOT EDIT.
|
|
2
|
+
// source: origincloud/longrunning/v1beta1/operations.proto
|
|
3
|
+
import { pathValue, query, } from "@origincloud/core";
|
|
4
|
+
/**
|
|
5
|
+
* Calls OperationService.
|
|
6
|
+
*
|
|
7
|
+
* The long-running operations of a service: what its creates, updates and
|
|
8
|
+
* deletes answer with, until their resource settles. Every service serves
|
|
9
|
+
* this at its own host, for the operations its own methods return.
|
|
10
|
+
*
|
|
11
|
+
* An operation is done when its resource reaches the state its method
|
|
12
|
+
* promises, or failed when it can't get there; that outcome never changes
|
|
13
|
+
* afterwards, whatever later happens to the resource. It can be read for a
|
|
14
|
+
* day after it is done.
|
|
15
|
+
*/
|
|
16
|
+
export class OperationClient {
|
|
17
|
+
/**
|
|
18
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
19
|
+
* operations its methods answer with.
|
|
20
|
+
*/
|
|
21
|
+
service;
|
|
22
|
+
/**
|
|
23
|
+
* A client of OperationService at the compute host, which serves the
|
|
24
|
+
* operations the compute methods answer with.
|
|
25
|
+
*/
|
|
26
|
+
constructor(client) {
|
|
27
|
+
this.service = client.service("compute", true);
|
|
28
|
+
}
|
|
29
|
+
/** Returns an operation as it is now. */
|
|
30
|
+
async getOperation(request, options) {
|
|
31
|
+
const p0 = pathValue("name", request.name, "projects/*/zones/*/operations/*");
|
|
32
|
+
return this.service.call({
|
|
33
|
+
method: "GET",
|
|
34
|
+
path: `/v1beta1/${p0}`,
|
|
35
|
+
query: query(request, ["name"]),
|
|
36
|
+
idempotent: true,
|
|
37
|
+
}, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Waits until an operation is done or `timeout` has passed, whichever
|
|
41
|
+
* comes first, and returns it as it is then. It only reads, so a client
|
|
42
|
+
* may repeat it after a transport error.
|
|
43
|
+
*/
|
|
44
|
+
async waitOperation(request, options) {
|
|
45
|
+
const p0 = pathValue("name", request.name, "projects/*/zones/*/operations/*");
|
|
46
|
+
return this.service.call({
|
|
47
|
+
method: "POST",
|
|
48
|
+
path: `/v1beta1/${p0}:wait`,
|
|
49
|
+
body: request,
|
|
50
|
+
idempotent: true,
|
|
51
|
+
}, options);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/longrunning/v1beta1/operations.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,2DAA2D;AAE3D,OAAO,EAKL,SAAS,EACT,KAAK,GACN,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,eAAe;IAC1B;;;OAGG;IACM,OAAO,CAAU;IAE1B;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,yCAAyC;IACzC,KAAK,CAAC,YAAY,CAAC,OAA4B,EAAE,OAAqB;QACpE,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,iCAAiC,CAAC,CAAC;QAC9E,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;;;;OAIG;IACH,KAAK,CAAC,aAAa,CAAC,OAA6B,EAAE,OAAqB;QACtE,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,iCAAiC,CAAC,CAAC;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY,EAAE,OAAO;YAC3B,IAAI,EAAE,OAAO;YACb,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { type CallOptions, type Client, type Service } from "@origincloud/core";
|
|
2
|
+
/**
|
|
3
|
+
* Calls InstanceTypeService.
|
|
4
|
+
*
|
|
5
|
+
* The catalog of instance types: every size the platform publishes, each
|
|
6
|
+
* saying whether an instance can be launched as it right now. Not scoped to
|
|
7
|
+
* an organisation or a project; no permission is needed.
|
|
8
|
+
*/
|
|
9
|
+
export declare class InstanceTypeClient {
|
|
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 InstanceTypeService that sends its calls through `client`. */
|
|
16
|
+
constructor(client: Client);
|
|
17
|
+
/** Returns an instance type. */
|
|
18
|
+
getInstanceType(request: GetInstanceTypeRequest, options?: CallOptions): Promise<InstanceType>;
|
|
19
|
+
/**
|
|
20
|
+
* Lists every instance type, including those no longer offered, which
|
|
21
|
+
* instances launched as them still report: check `available` before
|
|
22
|
+
* launching as one.
|
|
23
|
+
*/
|
|
24
|
+
listInstanceTypes(request: ListInstanceTypesRequest, options?: CallOptions): Promise<ListInstanceTypesResponse>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Calls ImageFamilyService.
|
|
28
|
+
*
|
|
29
|
+
* The catalog of image families: stable names that each launch whichever
|
|
30
|
+
* public image is current for them, so a launch gets the latest build
|
|
31
|
+
* without naming an image. Not scoped to an organisation or a project; no
|
|
32
|
+
* permission is needed.
|
|
33
|
+
*/
|
|
34
|
+
export declare class ImageFamilyClient {
|
|
35
|
+
/**
|
|
36
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
37
|
+
* operations its methods answer with.
|
|
38
|
+
*/
|
|
39
|
+
readonly service: Service;
|
|
40
|
+
/** A client of ImageFamilyService that sends its calls through `client`. */
|
|
41
|
+
constructor(client: Client);
|
|
42
|
+
/** Returns an image family. */
|
|
43
|
+
getImageFamily(request: GetImageFamilyRequest, options?: CallOptions): Promise<ImageFamily>;
|
|
44
|
+
/**
|
|
45
|
+
* Lists every image family, including those no longer offered: check
|
|
46
|
+
* `available` before launching from one.
|
|
47
|
+
*/
|
|
48
|
+
listImageFamilies(request: ListImageFamiliesRequest, options?: CallOptions): Promise<ListImageFamiliesResponse>;
|
|
49
|
+
}
|
|
50
|
+
/** A size an instance is launched as. */
|
|
51
|
+
export interface InstanceType {
|
|
52
|
+
/** The type's resource name, `instanceTypes/gp1.core.2`. */
|
|
53
|
+
name?: string;
|
|
54
|
+
/** The name the console shows. */
|
|
55
|
+
displayName?: string;
|
|
56
|
+
/** The hardware kind, such as `gp1`. */
|
|
57
|
+
kind?: string;
|
|
58
|
+
/** How its vCPUs are allocated, such as `core`: dedicated and guaranteed. */
|
|
59
|
+
cpuAllocationMode?: string;
|
|
60
|
+
/** The vCPUs an instance of the type has. */
|
|
61
|
+
vcpu?: number;
|
|
62
|
+
/** The memory an instance of the type has, in MiB. */
|
|
63
|
+
memoryMib?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The most an instance of the type reads and writes across all its
|
|
66
|
+
* volumes together, in megabits per second; 0 when it isn't limited.
|
|
67
|
+
*/
|
|
68
|
+
storageBandwidthMbit?: number;
|
|
69
|
+
/**
|
|
70
|
+
* The rate an instance of the type can burst to above
|
|
71
|
+
* `storageBandwidthMbit`, in megabits per second, for 60 seconds of
|
|
72
|
+
* traffic at that rate, which staying under the limit refills; 0 when it
|
|
73
|
+
* can't burst.
|
|
74
|
+
*/
|
|
75
|
+
storageBurstBandwidthMbit?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Whether an instance can be launched as, or changed to, the type now. A
|
|
78
|
+
* type listed but not available is no longer offered; instances already
|
|
79
|
+
* of the type keep running.
|
|
80
|
+
*/
|
|
81
|
+
available?: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A stable name for the current public image of an operating system
|
|
85
|
+
* release.
|
|
86
|
+
*/
|
|
87
|
+
export interface ImageFamily {
|
|
88
|
+
/**
|
|
89
|
+
* The family's resource name, `imageFamilies/ubuntu-24-04-minimal`.
|
|
90
|
+
* Never renamed, and never reused for another release.
|
|
91
|
+
*/
|
|
92
|
+
name?: string;
|
|
93
|
+
/** The name the console shows. */
|
|
94
|
+
displayName?: string;
|
|
95
|
+
/** What the family's images hold. */
|
|
96
|
+
description?: string;
|
|
97
|
+
/** Who publishes the release, such as `Canonical`. */
|
|
98
|
+
vendor?: string;
|
|
99
|
+
/** The operating system, such as `ubuntu`. */
|
|
100
|
+
os?: string;
|
|
101
|
+
/** The release, such as `24.04`. */
|
|
102
|
+
osVersion?: string;
|
|
103
|
+
/**
|
|
104
|
+
* When the vendor stops supporting the release; empty when no date is
|
|
105
|
+
* known. Advisory: launches aren't refused after it.
|
|
106
|
+
*/
|
|
107
|
+
supportEndTime?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Whether an instance can be launched from the family now. Instances
|
|
110
|
+
* launched from a family no longer offered are unaffected.
|
|
111
|
+
*/
|
|
112
|
+
available?: boolean;
|
|
113
|
+
}
|
|
114
|
+
/** The request for GetInstanceType. */
|
|
115
|
+
export interface GetInstanceTypeRequest {
|
|
116
|
+
/** The type to return, `instanceTypes/{instance_type}`. */
|
|
117
|
+
name?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The request for ListInstanceTypes. The catalog is small and bounded by
|
|
121
|
+
* the platform, so it comes in one page.
|
|
122
|
+
*/
|
|
123
|
+
export interface ListInstanceTypesRequest {
|
|
124
|
+
}
|
|
125
|
+
/** The response for ListInstanceTypes. */
|
|
126
|
+
export interface ListInstanceTypesResponse {
|
|
127
|
+
/** Every instance type, by kind, then by size. */
|
|
128
|
+
instanceTypes?: InstanceType[];
|
|
129
|
+
}
|
|
130
|
+
/** The request for GetImageFamily. */
|
|
131
|
+
export interface GetImageFamilyRequest {
|
|
132
|
+
/** The family to return, `imageFamilies/{image_family}`. */
|
|
133
|
+
name?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The request for ListImageFamilies. The catalog is small and bounded by
|
|
137
|
+
* the platform, so it comes in one page.
|
|
138
|
+
*/
|
|
139
|
+
export interface ListImageFamiliesRequest {
|
|
140
|
+
}
|
|
141
|
+
/** The response for ListImageFamilies. */
|
|
142
|
+
export interface ListImageFamiliesResponse {
|
|
143
|
+
/** Every image family, by name. */
|
|
144
|
+
imageFamilies?: ImageFamily[];
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/v1beta1/catalog.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,gCAAgC;IAC1B,eAAe,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;IAapG;;;;OAIG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAWtH;AAED;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,4EAA4E;gBAChE,MAAM,EAAE,MAAM;IAI1B,+BAA+B;IACzB,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAajG;;;OAGG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAWtH;AAED,yCAAyC;AACzC,MAAM,WAAW,YAAY;IAC3B,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,WAAW,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0CAA0C;AAC1C,MAAM,WAAW,yBAAyB;IACxC,mCAAmC;IACnC,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;CAC/B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Code generated by the SDK's generator (generator/). DO NOT EDIT.
|
|
2
|
+
// source: origincloud/compute/v1beta1/catalog.proto
|
|
3
|
+
import { pathValue, query } from "@origincloud/core";
|
|
4
|
+
/**
|
|
5
|
+
* Calls InstanceTypeService.
|
|
6
|
+
*
|
|
7
|
+
* The catalog of instance types: every size the platform publishes, each
|
|
8
|
+
* saying whether an instance can be launched as it right now. Not scoped to
|
|
9
|
+
* an organisation or a project; no permission is needed.
|
|
10
|
+
*/
|
|
11
|
+
export class InstanceTypeClient {
|
|
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 InstanceTypeService that sends its calls through `client`. */
|
|
18
|
+
constructor(client) {
|
|
19
|
+
this.service = client.service("compute", true);
|
|
20
|
+
}
|
|
21
|
+
/** Returns an instance type. */
|
|
22
|
+
async getInstanceType(request, options) {
|
|
23
|
+
const p0 = pathValue("name", request.name, "instanceTypes/*");
|
|
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 instance type, including those no longer offered, which
|
|
33
|
+
* instances launched as them still report: check `available` before
|
|
34
|
+
* launching as one.
|
|
35
|
+
*/
|
|
36
|
+
async listInstanceTypes(request, options) {
|
|
37
|
+
return this.service.call({
|
|
38
|
+
method: "GET",
|
|
39
|
+
path: `/v1beta1/instanceTypes`,
|
|
40
|
+
query: query(request, []),
|
|
41
|
+
idempotent: true,
|
|
42
|
+
}, options);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Calls ImageFamilyService.
|
|
47
|
+
*
|
|
48
|
+
* The catalog of image families: stable names that each launch whichever
|
|
49
|
+
* public image is current for them, so a launch gets the latest build
|
|
50
|
+
* without naming an image. Not scoped to an organisation or a project; no
|
|
51
|
+
* permission is needed.
|
|
52
|
+
*/
|
|
53
|
+
export class ImageFamilyClient {
|
|
54
|
+
/**
|
|
55
|
+
* The endpoint the client sends its calls to, which also serves the
|
|
56
|
+
* operations its methods answer with.
|
|
57
|
+
*/
|
|
58
|
+
service;
|
|
59
|
+
/** A client of ImageFamilyService that sends its calls through `client`. */
|
|
60
|
+
constructor(client) {
|
|
61
|
+
this.service = client.service("compute", true);
|
|
62
|
+
}
|
|
63
|
+
/** Returns an image family. */
|
|
64
|
+
async getImageFamily(request, options) {
|
|
65
|
+
const p0 = pathValue("name", request.name, "imageFamilies/*");
|
|
66
|
+
return this.service.call({
|
|
67
|
+
method: "GET",
|
|
68
|
+
path: `/v1beta1/${p0}`,
|
|
69
|
+
query: query(request, ["name"]),
|
|
70
|
+
idempotent: true,
|
|
71
|
+
}, options);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Lists every image family, including those no longer offered: check
|
|
75
|
+
* `available` before launching from one.
|
|
76
|
+
*/
|
|
77
|
+
async listImageFamilies(request, options) {
|
|
78
|
+
return this.service.call({
|
|
79
|
+
method: "GET",
|
|
80
|
+
path: `/v1beta1/imageFamilies`,
|
|
81
|
+
query: query(request, []),
|
|
82
|
+
idempotent: true,
|
|
83
|
+
}, options);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/v1beta1/catalog.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,oDAAoD;AAEpD,OAAO,EAA+C,SAAS,EAAE,KAAK,EA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