@nirvana-labs/nirvana 0.1.0-alpha.14 → 0.1.0-alpha.16
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/CHANGELOG.md +17 -0
- package/README.md +14 -14
- package/package.json +1 -1
- package/resources/compute/compute.d.ts +4 -4
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +1 -1
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/index.d.ts +2 -2
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/vms/index.d.ts +1 -1
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/vms.d.ts +29 -26
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes.d.ts +3 -3
- package/resources/compute/volumes.d.ts.map +1 -1
- package/resources/operations.d.ts +8 -5
- package/resources/operations.d.ts.map +1 -1
- package/src/resources/compute/compute.ts +15 -5
- package/src/resources/compute/index.ts +3 -3
- package/src/resources/compute/vms/index.ts +2 -2
- package/src/resources/compute/vms/vms.ts +33 -30
- package/src/resources/compute/volumes.ts +3 -3
- package/src/resources/operations.ts +11 -5
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.16 (2025-02-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/nirvana-labs/nirvana-node/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([#59](https://github.com/nirvana-labs/nirvana-node/issues/59)) ([5c09a20](https://github.com/nirvana-labs/nirvana-node/commit/5c09a207ad2223b234c728675aea49130f06e98f))
|
|
10
|
+
* **api:** manual updates ([#61](https://github.com/nirvana-labs/nirvana-node/issues/61)) ([60a87b4](https://github.com/nirvana-labs/nirvana-node/commit/60a87b4fab3fbf20266e4e50e366ae5f621aa22c))
|
|
11
|
+
|
|
12
|
+
## 0.1.0-alpha.15 (2025-02-07)
|
|
13
|
+
|
|
14
|
+
Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/nirvana-labs/nirvana-node/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **api:** api update ([#56](https://github.com/nirvana-labs/nirvana-node/issues/56)) ([f06e26c](https://github.com/nirvana-labs/nirvana-node/commit/f06e26c60276560b577e9edbed9478c93e8e015d))
|
|
19
|
+
|
|
3
20
|
## 0.1.0-alpha.14 (2025-02-06)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/nirvana-labs/nirvana-node/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
|
package/README.md
CHANGED
|
@@ -27,11 +27,11 @@ const client = new NirvanaLabs({
|
|
|
27
27
|
async function main() {
|
|
28
28
|
const operation = await client.compute.vms.create({
|
|
29
29
|
boot_volume: { size: 100 },
|
|
30
|
-
|
|
30
|
+
cpu_config: { vcpu: 2 },
|
|
31
|
+
memory_config: { size: 2 },
|
|
31
32
|
name: 'my-vm',
|
|
32
33
|
os_image_name: 'noble-2024-12-06',
|
|
33
34
|
public_ip_enabled: true,
|
|
34
|
-
ram: { size: 2 },
|
|
35
35
|
region: 'us-sea-1',
|
|
36
36
|
ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' },
|
|
37
37
|
});
|
|
@@ -57,11 +57,11 @@ const client = new NirvanaLabs({
|
|
|
57
57
|
async function main() {
|
|
58
58
|
const params: NirvanaLabs.Compute.VMCreateParams = {
|
|
59
59
|
boot_volume: { size: 100 },
|
|
60
|
-
|
|
60
|
+
cpu_config: { vcpu: 2 },
|
|
61
|
+
memory_config: { size: 2 },
|
|
61
62
|
name: 'my-vm',
|
|
62
63
|
os_image_name: 'noble-2024-12-06',
|
|
63
64
|
public_ip_enabled: true,
|
|
64
|
-
ram: { size: 2 },
|
|
65
65
|
region: 'us-sea-1',
|
|
66
66
|
ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' },
|
|
67
67
|
};
|
|
@@ -85,11 +85,11 @@ async function main() {
|
|
|
85
85
|
const operation = await client.compute.vms
|
|
86
86
|
.create({
|
|
87
87
|
boot_volume: { size: 100 },
|
|
88
|
-
|
|
88
|
+
cpu_config: { vcpu: 2 },
|
|
89
|
+
memory_config: { size: 2 },
|
|
89
90
|
name: 'my-vm',
|
|
90
91
|
os_image_name: 'noble-2024-12-06',
|
|
91
92
|
public_ip_enabled: true,
|
|
92
|
-
ram: { size: 2 },
|
|
93
93
|
region: 'us-sea-1',
|
|
94
94
|
ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' },
|
|
95
95
|
})
|
|
@@ -136,7 +136,7 @@ const client = new NirvanaLabs({
|
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
// Or, configure per-request:
|
|
139
|
-
await client.compute.vms.create({ boot_volume: { size: 100 },
|
|
139
|
+
await client.compute.vms.create({ boot_volume: { size: 100 }, cpu_config: { vcpu: 2 }, memory_config: { size: 2 }, name: 'my-vm', os_image_name: 'noble-2024-12-06', public_ip_enabled: true, region: 'us-sea-1', ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' } }, {
|
|
140
140
|
maxRetries: 5,
|
|
141
141
|
});
|
|
142
142
|
```
|
|
@@ -153,7 +153,7 @@ const client = new NirvanaLabs({
|
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
// Override per-request:
|
|
156
|
-
await client.compute.vms.create({ boot_volume: { size: 100 },
|
|
156
|
+
await client.compute.vms.create({ boot_volume: { size: 100 }, cpu_config: { vcpu: 2 }, memory_config: { size: 2 }, name: 'my-vm', os_image_name: 'noble-2024-12-06', public_ip_enabled: true, region: 'us-sea-1', ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' } }, {
|
|
157
157
|
timeout: 5 * 1000,
|
|
158
158
|
});
|
|
159
159
|
```
|
|
@@ -177,11 +177,11 @@ const client = new NirvanaLabs();
|
|
|
177
177
|
const response = await client.compute.vms
|
|
178
178
|
.create({
|
|
179
179
|
boot_volume: { size: 100 },
|
|
180
|
-
|
|
180
|
+
cpu_config: { vcpu: 2 },
|
|
181
|
+
memory_config: { size: 2 },
|
|
181
182
|
name: 'my-vm',
|
|
182
183
|
os_image_name: 'noble-2024-12-06',
|
|
183
184
|
public_ip_enabled: true,
|
|
184
|
-
ram: { size: 2 },
|
|
185
185
|
region: 'us-sea-1',
|
|
186
186
|
ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' },
|
|
187
187
|
})
|
|
@@ -192,11 +192,11 @@ console.log(response.statusText); // access the underlying Response object
|
|
|
192
192
|
const { data: operation, response: raw } = await client.compute.vms
|
|
193
193
|
.create({
|
|
194
194
|
boot_volume: { size: 100 },
|
|
195
|
-
|
|
195
|
+
cpu_config: { vcpu: 2 },
|
|
196
|
+
memory_config: { size: 2 },
|
|
196
197
|
name: 'my-vm',
|
|
197
198
|
os_image_name: 'noble-2024-12-06',
|
|
198
199
|
public_ip_enabled: true,
|
|
199
|
-
ram: { size: 2 },
|
|
200
200
|
region: 'us-sea-1',
|
|
201
201
|
ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' },
|
|
202
202
|
})
|
|
@@ -309,11 +309,11 @@ const client = new NirvanaLabs({
|
|
|
309
309
|
await client.compute.vms.create(
|
|
310
310
|
{
|
|
311
311
|
boot_volume: { size: 100 },
|
|
312
|
-
|
|
312
|
+
cpu_config: { vcpu: 2 },
|
|
313
|
+
memory_config: { size: 2 },
|
|
313
314
|
name: 'my-vm',
|
|
314
315
|
os_image_name: 'noble-2024-12-06',
|
|
315
316
|
public_ip_enabled: true,
|
|
316
|
-
ram: { size: 2 },
|
|
317
317
|
region: 'us-sea-1',
|
|
318
318
|
ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1234567890' },
|
|
319
319
|
},
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as VolumesAPI from "./volumes.js";
|
|
3
|
-
import { StorageType, Volume, VolumeCreateParams, VolumeKind,
|
|
3
|
+
import { StorageType, Volume, VolumeCreateParams, VolumeKind, VolumeList, VolumeUpdateParams, Volumes } from "./volumes.js";
|
|
4
4
|
import * as VMsAPI from "./vms/vms.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CPUConfig, MemoryConfig, OSImage, SSHKey, VM, VMCreateParams, VMList, VMUpdateParams, VMs } from "./vms/vms.js";
|
|
6
6
|
export declare class Compute extends APIResource {
|
|
7
7
|
vms: VMsAPI.VMs;
|
|
8
8
|
volumes: VolumesAPI.Volumes;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Compute {
|
|
11
|
-
export { VMs as VMs, type
|
|
12
|
-
export { Volumes as Volumes, type StorageType as StorageType, type Volume as Volume, type VolumeKind as VolumeKind, type
|
|
11
|
+
export { VMs as VMs, type CPUConfig as CPUConfig, type MemoryConfig as MemoryConfig, type OSImage as OSImage, type SSHKey as SSHKey, type VM as VM, type VMList as VMList, type VMCreateParams as VMCreateParams, type VMUpdateParams as VMUpdateParams, };
|
|
12
|
+
export { Volumes as Volumes, type StorageType as StorageType, type Volume as Volume, type VolumeKind as VolumeKind, type VolumeList as VolumeList, type VolumeCreateParams as VolumeCreateParams, type VolumeUpdateParams as VolumeUpdateParams, };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=compute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,OAAO,EACR,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,SAAS,EACT,YAAY,EACZ,OAAO,EACP,MAAM,EACN,EAAE,EACF,cAAc,EACd,MAAM,EACN,cAAc,EACd,GAAG,EACJ,MAAM,WAAW,CAAC;AAEnB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAKD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,EAAE,IAAI,EAAE,EACb,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.js","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,yDAAwC;AACxC,0CAQmB;AACnB,qDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"compute.js","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,yDAAwC;AACxC,0CAQmB;AACnB,qDAAoC;AACpC,sCAUmB;AAEnB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAHD,0BAGC;AAED,OAAO,CAAC,GAAG,GAAG,SAAG,CAAC;AAClB,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../resource.mjs";
|
|
|
3
3
|
import * as VolumesAPI from "./volumes.mjs";
|
|
4
4
|
import { Volumes, } from "./volumes.mjs";
|
|
5
5
|
import * as VMsAPI from "./vms/vms.mjs";
|
|
6
|
-
import { VMs } from "./vms/vms.mjs";
|
|
6
|
+
import { VMs, } from "./vms/vms.mjs";
|
|
7
7
|
export class Compute extends APIResource {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.mjs","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAOL,OAAO,GACR;OACM,KAAK,MAAM;OACX,
|
|
1
|
+
{"version":3,"file":"compute.mjs","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAOL,OAAO,GACR;OACM,KAAK,MAAM;OACX,EASL,GAAG,GACJ;AAED,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AAClB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Compute } from "./compute.js";
|
|
2
|
-
export { VMs, type
|
|
3
|
-
export { Volumes, type StorageType, type Volume, type VolumeKind, type
|
|
2
|
+
export { VMs, type CPUConfig, type MemoryConfig, type OSImage, type SSHKey, type VM, type VMList, type VMCreateParams, type VMUpdateParams, } from "./vms/index.js";
|
|
3
|
+
export { Volumes, type StorageType, type Volume, type VolumeKind, type VolumeList, type VolumeCreateParams, type VolumeUpdateParams, } from "./volumes.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/compute/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,GAAG,EACH,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/compute/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,GAAG,EACH,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,EAAE,EACP,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { OSImages, type OSImageListResponse } from "./os-images.js";
|
|
2
|
-
export { VMs, type
|
|
2
|
+
export { VMs, type CPUConfig, type MemoryConfig, type OSImage, type SSHKey, type VM, type VMList, type VMCreateParams, type VMUpdateParams, } from "./vms.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EACL,GAAG,EACH,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EACL,GAAG,EACH,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,EAAE,EACP,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,OAAO,CAAC"}
|
|
@@ -28,25 +28,28 @@ export declare class VMs extends APIResource {
|
|
|
28
28
|
get(vmId: string, options?: Core.RequestOptions): Core.APIPromise<VM>;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* CPU details.
|
|
31
|
+
* CPU config details.
|
|
32
32
|
*/
|
|
33
|
-
export interface
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
display_name: string;
|
|
39
|
-
name: string;
|
|
33
|
+
export interface CPUConfig {
|
|
34
|
+
/**
|
|
35
|
+
* virtual CPUs
|
|
36
|
+
*/
|
|
37
|
+
vcpu: number;
|
|
40
38
|
}
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
40
|
+
* Memory config details.
|
|
43
41
|
*/
|
|
44
|
-
export interface
|
|
42
|
+
export interface MemoryConfig {
|
|
45
43
|
/**
|
|
46
|
-
*
|
|
44
|
+
* memory size
|
|
47
45
|
*/
|
|
48
46
|
size: number;
|
|
49
47
|
}
|
|
48
|
+
export interface OSImage {
|
|
49
|
+
created_at: string;
|
|
50
|
+
display_name: string;
|
|
51
|
+
name: string;
|
|
52
|
+
}
|
|
50
53
|
/**
|
|
51
54
|
* SSH key details.
|
|
52
55
|
*/
|
|
@@ -60,15 +63,15 @@ export interface VM {
|
|
|
60
63
|
id: string;
|
|
61
64
|
boot_volume_id: string;
|
|
62
65
|
/**
|
|
63
|
-
* CPU details.
|
|
66
|
+
* CPU config details.
|
|
64
67
|
*/
|
|
65
|
-
cpu_config:
|
|
68
|
+
cpu_config: CPUConfig;
|
|
66
69
|
created_at: string;
|
|
67
70
|
data_volume_ids: Array<string>;
|
|
68
71
|
/**
|
|
69
|
-
*
|
|
72
|
+
* Memory config details.
|
|
70
73
|
*/
|
|
71
|
-
|
|
74
|
+
memory_config: MemoryConfig;
|
|
72
75
|
name: string;
|
|
73
76
|
private_ip: string;
|
|
74
77
|
public_ip: string;
|
|
@@ -86,16 +89,16 @@ export interface VMCreateParams {
|
|
|
86
89
|
*/
|
|
87
90
|
boot_volume: VMCreateParams.BootVolume;
|
|
88
91
|
/**
|
|
89
|
-
* CPU details.
|
|
92
|
+
* CPU config details.
|
|
90
93
|
*/
|
|
91
|
-
|
|
94
|
+
cpu_config: CPUConfig;
|
|
95
|
+
/**
|
|
96
|
+
* Memory config details.
|
|
97
|
+
*/
|
|
98
|
+
memory_config: MemoryConfig;
|
|
92
99
|
name: string;
|
|
93
100
|
os_image_name: string;
|
|
94
101
|
public_ip_enabled: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* RAM details.
|
|
97
|
-
*/
|
|
98
|
-
ram: Ram;
|
|
99
102
|
region: Shared.RegionName;
|
|
100
103
|
/**
|
|
101
104
|
* SSH key details.
|
|
@@ -120,16 +123,16 @@ export declare namespace VMCreateParams {
|
|
|
120
123
|
}
|
|
121
124
|
export interface VMUpdateParams {
|
|
122
125
|
/**
|
|
123
|
-
* CPU details.
|
|
126
|
+
* CPU config details.
|
|
124
127
|
*/
|
|
125
|
-
|
|
128
|
+
cpu_config?: CPUConfig;
|
|
126
129
|
/**
|
|
127
|
-
*
|
|
130
|
+
* Memory config details.
|
|
128
131
|
*/
|
|
129
|
-
|
|
132
|
+
memory_config?: MemoryConfig;
|
|
130
133
|
}
|
|
131
134
|
export declare namespace VMs {
|
|
132
|
-
export { type
|
|
135
|
+
export { type CPUConfig as CPUConfig, type MemoryConfig as MemoryConfig, type OSImage as OSImage, type SSHKey as SSHKey, type VM as VM, type VMList as VMList, type VMCreateParams as VMCreateParams, type VMUpdateParams as VMUpdateParams, };
|
|
133
136
|
export { OSImages as OSImages, type OSImageListResponse as OSImageListResponse };
|
|
134
137
|
}
|
|
135
138
|
//# sourceMappingURL=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EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAY,EAAE,OAA6B;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAY,EAAE,OAA6B;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AA4ID,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -13,7 +13,7 @@ export declare class Volumes extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* List all volumes
|
|
15
15
|
*/
|
|
16
|
-
list(options?: Core.RequestOptions): Core.APIPromise<
|
|
16
|
+
list(options?: Core.RequestOptions): Core.APIPromise<VolumeList>;
|
|
17
17
|
/**
|
|
18
18
|
* Delete a Volume. Boot or data volumes can be deleted.
|
|
19
19
|
*/
|
|
@@ -49,7 +49,7 @@ export interface Volume {
|
|
|
49
49
|
* Volume kind.
|
|
50
50
|
*/
|
|
51
51
|
export type VolumeKind = 'boot' | 'data';
|
|
52
|
-
export interface
|
|
52
|
+
export interface VolumeList {
|
|
53
53
|
items: Array<Volume>;
|
|
54
54
|
}
|
|
55
55
|
export interface VolumeCreateParams {
|
|
@@ -60,6 +60,6 @@ export interface VolumeUpdateParams {
|
|
|
60
60
|
size: number;
|
|
61
61
|
}
|
|
62
62
|
export declare namespace Volumes {
|
|
63
|
-
export { type StorageType as StorageType, type Volume as Volume, type VolumeKind as VolumeKind, type
|
|
63
|
+
export { type StorageType as StorageType, type Volume as Volume, type VolumeKind as VolumeKind, type VolumeList as VolumeList, type VolumeCreateParams as VolumeCreateParams, type VolumeUpdateParams as VolumeUpdateParams, };
|
|
64
64
|
}
|
|
65
65
|
//# sourceMappingURL=volumes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAE/C,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIzG;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI3C;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAE/C,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIzG;;OAEG;IACH,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C/B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -4,7 +4,7 @@ export declare class Operations extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* List all operations
|
|
6
6
|
*/
|
|
7
|
-
list(options?: Core.RequestOptions): Core.APIPromise<
|
|
7
|
+
list(options?: Core.RequestOptions): Core.APIPromise<OperationList>;
|
|
8
8
|
/**
|
|
9
9
|
* Get details about a specific operation
|
|
10
10
|
*/
|
|
@@ -16,13 +16,16 @@ export declare class Operations extends APIResource {
|
|
|
16
16
|
export interface Operation {
|
|
17
17
|
id: string;
|
|
18
18
|
created_at: string;
|
|
19
|
-
kind:
|
|
19
|
+
kind: OperationKind;
|
|
20
20
|
resource_id: string;
|
|
21
|
-
status:
|
|
22
|
-
type:
|
|
21
|
+
status: OperationStatus;
|
|
22
|
+
type: OperationType;
|
|
23
23
|
updated_at: string;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
26
|
+
export interface OperationList {
|
|
26
27
|
items: Array<Operation>;
|
|
27
28
|
}
|
|
29
|
+
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
30
|
+
export type OperationType = 'create' | 'update' | 'delete';
|
|
28
31
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAW,SAA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|
|
10
|
-
|
|
10
|
+
VolumeList,
|
|
11
11
|
VolumeUpdateParams,
|
|
12
12
|
Volumes,
|
|
13
13
|
} from './volumes';
|
|
14
14
|
import * as VMsAPI from './vms/vms';
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
CPUConfig,
|
|
17
|
+
MemoryConfig,
|
|
18
|
+
OSImage,
|
|
19
|
+
SSHKey,
|
|
20
|
+
VM,
|
|
21
|
+
VMCreateParams,
|
|
22
|
+
VMList,
|
|
23
|
+
VMUpdateParams,
|
|
24
|
+
VMs,
|
|
25
|
+
} from './vms/vms';
|
|
16
26
|
|
|
17
27
|
export class Compute extends APIResource {
|
|
18
28
|
vms: VMsAPI.VMs = new VMsAPI.VMs(this._client);
|
|
@@ -25,9 +35,9 @@ Compute.Volumes = Volumes;
|
|
|
25
35
|
export declare namespace Compute {
|
|
26
36
|
export {
|
|
27
37
|
VMs as VMs,
|
|
28
|
-
type
|
|
38
|
+
type CPUConfig as CPUConfig,
|
|
39
|
+
type MemoryConfig as MemoryConfig,
|
|
29
40
|
type OSImage as OSImage,
|
|
30
|
-
type Ram as Ram,
|
|
31
41
|
type SSHKey as SSHKey,
|
|
32
42
|
type VM as VM,
|
|
33
43
|
type VMList as VMList,
|
|
@@ -40,7 +50,7 @@ export declare namespace Compute {
|
|
|
40
50
|
type StorageType as StorageType,
|
|
41
51
|
type Volume as Volume,
|
|
42
52
|
type VolumeKind as VolumeKind,
|
|
43
|
-
type
|
|
53
|
+
type VolumeList as VolumeList,
|
|
44
54
|
type VolumeCreateParams as VolumeCreateParams,
|
|
45
55
|
type VolumeUpdateParams as VolumeUpdateParams,
|
|
46
56
|
};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
export { Compute } from './compute';
|
|
4
4
|
export {
|
|
5
5
|
VMs,
|
|
6
|
-
type
|
|
6
|
+
type CPUConfig,
|
|
7
|
+
type MemoryConfig,
|
|
7
8
|
type OSImage,
|
|
8
|
-
type Ram,
|
|
9
9
|
type SSHKey,
|
|
10
10
|
type VM,
|
|
11
11
|
type VMList,
|
|
@@ -17,7 +17,7 @@ export {
|
|
|
17
17
|
type StorageType,
|
|
18
18
|
type Volume,
|
|
19
19
|
type VolumeKind,
|
|
20
|
-
type
|
|
20
|
+
type VolumeList,
|
|
21
21
|
type VolumeCreateParams,
|
|
22
22
|
type VolumeUpdateParams,
|
|
23
23
|
} from './volumes';
|
|
@@ -51,10 +51,23 @@ export class VMs extends APIResource {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* CPU details.
|
|
54
|
+
* CPU config details.
|
|
55
55
|
*/
|
|
56
|
-
export interface
|
|
57
|
-
|
|
56
|
+
export interface CPUConfig {
|
|
57
|
+
/**
|
|
58
|
+
* virtual CPUs
|
|
59
|
+
*/
|
|
60
|
+
vcpu: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Memory config details.
|
|
65
|
+
*/
|
|
66
|
+
export interface MemoryConfig {
|
|
67
|
+
/**
|
|
68
|
+
* memory size
|
|
69
|
+
*/
|
|
70
|
+
size: number;
|
|
58
71
|
}
|
|
59
72
|
|
|
60
73
|
export interface OSImage {
|
|
@@ -65,16 +78,6 @@ export interface OSImage {
|
|
|
65
78
|
name: string;
|
|
66
79
|
}
|
|
67
80
|
|
|
68
|
-
/**
|
|
69
|
-
* RAM details.
|
|
70
|
-
*/
|
|
71
|
-
export interface Ram {
|
|
72
|
-
/**
|
|
73
|
-
* RAM size
|
|
74
|
-
*/
|
|
75
|
-
size: number;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
81
|
/**
|
|
79
82
|
* SSH key details.
|
|
80
83
|
*/
|
|
@@ -91,18 +94,18 @@ export interface VM {
|
|
|
91
94
|
boot_volume_id: string;
|
|
92
95
|
|
|
93
96
|
/**
|
|
94
|
-
* CPU details.
|
|
97
|
+
* CPU config details.
|
|
95
98
|
*/
|
|
96
|
-
cpu_config:
|
|
99
|
+
cpu_config: CPUConfig;
|
|
97
100
|
|
|
98
101
|
created_at: string;
|
|
99
102
|
|
|
100
103
|
data_volume_ids: Array<string>;
|
|
101
104
|
|
|
102
105
|
/**
|
|
103
|
-
*
|
|
106
|
+
* Memory config details.
|
|
104
107
|
*/
|
|
105
|
-
|
|
108
|
+
memory_config: MemoryConfig;
|
|
106
109
|
|
|
107
110
|
name: string;
|
|
108
111
|
|
|
@@ -130,9 +133,14 @@ export interface VMCreateParams {
|
|
|
130
133
|
boot_volume: VMCreateParams.BootVolume;
|
|
131
134
|
|
|
132
135
|
/**
|
|
133
|
-
* CPU details.
|
|
136
|
+
* CPU config details.
|
|
134
137
|
*/
|
|
135
|
-
|
|
138
|
+
cpu_config: CPUConfig;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Memory config details.
|
|
142
|
+
*/
|
|
143
|
+
memory_config: MemoryConfig;
|
|
136
144
|
|
|
137
145
|
name: string;
|
|
138
146
|
|
|
@@ -140,11 +148,6 @@ export interface VMCreateParams {
|
|
|
140
148
|
|
|
141
149
|
public_ip_enabled: boolean;
|
|
142
150
|
|
|
143
|
-
/**
|
|
144
|
-
* RAM details.
|
|
145
|
-
*/
|
|
146
|
-
ram: Ram;
|
|
147
|
-
|
|
148
151
|
region: Shared.RegionName;
|
|
149
152
|
|
|
150
153
|
/**
|
|
@@ -175,23 +178,23 @@ export namespace VMCreateParams {
|
|
|
175
178
|
|
|
176
179
|
export interface VMUpdateParams {
|
|
177
180
|
/**
|
|
178
|
-
* CPU details.
|
|
181
|
+
* CPU config details.
|
|
179
182
|
*/
|
|
180
|
-
|
|
183
|
+
cpu_config?: CPUConfig;
|
|
181
184
|
|
|
182
185
|
/**
|
|
183
|
-
*
|
|
186
|
+
* Memory config details.
|
|
184
187
|
*/
|
|
185
|
-
|
|
188
|
+
memory_config?: MemoryConfig;
|
|
186
189
|
}
|
|
187
190
|
|
|
188
191
|
VMs.OSImages = OSImages;
|
|
189
192
|
|
|
190
193
|
export declare namespace VMs {
|
|
191
194
|
export {
|
|
192
|
-
type
|
|
195
|
+
type CPUConfig as CPUConfig,
|
|
196
|
+
type MemoryConfig as MemoryConfig,
|
|
193
197
|
type OSImage as OSImage,
|
|
194
|
-
type Ram as Ram,
|
|
195
198
|
type SSHKey as SSHKey,
|
|
196
199
|
type VM as VM,
|
|
197
200
|
type VMList as VMList,
|
|
@@ -26,7 +26,7 @@ export class Volumes extends APIResource {
|
|
|
26
26
|
/**
|
|
27
27
|
* List all volumes
|
|
28
28
|
*/
|
|
29
|
-
list(options?: Core.RequestOptions): Core.APIPromise<
|
|
29
|
+
list(options?: Core.RequestOptions): Core.APIPromise<VolumeList> {
|
|
30
30
|
return this._client.get('/compute/volumes', options);
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -80,7 +80,7 @@ export interface Volume {
|
|
|
80
80
|
*/
|
|
81
81
|
export type VolumeKind = 'boot' | 'data';
|
|
82
82
|
|
|
83
|
-
export interface
|
|
83
|
+
export interface VolumeList {
|
|
84
84
|
items: Array<Volume>;
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -99,7 +99,7 @@ export declare namespace Volumes {
|
|
|
99
99
|
type StorageType as StorageType,
|
|
100
100
|
type Volume as Volume,
|
|
101
101
|
type VolumeKind as VolumeKind,
|
|
102
|
-
type
|
|
102
|
+
type VolumeList as VolumeList,
|
|
103
103
|
type VolumeCreateParams as VolumeCreateParams,
|
|
104
104
|
type VolumeUpdateParams as VolumeUpdateParams,
|
|
105
105
|
};
|
|
@@ -7,7 +7,7 @@ export class Operations extends APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* List all operations
|
|
9
9
|
*/
|
|
10
|
-
list(options?: Core.RequestOptions): Core.APIPromise<
|
|
10
|
+
list(options?: Core.RequestOptions): Core.APIPromise<OperationList> {
|
|
11
11
|
return this._client.get('/operations', options);
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -27,17 +27,23 @@ export interface Operation {
|
|
|
27
27
|
|
|
28
28
|
created_at: string;
|
|
29
29
|
|
|
30
|
-
kind:
|
|
30
|
+
kind: OperationKind;
|
|
31
31
|
|
|
32
32
|
resource_id: string;
|
|
33
33
|
|
|
34
|
-
status:
|
|
34
|
+
status: OperationStatus;
|
|
35
35
|
|
|
36
|
-
type:
|
|
36
|
+
type: OperationType;
|
|
37
37
|
|
|
38
38
|
updated_at: string;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export
|
|
41
|
+
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
42
|
+
|
|
43
|
+
export interface OperationList {
|
|
42
44
|
items: Array<Operation>;
|
|
43
45
|
}
|
|
46
|
+
|
|
47
|
+
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
48
|
+
|
|
49
|
+
export type OperationType = 'create' | 'update' | 'delete';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.16'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.16";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.16'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.16'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|