@nirvana-labs/nirvana 1.86.1 → 1.87.1
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 +21 -0
- package/README.md +7 -7
- package/package.json +1 -1
- 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.map +1 -1
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/index.d.mts +1 -1
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +1 -1
- 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/availability.d.mts +5 -20
- package/resources/compute/vms/availability.d.mts.map +1 -1
- package/resources/compute/vms/availability.d.ts +5 -20
- package/resources/compute/vms/availability.d.ts.map +1 -1
- package/resources/compute/vms/availability.js +1 -0
- package/resources/compute/vms/availability.js.map +1 -1
- package/resources/compute/vms/availability.mjs +1 -0
- package/resources/compute/vms/availability.mjs.map +1 -1
- package/resources/compute/vms/index.d.mts +1 -1
- package/resources/compute/vms/index.d.mts.map +1 -1
- package/resources/compute/vms/index.d.ts +1 -1
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/index.js.map +1 -1
- package/resources/compute/vms/index.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +6 -39
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +6 -39
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +1 -0
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +1 -0
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/operations/operations.d.mts +36 -1
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +36 -1
- package/resources/operations/operations.d.ts.map +1 -1
- package/src/resources/compute/api.md +0 -2
- package/src/resources/compute/compute.ts +0 -4
- package/src/resources/compute/index.ts +0 -2
- package/src/resources/compute/vms/availability.ts +6 -25
- package/src/resources/compute/vms/index.ts +0 -2
- package/src/resources/compute/vms/vms.ts +6 -47
- package/src/resources/operations/api.md +3 -0
- package/src/resources/operations/operations.ts +41 -0
- 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
|
@@ -22,6 +22,7 @@ export declare class VMs extends APIResource {
|
|
|
22
22
|
* ```ts
|
|
23
23
|
* const operation = await client.compute.vms.create({
|
|
24
24
|
* boot_volume: { size: 100, type: 'abs' },
|
|
25
|
+
* instance_type: 'n1-standard-8',
|
|
25
26
|
* name: 'my-vm',
|
|
26
27
|
* os_image_name: 'ubuntu-noble-2025-10-01',
|
|
27
28
|
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -98,15 +99,6 @@ export interface CPUConfig {
|
|
|
98
99
|
*/
|
|
99
100
|
vcpu: number;
|
|
100
101
|
}
|
|
101
|
-
/**
|
|
102
|
-
* CPU configuration for the VM.
|
|
103
|
-
*/
|
|
104
|
-
export interface CPUConfigRequest {
|
|
105
|
-
/**
|
|
106
|
-
* Number of virtual CPUs.
|
|
107
|
-
*/
|
|
108
|
-
vcpu?: number;
|
|
109
|
-
}
|
|
110
102
|
/**
|
|
111
103
|
* Memory configuration for the VM.
|
|
112
104
|
*/
|
|
@@ -116,15 +108,6 @@ export interface MemoryConfig {
|
|
|
116
108
|
*/
|
|
117
109
|
size: number;
|
|
118
110
|
}
|
|
119
|
-
/**
|
|
120
|
-
* Memory configuration for the VM.
|
|
121
|
-
*/
|
|
122
|
-
export interface MemoryConfigRequest {
|
|
123
|
-
/**
|
|
124
|
-
* Size of the memory in GB.
|
|
125
|
-
*/
|
|
126
|
-
size?: number;
|
|
127
|
-
}
|
|
128
111
|
/**
|
|
129
112
|
* OS Image details.
|
|
130
113
|
*/
|
|
@@ -244,6 +227,10 @@ export interface VMCreateParams {
|
|
|
244
227
|
* Boot volume for the VM.
|
|
245
228
|
*/
|
|
246
229
|
boot_volume: VMCreateParams.BootVolume;
|
|
230
|
+
/**
|
|
231
|
+
* Instance type name.
|
|
232
|
+
*/
|
|
233
|
+
instance_type: string;
|
|
247
234
|
/**
|
|
248
235
|
* Name of the VM.
|
|
249
236
|
*/
|
|
@@ -272,22 +259,10 @@ export interface VMCreateParams {
|
|
|
272
259
|
* ID of the subnet to use for the VM.
|
|
273
260
|
*/
|
|
274
261
|
subnet_id: string;
|
|
275
|
-
/**
|
|
276
|
-
* CPU configuration for the VM.
|
|
277
|
-
*/
|
|
278
|
-
cpu_config?: CPUConfigRequest;
|
|
279
262
|
/**
|
|
280
263
|
* Data volumes for the VM.
|
|
281
264
|
*/
|
|
282
265
|
data_volumes?: Array<VMCreateParams.DataVolume>;
|
|
283
|
-
/**
|
|
284
|
-
* Instance type name.
|
|
285
|
-
*/
|
|
286
|
-
instance_type?: string;
|
|
287
|
-
/**
|
|
288
|
-
* Memory configuration for the VM.
|
|
289
|
-
*/
|
|
290
|
-
memory_config?: MemoryConfigRequest;
|
|
291
266
|
/**
|
|
292
267
|
* Tags to attach to the VM.
|
|
293
268
|
*/
|
|
@@ -334,18 +309,10 @@ export declare namespace VMCreateParams {
|
|
|
334
309
|
}
|
|
335
310
|
}
|
|
336
311
|
export interface VMUpdateParams {
|
|
337
|
-
/**
|
|
338
|
-
* CPU configuration for the VM.
|
|
339
|
-
*/
|
|
340
|
-
cpu_config?: CPUConfigRequest;
|
|
341
312
|
/**
|
|
342
313
|
* Instance type name.
|
|
343
314
|
*/
|
|
344
315
|
instance_type?: string;
|
|
345
|
-
/**
|
|
346
|
-
* Memory configuration for the VM.
|
|
347
|
-
*/
|
|
348
|
-
memory_config?: MemoryConfigRequest;
|
|
349
316
|
/**
|
|
350
317
|
* Name of the VM.
|
|
351
318
|
*/
|
|
@@ -366,7 +333,7 @@ export interface VMListParams extends CursorParams {
|
|
|
366
333
|
project_id: string;
|
|
367
334
|
}
|
|
368
335
|
export declare namespace VMs {
|
|
369
|
-
export { type CPUConfig as CPUConfig, type
|
|
336
|
+
export { type CPUConfig as CPUConfig, type MemoryConfig as MemoryConfig, type OSImage as OSImage, type SSHKeyRequest as SSHKeyRequest, type VM as VM, type VMList as VMList, type VMsCursor as VMsCursor, type VMCreateParams as VMCreateParams, type VMUpdateParams as VMUpdateParams, type VMListParams as VMListParams, };
|
|
370
337
|
export { Availability as Availability, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
371
338
|
export { Volumes as Volumes, type VolumeListParams as VolumeListParams };
|
|
372
339
|
export { OSImages as OSImages, type OSImageListParams as OSImageListParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,aAAa,uCAAoC;AAC7D,OAAO,KAAK,eAAe,0BAAuB;AAClD,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,0BAAuB;AAClG,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,uBAAoB;AAC1D,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,qBAAkB;AACtD,OAAO,KAAK,iBAAiB,8BAA2B;AACxD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,oCAAiC;AAClF,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,GAAI,SAAQ,WAAW;IAClC,YAAY,EAAE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,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,EAAE,IAAI,EAAE,EACb,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;IAEzE,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC9E"}
|
|
@@ -26,6 +26,7 @@ class VMs extends resource_1.APIResource {
|
|
|
26
26
|
* ```ts
|
|
27
27
|
* const operation = await client.compute.vms.create({
|
|
28
28
|
* boot_volume: { size: 100, type: 'abs' },
|
|
29
|
+
* instance_type: 'n1-standard-8',
|
|
29
30
|
* name: 'my-vm',
|
|
30
31
|
* os_image_name: 'ubuntu-noble-2025-10-01',
|
|
31
32
|
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,2EAAkD;AAClD,oDAAkG;AAClG,oEAA2C;AAC3C,8CAA0D;AAC1D,iEAAwC;AACxC,0CAAsD;AAGtD,4DAAkF;AAElF,0DAAoD;AAEpD,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,I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GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAY,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mBAAmB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,IAAY,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,IAAY,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,IAAI,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AA9FD,kBA8FC;AA0SD,GAAG,CAAC,YAAY,GAAG,2BAAY,CAAC;AAChC,GAAG,CAAC,OAAO,GAAG,iBAAO,CAAC;AACtB,GAAG,CAAC,QAAQ,GAAG,oBAAQ,CAAC"}
|
|
@@ -22,6 +22,7 @@ export class VMs extends APIResource {
|
|
|
22
22
|
* ```ts
|
|
23
23
|
* const operation = await client.compute.vms.create({
|
|
24
24
|
* boot_volume: { size: 100, type: 'abs' },
|
|
25
|
+
* instance_type: 'n1-standard-8',
|
|
25
26
|
* name: 'my-vm',
|
|
26
27
|
* os_image_name: 'ubuntu-noble-2025-10-01',
|
|
27
28
|
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAAE,YAAY,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,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;AACtB,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -26,6 +26,10 @@ export interface Operation {
|
|
|
26
26
|
* When the Operation was created.
|
|
27
27
|
*/
|
|
28
28
|
created_at: string;
|
|
29
|
+
/**
|
|
30
|
+
* Structured details about what an operation is changing.
|
|
31
|
+
*/
|
|
32
|
+
details: OperationDetails | null;
|
|
29
33
|
/**
|
|
30
34
|
* Kind of Operation.
|
|
31
35
|
*/
|
|
@@ -51,6 +55,37 @@ export interface Operation {
|
|
|
51
55
|
*/
|
|
52
56
|
updated_at: string;
|
|
53
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Map of changed field names to their from/to diffs. Keys depend on the parent
|
|
60
|
+
* operation's kind+type.
|
|
61
|
+
*/
|
|
62
|
+
export type OperationChanges = {
|
|
63
|
+
[key: string]: OperationFieldDiff;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Structured details about what an operation is changing.
|
|
67
|
+
*/
|
|
68
|
+
export interface OperationDetails {
|
|
69
|
+
/**
|
|
70
|
+
* Map of changed field names to their from/to diffs. Keys depend on the parent
|
|
71
|
+
* operation's kind+type.
|
|
72
|
+
*/
|
|
73
|
+
changes: OperationChanges;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A single field's before/after pair on an operation. Values are scalars (string,
|
|
77
|
+
* number, boolean) or string arrays.
|
|
78
|
+
*/
|
|
79
|
+
export interface OperationFieldDiff {
|
|
80
|
+
/**
|
|
81
|
+
* Previous value.
|
|
82
|
+
*/
|
|
83
|
+
from: string | number | boolean | Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
* New value.
|
|
86
|
+
*/
|
|
87
|
+
to: string | number | boolean | Array<string>;
|
|
88
|
+
}
|
|
54
89
|
/**
|
|
55
90
|
* Kind of Operation.
|
|
56
91
|
*/
|
|
@@ -77,6 +112,6 @@ export interface OperationListParams extends CursorParams {
|
|
|
77
112
|
project_id: string;
|
|
78
113
|
}
|
|
79
114
|
export declare namespace Operations {
|
|
80
|
-
export { type Operation as Operation, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, type OperationsCursor as OperationsCursor, type OperationListParams as OperationListParams, };
|
|
115
|
+
export { type Operation as Operation, type OperationChanges as OperationChanges, type OperationDetails as OperationDetails, type OperationFieldDiff as OperationFieldDiff, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, type OperationsCursor as OperationsCursor, type OperationListParams as OperationListParams, };
|
|
81
116
|
}
|
|
82
117
|
//# sourceMappingURL=operations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAIpG;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG1E;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,a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CAAC,CAAC;IAEhD;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,GAAG,aAAa,GAAG,eAAe,CAAC;AAExG,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -26,6 +26,10 @@ export interface Operation {
|
|
|
26
26
|
* When the Operation was created.
|
|
27
27
|
*/
|
|
28
28
|
created_at: string;
|
|
29
|
+
/**
|
|
30
|
+
* Structured details about what an operation is changing.
|
|
31
|
+
*/
|
|
32
|
+
details: OperationDetails | null;
|
|
29
33
|
/**
|
|
30
34
|
* Kind of Operation.
|
|
31
35
|
*/
|
|
@@ -51,6 +55,37 @@ export interface Operation {
|
|
|
51
55
|
*/
|
|
52
56
|
updated_at: string;
|
|
53
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Map of changed field names to their from/to diffs. Keys depend on the parent
|
|
60
|
+
* operation's kind+type.
|
|
61
|
+
*/
|
|
62
|
+
export type OperationChanges = {
|
|
63
|
+
[key: string]: OperationFieldDiff;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Structured details about what an operation is changing.
|
|
67
|
+
*/
|
|
68
|
+
export interface OperationDetails {
|
|
69
|
+
/**
|
|
70
|
+
* Map of changed field names to their from/to diffs. Keys depend on the parent
|
|
71
|
+
* operation's kind+type.
|
|
72
|
+
*/
|
|
73
|
+
changes: OperationChanges;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A single field's before/after pair on an operation. Values are scalars (string,
|
|
77
|
+
* number, boolean) or string arrays.
|
|
78
|
+
*/
|
|
79
|
+
export interface OperationFieldDiff {
|
|
80
|
+
/**
|
|
81
|
+
* Previous value.
|
|
82
|
+
*/
|
|
83
|
+
from: string | number | boolean | Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
* New value.
|
|
86
|
+
*/
|
|
87
|
+
to: string | number | boolean | Array<string>;
|
|
88
|
+
}
|
|
54
89
|
/**
|
|
55
90
|
* Kind of Operation.
|
|
56
91
|
*/
|
|
@@ -77,6 +112,6 @@ export interface OperationListParams extends CursorParams {
|
|
|
77
112
|
project_id: string;
|
|
78
113
|
}
|
|
79
114
|
export declare namespace Operations {
|
|
80
|
-
export { type Operation as Operation, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, type OperationsCursor as OperationsCursor, type OperationListParams as OperationListParams, };
|
|
115
|
+
export { type Operation as Operation, type OperationChanges as OperationChanges, type OperationDetails as OperationDetails, type OperationFieldDiff as OperationFieldDiff, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, type OperationsCursor as OperationsCursor, type OperationListParams as OperationListParams, };
|
|
81
116
|
}
|
|
82
117
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,iCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAIpG;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG1E;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa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K,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
Types:
|
|
6
6
|
|
|
7
7
|
- <code><a href="./src/resources/compute/vms/vms.ts">CPUConfig</a></code>
|
|
8
|
-
- <code><a href="./src/resources/compute/vms/vms.ts">CPUConfigRequest</a></code>
|
|
9
8
|
- <code><a href="./src/resources/compute/vms/vms.ts">MemoryConfig</a></code>
|
|
10
|
-
- <code><a href="./src/resources/compute/vms/vms.ts">MemoryConfigRequest</a></code>
|
|
11
9
|
- <code><a href="./src/resources/compute/vms/vms.ts">OSImage</a></code>
|
|
12
10
|
- <code><a href="./src/resources/compute/vms/vms.ts">SSHKeyRequest</a></code>
|
|
13
11
|
- <code><a href="./src/resources/compute/vms/vms.ts">VM</a></code>
|
|
@@ -4,9 +4,7 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import * as VMsAPI from './vms/vms';
|
|
5
5
|
import {
|
|
6
6
|
CPUConfig,
|
|
7
|
-
CPUConfigRequest,
|
|
8
7
|
MemoryConfig,
|
|
9
|
-
MemoryConfigRequest,
|
|
10
8
|
OSImage,
|
|
11
9
|
SSHKeyRequest,
|
|
12
10
|
VM,
|
|
@@ -43,9 +41,7 @@ export declare namespace Compute {
|
|
|
43
41
|
export {
|
|
44
42
|
VMs as VMs,
|
|
45
43
|
type CPUConfig as CPUConfig,
|
|
46
|
-
type CPUConfigRequest as CPUConfigRequest,
|
|
47
44
|
type MemoryConfig as MemoryConfig,
|
|
48
|
-
type MemoryConfigRequest as MemoryConfigRequest,
|
|
49
45
|
type OSImage as OSImage,
|
|
50
46
|
type SSHKeyRequest as SSHKeyRequest,
|
|
51
47
|
type VM as VM,
|
|
@@ -17,6 +17,7 @@ export class Availability extends APIResource {
|
|
|
17
17
|
* ```ts
|
|
18
18
|
* await client.compute.vms.availability.create({
|
|
19
19
|
* boot_volume: { size: 100, type: 'abs' },
|
|
20
|
+
* instance_type: 'n1-standard-8',
|
|
20
21
|
* name: 'my-vm',
|
|
21
22
|
* os_image_name: 'ubuntu-noble-2025-10-01',
|
|
22
23
|
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -61,6 +62,11 @@ export interface AvailabilityCreateParams {
|
|
|
61
62
|
*/
|
|
62
63
|
boot_volume: AvailabilityCreateParams.BootVolume;
|
|
63
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Instance type name.
|
|
67
|
+
*/
|
|
68
|
+
instance_type: string;
|
|
69
|
+
|
|
64
70
|
/**
|
|
65
71
|
* Name of the VM.
|
|
66
72
|
*/
|
|
@@ -96,26 +102,11 @@ export interface AvailabilityCreateParams {
|
|
|
96
102
|
*/
|
|
97
103
|
subnet_id: string;
|
|
98
104
|
|
|
99
|
-
/**
|
|
100
|
-
* CPU configuration for the VM.
|
|
101
|
-
*/
|
|
102
|
-
cpu_config?: VMsAPI.CPUConfigRequest;
|
|
103
|
-
|
|
104
105
|
/**
|
|
105
106
|
* Data volumes for the VM.
|
|
106
107
|
*/
|
|
107
108
|
data_volumes?: Array<AvailabilityCreateParams.DataVolume>;
|
|
108
109
|
|
|
109
|
-
/**
|
|
110
|
-
* Instance type name.
|
|
111
|
-
*/
|
|
112
|
-
instance_type?: string;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Memory configuration for the VM.
|
|
116
|
-
*/
|
|
117
|
-
memory_config?: VMsAPI.MemoryConfigRequest;
|
|
118
|
-
|
|
119
110
|
/**
|
|
120
111
|
* Tags to attach to the VM.
|
|
121
112
|
*/
|
|
@@ -170,21 +161,11 @@ export namespace AvailabilityCreateParams {
|
|
|
170
161
|
}
|
|
171
162
|
|
|
172
163
|
export interface AvailabilityUpdateParams {
|
|
173
|
-
/**
|
|
174
|
-
* CPU configuration for the VM.
|
|
175
|
-
*/
|
|
176
|
-
cpu_config?: VMsAPI.CPUConfigRequest;
|
|
177
|
-
|
|
178
164
|
/**
|
|
179
165
|
* Instance type name.
|
|
180
166
|
*/
|
|
181
167
|
instance_type?: string;
|
|
182
168
|
|
|
183
|
-
/**
|
|
184
|
-
* Memory configuration for the VM.
|
|
185
|
-
*/
|
|
186
|
-
memory_config?: VMsAPI.MemoryConfigRequest;
|
|
187
|
-
|
|
188
169
|
/**
|
|
189
170
|
* Name of the VM.
|
|
190
171
|
*/
|
|
@@ -27,6 +27,7 @@ export class VMs extends APIResource {
|
|
|
27
27
|
* ```ts
|
|
28
28
|
* const operation = await client.compute.vms.create({
|
|
29
29
|
* boot_volume: { size: 100, type: 'abs' },
|
|
30
|
+
* instance_type: 'n1-standard-8',
|
|
30
31
|
* name: 'my-vm',
|
|
31
32
|
* os_image_name: 'ubuntu-noble-2025-10-01',
|
|
32
33
|
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -124,16 +125,6 @@ export interface CPUConfig {
|
|
|
124
125
|
vcpu: number;
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
/**
|
|
128
|
-
* CPU configuration for the VM.
|
|
129
|
-
*/
|
|
130
|
-
export interface CPUConfigRequest {
|
|
131
|
-
/**
|
|
132
|
-
* Number of virtual CPUs.
|
|
133
|
-
*/
|
|
134
|
-
vcpu?: number;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
128
|
/**
|
|
138
129
|
* Memory configuration for the VM.
|
|
139
130
|
*/
|
|
@@ -144,16 +135,6 @@ export interface MemoryConfig {
|
|
|
144
135
|
size: number;
|
|
145
136
|
}
|
|
146
137
|
|
|
147
|
-
/**
|
|
148
|
-
* Memory configuration for the VM.
|
|
149
|
-
*/
|
|
150
|
-
export interface MemoryConfigRequest {
|
|
151
|
-
/**
|
|
152
|
-
* Size of the memory in GB.
|
|
153
|
-
*/
|
|
154
|
-
size?: number;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
138
|
/**
|
|
158
139
|
* OS Image details.
|
|
159
140
|
*/
|
|
@@ -299,6 +280,11 @@ export interface VMCreateParams {
|
|
|
299
280
|
*/
|
|
300
281
|
boot_volume: VMCreateParams.BootVolume;
|
|
301
282
|
|
|
283
|
+
/**
|
|
284
|
+
* Instance type name.
|
|
285
|
+
*/
|
|
286
|
+
instance_type: string;
|
|
287
|
+
|
|
302
288
|
/**
|
|
303
289
|
* Name of the VM.
|
|
304
290
|
*/
|
|
@@ -334,26 +320,11 @@ export interface VMCreateParams {
|
|
|
334
320
|
*/
|
|
335
321
|
subnet_id: string;
|
|
336
322
|
|
|
337
|
-
/**
|
|
338
|
-
* CPU configuration for the VM.
|
|
339
|
-
*/
|
|
340
|
-
cpu_config?: CPUConfigRequest;
|
|
341
|
-
|
|
342
323
|
/**
|
|
343
324
|
* Data volumes for the VM.
|
|
344
325
|
*/
|
|
345
326
|
data_volumes?: Array<VMCreateParams.DataVolume>;
|
|
346
327
|
|
|
347
|
-
/**
|
|
348
|
-
* Instance type name.
|
|
349
|
-
*/
|
|
350
|
-
instance_type?: string;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Memory configuration for the VM.
|
|
354
|
-
*/
|
|
355
|
-
memory_config?: MemoryConfigRequest;
|
|
356
|
-
|
|
357
328
|
/**
|
|
358
329
|
* Tags to attach to the VM.
|
|
359
330
|
*/
|
|
@@ -408,21 +379,11 @@ export namespace VMCreateParams {
|
|
|
408
379
|
}
|
|
409
380
|
|
|
410
381
|
export interface VMUpdateParams {
|
|
411
|
-
/**
|
|
412
|
-
* CPU configuration for the VM.
|
|
413
|
-
*/
|
|
414
|
-
cpu_config?: CPUConfigRequest;
|
|
415
|
-
|
|
416
382
|
/**
|
|
417
383
|
* Instance type name.
|
|
418
384
|
*/
|
|
419
385
|
instance_type?: string;
|
|
420
386
|
|
|
421
|
-
/**
|
|
422
|
-
* Memory configuration for the VM.
|
|
423
|
-
*/
|
|
424
|
-
memory_config?: MemoryConfigRequest;
|
|
425
|
-
|
|
426
387
|
/**
|
|
427
388
|
* Name of the VM.
|
|
428
389
|
*/
|
|
@@ -453,9 +414,7 @@ VMs.OSImages = OSImages;
|
|
|
453
414
|
export declare namespace VMs {
|
|
454
415
|
export {
|
|
455
416
|
type CPUConfig as CPUConfig,
|
|
456
|
-
type CPUConfigRequest as CPUConfigRequest,
|
|
457
417
|
type MemoryConfig as MemoryConfig,
|
|
458
|
-
type MemoryConfigRequest as MemoryConfigRequest,
|
|
459
418
|
type OSImage as OSImage,
|
|
460
419
|
type SSHKeyRequest as SSHKeyRequest,
|
|
461
420
|
type VM as VM,
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
Types:
|
|
4
4
|
|
|
5
5
|
- <code><a href="./src/resources/operations.ts">Operation</a></code>
|
|
6
|
+
- <code><a href="./src/resources/operations.ts">OperationChanges</a></code>
|
|
7
|
+
- <code><a href="./src/resources/operations.ts">OperationDetails</a></code>
|
|
8
|
+
- <code><a href="./src/resources/operations.ts">OperationFieldDiff</a></code>
|
|
6
9
|
- <code><a href="./src/resources/operations.ts">OperationKind</a></code>
|
|
7
10
|
- <code><a href="./src/resources/operations.ts">OperationList</a></code>
|
|
8
11
|
- <code><a href="./src/resources/operations.ts">OperationStatus</a></code>
|
|
@@ -39,6 +39,11 @@ export interface Operation {
|
|
|
39
39
|
*/
|
|
40
40
|
created_at: string;
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Structured details about what an operation is changing.
|
|
44
|
+
*/
|
|
45
|
+
details: OperationDetails | null;
|
|
46
|
+
|
|
42
47
|
/**
|
|
43
48
|
* Kind of Operation.
|
|
44
49
|
*/
|
|
@@ -70,6 +75,39 @@ export interface Operation {
|
|
|
70
75
|
updated_at: string;
|
|
71
76
|
}
|
|
72
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Map of changed field names to their from/to diffs. Keys depend on the parent
|
|
80
|
+
* operation's kind+type.
|
|
81
|
+
*/
|
|
82
|
+
export type OperationChanges = { [key: string]: OperationFieldDiff };
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Structured details about what an operation is changing.
|
|
86
|
+
*/
|
|
87
|
+
export interface OperationDetails {
|
|
88
|
+
/**
|
|
89
|
+
* Map of changed field names to their from/to diffs. Keys depend on the parent
|
|
90
|
+
* operation's kind+type.
|
|
91
|
+
*/
|
|
92
|
+
changes: OperationChanges;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* A single field's before/after pair on an operation. Values are scalars (string,
|
|
97
|
+
* number, boolean) or string arrays.
|
|
98
|
+
*/
|
|
99
|
+
export interface OperationFieldDiff {
|
|
100
|
+
/**
|
|
101
|
+
* Previous value.
|
|
102
|
+
*/
|
|
103
|
+
from: string | number | boolean | Array<string>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* New value.
|
|
107
|
+
*/
|
|
108
|
+
to: string | number | boolean | Array<string>;
|
|
109
|
+
}
|
|
110
|
+
|
|
73
111
|
/**
|
|
74
112
|
* Kind of Operation.
|
|
75
113
|
*/
|
|
@@ -104,6 +142,9 @@ export interface OperationListParams extends CursorParams {
|
|
|
104
142
|
export declare namespace Operations {
|
|
105
143
|
export {
|
|
106
144
|
type Operation as Operation,
|
|
145
|
+
type OperationChanges as OperationChanges,
|
|
146
|
+
type OperationDetails as OperationDetails,
|
|
147
|
+
type OperationFieldDiff as OperationFieldDiff,
|
|
107
148
|
type OperationKind as OperationKind,
|
|
108
149
|
type OperationList as OperationList,
|
|
109
150
|
type OperationStatus as OperationStatus,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.87.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.87.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.87.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.87.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|