@nirvana-labs/nirvana 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +7 -12
- package/package.json +1 -4
- package/resources/compute/compute.d.mts +2 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +2 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +2 -2
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +2 -2
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/index.d.mts +1 -1
- package/resources/compute/index.d.ts +1 -1
- package/resources/compute/index.js +2 -2
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs +1 -1
- package/resources/compute/vms/availability.d.mts +130 -0
- package/resources/compute/vms/availability.d.mts.map +1 -0
- package/resources/compute/vms/availability.d.ts +130 -0
- package/resources/compute/vms/availability.d.ts.map +1 -0
- package/resources/compute/vms/availability.js +56 -0
- package/resources/compute/vms/availability.js.map +1 -0
- package/resources/compute/vms/availability.mjs +52 -0
- package/resources/compute/vms/availability.mjs.map +1 -0
- package/resources/compute/vms/index.d.mts +1 -0
- package/resources/compute/vms/index.d.mts.map +1 -1
- package/resources/compute/vms/index.d.ts +1 -0
- 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.mts +5 -1
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +5 -1
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +5 -1
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +5 -1
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/vms/volumes.d.mts +1 -1
- package/resources/compute/vms/volumes.d.ts +1 -1
- package/resources/compute/volumes/availability.d.mts +61 -0
- package/resources/compute/volumes/availability.d.mts.map +1 -0
- package/resources/compute/volumes/availability.d.ts +61 -0
- package/resources/compute/volumes/availability.d.ts.map +1 -0
- package/resources/compute/volumes/availability.js +49 -0
- package/resources/compute/volumes/availability.js.map +1 -0
- package/resources/compute/volumes/availability.mjs +45 -0
- package/resources/compute/volumes/availability.mjs.map +1 -0
- package/resources/compute/volumes/index.d.mts +3 -0
- package/resources/compute/volumes/index.d.mts.map +1 -0
- package/resources/compute/volumes/index.d.ts +3 -0
- package/resources/compute/volumes/index.d.ts.map +1 -0
- package/resources/compute/volumes/index.js +9 -0
- package/resources/compute/volumes/index.js.map +1 -0
- package/resources/compute/volumes/index.mjs +4 -0
- package/resources/compute/volumes/index.mjs.map +1 -0
- package/resources/compute/volumes/volumes.d.mts +150 -0
- package/resources/compute/volumes/volumes.d.mts.map +1 -0
- package/resources/compute/volumes/volumes.d.ts +150 -0
- package/resources/compute/volumes/volumes.d.ts.map +1 -0
- package/resources/compute/volumes/volumes.js +83 -0
- package/resources/compute/volumes/volumes.js.map +1 -0
- package/resources/compute/volumes/volumes.mjs +78 -0
- package/resources/compute/volumes/volumes.mjs.map +1 -0
- package/resources/compute/volumes.d.mts +1 -145
- package/resources/compute/volumes.d.mts.map +1 -1
- package/resources/compute/volumes.d.ts +1 -145
- package/resources/compute/volumes.d.ts.map +1 -1
- package/resources/compute/volumes.js +2 -71
- package/resources/compute/volumes.js.map +1 -1
- package/resources/compute/volumes.mjs +1 -69
- package/resources/compute/volumes.mjs.map +1 -1
- package/src/resources/compute/compute.ts +10 -10
- package/src/resources/compute/index.ts +1 -1
- package/src/resources/compute/vms/availability.ts +172 -0
- package/src/resources/compute/vms/index.ts +7 -0
- package/src/resources/compute/vms/vms.ts +19 -1
- package/src/resources/compute/vms/volumes.ts +1 -1
- package/src/resources/compute/volumes/availability.ts +91 -0
- package/src/resources/compute/volumes/index.ts +18 -0
- package/src/resources/compute/volumes/volumes.ts +213 -0
- package/src/resources/compute/volumes.ts +1 -191
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as OperationsAPI from "../../operations.mjs";
|
|
3
|
+
import * as Shared from "../../shared.mjs";
|
|
4
|
+
import * as AvailabilityAPI from "./availability.mjs";
|
|
5
|
+
import { Availability, AvailabilityCreateParams, AvailabilityCreateResponse, AvailabilityUpdateParams, AvailabilityUpdateResponse } from "./availability.mjs";
|
|
6
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
|
+
export declare class Volumes extends APIResource {
|
|
9
|
+
availability: AvailabilityAPI.Availability;
|
|
10
|
+
/**
|
|
11
|
+
* Create a Volume. Only data volumes can be created.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const operation = await client.compute.volumes.create({
|
|
16
|
+
* name: 'my-data-volume',
|
|
17
|
+
* size: 100,
|
|
18
|
+
* vm_id: 'vm_id',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: VolumeCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
23
|
+
/**
|
|
24
|
+
* Update a Volume. Boot or data volumes can be updated.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const operation = await client.compute.volumes.update(
|
|
29
|
+
* 'volume_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
update(volumeID: string, body: VolumeUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
34
|
+
/**
|
|
35
|
+
* List all volumes
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const volumeList = await client.compute.volumes.list();
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
list(options?: RequestOptions): APIPromise<VolumeList>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete a Volume. Boot or data volumes can be deleted.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const operation = await client.compute.volumes.delete(
|
|
49
|
+
* 'volume_id',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
54
|
+
/**
|
|
55
|
+
* Get a Volume.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const volume = await client.compute.volumes.get(
|
|
60
|
+
* 'volume_id',
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
get(volumeID: string, options?: RequestOptions): APIPromise<Volume>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Storage type the volume is using.
|
|
68
|
+
*/
|
|
69
|
+
export type StorageType = 'nvme';
|
|
70
|
+
/**
|
|
71
|
+
* Volume details.
|
|
72
|
+
*/
|
|
73
|
+
export interface Volume {
|
|
74
|
+
/**
|
|
75
|
+
* Unique identifier for the volume.
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
/**
|
|
79
|
+
* When the volume was created.
|
|
80
|
+
*/
|
|
81
|
+
created_at: string;
|
|
82
|
+
/**
|
|
83
|
+
* Volume kind.
|
|
84
|
+
*/
|
|
85
|
+
kind: VolumeKind;
|
|
86
|
+
/**
|
|
87
|
+
* Name of the volume.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Size of the volume in GB.
|
|
92
|
+
*/
|
|
93
|
+
size: number;
|
|
94
|
+
/**
|
|
95
|
+
* Status of the resource.
|
|
96
|
+
*/
|
|
97
|
+
status: Shared.ResourceStatus;
|
|
98
|
+
/**
|
|
99
|
+
* Storage type the volume is using.
|
|
100
|
+
*/
|
|
101
|
+
type: StorageType;
|
|
102
|
+
/**
|
|
103
|
+
* When the volume was updated.
|
|
104
|
+
*/
|
|
105
|
+
updated_at: string;
|
|
106
|
+
/**
|
|
107
|
+
* ID of the VM the volume is attached to.
|
|
108
|
+
*/
|
|
109
|
+
vm_id: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Name of the VM the volume is attached to.
|
|
112
|
+
*/
|
|
113
|
+
vm_name: string | null;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Volume kind.
|
|
117
|
+
*/
|
|
118
|
+
export type VolumeKind = 'boot' | 'data';
|
|
119
|
+
export interface VolumeList {
|
|
120
|
+
items: Array<Volume>;
|
|
121
|
+
}
|
|
122
|
+
export interface VolumeCreateParams {
|
|
123
|
+
/**
|
|
124
|
+
* Name of the volume.
|
|
125
|
+
*/
|
|
126
|
+
name: string;
|
|
127
|
+
/**
|
|
128
|
+
* Size of the volume in GB.
|
|
129
|
+
*/
|
|
130
|
+
size: number;
|
|
131
|
+
/**
|
|
132
|
+
* ID of the VM the volume is attached to.
|
|
133
|
+
*/
|
|
134
|
+
vm_id: string;
|
|
135
|
+
}
|
|
136
|
+
export interface VolumeUpdateParams {
|
|
137
|
+
/**
|
|
138
|
+
* Name of the volume.
|
|
139
|
+
*/
|
|
140
|
+
name?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Size of the volume in GB.
|
|
143
|
+
*/
|
|
144
|
+
size?: number;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace Volumes {
|
|
147
|
+
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, };
|
|
148
|
+
export { Availability as Availability, type AvailabilityCreateResponse as AvailabilityCreateResponse, type AvailabilityUpdateResponse as AvailabilityUpdateResponse, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=volumes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/volumes/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI/F;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItD;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIvF;;;;;;;;;OASG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGpE;AAED;;GAEG;AACH,MAAM,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AO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as OperationsAPI from "../../operations.js";
|
|
3
|
+
import * as Shared from "../../shared.js";
|
|
4
|
+
import * as AvailabilityAPI from "./availability.js";
|
|
5
|
+
import { Availability, AvailabilityCreateParams, AvailabilityCreateResponse, AvailabilityUpdateParams, AvailabilityUpdateResponse } from "./availability.js";
|
|
6
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
|
+
export declare class Volumes extends APIResource {
|
|
9
|
+
availability: AvailabilityAPI.Availability;
|
|
10
|
+
/**
|
|
11
|
+
* Create a Volume. Only data volumes can be created.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const operation = await client.compute.volumes.create({
|
|
16
|
+
* name: 'my-data-volume',
|
|
17
|
+
* size: 100,
|
|
18
|
+
* vm_id: 'vm_id',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: VolumeCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
23
|
+
/**
|
|
24
|
+
* Update a Volume. Boot or data volumes can be updated.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const operation = await client.compute.volumes.update(
|
|
29
|
+
* 'volume_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
update(volumeID: string, body: VolumeUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
34
|
+
/**
|
|
35
|
+
* List all volumes
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const volumeList = await client.compute.volumes.list();
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
list(options?: RequestOptions): APIPromise<VolumeList>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete a Volume. Boot or data volumes can be deleted.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const operation = await client.compute.volumes.delete(
|
|
49
|
+
* 'volume_id',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
54
|
+
/**
|
|
55
|
+
* Get a Volume.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const volume = await client.compute.volumes.get(
|
|
60
|
+
* 'volume_id',
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
get(volumeID: string, options?: RequestOptions): APIPromise<Volume>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Storage type the volume is using.
|
|
68
|
+
*/
|
|
69
|
+
export type StorageType = 'nvme';
|
|
70
|
+
/**
|
|
71
|
+
* Volume details.
|
|
72
|
+
*/
|
|
73
|
+
export interface Volume {
|
|
74
|
+
/**
|
|
75
|
+
* Unique identifier for the volume.
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
/**
|
|
79
|
+
* When the volume was created.
|
|
80
|
+
*/
|
|
81
|
+
created_at: string;
|
|
82
|
+
/**
|
|
83
|
+
* Volume kind.
|
|
84
|
+
*/
|
|
85
|
+
kind: VolumeKind;
|
|
86
|
+
/**
|
|
87
|
+
* Name of the volume.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Size of the volume in GB.
|
|
92
|
+
*/
|
|
93
|
+
size: number;
|
|
94
|
+
/**
|
|
95
|
+
* Status of the resource.
|
|
96
|
+
*/
|
|
97
|
+
status: Shared.ResourceStatus;
|
|
98
|
+
/**
|
|
99
|
+
* Storage type the volume is using.
|
|
100
|
+
*/
|
|
101
|
+
type: StorageType;
|
|
102
|
+
/**
|
|
103
|
+
* When the volume was updated.
|
|
104
|
+
*/
|
|
105
|
+
updated_at: string;
|
|
106
|
+
/**
|
|
107
|
+
* ID of the VM the volume is attached to.
|
|
108
|
+
*/
|
|
109
|
+
vm_id: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Name of the VM the volume is attached to.
|
|
112
|
+
*/
|
|
113
|
+
vm_name: string | null;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Volume kind.
|
|
117
|
+
*/
|
|
118
|
+
export type VolumeKind = 'boot' | 'data';
|
|
119
|
+
export interface VolumeList {
|
|
120
|
+
items: Array<Volume>;
|
|
121
|
+
}
|
|
122
|
+
export interface VolumeCreateParams {
|
|
123
|
+
/**
|
|
124
|
+
* Name of the volume.
|
|
125
|
+
*/
|
|
126
|
+
name: string;
|
|
127
|
+
/**
|
|
128
|
+
* Size of the volume in GB.
|
|
129
|
+
*/
|
|
130
|
+
size: number;
|
|
131
|
+
/**
|
|
132
|
+
* ID of the VM the volume is attached to.
|
|
133
|
+
*/
|
|
134
|
+
vm_id: string;
|
|
135
|
+
}
|
|
136
|
+
export interface VolumeUpdateParams {
|
|
137
|
+
/**
|
|
138
|
+
* Name of the volume.
|
|
139
|
+
*/
|
|
140
|
+
name?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Size of the volume in GB.
|
|
143
|
+
*/
|
|
144
|
+
size?: number;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace Volumes {
|
|
147
|
+
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, };
|
|
148
|
+
export { Availability as Availability, type AvailabilityCreateResponse as AvailabilityCreateResponse, type AvailabilityUpdateResponse as AvailabilityUpdateResponse, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=volumes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/volumes/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI/F;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItD;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIvF;;;;;;;;;OASG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGpE;AAED;;GA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CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const AvailabilityAPI = tslib_1.__importStar(require("./availability.js"));
|
|
8
|
+
const availability_1 = require("./availability.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
class Volumes extends resource_1.APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.availability = new AvailabilityAPI.Availability(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a Volume. Only data volumes can be created.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const operation = await client.compute.volumes.create({
|
|
21
|
+
* name: 'my-data-volume',
|
|
22
|
+
* size: 100,
|
|
23
|
+
* vm_id: 'vm_id',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
create(body, options) {
|
|
28
|
+
return this._client.post('/v1/compute/volumes', { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Update a Volume. Boot or data volumes can be updated.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const operation = await client.compute.volumes.update(
|
|
36
|
+
* 'volume_id',
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
update(volumeID, body, options) {
|
|
41
|
+
return this._client.patch((0, path_1.path) `/v1/compute/volumes/${volumeID}`, { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* List all volumes
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const volumeList = await client.compute.volumes.list();
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
list(options) {
|
|
52
|
+
return this._client.get('/v1/compute/volumes', options);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Delete a Volume. Boot or data volumes can be deleted.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const operation = await client.compute.volumes.delete(
|
|
60
|
+
* 'volume_id',
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
delete(volumeID, options) {
|
|
65
|
+
return this._client.delete((0, path_1.path) `/v1/compute/volumes/${volumeID}`, options);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get a Volume.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const volume = await client.compute.volumes.get(
|
|
73
|
+
* 'volume_id',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
get(volumeID, options) {
|
|
78
|
+
return this._client.get((0, path_1.path) `/v1/compute/volumes/${volumeID}`, options);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.Volumes = Volumes;
|
|
82
|
+
Volumes.Availability = availability_1.Availability;
|
|
83
|
+
//# sourceMappingURL=volumes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../src/resources/compute/volumes/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,2EAAkD;AA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
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as AvailabilityAPI from "./availability.mjs";
|
|
4
|
+
import { Availability, } from "./availability.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class Volumes extends APIResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.availability = new AvailabilityAPI.Availability(this._client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create a Volume. Only data volumes can be created.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const operation = await client.compute.volumes.create({
|
|
17
|
+
* name: 'my-data-volume',
|
|
18
|
+
* size: 100,
|
|
19
|
+
* vm_id: 'vm_id',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body, options) {
|
|
24
|
+
return this._client.post('/v1/compute/volumes', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Update a Volume. Boot or data volumes can be updated.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const operation = await client.compute.volumes.update(
|
|
32
|
+
* 'volume_id',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
update(volumeID, body, options) {
|
|
37
|
+
return this._client.patch(path `/v1/compute/volumes/${volumeID}`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* List all volumes
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const volumeList = await client.compute.volumes.list();
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(options) {
|
|
48
|
+
return this._client.get('/v1/compute/volumes', options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Delete a Volume. Boot or data volumes can be deleted.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const operation = await client.compute.volumes.delete(
|
|
56
|
+
* 'volume_id',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(volumeID, options) {
|
|
61
|
+
return this._client.delete(path `/v1/compute/volumes/${volumeID}`, options);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get a Volume.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const volume = await client.compute.volumes.get(
|
|
69
|
+
* 'volume_id',
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
get(volumeID, options) {
|
|
74
|
+
return this._client.get(path `/v1/compute/volumes/${volumeID}`, options);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
Volumes.Availability = Availability;
|
|
78
|
+
//# sourceMappingURL=volumes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../../src/resources/compute/volumes/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,eAAe;OACpB,EACL,YAAY,GAKb;OAGM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2E9F,CAAC;IAzEC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,QAAgB,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAoGD,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1,146 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as OperationsAPI from "../operations.mjs";
|
|
3
|
-
import * as Shared from "../shared.mjs";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
-
export declare class Volumes extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a Volume. Only data volumes can be created.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const operation = await client.compute.volumes.create({
|
|
13
|
-
* name: 'my-data-volume',
|
|
14
|
-
* size: 100,
|
|
15
|
-
* vm_id: 'vm_id',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(body: VolumeCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
20
|
-
/**
|
|
21
|
-
* Update a Volume. Boot or data volumes can be updated.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const operation = await client.compute.volumes.update(
|
|
26
|
-
* 'volume_id',
|
|
27
|
-
* );
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
update(volumeID: string, body: VolumeUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
31
|
-
/**
|
|
32
|
-
* List all volumes
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const volumeList = await client.compute.volumes.list();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
list(options?: RequestOptions): APIPromise<VolumeList>;
|
|
40
|
-
/**
|
|
41
|
-
* Delete a Volume. Boot or data volumes can be deleted.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const operation = await client.compute.volumes.delete(
|
|
46
|
-
* 'volume_id',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
51
|
-
/**
|
|
52
|
-
* Get a Volume.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const volume = await client.compute.volumes.get(
|
|
57
|
-
* 'volume_id',
|
|
58
|
-
* );
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
get(volumeID: string, options?: RequestOptions): APIPromise<Volume>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Storage type the volume is using.
|
|
65
|
-
*/
|
|
66
|
-
export type StorageType = 'nvme';
|
|
67
|
-
/**
|
|
68
|
-
* Volume details.
|
|
69
|
-
*/
|
|
70
|
-
export interface Volume {
|
|
71
|
-
/**
|
|
72
|
-
* Unique identifier for the volume.
|
|
73
|
-
*/
|
|
74
|
-
id: string;
|
|
75
|
-
/**
|
|
76
|
-
* When the volume was created.
|
|
77
|
-
*/
|
|
78
|
-
created_at: string;
|
|
79
|
-
/**
|
|
80
|
-
* Volume kind.
|
|
81
|
-
*/
|
|
82
|
-
kind: VolumeKind;
|
|
83
|
-
/**
|
|
84
|
-
* Name of the volume.
|
|
85
|
-
*/
|
|
86
|
-
name: string;
|
|
87
|
-
/**
|
|
88
|
-
* Size of the volume in GB.
|
|
89
|
-
*/
|
|
90
|
-
size: number;
|
|
91
|
-
/**
|
|
92
|
-
* Status of the resource.
|
|
93
|
-
*/
|
|
94
|
-
status: Shared.ResourceStatus;
|
|
95
|
-
/**
|
|
96
|
-
* Storage type the volume is using.
|
|
97
|
-
*/
|
|
98
|
-
type: StorageType;
|
|
99
|
-
/**
|
|
100
|
-
* When the volume was updated.
|
|
101
|
-
*/
|
|
102
|
-
updated_at: string;
|
|
103
|
-
/**
|
|
104
|
-
* ID of the VM the volume is attached to.
|
|
105
|
-
*/
|
|
106
|
-
vm_id: string | null;
|
|
107
|
-
/**
|
|
108
|
-
* Name of the VM the volume is attached to.
|
|
109
|
-
*/
|
|
110
|
-
vm_name: string | null;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Volume kind.
|
|
114
|
-
*/
|
|
115
|
-
export type VolumeKind = 'boot' | 'data';
|
|
116
|
-
export interface VolumeList {
|
|
117
|
-
items: Array<Volume>;
|
|
118
|
-
}
|
|
119
|
-
export interface VolumeCreateParams {
|
|
120
|
-
/**
|
|
121
|
-
* Name of the volume.
|
|
122
|
-
*/
|
|
123
|
-
name: string;
|
|
124
|
-
/**
|
|
125
|
-
* Size of the volume in GB.
|
|
126
|
-
*/
|
|
127
|
-
size: number;
|
|
128
|
-
/**
|
|
129
|
-
* ID of the VM the volume is attached to.
|
|
130
|
-
*/
|
|
131
|
-
vm_id: string;
|
|
132
|
-
}
|
|
133
|
-
export interface VolumeUpdateParams {
|
|
134
|
-
/**
|
|
135
|
-
* Name of the volume.
|
|
136
|
-
*/
|
|
137
|
-
name?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Size of the volume in GB.
|
|
140
|
-
*/
|
|
141
|
-
size?: number;
|
|
142
|
-
}
|
|
143
|
-
export declare namespace Volumes {
|
|
144
|
-
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, };
|
|
145
|
-
}
|
|
1
|
+
export * from "./volumes/index.mjs";
|
|
146
2
|
//# sourceMappingURL=volumes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.d.mts","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"volumes.d.mts","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":""}
|