@nirvana-labs/nirvana 0.10.0 → 1.0.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/package.json +2 -2
  4. package/resources/api-keys.d.mts +6 -6
  5. package/resources/api-keys.d.ts +6 -6
  6. package/resources/compute/vms/vms.d.mts +101 -14
  7. package/resources/compute/vms/vms.d.mts.map +1 -1
  8. package/resources/compute/vms/vms.d.ts +101 -14
  9. package/resources/compute/vms/vms.d.ts.map +1 -1
  10. package/resources/compute/vms/vms.js.map +1 -1
  11. package/resources/compute/vms/vms.mjs.map +1 -1
  12. package/resources/compute/volumes.d.mts +41 -2
  13. package/resources/compute/volumes.d.mts.map +1 -1
  14. package/resources/compute/volumes.d.ts +41 -2
  15. package/resources/compute/volumes.d.ts.map +1 -1
  16. package/resources/networking/firewall-rules.d.mts +46 -7
  17. package/resources/networking/firewall-rules.d.mts.map +1 -1
  18. package/resources/networking/firewall-rules.d.ts +46 -7
  19. package/resources/networking/firewall-rules.d.ts.map +1 -1
  20. package/resources/networking/vpcs.d.mts +53 -2
  21. package/resources/networking/vpcs.d.mts.map +1 -1
  22. package/resources/networking/vpcs.d.ts +53 -2
  23. package/resources/networking/vpcs.d.ts.map +1 -1
  24. package/resources/operations.d.mts +30 -0
  25. package/resources/operations.d.mts.map +1 -1
  26. package/resources/operations.d.ts +30 -0
  27. package/resources/operations.d.ts.map +1 -1
  28. package/resources/shared.d.mts +6 -0
  29. package/resources/shared.d.mts.map +1 -1
  30. package/resources/shared.d.ts +6 -0
  31. package/resources/shared.d.ts.map +1 -1
  32. package/resources/user.d.mts +12 -0
  33. package/resources/user.d.mts.map +1 -1
  34. package/resources/user.d.ts +12 -0
  35. package/resources/user.d.ts.map +1 -1
  36. package/src/resources/api-keys.ts +6 -6
  37. package/src/resources/compute/vms/vms.ts +101 -14
  38. package/src/resources/compute/volumes.ts +41 -2
  39. package/src/resources/networking/firewall-rules.ts +46 -7
  40. package/src/resources/networking/vpcs.ts +53 -2
  41. package/src/resources/operations.ts +30 -0
  42. package/src/resources/shared.ts +6 -0
  43. package/src/resources/user.ts +12 -0
  44. package/src/version.ts +1 -1
  45. package/version.d.mts +1 -1
  46. package/version.d.mts.map +1 -1
  47. package/version.d.ts +1 -1
  48. package/version.d.ts.map +1 -1
  49. package/version.js +1 -1
  50. package/version.js.map +1 -1
  51. package/version.mjs +1 -1
  52. package/version.mjs.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIzD;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG1E;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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AS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3D,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -15,19 +15,49 @@ export declare class Operations extends APIResource {
15
15
  * Operation details.
16
16
  */
17
17
  export interface Operation {
18
+ /**
19
+ * Unique identifier for the operation.
20
+ */
18
21
  id: string;
22
+ /**
23
+ * When the operation was created.
24
+ */
19
25
  created_at: string;
26
+ /**
27
+ * Kind of operation.
28
+ */
20
29
  kind: OperationKind;
30
+ /**
31
+ * ID of the resource that the operation is acting on.
32
+ */
21
33
  resource_id: string;
34
+ /**
35
+ * Status of the operation.
36
+ */
22
37
  status: OperationStatus;
38
+ /**
39
+ * Type of operation.
40
+ */
23
41
  type: OperationType;
42
+ /**
43
+ * When the operation was updated.
44
+ */
24
45
  updated_at: string;
25
46
  }
47
+ /**
48
+ * Kind of operation.
49
+ */
26
50
  export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
27
51
  export interface OperationList {
28
52
  items: Array<Operation>;
29
53
  }
54
+ /**
55
+ * Status of the operation.
56
+ */
30
57
  export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
58
+ /**
59
+ * Type of operation.
60
+ */
31
61
  export type OperationType = 'create' | 'update' | 'delete';
32
62
  export declare namespace Operations {
33
63
  export { type Operation as Operation, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, };
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[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
4
  export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-chi-1' | 'us-wdc-1' | 'eu-lon-1' | 'eu-ams-1' | 'eu-frk-1' | 'ap-sin-1' | 'ap-seo-1' | 'ap-tyo-1';
5
+ /**
6
+ * Status of the resource.
7
+ */
2
8
  export type ResourceStatus = 'pending' | 'creating' | 'updating' | 'ready' | 'deleting' | 'deleted' | 'error';
3
9
  //# sourceMappingURL=shared.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC"}
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Region the resource is in.
3
+ */
1
4
  export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-chi-1' | 'us-wdc-1' | 'eu-lon-1' | 'eu-ams-1' | 'eu-frk-1' | 'ap-sin-1' | 'ap-seo-1' | 'ap-tyo-1';
5
+ /**
6
+ * Status of the resource.
7
+ */
2
8
  export type ResourceStatus = 'pending' | 'creating' | 'updating' | 'ready' | 'deleting' | 'deleted' | 'error';
3
9
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC"}
@@ -8,11 +8,23 @@ export declare class UserResource extends APIResource {
8
8
  get(options?: RequestOptions): APIPromise<User>;
9
9
  }
10
10
  export interface User {
11
+ /**
12
+ * Unique identifier for the user.
13
+ */
11
14
  id: string;
15
+ /**
16
+ * Email address of the user.
17
+ */
12
18
  email: string;
19
+ /**
20
+ * Services that the user has access to.
21
+ */
13
22
  services: User.Services;
14
23
  }
15
24
  export declare namespace User {
25
+ /**
26
+ * Services that the user has access to.
27
+ */
16
28
  interface Services {
17
29
  cloud?: boolean;
18
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
1
+ {"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
@@ -8,11 +8,23 @@ export declare class UserResource extends APIResource {
8
8
  get(options?: RequestOptions): APIPromise<User>;
9
9
  }
10
10
  export interface User {
11
+ /**
12
+ * Unique identifier for the user.
13
+ */
11
14
  id: string;
15
+ /**
16
+ * Email address of the user.
17
+ */
12
18
  email: string;
19
+ /**
20
+ * Services that the user has access to.
21
+ */
13
22
  services: User.Services;
14
23
  }
15
24
  export declare namespace User {
25
+ /**
26
+ * Services that the user has access to.
27
+ */
16
28
  interface Services {
17
29
  cloud?: boolean;
18
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
@@ -56,12 +56,12 @@ export interface APIKey {
56
56
  id: string;
57
57
 
58
58
  /**
59
- * Time on which the API key was created.
59
+ * When the API key was created.
60
60
  */
61
61
  created_at: string;
62
62
 
63
63
  /**
64
- * Time after which the API key is not valid.
64
+ * When the API key expires and is no longer valid.
65
65
  */
66
66
  expires_at: string;
67
67
 
@@ -76,7 +76,7 @@ export interface APIKey {
76
76
  status: 'active' | 'inactive' | 'expired';
77
77
 
78
78
  /**
79
- * Time on which the API key was updated.
79
+ * When the API key was updated.
80
80
  */
81
81
  updated_at: string;
82
82
 
@@ -91,7 +91,7 @@ export interface APIKey {
91
91
  key?: string;
92
92
 
93
93
  /**
94
- * Time before which the API key is not valid.
94
+ * When the API key starts to be valid.
95
95
  */
96
96
  starts_at?: string;
97
97
  }
@@ -102,7 +102,7 @@ export interface APIKeyList {
102
102
 
103
103
  export interface APIKeyCreateParams {
104
104
  /**
105
- * Time after which the API key is not valid.
105
+ * When the API key expires and is no longer valid.
106
106
  */
107
107
  expires_at: string;
108
108
 
@@ -112,7 +112,7 @@ export interface APIKeyCreateParams {
112
112
  name: string;
113
113
 
114
114
  /**
115
- * Time before which the API key is not valid.
115
+ * When the API key starts to be valid.
116
116
  */
117
117
  starts_at?: string;
118
118
  }
@@ -52,37 +52,52 @@ export class VMs extends APIResource {
52
52
  }
53
53
 
54
54
  /**
55
- * CPU configuration details.
55
+ * CPU configuration for the VM.
56
56
  */
57
57
  export interface CPUConfig {
58
58
  /**
59
- * virtual CPUs
59
+ * Number of virtual CPUs.
60
60
  */
61
61
  vcpu: number;
62
62
  }
63
63
 
64
64
  /**
65
- * Memory configuration details.
65
+ * Memory configuration for the VM.
66
66
  */
67
67
  export interface MemoryConfig {
68
68
  /**
69
- * memory size
69
+ * Size of the memory in GB.
70
70
  */
71
71
  size: number;
72
72
  }
73
73
 
74
+ /**
75
+ * OS Image details.
76
+ */
74
77
  export interface OSImage {
78
+ /**
79
+ * When the OS Image was created.
80
+ */
75
81
  created_at: string;
76
82
 
83
+ /**
84
+ * Display name of the OS Image.
85
+ */
77
86
  display_name: string;
78
87
 
88
+ /**
89
+ * Name of the OS Image.
90
+ */
79
91
  name: string;
80
92
  }
81
93
 
82
94
  /**
83
- * SSH key details.
95
+ * Public SSH key configuration for the VM.
84
96
  */
85
97
  export interface SSHKey {
98
+ /**
99
+ * Public key to and and use to access the VM.
100
+ */
86
101
  public_key: string;
87
102
  }
88
103
 
@@ -90,40 +105,79 @@ export interface SSHKey {
90
105
  * VM details.
91
106
  */
92
107
  export interface VM {
108
+ /**
109
+ * Unique identifier for the VM.
110
+ */
93
111
  id: string;
94
112
 
113
+ /**
114
+ * ID of the boot volume for the VM.
115
+ */
95
116
  boot_volume_id: string;
96
117
 
97
118
  /**
98
- * CPU configuration details.
119
+ * CPU configuration for the VM.
99
120
  */
100
121
  cpu_config: CPUConfig;
101
122
 
123
+ /**
124
+ * When the VM was created.
125
+ */
102
126
  created_at: string;
103
127
 
128
+ /**
129
+ * IDs of the data volumes for the VM.
130
+ */
104
131
  data_volume_ids: Array<string>;
105
132
 
106
133
  /**
107
- * Memory configuration details.
134
+ * Memory configuration for the VM.
108
135
  */
109
136
  memory_config: MemoryConfig;
110
137
 
138
+ /**
139
+ * Name of the VM.
140
+ */
111
141
  name: string;
112
142
 
143
+ /**
144
+ * Private IP of the VM.
145
+ */
113
146
  private_ip: string | null;
114
147
 
148
+ /**
149
+ * Public IP of the VM.
150
+ */
115
151
  public_ip: string | null;
116
152
 
153
+ /**
154
+ * Region the resource is in.
155
+ */
117
156
  region: Shared.RegionName;
118
157
 
158
+ /**
159
+ * Status of the resource.
160
+ */
119
161
  status: Shared.ResourceStatus;
120
162
 
163
+ /**
164
+ * ID of the subnet for the VM.
165
+ */
121
166
  subnet_id: string;
122
167
 
168
+ /**
169
+ * When the VM was updated.
170
+ */
123
171
  updated_at: string;
124
172
 
173
+ /**
174
+ * ID of the VPC for the VM.
175
+ */
125
176
  vpc_id: string;
126
177
 
178
+ /**
179
+ * Name of the VPC for the VM.
180
+ */
127
181
  vpc_name: string;
128
182
  }
129
183
 
@@ -133,43 +187,64 @@ export interface VMList {
133
187
 
134
188
  export interface VMCreateParams {
135
189
  /**
136
- * Boot volume create request.
190
+ * Boot volume for the VM.
137
191
  */
138
192
  boot_volume: VMCreateParams.BootVolume;
139
193
 
140
194
  /**
141
- * CPU configuration details.
195
+ * CPU configuration for the VM.
142
196
  */
143
197
  cpu_config: CPUConfig;
144
198
 
145
199
  /**
146
- * Memory configuration details.
200
+ * Memory configuration for the VM.
147
201
  */
148
202
  memory_config: MemoryConfig;
149
203
 
204
+ /**
205
+ * Name of the VM.
206
+ */
150
207
  name: string;
151
208
 
209
+ /**
210
+ * Name of the OS Image to use for the VM.
211
+ */
152
212
  os_image_name: string;
153
213
 
214
+ /**
215
+ * Whether to enable public IP for the VM.
216
+ */
154
217
  public_ip_enabled: boolean;
155
218
 
219
+ /**
220
+ * Region the resource is in.
221
+ */
156
222
  region: Shared.RegionName;
157
223
 
158
224
  /**
159
- * SSH key details.
225
+ * Public SSH key configuration for the VM.
160
226
  */
161
227
  ssh_key: SSHKey;
162
228
 
229
+ /**
230
+ * ID of the subnet to use for the VM.
231
+ */
163
232
  subnet_id: string;
164
233
 
234
+ /**
235
+ * Data volumes for the VM.
236
+ */
165
237
  data_volumes?: Array<VMCreateParams.DataVolume>;
166
238
  }
167
239
 
168
240
  export namespace VMCreateParams {
169
241
  /**
170
- * Boot volume create request.
242
+ * Boot volume for the VM.
171
243
  */
172
244
  export interface BootVolume {
245
+ /**
246
+ * Size of the volume in GB.
247
+ */
173
248
  size: number;
174
249
  }
175
250
 
@@ -177,25 +252,37 @@ export namespace VMCreateParams {
177
252
  * VM data volume create request.
178
253
  */
179
254
  export interface DataVolume {
255
+ /**
256
+ * Name of the volume.
257
+ */
180
258
  name: string;
181
259
 
260
+ /**
261
+ * Size of the volume in GB.
262
+ */
182
263
  size: number;
183
264
  }
184
265
  }
185
266
 
186
267
  export interface VMUpdateParams {
187
268
  /**
188
- * CPU configuration details.
269
+ * CPU configuration for the VM.
189
270
  */
190
271
  cpu_config?: CPUConfig;
191
272
 
192
273
  /**
193
- * Memory configuration details.
274
+ * Memory configuration for the VM.
194
275
  */
195
276
  memory_config?: MemoryConfig;
196
277
 
278
+ /**
279
+ * Name of the VM.
280
+ */
197
281
  name?: string;
198
282
 
283
+ /**
284
+ * Whether to enable public IP for the VM.
285
+ */
199
286
  public_ip_enabled?: boolean;
200
287
  }
201
288
 
@@ -49,7 +49,7 @@ export class Volumes extends APIResource {
49
49
  }
50
50
 
51
51
  /**
52
- * Storage type.
52
+ * Storage type the volume is using.
53
53
  */
54
54
  export type StorageType = 'nvme';
55
55
 
@@ -57,8 +57,14 @@ export type StorageType = 'nvme';
57
57
  * Volume details.
58
58
  */
59
59
  export interface Volume {
60
+ /**
61
+ * Unique identifier for the volume.
62
+ */
60
63
  id: string;
61
64
 
65
+ /**
66
+ * When the volume was created.
67
+ */
62
68
  created_at: string;
63
69
 
64
70
  /**
@@ -66,21 +72,39 @@ export interface Volume {
66
72
  */
67
73
  kind: VolumeKind;
68
74
 
75
+ /**
76
+ * Name of the volume.
77
+ */
69
78
  name: string;
70
79
 
80
+ /**
81
+ * Size of the volume in GB.
82
+ */
71
83
  size: number;
72
84
 
85
+ /**
86
+ * Status of the resource.
87
+ */
73
88
  status: Shared.ResourceStatus;
74
89
 
75
90
  /**
76
- * Storage type.
91
+ * Storage type the volume is using.
77
92
  */
78
93
  type: StorageType;
79
94
 
95
+ /**
96
+ * When the volume was updated.
97
+ */
80
98
  updated_at: string;
81
99
 
100
+ /**
101
+ * ID of the VM the volume is attached to.
102
+ */
82
103
  vm_id: string | null;
83
104
 
105
+ /**
106
+ * Name of the VM the volume is attached to.
107
+ */
84
108
  vm_name: string | null;
85
109
  }
86
110
 
@@ -94,16 +118,31 @@ export interface VolumeList {
94
118
  }
95
119
 
96
120
  export interface VolumeCreateParams {
121
+ /**
122
+ * Name of the volume.
123
+ */
97
124
  name: string;
98
125
 
126
+ /**
127
+ * Size of the volume in GB.
128
+ */
99
129
  size: number;
100
130
 
131
+ /**
132
+ * ID of the VM the volume is attached to.
133
+ */
101
134
  vm_id: string;
102
135
  }
103
136
 
104
137
  export interface VolumeUpdateParams {
138
+ /**
139
+ * Name of the volume.
140
+ */
105
141
  name?: string;
106
142
 
143
+ /**
144
+ * Size of the volume in GB.
145
+ */
107
146
  size?: number;
108
147
  }
109
148
 
@@ -70,27 +70,54 @@ export class FirewallRules extends APIResource {
70
70
  * Firewall rule details.
71
71
  */
72
72
  export interface FirewallRule {
73
+ /**
74
+ * Unique identifier for the firewall rule.
75
+ */
73
76
  id: string;
74
77
 
78
+ /**
79
+ * When the firewall rule was created.
80
+ */
75
81
  created_at: string;
76
82
 
83
+ /**
84
+ * Destination address of the firewall rule.
85
+ */
77
86
  destination_address: string;
78
87
 
88
+ /**
89
+ * Destination ports of the firewall rule.
90
+ */
79
91
  destination_ports: Array<string>;
80
92
 
93
+ /**
94
+ * Name of the firewall rule.
95
+ */
81
96
  name: string;
82
97
 
83
98
  /**
84
- * Supported Firewall Rule protocols.
99
+ * Protocol of the firewall rule.
85
100
  */
86
101
  protocol: 'tcp' | 'udp';
87
102
 
103
+ /**
104
+ * Source address of the firewall rule.
105
+ */
88
106
  source_address: string;
89
107
 
108
+ /**
109
+ * Status of the resource.
110
+ */
90
111
  status: Shared.ResourceStatus;
91
112
 
113
+ /**
114
+ * When the firewall rule was updated.
115
+ */
92
116
  updated_at: string;
93
117
 
118
+ /**
119
+ * ID of the VPC the firewall rule belongs to.
120
+ */
94
121
  vpc_id: string;
95
122
  }
96
123
 
@@ -99,17 +126,29 @@ export interface FirewallRuleList {
99
126
  }
100
127
 
101
128
  export interface FirewallRuleCreateParams {
129
+ /**
130
+ * Destination address of the firewall rule.
131
+ */
102
132
  destination_address: string;
103
133
 
134
+ /**
135
+ * Destination ports of the firewall rule.
136
+ */
104
137
  destination_ports: Array<string>;
105
138
 
139
+ /**
140
+ * Name of the firewall rule.
141
+ */
106
142
  name: string;
107
143
 
108
144
  /**
109
- * Supported Firewall Rule protocols.
145
+ * Protocol of the firewall rule.
110
146
  */
111
147
  protocol: string;
112
148
 
149
+ /**
150
+ * Source address of the firewall rule.
151
+ */
113
152
  source_address: string;
114
153
  }
115
154
 
@@ -120,27 +159,27 @@ export interface FirewallRuleUpdateParams {
120
159
  vpc_id: string;
121
160
 
122
161
  /**
123
- * Body param:
162
+ * Body param: Destination address of the firewall rule.
124
163
  */
125
164
  destination_address?: string;
126
165
 
127
166
  /**
128
- * Body param:
167
+ * Body param: Destination ports of the firewall rule.
129
168
  */
130
169
  destination_ports?: Array<string>;
131
170
 
132
171
  /**
133
- * Body param:
172
+ * Body param: Name of the firewall rule.
134
173
  */
135
174
  name?: string;
136
175
 
137
176
  /**
138
- * Body param: Supported Firewall Rule protocols.
177
+ * Body param: Protocol of the firewall rule.
139
178
  */
140
179
  protocol?: 'tcp' | 'udp';
141
180
 
142
181
  /**
143
- * Body param:
182
+ * Body param: Source address of the firewall rule.
144
183
  */
145
184
  source_address?: string;
146
185
  }