Skip to content

Commit 76773a8

Browse files
author
Theophilus Okwugwuni
authored
Add reservation_id (#2)
1 parent 97a2830 commit 76773a8

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- @diogopms @skirsten @philipkrueck @theocod3s

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@genesiscloud/genesiscloud-js",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "JavaScript client for the Genesis Cloud API",
55
"main": "dist/index.js",
66
"type": "commonjs",

src/schemas.gen.ts

+6
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@ export const $Instance = {
423423
hostname: {
424424
$ref: "#/components/schemas/Instance.Hostname",
425425
},
426+
reservation_id: {
427+
type: "string",
428+
description:
429+
"The unique ID of the reservation the instance is associated with.",
430+
nullable: true,
431+
},
426432
type: {
427433
$ref: "#/components/schemas/Instance.Type",
428434
},

src/types.gen.ts

+14
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ export type Instance = {
235235
id: string;
236236
name: Instance_Name;
237237
hostname: Instance_Hostname;
238+
/**
239+
* The unique ID of the reservation the instance is associated with.
240+
*/
241+
reservation_id?: string | null;
238242
type: Instance_Type;
239243
os_type: OSType;
240244
/**
@@ -1039,6 +1043,11 @@ export type $OpenApiTs = {
10391043
hostname: Instance_Hostname;
10401044
type: Instance_Type;
10411045
image: ImageId;
1046+
/**
1047+
* The unique ID of the reservation the instance is associated with.
1048+
*
1049+
*/
1050+
reservation_id?: string;
10421051
/**
10431052
* An array of ssh key ids.
10441053
* This should not be provided if `password` authentication method is desired.
@@ -1128,6 +1137,11 @@ export type $OpenApiTs = {
11281137
requestBody: {
11291138
name?: Instance_Name;
11301139
is_protected?: Instance_IsProtected;
1140+
/**
1141+
* The unique ID of the reservation the instance is associated with.
1142+
*
1143+
*/
1144+
reservation_id?: string;
11311145
security_groups?: Instance_SecurityGroupIds;
11321146
/**
11331147
* The instance's volumes IDs.

0 commit comments

Comments
 (0)