@nirvana-labs/nirvana 0.1.0-alpha.15 → 0.1.0-alpha.17
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 +18 -0
- 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/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/compute/vms/index.d.ts +2 -1
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/index.js +3 -1
- package/resources/compute/vms/index.js.map +1 -1
- package/resources/compute/vms/index.mjs +1 -0
- package/resources/compute/vms/index.mjs.map +1 -1
- package/resources/compute/vms/vms.d.ts +29 -65
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +4 -0
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +4 -0
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/vms/volumes.d.ts +10 -0
- package/resources/compute/vms/volumes.d.ts.map +1 -0
- package/resources/compute/vms/volumes.js +15 -0
- package/resources/compute/vms/volumes.js.map +1 -0
- package/resources/compute/vms/volumes.mjs +11 -0
- package/resources/compute/vms/volumes.mjs.map +1 -0
- package/resources/compute/volumes.d.ts +4 -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 -3
- package/src/resources/compute/index.ts +3 -1
- package/src/resources/compute/vms/index.ts +3 -0
- package/src/resources/compute/vms/vms.ts +34 -70
- package/src/resources/compute/vms/volumes.ts +14 -0
- package/src/resources/compute/volumes.ts +5 -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,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.17 (2025-02-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/nirvana-labs/nirvana-node/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#63](https://github.com/nirvana-labs/nirvana-node/issues/63)) ([fb0f2cd](https://github.com/nirvana-labs/nirvana-node/commit/fb0f2cddcbe97c50f28334dd84fdb6db62da8997))
|
|
10
|
+
* **api:** api update ([#65](https://github.com/nirvana-labs/nirvana-node/issues/65)) ([4bfd329](https://github.com/nirvana-labs/nirvana-node/commit/4bfd3293f3f91fd2e9aa25da98a691362fff4f85))
|
|
11
|
+
|
|
12
|
+
## 0.1.0-alpha.16 (2025-02-08)
|
|
13
|
+
|
|
14
|
+
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)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **api:** manual updates ([#59](https://github.com/nirvana-labs/nirvana-node/issues/59)) ([5c09a20](https://github.com/nirvana-labs/nirvana-node/commit/5c09a207ad2223b234c728675aea49130f06e98f))
|
|
19
|
+
* **api:** manual updates ([#61](https://github.com/nirvana-labs/nirvana-node/issues/61)) ([60a87b4](https://github.com/nirvana-labs/nirvana-node/commit/60a87b4fab3fbf20266e4e50e366ae5f621aa22c))
|
|
20
|
+
|
|
3
21
|
## 0.1.0-alpha.15 (2025-02-07)
|
|
4
22
|
|
|
5
23
|
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)
|
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 { OSImage, SSHKey, VM, VMCreateParams, VMList, VMUpdateParams, VMs } from "./vms/vms.js";
|
|
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 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
|
|
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 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
|
|
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,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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/compute/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/compute/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,wCAUqB;AATnB,4FAAA,GAAG,OAAA;AAUL,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/compute/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,GAAG,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/compute/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,GAAG,GASJ;OACM,EACL,OAAO,GAOR"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { OSImages, type OSImageListResponse } from "./os-images.js";
|
|
2
|
-
export { VMs, type OSImage, type SSHKey, type VM, type VMList, type VMCreateParams, type VMUpdateParams, } from "./vms.js";
|
|
2
|
+
export { VMs, type CPUConfig, type MemoryConfig, type OSImage, type SSHKey, type VM, type VMList, type VMCreateParams, type VMUpdateParams, } from "./vms.js";
|
|
3
|
+
export { Volumes } from "./volumes.js";
|
|
3
4
|
//# 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,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,EAAE,EACP,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,OAAO,CAAC"}
|
|
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;AACf,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.VMs = exports.OSImages = void 0;
|
|
4
|
+
exports.Volumes = exports.VMs = exports.OSImages = void 0;
|
|
5
5
|
var os_images_1 = require("./os-images.js");
|
|
6
6
|
Object.defineProperty(exports, "OSImages", { enumerable: true, get: function () { return os_images_1.OSImages; } });
|
|
7
7
|
var vms_1 = require("./vms.js");
|
|
8
8
|
Object.defineProperty(exports, "VMs", { enumerable: true, get: function () { return vms_1.VMs; } });
|
|
9
|
+
var volumes_1 = require("./volumes.js");
|
|
10
|
+
Object.defineProperty(exports, "Volumes", { enumerable: true, get: function () { return volumes_1.Volumes; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAAiE;AAAxD,qGAAA,QAAQ,OAAA;AACjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAAiE;AAAxD,qGAAA,QAAQ,OAAA;AACjB,gCAUe;AATb,0FAAA,GAAG,OAAA;AAUL,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,QAAQ,EAA4B;OACtC,EACL,GAAG,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,QAAQ,EAA4B;OACtC,EACL,GAAG,GASJ;OACM,EAAE,OAAO,EAAE"}
|
|
@@ -4,7 +4,10 @@ import * as OperationsAPI from "../../operations.js";
|
|
|
4
4
|
import * as Shared from "../../shared.js";
|
|
5
5
|
import * as OSImagesAPI from "./os-images.js";
|
|
6
6
|
import { OSImageListResponse, OSImages } from "./os-images.js";
|
|
7
|
+
import * as VolumesAPI from "./volumes.js";
|
|
8
|
+
import { Volumes } from "./volumes.js";
|
|
7
9
|
export declare class VMs extends APIResource {
|
|
10
|
+
volumes: VolumesAPI.Volumes;
|
|
8
11
|
osImages: OSImagesAPI.OSImages;
|
|
9
12
|
/**
|
|
10
13
|
* Create a VM
|
|
@@ -27,6 +30,24 @@ export declare class VMs extends APIResource {
|
|
|
27
30
|
*/
|
|
28
31
|
get(vmId: string, options?: Core.RequestOptions): Core.APIPromise<VM>;
|
|
29
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* CPU config details.
|
|
35
|
+
*/
|
|
36
|
+
export interface CPUConfig {
|
|
37
|
+
/**
|
|
38
|
+
* virtual CPUs
|
|
39
|
+
*/
|
|
40
|
+
vcpu: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Memory config details.
|
|
44
|
+
*/
|
|
45
|
+
export interface MemoryConfig {
|
|
46
|
+
/**
|
|
47
|
+
* memory size
|
|
48
|
+
*/
|
|
49
|
+
size: number;
|
|
50
|
+
}
|
|
30
51
|
export interface OSImage {
|
|
31
52
|
created_at: string;
|
|
32
53
|
display_name: string;
|
|
@@ -47,13 +68,13 @@ export interface VM {
|
|
|
47
68
|
/**
|
|
48
69
|
* CPU config details.
|
|
49
70
|
*/
|
|
50
|
-
cpu_config:
|
|
71
|
+
cpu_config: CPUConfig;
|
|
51
72
|
created_at: string;
|
|
52
73
|
data_volume_ids: Array<string>;
|
|
53
74
|
/**
|
|
54
75
|
* Memory config details.
|
|
55
76
|
*/
|
|
56
|
-
memory_config:
|
|
77
|
+
memory_config: MemoryConfig;
|
|
57
78
|
name: string;
|
|
58
79
|
private_ip: string;
|
|
59
80
|
public_ip: string;
|
|
@@ -62,26 +83,6 @@ export interface VM {
|
|
|
62
83
|
updated_at: string;
|
|
63
84
|
vpc_id: string;
|
|
64
85
|
}
|
|
65
|
-
export declare namespace VM {
|
|
66
|
-
/**
|
|
67
|
-
* CPU config details.
|
|
68
|
-
*/
|
|
69
|
-
interface CPUConfig {
|
|
70
|
-
/**
|
|
71
|
-
* virtual CPUs
|
|
72
|
-
*/
|
|
73
|
-
vcpu: number;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Memory config details.
|
|
77
|
-
*/
|
|
78
|
-
interface MemoryConfig {
|
|
79
|
-
/**
|
|
80
|
-
* memory size
|
|
81
|
-
*/
|
|
82
|
-
size: number;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
86
|
export interface VMList {
|
|
86
87
|
items: Array<VM>;
|
|
87
88
|
}
|
|
@@ -93,11 +94,11 @@ export interface VMCreateParams {
|
|
|
93
94
|
/**
|
|
94
95
|
* CPU config details.
|
|
95
96
|
*/
|
|
96
|
-
cpu_config:
|
|
97
|
+
cpu_config: CPUConfig;
|
|
97
98
|
/**
|
|
98
99
|
* Memory config details.
|
|
99
100
|
*/
|
|
100
|
-
memory_config:
|
|
101
|
+
memory_config: MemoryConfig;
|
|
101
102
|
name: string;
|
|
102
103
|
os_image_name: string;
|
|
103
104
|
public_ip_enabled: boolean;
|
|
@@ -116,24 +117,6 @@ export declare namespace VMCreateParams {
|
|
|
116
117
|
interface BootVolume {
|
|
117
118
|
size: number;
|
|
118
119
|
}
|
|
119
|
-
/**
|
|
120
|
-
* CPU config details.
|
|
121
|
-
*/
|
|
122
|
-
interface CPUConfig {
|
|
123
|
-
/**
|
|
124
|
-
* virtual CPUs
|
|
125
|
-
*/
|
|
126
|
-
vcpu: number;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Memory config details.
|
|
130
|
-
*/
|
|
131
|
-
interface MemoryConfig {
|
|
132
|
-
/**
|
|
133
|
-
* memory size
|
|
134
|
-
*/
|
|
135
|
-
size: number;
|
|
136
|
-
}
|
|
137
120
|
/**
|
|
138
121
|
* VM data volume create request.
|
|
139
122
|
*/
|
|
@@ -145,34 +128,15 @@ export interface VMUpdateParams {
|
|
|
145
128
|
/**
|
|
146
129
|
* CPU config details.
|
|
147
130
|
*/
|
|
148
|
-
cpu_config?:
|
|
131
|
+
cpu_config?: CPUConfig;
|
|
149
132
|
/**
|
|
150
133
|
* Memory config details.
|
|
151
134
|
*/
|
|
152
|
-
memory_config?:
|
|
153
|
-
}
|
|
154
|
-
export declare namespace VMUpdateParams {
|
|
155
|
-
/**
|
|
156
|
-
* CPU config details.
|
|
157
|
-
*/
|
|
158
|
-
interface CPUConfig {
|
|
159
|
-
/**
|
|
160
|
-
* virtual CPUs
|
|
161
|
-
*/
|
|
162
|
-
vcpu: number;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Memory config details.
|
|
166
|
-
*/
|
|
167
|
-
interface MemoryConfig {
|
|
168
|
-
/**
|
|
169
|
-
* memory size
|
|
170
|
-
*/
|
|
171
|
-
size: number;
|
|
172
|
-
}
|
|
135
|
+
memory_config?: MemoryConfig;
|
|
173
136
|
}
|
|
174
137
|
export declare namespace VMs {
|
|
175
|
-
export { type OSImage as OSImage, type SSHKey as SSHKey, type VM as VM, type VMList as VMList, type VMCreateParams as VMCreateParams, type VMUpdateParams as VMUpdateParams, };
|
|
138
|
+
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, };
|
|
139
|
+
export { Volumes as Volumes };
|
|
176
140
|
export { OSImages as OSImages, type OSImageListResponse as OSImageListResponse };
|
|
177
141
|
}
|
|
178
142
|
//# sourceMappingURL=vms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"vms.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,GAAI,SAAQ,WAAW;IAClC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIrG;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,cAAc,EACpB,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,MAAM,CAAC;IAI5D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI7F;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;CAGtE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,OAAO;IACtB,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,MAAM,CAAC;IAErB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,EAAE;IACjB,EAAE,EAAE,MAAM,CAAC;IAEX,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC;IAEtB,UAAU,EAAE,MAAM,CAAC;IAEnB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC;IAE5B,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,EAAE,MAAM,CAAC;IAEnB,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC;IAEvC;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC;IAE5B,IAAI,EAAE,MAAM,CAAC;IAEb,aAAa,EAAE,MAAM,CAAC;IAEtB,iBAAiB,EAAE,OAAO,CAAC;IAE3B,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAEhD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,cAAc,CAAC;IAC9B;;OAEG;IACH,UAAiB,UAAU;QACzB,IAAI,EAAE,MAAM,CAAC;KACd;IAED;;OAEG;IACH,UAAiB,UAAU;QACzB,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B;AAKD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,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,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC;IAE9B,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAClF"}
|
|
@@ -28,9 +28,12 @@ exports.VMs = void 0;
|
|
|
28
28
|
const resource_1 = require("../../../resource.js");
|
|
29
29
|
const OSImagesAPI = __importStar(require("./os-images.js"));
|
|
30
30
|
const os_images_1 = require("./os-images.js");
|
|
31
|
+
const VolumesAPI = __importStar(require("./volumes.js"));
|
|
32
|
+
const volumes_1 = require("./volumes.js");
|
|
31
33
|
class VMs extends resource_1.APIResource {
|
|
32
34
|
constructor() {
|
|
33
35
|
super(...arguments);
|
|
36
|
+
this.volumes = new VolumesAPI.Volumes(this._client);
|
|
34
37
|
this.osImages = new OSImagesAPI.OSImages(this._client);
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
@@ -65,5 +68,6 @@ class VMs extends resource_1.APIResource {
|
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
exports.VMs = VMs;
|
|
71
|
+
VMs.Volumes = volumes_1.Volumes;
|
|
68
72
|
VMs.OSImages = os_images_1.OSImages;
|
|
69
73
|
//# sourceMappingURL=vms.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAIhD,4DAA2C;AAC3C,8CAA4D;
|
|
1
|
+
{"version":3,"file":"vms.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAIhD,4DAA2C;AAC3C,8CAA4D;AAC5D,yDAAwC;AACxC,0CAAoC;AAEpC,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwC1E,CAAC;IAtCC;;OAEG;IACH,MAAM,CAAC,IAAoB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAY,EACZ,IAAoB,EACpB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,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;AA1CD,kBA0CC;AA4ID,GAAG,CAAC,OAAO,GAAG,iBAAO,CAAC;AACtB,GAAG,CAAC,QAAQ,GAAG,oBAAQ,CAAC"}
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
import { APIResource } from "../../../resource.mjs";
|
|
3
3
|
import * as OSImagesAPI from "./os-images.mjs";
|
|
4
4
|
import { OSImages } from "./os-images.mjs";
|
|
5
|
+
import * as VolumesAPI from "./volumes.mjs";
|
|
6
|
+
import { Volumes } from "./volumes.mjs";
|
|
5
7
|
export class VMs extends APIResource {
|
|
6
8
|
constructor() {
|
|
7
9
|
super(...arguments);
|
|
10
|
+
this.volumes = new VolumesAPI.Volumes(this._client);
|
|
8
11
|
this.osImages = new OSImagesAPI.OSImages(this._client);
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
@@ -38,5 +41,6 @@ export class VMs extends APIResource {
|
|
|
38
41
|
return this._client.get(`/compute/vms/${vmId}`, options);
|
|
39
42
|
}
|
|
40
43
|
}
|
|
44
|
+
VMs.Volumes = Volumes;
|
|
41
45
|
VMs.OSImages = OSImages;
|
|
42
46
|
//# sourceMappingURL=vms.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,WAAW;OAChB,EAAuB,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"vms.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,WAAW;OAChB,EAAuB,QAAQ,EAAE;OACjC,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;AAElB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwC1E,CAAC;IAtCC;;OAEG;IACH,MAAM,CAAC,IAAoB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAY,EACZ,IAAoB,EACpB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,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,OAAO,GAAG,OAAO,CAAC;AACtB,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
import * as VolumesAPI from "../volumes.js";
|
|
4
|
+
export declare class Volumes extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List VM's Volumes
|
|
7
|
+
*/
|
|
8
|
+
list(vmId: string, options?: Core.RequestOptions): Core.APIPromise<VolumesAPI.VolumeList>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=volumes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AAEzC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC;CAG1F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Volumes = void 0;
|
|
5
|
+
const resource_1 = require("../../../resource.js");
|
|
6
|
+
class Volumes extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* List VM's Volumes
|
|
9
|
+
*/
|
|
10
|
+
list(vmId, options) {
|
|
11
|
+
return this._client.get(`/compute/vms/${vmId}/volumes`, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Volumes = Volumes;
|
|
15
|
+
//# sourceMappingURL=volumes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAIhD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,IAAI,CAAC,IAAY,EAAE,OAA6B;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,UAAU,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAPD,0BAOC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../resource.mjs";
|
|
3
|
+
export class Volumes extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* List VM's Volumes
|
|
6
|
+
*/
|
|
7
|
+
list(vmId, options) {
|
|
8
|
+
return this._client.get(`/compute/vms/${vmId}/volumes`, options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=volumes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CAAC,IAAY,EAAE,OAA6B;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,UAAU,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF"}
|
|
@@ -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
|
*/
|
|
@@ -37,6 +37,7 @@ export interface Volume {
|
|
|
37
37
|
* Volume kind.
|
|
38
38
|
*/
|
|
39
39
|
kind: VolumeKind;
|
|
40
|
+
name: string;
|
|
40
41
|
size: number;
|
|
41
42
|
/**
|
|
42
43
|
* Storage type.
|
|
@@ -49,7 +50,7 @@ export interface Volume {
|
|
|
49
50
|
* Volume kind.
|
|
50
51
|
*/
|
|
51
52
|
export type VolumeKind = 'boot' | 'data';
|
|
52
|
-
export interface
|
|
53
|
+
export interface VolumeList {
|
|
53
54
|
items: Array<Volume>;
|
|
54
55
|
}
|
|
55
56
|
export interface VolumeCreateParams {
|
|
@@ -60,6 +61,6 @@ export interface VolumeUpdateParams {
|
|
|
60
61
|
size: number;
|
|
61
62
|
}
|
|
62
63
|
export declare namespace Volumes {
|
|
63
|
-
export { type StorageType as StorageType, type Volume as Volume, type VolumeKind as VolumeKind, type
|
|
64
|
+
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
65
|
}
|
|
65
66
|
//# 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,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,UAAU,CAAC;IAIhE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIjG;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;CAG9E;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/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,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,
|
|
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,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAInE;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;CAGpF;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,aAAa,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,eAAe,CAAC;IAExB,IAAI,EAAE,aAAa,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,CAAC;AAEtE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -7,12 +7,22 @@ import {
|
|
|
7
7
|
Volume,
|
|
8
8
|
VolumeCreateParams,
|
|
9
9
|
VolumeKind,
|
|
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,6 +35,8 @@ Compute.Volumes = Volumes;
|
|
|
25
35
|
export declare namespace Compute {
|
|
26
36
|
export {
|
|
27
37
|
VMs as VMs,
|
|
38
|
+
type CPUConfig as CPUConfig,
|
|
39
|
+
type MemoryConfig as MemoryConfig,
|
|
28
40
|
type OSImage as OSImage,
|
|
29
41
|
type SSHKey as SSHKey,
|
|
30
42
|
type VM as VM,
|
|
@@ -38,7 +50,7 @@ export declare namespace Compute {
|
|
|
38
50
|
type StorageType as StorageType,
|
|
39
51
|
type Volume as Volume,
|
|
40
52
|
type VolumeKind as VolumeKind,
|
|
41
|
-
type
|
|
53
|
+
type VolumeList as VolumeList,
|
|
42
54
|
type VolumeCreateParams as VolumeCreateParams,
|
|
43
55
|
type VolumeUpdateParams as VolumeUpdateParams,
|
|
44
56
|
};
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export { Compute } from './compute';
|
|
4
4
|
export {
|
|
5
5
|
VMs,
|
|
6
|
+
type CPUConfig,
|
|
7
|
+
type MemoryConfig,
|
|
6
8
|
type OSImage,
|
|
7
9
|
type SSHKey,
|
|
8
10
|
type VM,
|
|
@@ -15,7 +17,7 @@ export {
|
|
|
15
17
|
type StorageType,
|
|
16
18
|
type Volume,
|
|
17
19
|
type VolumeKind,
|
|
18
|
-
type
|
|
20
|
+
type VolumeList,
|
|
19
21
|
type VolumeCreateParams,
|
|
20
22
|
type VolumeUpdateParams,
|
|
21
23
|
} from './volumes';
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export { OSImages, type OSImageListResponse } from './os-images';
|
|
4
4
|
export {
|
|
5
5
|
VMs,
|
|
6
|
+
type CPUConfig,
|
|
7
|
+
type MemoryConfig,
|
|
6
8
|
type OSImage,
|
|
7
9
|
type SSHKey,
|
|
8
10
|
type VM,
|
|
@@ -10,3 +12,4 @@ export {
|
|
|
10
12
|
type VMCreateParams,
|
|
11
13
|
type VMUpdateParams,
|
|
12
14
|
} from './vms';
|
|
15
|
+
export { Volumes } from './volumes';
|
|
@@ -6,8 +6,11 @@ import * as OperationsAPI from '../../operations';
|
|
|
6
6
|
import * as Shared from '../../shared';
|
|
7
7
|
import * as OSImagesAPI from './os-images';
|
|
8
8
|
import { OSImageListResponse, OSImages } from './os-images';
|
|
9
|
+
import * as VolumesAPI from './volumes';
|
|
10
|
+
import { Volumes } from './volumes';
|
|
9
11
|
|
|
10
12
|
export class VMs extends APIResource {
|
|
13
|
+
volumes: VolumesAPI.Volumes = new VolumesAPI.Volumes(this._client);
|
|
11
14
|
osImages: OSImagesAPI.OSImages = new OSImagesAPI.OSImages(this._client);
|
|
12
15
|
|
|
13
16
|
/**
|
|
@@ -50,6 +53,26 @@ export class VMs extends APIResource {
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
56
|
+
/**
|
|
57
|
+
* CPU config details.
|
|
58
|
+
*/
|
|
59
|
+
export interface CPUConfig {
|
|
60
|
+
/**
|
|
61
|
+
* virtual CPUs
|
|
62
|
+
*/
|
|
63
|
+
vcpu: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Memory config details.
|
|
68
|
+
*/
|
|
69
|
+
export interface MemoryConfig {
|
|
70
|
+
/**
|
|
71
|
+
* memory size
|
|
72
|
+
*/
|
|
73
|
+
size: number;
|
|
74
|
+
}
|
|
75
|
+
|
|
53
76
|
export interface OSImage {
|
|
54
77
|
created_at: string;
|
|
55
78
|
|
|
@@ -76,7 +99,7 @@ export interface VM {
|
|
|
76
99
|
/**
|
|
77
100
|
* CPU config details.
|
|
78
101
|
*/
|
|
79
|
-
cpu_config:
|
|
102
|
+
cpu_config: CPUConfig;
|
|
80
103
|
|
|
81
104
|
created_at: string;
|
|
82
105
|
|
|
@@ -85,7 +108,7 @@ export interface VM {
|
|
|
85
108
|
/**
|
|
86
109
|
* Memory config details.
|
|
87
110
|
*/
|
|
88
|
-
memory_config:
|
|
111
|
+
memory_config: MemoryConfig;
|
|
89
112
|
|
|
90
113
|
name: string;
|
|
91
114
|
|
|
@@ -102,28 +125,6 @@ export interface VM {
|
|
|
102
125
|
vpc_id: string;
|
|
103
126
|
}
|
|
104
127
|
|
|
105
|
-
export namespace VM {
|
|
106
|
-
/**
|
|
107
|
-
* CPU config details.
|
|
108
|
-
*/
|
|
109
|
-
export interface CPUConfig {
|
|
110
|
-
/**
|
|
111
|
-
* virtual CPUs
|
|
112
|
-
*/
|
|
113
|
-
vcpu: number;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Memory config details.
|
|
118
|
-
*/
|
|
119
|
-
export interface MemoryConfig {
|
|
120
|
-
/**
|
|
121
|
-
* memory size
|
|
122
|
-
*/
|
|
123
|
-
size: number;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
128
|
export interface VMList {
|
|
128
129
|
items: Array<VM>;
|
|
129
130
|
}
|
|
@@ -137,12 +138,12 @@ export interface VMCreateParams {
|
|
|
137
138
|
/**
|
|
138
139
|
* CPU config details.
|
|
139
140
|
*/
|
|
140
|
-
cpu_config:
|
|
141
|
+
cpu_config: CPUConfig;
|
|
141
142
|
|
|
142
143
|
/**
|
|
143
144
|
* Memory config details.
|
|
144
145
|
*/
|
|
145
|
-
memory_config:
|
|
146
|
+
memory_config: MemoryConfig;
|
|
146
147
|
|
|
147
148
|
name: string;
|
|
148
149
|
|
|
@@ -170,26 +171,6 @@ export namespace VMCreateParams {
|
|
|
170
171
|
size: number;
|
|
171
172
|
}
|
|
172
173
|
|
|
173
|
-
/**
|
|
174
|
-
* CPU config details.
|
|
175
|
-
*/
|
|
176
|
-
export interface CPUConfig {
|
|
177
|
-
/**
|
|
178
|
-
* virtual CPUs
|
|
179
|
-
*/
|
|
180
|
-
vcpu: number;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Memory config details.
|
|
185
|
-
*/
|
|
186
|
-
export interface MemoryConfig {
|
|
187
|
-
/**
|
|
188
|
-
* memory size
|
|
189
|
-
*/
|
|
190
|
-
size: number;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
174
|
/**
|
|
194
175
|
* VM data volume create request.
|
|
195
176
|
*/
|
|
@@ -202,40 +183,21 @@ export interface VMUpdateParams {
|
|
|
202
183
|
/**
|
|
203
184
|
* CPU config details.
|
|
204
185
|
*/
|
|
205
|
-
cpu_config?:
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Memory config details.
|
|
209
|
-
*/
|
|
210
|
-
memory_config?: VMUpdateParams.MemoryConfig;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export namespace VMUpdateParams {
|
|
214
|
-
/**
|
|
215
|
-
* CPU config details.
|
|
216
|
-
*/
|
|
217
|
-
export interface CPUConfig {
|
|
218
|
-
/**
|
|
219
|
-
* virtual CPUs
|
|
220
|
-
*/
|
|
221
|
-
vcpu: number;
|
|
222
|
-
}
|
|
186
|
+
cpu_config?: CPUConfig;
|
|
223
187
|
|
|
224
188
|
/**
|
|
225
189
|
* Memory config details.
|
|
226
190
|
*/
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* memory size
|
|
230
|
-
*/
|
|
231
|
-
size: number;
|
|
232
|
-
}
|
|
191
|
+
memory_config?: MemoryConfig;
|
|
233
192
|
}
|
|
234
193
|
|
|
194
|
+
VMs.Volumes = Volumes;
|
|
235
195
|
VMs.OSImages = OSImages;
|
|
236
196
|
|
|
237
197
|
export declare namespace VMs {
|
|
238
198
|
export {
|
|
199
|
+
type CPUConfig as CPUConfig,
|
|
200
|
+
type MemoryConfig as MemoryConfig,
|
|
239
201
|
type OSImage as OSImage,
|
|
240
202
|
type SSHKey as SSHKey,
|
|
241
203
|
type VM as VM,
|
|
@@ -244,5 +206,7 @@ export declare namespace VMs {
|
|
|
244
206
|
type VMUpdateParams as VMUpdateParams,
|
|
245
207
|
};
|
|
246
208
|
|
|
209
|
+
export { Volumes as Volumes };
|
|
210
|
+
|
|
247
211
|
export { OSImages as OSImages, type OSImageListResponse as OSImageListResponse };
|
|
248
212
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import * as Core from '../../../core';
|
|
5
|
+
import * as VolumesAPI from '../volumes';
|
|
6
|
+
|
|
7
|
+
export class Volumes extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List VM's Volumes
|
|
10
|
+
*/
|
|
11
|
+
list(vmId: string, options?: Core.RequestOptions): Core.APIPromise<VolumesAPI.VolumeList> {
|
|
12
|
+
return this._client.get(`/compute/vms/${vmId}/volumes`, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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
|
|
|
@@ -63,6 +63,8 @@ export interface Volume {
|
|
|
63
63
|
*/
|
|
64
64
|
kind: VolumeKind;
|
|
65
65
|
|
|
66
|
+
name: string;
|
|
67
|
+
|
|
66
68
|
size: number;
|
|
67
69
|
|
|
68
70
|
/**
|
|
@@ -80,7 +82,7 @@ export interface Volume {
|
|
|
80
82
|
*/
|
|
81
83
|
export type VolumeKind = 'boot' | 'data';
|
|
82
84
|
|
|
83
|
-
export interface
|
|
85
|
+
export interface VolumeList {
|
|
84
86
|
items: Array<Volume>;
|
|
85
87
|
}
|
|
86
88
|
|
|
@@ -99,7 +101,7 @@ export declare namespace Volumes {
|
|
|
99
101
|
type StorageType as StorageType,
|
|
100
102
|
type Volume as Volume,
|
|
101
103
|
type VolumeKind as VolumeKind,
|
|
102
|
-
type
|
|
104
|
+
type VolumeList as VolumeList,
|
|
103
105
|
type VolumeCreateParams as VolumeCreateParams,
|
|
104
106
|
type VolumeUpdateParams as VolumeUpdateParams,
|
|
105
107
|
};
|
|
@@ -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.17'; // 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.17";
|
|
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.17'; // 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.17'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|